/* =====================================================================
   MVK3D — V2 « L'imprimante en direct »  (pages publiques)
   L'admin garde sa propre feuille : /assets/css/app.css

   Principes (voir CLAUDE.md §4) :
   1. L'imprimante est la vedette : vraie 3D, pilotée par le visiteur.
   2. Les 4 filaments (fentes AMS) sont le système de couleurs, avec des rôles fixes :
      orange = action · cyan = interactif / focus · ambre = prix · blanc chaud = texte.
   3. Les lignes de couches sont la texture (logo, séparateurs, matière 3D).
   4. Mavrick parle, simplement. Partout ailleurs : calme et discipline.
   ===================================================================== */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
    font-family: 'Anybody';
    src: url('/assets/fonts/anybody-latin-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 50% 150%;
    font-display: swap;
}
@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('/assets/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
    /* L'atelier, la nuit */
    --night: #0A0F17;
    --plate: #111823;
    --steel: #18212E;
    --steel-2: #202B3A;
    --seam: #263142;
    --seam-2: #364461;

    /* Filaments (fentes AMS) */
    --fil-orange: #FF6B1A;
    --fil-orange-hi: #FF8A47;
    --fil-cyan: #29E0D6;
    --fil-amber: #FFC547;
    --fil-white: #F3F1EA;

    --ink: #F3F1EA;
    --ink-2: #AAB4C4;
    --ink-3: #75819A;
    --on-fil: #0A0F17;

    --success: #4ADE80;
    --danger: #F87171;
    --warning: #FACC15;

    --font-display: 'Anybody', 'Arial Black', system-ui, sans-serif;
    --font-text: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-code: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

    /* Échelle typographique (≈ 1.25, titres fluides) */
    --t-small: 0.875rem;
    --t-body: 1.0625rem;
    --t-lead: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
    --t-h3: 1.375rem;
    --t-h2: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
    --t-h1: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);
    --t-hero: clamp(2.8rem, 0.9rem + 4.3vw, 4.75rem);

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 48px);
    --r-s: 8px;
    --r: 14px;
    --r-l: 22px;
    --header-h: 68px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    background: var(--night);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: var(--t-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* l'attribut hidden gagne toujours (ex. écran de l'imprimante sur téléphone) */
a { color: inherit; }
::selection { background: var(--fil-orange); color: var(--on-fil); }
:focus-visible { outline: 3px solid var(--fil-cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-stretch: 118%;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 200;
    background: var(--fil-cyan); color: var(--on-fil); font-weight: 700; padding: 10px 16px; border-radius: var(--r-s);
}
.skip-link:focus { left: 8px; }
.code { font-family: var(--font-code); font-size: 0.92em; letter-spacing: 0.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section-tight { padding-block: clamp(36px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2 { font-size: var(--t-h2); max-width: 16ch; }
.section-head p { color: var(--ink-2); max-width: 46ch; margin: 0; }
.lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 52ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-small); }

/* Séparateur signature : trois strates, comme sous le « 3D » du logo */
.strata { display: grid; gap: 4px; width: 132px; margin: 0 0 22px; }
.strata i { display: block; height: 4px; border-radius: 2px; background: var(--fil-cyan); }
.strata i:nth-child(2) { width: 66%; opacity: 0.6; }
.strata i:nth-child(3) { width: 36%; opacity: 0.3; }

/* ---------- Liens texte ---------- */
.link {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--fil-cyan);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    font-weight: 700;
}
.link:hover { text-decoration-color: var(--fil-orange); }

/* ---------- Boutons ---------- */
.btn {
    --btn-bg: var(--steel);
    --btn-fg: var(--ink);
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 12px 22px;
    border: 0; border-radius: 12px;
    background: var(--btn-bg); color: var(--btn-fg);
    font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: 1rem; letter-spacing: 0.005em;
    text-decoration: none; cursor: pointer; overflow: hidden;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
}
/* La « ligne de buse » : une strate cyan s'extrude sous le bouton au survol */
.btn::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: var(--fil-cyan); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--fil-orange); --btn-fg: var(--on-fil); }
.btn-primary:hover { --btn-bg: var(--fil-orange-hi); }
.btn-primary::after { background: var(--on-fil); opacity: 0.55; }
.btn-secondary { --btn-bg: transparent; box-shadow: inset 0 0 0 1.5px var(--seam-2); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn-quiet { --btn-bg: var(--steel); min-height: 44px; padding: 10px 16px; font-size: 0.9rem; }
.btn-quiet:hover { --btn-bg: var(--steel-2); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; padding-inline: 28px; font-size: 1.06rem; }
.btn-price {
    font-variant-numeric: tabular-nums; padding-left: 12px; margin-left: 2px;
    border-left: 1.5px solid rgba(10, 15, 23, 0.35);
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.inline-form { display: inline; }

/* =====================================================================
   EN-TÊTE
   ===================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--night);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--seam); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand svg { height: 38px; width: auto; }
.brand .logo-layers rect { transform-box: fill-box; transform-origin: left center; }
.brand:hover .logo-layers rect { animation: strataRun 0.7s var(--ease) both; }
.brand:hover .logo-layers rect:nth-child(2) { animation-delay: 0.08s; }
.brand:hover .logo-layers rect:nth-child(3) { animation-delay: 0.16s; }
@keyframes strataRun { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; }
.site-nav a, .site-nav .linkbtn {
    position: relative; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 0.98rem; padding: 6px 0;
}
.site-nav a:hover, .site-nav .linkbtn:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px; background: var(--fil-orange);
}
.nav-sep { width: 1px; height: 22px; background: var(--seam); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    border-radius: 999px; background: var(--steel); color: var(--ink); text-decoration: none; font-weight: 700;
}
.cart-link:hover { background: var(--steel-2); }
.cart-link svg { width: 20px; height: 20px; }
.cart-count {
    min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
    background: var(--seam); color: var(--ink-2); font-family: var(--font-display); font-stretch: 110%; font-size: 0.82rem; font-variant-numeric: tabular-nums;
}
.cart-count.has-items { background: var(--fil-amber); color: var(--on-fil); }
.nav-toggle {
    display: none; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px;
    background: var(--steel); color: var(--ink); font: 700 0.95rem var(--font-text); cursor: pointer;
}

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
.site-footer { margin-top: clamp(40px, 8vw, 96px); border-top: 1px solid var(--seam); }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
    padding-block: clamp(40px, 6vw, 64px) 28px;
}
.footer-brand svg { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--ink-2); max-width: 34ch; margin: 0; }
.footer-col h2 { font-size: 1rem; font-stretch: 112%; margin-bottom: 14px; color: var(--ink-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--ink); font-weight: 700; }
.footer-col a:hover { color: var(--fil-cyan); }
.footer-base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
    padding-block: 18px 32px; border-top: 1px solid var(--seam); color: var(--ink-3); font-size: var(--t-small);
}

/* =====================================================================
   MESSAGES (flash)
   ===================================================================== */
.flash-stack { display: grid; gap: 10px; padding-top: 16px; }
.flash {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-s);
    background: var(--steel); border-left: 4px solid var(--fil-cyan); font-weight: 700;
}
.flash-success { border-left-color: var(--success); }
.flash-error { border-left-color: var(--danger); }

/* =====================================================================
   HÉROS — l'imprimante en direct
   ===================================================================== */
.hero { position: relative; overflow: hidden; background: var(--night); }
.hero-stage {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(60% 55% at 68% 62%, rgba(150, 98, 40, 0.38), transparent 70%),
        var(--night);
}
.hero-stage .stage-canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s var(--ease); touch-action: pan-y; }
.hero-stage.is-live .stage-canvas { opacity: 1; }
.hero-poster {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%;
    transition: opacity 0.8s var(--ease);
}
.hero-stage.is-live .hero-poster { opacity: 0; }
/* voile pour la lisibilité du texte à gauche (pas de flou, pas de verre) */
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--night) 0%, rgba(10, 15, 23, 0.9) 28%, rgba(10, 15, 23, 0.35) 46%, rgba(10, 15, 23, 0) 56%);
}
.hero-inner {
    position: relative; z-index: 2; pointer-events: none;
    min-height: clamp(660px, calc(100svh - var(--header-h)), 920px);
    display: flex; align-items: center;
}
.hero-copy { pointer-events: auto; width: min(560px, 44%); padding-block: 36px 48px; }
.hero-title { font-size: var(--t-hero); font-stretch: 122%; font-weight: 850; line-height: 0.9; letter-spacing: -0.015em; margin-bottom: 22px; white-space: nowrap; }
.hero-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 42ch; margin-bottom: 22px; }

/* Le « faiseur de nom » */
.namer { display: grid; gap: 16px; }
.namer-label { display: block; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; font-size: 0.95rem; }
.namer-row { display: flex; gap: 10px; align-items: stretch; }
.namer-input {
    flex: 1; min-width: 0; height: 58px; padding: 0 18px;
    border: 0; border-radius: 12px; background: var(--steel); color: var(--ink);
    font-family: var(--font-display); font-stretch: 120%; font-weight: 800; font-size: 1.65rem; letter-spacing: 0.01em;
    box-shadow: inset 0 0 0 1.5px var(--seam-2), inset 0 -4px 0 var(--fil-orange);
    transition: box-shadow 0.2s var(--ease);
}
.namer-input::placeholder { color: var(--ink-3); }
.namer-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--fil-cyan), inset 0 -4px 0 var(--fil-cyan); }
.namer-hint { font-size: var(--t-small); color: var(--ink-3); margin: 8px 0 0; }

/* Fentes AMS : choix de filament */
.ams { border: 0; padding: 0; margin: 0; min-width: 0; }
.ams legend { padding: 0; font-weight: 700; color: var(--ink-2); font-size: 0.95rem; margin-bottom: 10px; }
.ams-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.spool { position: relative; cursor: pointer; }
.spool input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.spool-face {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px 6px 7px;
    border-radius: 999px; background: var(--steel); box-shadow: inset 0 0 0 1.5px var(--seam);
    font-weight: 700; font-size: 0.92rem; color: var(--ink-2);
    transition: box-shadow 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.spool-dot {
    width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--c, var(--fil-orange));
    box-shadow: inset 0 0 0 3px rgba(10, 15, 23, 0.32), inset 0 0 0 9px var(--c, var(--fil-orange)), inset 0 0 0 12px rgba(255, 255, 255, 0.18);
}
.spool:hover .spool-face { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--seam-2); }
.spool input:checked + .spool-face { color: var(--ink); background: var(--steel-2); box-shadow: inset 0 0 0 2px var(--fil-cyan); }
.spool input:focus-visible + .spool-face { outline: 3px solid var(--fil-cyan); outline-offset: 3px; }
.spool-compact .spool-face { padding-right: 7px; }
.spool-compact .spool-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Écran de l'imprimante (HUD) */
.hud {
    position: absolute; right: var(--gutter); bottom: clamp(18px, 3vw, 32px); z-index: 3;
    width: 268px; padding: 14px 16px 15px; border-radius: var(--r);
    background: rgba(10, 15, 23, 0.84); box-shadow: inset 0 0 0 1px var(--seam);
    font-size: 0.86rem; color: var(--ink-2); pointer-events: none;
}
.hud-status { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.hud-led { width: 9px; height: 9px; border-radius: 50%; background: var(--fil-orange); box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.18); flex: none; }
.hud[data-phase="done"] .hud-led { background: var(--success); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.hud[data-phase="swap"] .hud-led { background: var(--fil-cyan); box-shadow: 0 0 0 4px rgba(41, 224, 214, 0.2); }
.hud[data-phase="layers"] .hud-led { animation: ledPulse 1s ease-in-out infinite; }
@keyframes ledPulse { 50% { opacity: 0.35; } }
.hud-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hud-num { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-big { font-size: 1.25rem; }
.hud-bar { height: 6px; margin: 8px 0 10px; border-radius: 3px; background: var(--seam); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fil-orange), var(--fil-amber)); border-radius: 3px; }
.hud-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--seam); color: var(--ink-3); font-size: 0.8rem; }

.stage-help {
    position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 3;
    font-size: 0.8rem; color: var(--ink-3); pointer-events: none;
}

/* =====================================================================
   CARTES PRODUIT
   ===================================================================== */
.product-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card {
    --c1: var(--fil-orange); --c2: var(--fil-cyan); --c3: var(--fil-amber);
    position: relative; display: flex; flex-direction: column;
    background: var(--plate); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--seam);
    overflow: hidden; transition: box-shadow 0.25s var(--ease);
}
.card:hover { box-shadow: inset 0 0 0 1.5px var(--c1); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media {
    position: relative; aspect-ratio: 4 / 3.4; overflow: hidden;
    background: radial-gradient(70% 60% at 50% 72%, #1d2735 0%, var(--plate) 72%);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .silhouette { position: absolute; left: 50%; bottom: 10%; width: 64%; height: auto; transform: translateX(-50%); }
.card-media::after { /* rebord du plateau */
    content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
.card-media.has-photo::after { display: none; }
.card-flag {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    padding: 5px 11px; border-radius: 999px; background: var(--night); color: var(--fil-amber);
    font-weight: 700; font-size: 0.8rem; box-shadow: inset 0 0 0 1px var(--seam-2);
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-title { font-size: 1.22rem; font-stretch: 112%; line-height: 1.1; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--c1); }
.card-text { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.2rem; color: var(--fil-amber); font-variant-numeric: tabular-nums; }
.colors { display: inline-flex; align-items: center; gap: 0; }
.colors i {
    width: 18px; height: 18px; border-radius: 50%; margin-left: -5px; background: var(--c);
    box-shadow: 0 0 0 2.5px var(--plate), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.colors i:first-child { margin-left: 0; }
.colors-label { margin-left: 8px; font-size: 0.82rem; color: var(--ink-3); }

/* Rangée défilante sur téléphone */
@media (max-width: 640px) {
    .rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .rail::-webkit-scrollbar { display: none; }
    .rail > * { scroll-snap-align: start; }
}

/* =====================================================================
   ACCUEIL — sections
   ===================================================================== */
.home-products { padding-top: clamp(56px, 8vw, 104px); }

/* Ton idée / ton fichier */
.idea {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.idea h2 { font-size: var(--t-h2); margin-bottom: 18px; max-width: 13ch; }
.idea .lead { margin-bottom: 26px; }
.idea-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.drop-demo {
    position: relative; display: block; text-decoration: none; color: inherit;
    border-radius: var(--r-l); padding: clamp(22px, 3vw, 34px); background: var(--plate);
    box-shadow: inset 0 0 0 1px var(--seam);
}
.drop-demo:hover { box-shadow: inset 0 0 0 1.5px var(--fil-cyan); }
.drop-zone-art {
    display: grid; place-items: center; gap: 10px; text-align: center; padding: 34px 18px; border-radius: var(--r);
    border: 2px dashed var(--seam-2); color: var(--ink-2);
}
.drop-zone-art strong { font-family: var(--font-display); font-stretch: 115%; font-size: 1.3rem; color: var(--ink); }
.file-chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px;
    background: var(--steel-2); font-weight: 700; color: var(--ink);
}
.file-chip b { color: var(--fil-cyan); font-family: var(--font-display); font-stretch: 110%; }
.estimate-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.estimate-demo .is-price { grid-column: 1 / -1; }
.estimate-demo .is-price dd { font-size: 1.5rem; }
.estimate-demo div { padding: 12px 14px; border-radius: 12px; background: var(--steel); }
.estimate-demo dt { font-size: 0.8rem; color: var(--ink-3); }
.estimate-demo dd { margin: 2px 0 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-variant-numeric: tabular-nums; }
.estimate-demo .is-price dd { color: var(--fil-amber); }

/* Le parcours d'une commande (vraie séquence de 7 étapes) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.journey li { position: relative; padding: 0 14px 0 0; }
.journey-node {
    position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--steel); box-shadow: inset 0 0 0 2px var(--seam-2);
    font-family: var(--font-display); font-stretch: 112%; font-weight: 800; color: var(--ink);
}
.journey li::before { /* le fil qui relie les étapes */
    content: ""; position: absolute; top: 20px; left: 44px; right: 0; height: 4px; border-radius: 2px;
    background: repeating-linear-gradient(90deg, var(--seam-2) 0 10px, transparent 10px 16px);
}
.journey li:last-child::before { display: none; }
.journey h3 { font-size: 1.05rem; font-stretch: 110%; margin: 16px 0 6px; line-height: 1.15; }
.journey p { font-size: 0.92rem; color: var(--ink-2); margin: 0; }
.journey-note { margin-top: 30px; color: var(--ink-2); max-width: 60ch; }

/* Mot de Mavrick */
.maker { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.maker h2 { font-size: var(--t-h2); }
.maker-text p { font-size: var(--t-lead); color: var(--ink-2); max-width: 46ch; }
.maker-text p:first-child { color: var(--ink); }
.maker-sign { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; color: var(--fil-orange); margin: 0 0 24px; }

/* Fiche de l'atelier (vraies infos, pas de statistiques inventées) */
.spec { margin: 0; display: grid; gap: 0; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--seam); }
.spec div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--seam); }
.spec div:first-child { border-top: 0; }
.spec dt { color: var(--ink-3); font-weight: 700; }
.spec dd { margin: 0; color: var(--ink); }

/* =====================================================================
   PAGES INTÉRIEURES
   ===================================================================== */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(22px, 3vw, 36px); }
.page-head h1 { font-size: var(--t-h1); margin-bottom: 18px; max-width: 18ch; }
.page-head .lead { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.back:hover { color: var(--ink); }

/* Filtres du catalogue */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(22px, 3vw, 32px); }
.chip {
    display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px;
    background: var(--steel); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.95rem;
}
.chip:hover { color: var(--ink); background: var(--steel-2); }
.chip[aria-current="true"] { background: var(--ink); color: var(--on-fil); }
.empty {
    padding: 34px; border-radius: var(--r-l); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam);
    color: var(--ink-2); max-width: 60ch;
}
.empty a { color: var(--ink); }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(20px, 3vw, 36px); }
.product-media { position: sticky; top: calc(var(--header-h) + 16px); }
.media-frame {
    position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-l); overflow: hidden;
    background: radial-gradient(65% 60% at 50% 70%, #1d2735 0%, var(--plate) 75%);
    box-shadow: inset 0 0 0 1px var(--seam);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .silhouette { position: absolute; left: 50%; bottom: 12%; width: 54%; transform: translateX(-50%); }
.media-frame .stage-canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s var(--ease); touch-action: pan-y; }
.media-frame.is-live .stage-canvas { opacity: 1; }
.media-frame .hud { width: 230px; right: 14px; bottom: 14px; }
.media-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--ink-3); font-size: var(--t-small); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); }
.thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--fil-cyan); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info .cat-link { display: inline-block; margin-bottom: 14px; color: var(--fil-cyan); font-weight: 700; text-decoration: none; }
.product-info .cat-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-info h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 16px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.price-big { font-family: var(--font-display); font-stretch: 115%; font-weight: 850; font-size: 2.1rem; color: var(--fil-amber); font-variant-numeric: tabular-nums; }
.delay { color: var(--ink-2); font-weight: 700; }
.product-desc { color: var(--ink-2); font-size: 1.06rem; max-width: 52ch; }
.buy { display: grid; gap: 22px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--seam); }
.reassure { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 0.95rem; }
.reassure li { display: flex; gap: 12px; align-items: baseline; }
.reassure li::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--fil-cyan); flex: none; transform: translateY(-4px); }

/* Quantité */
.qty { display: inline-flex; align-items: center; border-radius: 12px; background: var(--steel); box-shadow: inset 0 0 0 1.5px var(--seam-2); }
.qty button { width: 46px; height: 48px; border: 0; background: none; color: var(--ink); font-size: 1.3rem; cursor: pointer; border-radius: 12px; }
.qty button:hover { background: var(--steel-2); }
.qty input { width: 52px; height: 48px; border: 0; background: none; color: var(--ink); text-align: center; font: 800 1.1rem var(--font-display); font-stretch: 110%; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 220px; }

/* =====================================================================
   FORMULAIRES
   ===================================================================== */
.field { display: grid; gap: 8px; }
.field label, .label { font-weight: 700; font-size: 0.95rem; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 15px; border: 0; border-radius: 12px;
    background: var(--steel); color: var(--ink); font: inherit;
    box-shadow: inset 0 0 0 1.5px var(--seam-2); transition: box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--fil-cyan); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.hint { font-size: var(--t-small); color: var(--ink-3); margin: 0; }
.form-stack { display: grid; gap: 20px; }
.form-card { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); }
.file-input { display: block; width: 100%; padding: 14px; border-radius: 12px; background: var(--steel); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--seam-2); }
.file-input::file-selector-button { margin-right: 14px; padding: 9px 14px; border: 0; border-radius: 9px; background: var(--steel-2); color: var(--ink); font: 700 0.9rem var(--font-text); cursor: pointer; }

/* =====================================================================
   SUR MESURE — estimateur de fichier 3D
   ===================================================================== */
.custom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.estimator { position: sticky; top: calc(var(--header-h) + 16px); }
.est-drop {
    position: relative; display: grid; place-items: center; text-align: center; gap: 12px;
    min-height: 380px; padding: 28px; border-radius: var(--r-l);
    background: radial-gradient(65% 60% at 50% 70%, #1d2735 0%, var(--plate) 75%);
    box-shadow: inset 0 0 0 1px var(--seam); cursor: pointer; overflow: hidden;
}
.est-drop::before { content: ""; position: absolute; inset: 14px; border: 2px dashed var(--seam-2); border-radius: var(--r); pointer-events: none; transition: border-color 0.2s var(--ease); }
.est-drop:hover::before, .est-drop.is-over::before { border-color: var(--fil-cyan); }
.est-drop strong { font-family: var(--font-display); font-stretch: 118%; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); line-height: 1.05; }
.est-drop p { color: var(--ink-2); margin: 0; max-width: 34ch; }
.est-drop .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s var(--ease); }
.est-drop.has-model { cursor: default; }
.est-drop.has-model .stage-canvas { opacity: 1; }
.est-drop.has-model .est-empty { visibility: hidden; }
.est-drop.has-model::before { display: none; }
.est-drop .hud { width: 220px; right: 14px; bottom: 14px; }
.est-file { position: absolute; left: 14px; top: 14px; z-index: 3; }
.est-results { margin-top: 14px; }
.est-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.est-grid div { padding: 14px 16px; border-radius: 12px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); }
.est-grid dt { font-size: 0.85rem; color: var(--ink-3); }
.est-grid dd { margin: 4px 0 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.est-grid .est-price { grid-column: 1 / -1; background: var(--steel); }
.est-grid .est-price dd { font-size: 1.9rem; color: var(--fil-amber); }
.est-fit { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-weight: 700; }
.est-fit.ok { color: var(--success); }
.est-fit.no { color: var(--warning); }
.est-note { font-size: var(--t-small); color: var(--ink-3); margin-top: 10px; }
.est-colors { margin-top: 14px; }
.est-error { margin-top: 12px; color: var(--warning); font-weight: 700; }

/* =====================================================================
   PANIER / COMMANDE
   ===================================================================== */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(22px, 4vw, 48px); align-items: start; }
.cart-list { display: grid; gap: 12px; }
.cart-item {
    display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center;
    padding: 14px; border-radius: var(--r); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam);
}
.cart-thumb { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: radial-gradient(70% 60% at 50% 72%, #1d2735 0%, var(--steel) 80%); position: relative; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .silhouette { position: absolute; left: 50%; bottom: 10%; width: 74%; transform: translateX(-50%); }
.cart-info a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.08rem; }
.cart-info a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-info .meta { font-size: 0.88rem; color: var(--ink-2); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.cart-line { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-variant-numeric: tabular-nums; }
.remove { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer; font-size: 1.1rem; }
.remove:hover { background: var(--steel); color: var(--danger); }
.summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 24px; border-radius: var(--r-l); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); }
.summary h2 { font-size: 1.35rem; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; color: var(--ink-2); }
.sum-row span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.sum-row.is-muted span:last-child { color: var(--ink-3); font-weight: 400; }
.sum-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--seam); color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.sum-total span:last-child { font-family: var(--font-display); font-stretch: 112%; font-weight: 850; font-size: 1.5rem; color: var(--fil-amber); }
.summary .btn { margin-top: 18px; }
.summary .continue { display: block; margin-top: 14px; text-align: center; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.summary .continue:hover { color: var(--ink); }
.demo-note { margin-top: 12px; font-size: var(--t-small); color: var(--ink-3); }

/* Merci ! */
.thanks { max-width: 760px; }
.thanks h1 { font-size: var(--t-h1); margin-bottom: 18px; }
.order-code { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--steel); color: var(--fil-cyan); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* =====================================================================
   COMPTE + SUIVI DE COMMANDE
   ===================================================================== */
.order-cards { display: grid; gap: 12px; }
.order-card {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 18px; align-items: center;
    padding: 18px 20px; border-radius: var(--r); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam);
    color: inherit; text-decoration: none;
}
a.order-card:hover { box-shadow: inset 0 0 0 1.5px var(--fil-cyan); }
.order-card .code { color: var(--ink); }
.order-card .when { display: block; color: var(--ink-3); font-size: 0.86rem; margin-top: 2px; }
.order-total { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-track { display: grid; gap: 7px; }
.mini-track-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mini-track-bar i { height: 6px; border-radius: 3px; background: var(--seam); }
.mini-track-bar i.on { background: var(--fil-orange); }
.mini-track span { font-size: 0.88rem; font-weight: 700; }
.status-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: var(--steel-2); color: var(--ink); }
.status-cancelled, .status-returned { background: rgba(248, 113, 113, 0.18); color: var(--danger); }
.status-delivered, .status-shipped { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.status-awaiting_info { background: rgba(250, 204, 21, 0.15); color: var(--warning); }
.sub-head { font-size: 1.6rem; margin: clamp(32px, 5vw, 56px) 0 16px; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.tl::before { content: ""; position: absolute; left: 22px; top: 48px; bottom: 0; width: 4px; border-radius: 2px; background: var(--seam); }
.tl:last-child::before { display: none; }
.tl.done::before { background: var(--fil-orange); }
.tl-node {
    position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--steel); box-shadow: inset 0 0 0 2px var(--seam-2);
    font-family: var(--font-display); font-stretch: 112%; font-weight: 800; color: var(--ink-3);
}
.tl.done .tl-node { background: var(--fil-orange); color: var(--on-fil); box-shadow: none; }
.tl.current .tl-node { background: var(--fil-cyan); color: var(--on-fil); box-shadow: 0 0 0 6px rgba(41, 224, 214, 0.18); }
.tl-body { padding-top: 10px; }
.tl-body strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1.1rem; }
.tl:not(.done):not(.current) .tl-body strong { color: var(--ink-3); }
.tl-body time { font-size: 0.86rem; color: var(--ink-3); }
.tl-msg { margin: 10px 0 0; padding: 12px 15px; border-radius: 12px; background: var(--plate); box-shadow: inset 3px 0 0 var(--fil-cyan); color: var(--ink); }
.tl-photo { margin-top: 10px; width: min(280px, 100%); border-radius: 12px; }
.tracking { margin-top: 10px; padding: 16px 18px; border-radius: var(--r); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); }

/* =====================================================================
   FAQ, AUTH, À PROPOS, 404
   ===================================================================== */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: var(--r); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); }
.faq details[open] { box-shadow: inset 0 0 0 1.5px var(--seam-2); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
    background: linear-gradient(var(--fil-cyan), var(--fil-cyan)) center / 14px 3px no-repeat, linear-gradient(var(--fil-cyan), var(--fil-cyan)) center / 3px 14px no-repeat;
    transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; margin: 0; color: var(--ink-2); max-width: 64ch; }

.auth { max-width: 520px; padding-block: clamp(36px, 7vw, 88px); }
.auth h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.2rem); margin-bottom: 10px; }
.auth .lead { margin-bottom: 26px; }
.auth-alt { margin-top: 20px; color: var(--ink-2); }

.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-story p { font-size: var(--t-lead); color: var(--ink-2); max-width: 52ch; }
.about-story p:first-of-type { color: var(--ink); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.lost { max-width: 760px; padding-block: clamp(56px, 10vw, 140px); }
.lost h1 { font-size: var(--t-h1); margin-bottom: 18px; }


/* =====================================================================
   PAIEMENT, SUIVI, DEVIS
   ===================================================================== */
.color-chip { display: inline-flex; align-items: center; gap: 6px; }
.color-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); flex: none; }
.cart-item.is-unavailable { box-shadow: inset 0 0 0 1.5px rgba(248, 113, 113, 0.55); }
.item-warn { margin: 6px 0 0; color: var(--danger); font-weight: 700; font-size: 0.9rem; }
.sum-note { margin: 10px 0 0; font-size: var(--t-small); color: var(--ink-3); }
.sum-items { list-style: none; margin: 0 0 10px; padding: 0 0 12px; display: grid; gap: 12px; border-bottom: 1px solid var(--seam); }
.sum-item-top { display: flex; justify-content: space-between; gap: 14px; font-weight: 700; }
.sum-item-top span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-items .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 0.86rem; color: var(--ink-2); }

.empty-state {
    display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
    padding: clamp(24px, 4vw, 44px); border-radius: var(--r-l); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam);
}
.empty-state h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: 12px; }
.empty-state p { color: var(--ink-2); max-width: 46ch; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.checkout { align-items: start; }
.checkout .form-stack > .sub-head:first-child { margin-top: 0; }
.fs { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.fs[hidden] { display: none; }
.fs legend { padding: 0; margin-bottom: 14px; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.3rem; }
.fs legend .opt { font-family: var(--font-text); font-weight: 400; font-size: 0.95rem; color: var(--ink-3); }
.signed-as { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); color: var(--ink-2); }
.is-upper { text-transform: uppercase; }

.method-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.method-card { position: relative; cursor: pointer; display: grid; }
.method-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.method-face {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-content: start;
    padding: 18px 18px 18px 50px; border-radius: var(--r); background: var(--steel); box-shadow: inset 0 0 0 1.5px var(--seam-2);
    transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
    position: relative;
}
.method-face::before {
    content: ""; position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--ink-3); transition: box-shadow 0.2s var(--ease);
}
.method-face strong { font-family: var(--font-display); font-stretch: 112%; font-size: 1.05rem; }
.method-price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; color: var(--fil-amber); white-space: nowrap; }
.method-text { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.92rem; }
.method-card:hover .method-face { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.method-card input:checked + .method-face { background: var(--steel-2); box-shadow: inset 0 0 0 2px var(--fil-cyan); }
.method-card input:checked + .method-face::before { box-shadow: inset 0 0 0 2px var(--fil-cyan), inset 0 0 0 6px var(--steel-2), inset 0 0 0 10px var(--fil-cyan); }
.method-card input:focus-visible + .method-face { outline: 3px solid var(--fil-cyan); outline-offset: 3px; }

.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 16px; cursor: pointer; color: var(--ink-2); font-size: 0.95rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--fil-cyan); cursor: pointer; }
.check .link { font-weight: 700; }
.terms-brief { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--seam); display: grid; gap: 8px; font-size: 0.9rem; color: var(--ink-2); }
.terms-brief li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; }
.terms-brief li::before { content: ""; height: 3px; border-radius: 2px; background: var(--fil-cyan); margin-top: 0.62em; }
.pay-note { margin: 12px 0 0; font-size: var(--t-small); color: var(--ink-3); }
.seller { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--seam); font-size: 0.8rem; color: var(--ink-3); line-height: 1.5; }
.seller a { color: var(--ink-2); }

.order-head .back { margin-bottom: 14px; }
.thanks-banner h1, .notice h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); margin-bottom: 14px; max-width: 20ch; }
.thanks-banner .lead { margin: 0; }
.order-meta { margin: 16px 0 0; color: var(--ink-2); }
.notice {
    padding: 18px 20px; border-radius: var(--r); background: var(--plate);
    box-shadow: inset 4px 0 0 var(--fil-cyan), inset 0 0 0 1px var(--seam); color: var(--ink-2); margin-bottom: 22px;
}
.notice strong { color: var(--ink); }
.notice p { margin: 10px 0 0; }
.notice .btn { margin-top: 14px; }
.notice-wait { box-shadow: inset 4px 0 0 var(--fil-amber), inset 0 0 0 1px var(--seam); }
.notice-stop { box-shadow: inset 4px 0 0 var(--danger), inset 0 0 0 1px var(--seam); }
.notice-ok { box-shadow: inset 4px 0 0 var(--success), inset 0 0 0 1px var(--seam); }
.page-head .notice { margin-bottom: 0; padding: clamp(20px, 3vw, 30px); }
.notice-msg { padding: 12px 14px; border-radius: 10px; background: var(--steel); color: var(--ink); }
.tracking { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ship-to { display: grid; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--seam); color: var(--ink-2); font-size: 0.95rem; }
.ship-to strong { color: var(--ink); }
.help-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--seam); color: var(--ink-2); font-size: 0.95rem; }
.help-box p { margin: 0 0 8px; }

/* Devis reçu */
.quote-sheet { display: grid; gap: clamp(28px, 5vw, 56px); }
.quote-offer { max-width: 860px; }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.offer-grid div { padding: 16px 18px; border-radius: var(--r); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); }
.offer-grid dt { font-size: 0.86rem; color: var(--ink-3); font-weight: 700; }
.offer-grid dd { margin: 4px 0 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.2rem; }
.offer-price dd { font-size: 2.2rem; color: var(--fil-amber); font-variant-numeric: tabular-nums; }
.maker-note { margin: 0 0 18px; padding: 18px 20px; border-radius: var(--r); background: var(--plate); box-shadow: inset 4px 0 0 var(--fil-cyan), inset 0 0 0 1px var(--seam); }
.maker-note blockquote { margin: 0; font-size: 1.08rem; color: var(--ink); }
.maker-note figcaption { margin-top: 10px; color: var(--ink-3); font-weight: 700; font-size: 0.9rem; }
.quote-request { border-radius: var(--r); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); }
.quote-request summary { padding: 14px 18px; cursor: pointer; font-weight: 700; }
.quote-request p { padding: 0 18px 18px; margin: 0; color: var(--ink-2); }

/* Compte */
.account-info { max-width: 820px; }
.identity { margin: 0 0 14px; border-radius: var(--r); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam); }
.identity div { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 16px; padding: 12px 18px; border-top: 1px solid var(--seam); }
.identity div:first-child { border-top: 0; }
.identity dt { color: var(--ink-3); font-weight: 700; }
.identity dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.danger-zone { margin-top: 28px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--seam); }
.danger-zone summary { padding: 14px 18px; cursor: pointer; color: var(--danger); font-weight: 700; }
.danger-zone p, .danger-zone form { padding: 0 18px; color: var(--ink-2); }
.danger-zone form { padding-bottom: 18px; max-width: 520px; }
.btn-danger { --btn-bg: transparent; --btn-fg: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: var(--on-fil); }
.btn-danger::after { background: var(--danger); }

/* =====================================================================
   PAGES LÉGALES, FAQ, CONTACT, ENDOSSEMENT
   ===================================================================== */
.legal-date { margin: 14px 0 0; color: var(--ink-3); font-size: var(--t-small); font-weight: 700; }
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
    display: grid; grid-template-columns: 2.1em minmax(0, 1fr); padding: 7px 10px; border-radius: 8px;
    color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.92rem;
}
.legal-toc a::before { content: counter(toc) "."; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: var(--plate); color: var(--ink); }
.legal-body { max-width: 74ch; }
.legal-body section { padding-top: 8px; margin-bottom: clamp(30px, 4vw, 44px); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body h2 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem); margin-bottom: 14px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body p strong, .legal-body li strong { color: var(--ink); }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.legal-body .identity { margin-top: 6px; }
.brief { margin-bottom: clamp(30px, 4vw, 44px); padding: 22px 24px; border-radius: var(--r-l); background: var(--steel); }
.brief h2 { font-size: 1.25rem; margin-bottom: 12px; }
.brief ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.brief li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; color: var(--ink); }
.brief li::before { content: ""; height: 3px; border-radius: 2px; background: var(--fil-orange); margin-top: 0.68em; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th { text-align: left; padding: 10px 14px 10px 0; color: var(--ink-3); font-size: 0.85rem; border-bottom: 1px solid var(--seam-2); }
.legal-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--seam); color: var(--ink-2); vertical-align: top; }
.legal-table td:first-child { color: var(--ink); font-weight: 700; }

.faq-groups { display: grid; gap: clamp(34px, 5vw, 56px); }
.faq-group h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 16px; }

.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-main { display: grid; gap: 12px; }
.contact-mail {
    display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r-l); background: var(--plate);
    box-shadow: inset 0 0 0 1px var(--seam); text-decoration: none; color: var(--ink);
}
.contact-mail:hover { box-shadow: inset 0 0 0 2px var(--fil-cyan); }
.contact-k { color: var(--ink-3); font-weight: 700; font-size: 0.9rem; }
.contact-v { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: clamp(1.15rem, 0.9rem + 1.3vw, 2rem); overflow-wrap: anywhere; }
.contact-links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.contact-legal h2 { font-size: 1.3rem; margin-bottom: 14px; }

.endorse { display: inline-grid; gap: 8px; margin-top: 24px; text-decoration: none; }
.endorse-label { font-size: 0.8rem; font-weight: 700; color: var(--ink-3); }
.endorse-card {
    display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 12px;
    background: var(--fil-white); color: #0B3B5E; font-weight: 700; font-size: 0.86rem; line-height: 1.25;
}
.endorse-card img { width: 58px; height: auto; }
.endorse:hover .endorse-card { box-shadow: 0 0 0 2px var(--fil-cyan); }
.endorse-card-lg { padding: 14px; border-radius: var(--r-l); }
.endorse-card-lg img { width: 150px; }
.backed {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center;
    padding: clamp(22px, 4vw, 40px); border-radius: var(--r-l); background: var(--plate); box-shadow: inset 0 0 0 1px var(--seam);
}
.backed h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); margin-bottom: 12px; max-width: 22ch; }
.backed p { color: var(--ink-2); max-width: 60ch; }
.about-sub { margin-top: 0; }

/* =====================================================================
   SILHOUETTES (illustrations « imprimées » quand il n'y a pas de photo)
   ===================================================================== */
.silhouette { overflow: visible; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35)); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
    .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 34px; }
    .journey li:nth-child(4)::before { display: none; }
}
@media (max-width: 1024px) {
    .hero::after { display: none; }
    .hero-stage { position: relative; height: min(58svh, 560px); }
    .hero-inner { min-height: 0; display: block; }
    .hero-copy { width: auto; max-width: 640px; padding-block: 26px 52px; }
    .hero-poster { object-position: 58% 55%; }
    .hud { right: 12px; bottom: 12px; width: 236px; padding: 11px 13px 12px; }
    .idea, .maker, .about, .custom, .product, .order-layout, .cart { grid-template-columns: minmax(0, 1fr); }
    .product-media, .estimator, .summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 70;
        display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        padding: 18px var(--gutter) 40px; background: var(--night); overflow-y: auto;
    }
    body.nav-open { overflow: hidden; }
    body.nav-open .site-nav { display: flex; animation: sheetIn 0.28s var(--ease) both; }
    .site-nav a, .site-nav .linkbtn {
        padding: 16px 0; border-bottom: 1px solid var(--seam); color: var(--ink);
        font-family: var(--font-display); font-stretch: 120%; font-weight: 800; font-size: 1.7rem; text-align: left;
    }
    .site-nav a[aria-current="page"]::after { display: none; }
    .site-nav a[aria-current="page"] { color: var(--fil-orange); }
    .site-nav .inline-form { display: block; }
    .site-nav .linkbtn { width: 100%; color: var(--ink-2); }
    .nav-sep { display: none; }
    .header-row { gap: 12px; }
    .brand svg { height: 32px; }
    .header-actions { margin-left: auto; }
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
    :root { --header-h: 62px; }
    .hero-stage { height: 50svh; min-height: 330px; }
    .hud { left: 12px; right: 12px; width: auto; display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; }
    .hud-status { margin: 0; grid-column: 1; }
    .hud .hud-layers { grid-column: 2; grid-row: 1; }
    .hud-bar { grid-column: 1 / -1; margin: 9px 0 0; }
    .hud .hud-temps, .hud .hud-foot { display: none; }
    .namer-input { font-size: 1.4rem; height: 58px; }
    .namer-row .btn { padding-inline: 14px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .journey { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .journey li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 0 0 22px; }
    .journey li::before { display: block !important; top: 44px; bottom: 0; left: 20px; right: auto; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--seam-2) 0 10px, transparent 10px 16px); }
    .journey li:last-child::before { display: none !important; }
    .journey h3 { margin-top: 10px; }
    .journey p { grid-column: 2; }
    .journey .journey-node { grid-row: 1 / span 2; }
    .cart-item { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb qty total"; row-gap: 10px; }
    .cart-thumb { grid-area: thumb; width: 64px; height: 64px; }
    .cart-info { grid-area: info; }
    .cart-item .qty { grid-area: qty; justify-self: start; }
    .cart-line { grid-area: total; justify-self: end; }
    .cart-item .remove-form { grid-area: remove; justify-self: end; }
    .order-card { grid-template-columns: 1fr auto; }
    .order-card .mini-track { grid-column: 1 / -1; grid-row: 2; }
    .spec div { grid-template-columns: 1fr; gap: 2px; }
    .estimate-demo { grid-template-columns: 1fr 1fr; }
    .estimate-demo .is-price { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ----- Paiement, légal, contact : petits écrans ----- */
@media (max-width: 1024px) {
    .legal, .contact { grid-template-columns: minmax(0, 1fr); }
    .legal-toc { display: none; }
    .offer-grid { grid-template-columns: 1fr 1fr; }
    .offer-price { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .empty-state { grid-template-columns: minmax(0, 1fr); }
    .empty-state .silhouette { width: 180px; }
    .identity div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .backed { grid-template-columns: minmax(0, 1fr); }
    .offer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Mouvement réduit : on coupe les animations décoratives (la 3D affiche directement l'objet fini). */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
