/* ============================================================
   MENHIR — Atelier Burger · Vannes
   Dark cinematic / ember theme for the scroll-scrub site
   ============================================================ */
:root {
  --bg:        #13100b;   /* béton charbon chaud */
  --bg-2:      #1a150f;   /* panel */
  --bg-wood:   #17110c;   /* finale rustic */
  --ink:       #f4ece2;   /* cream */
  --ink-mut:   #b3a594;   /* muted cream */
  --ink-dim:   #978670;   /* contraste AA 4.5:1 sur fond sombre */
  --ember:     #e8821e;   /* signature amber */
  --ember-hot: #ff5a1f;   /* hot ember */
  --char:      #1d1611;
  --kraft:     #e7decf;   /* papier kraft (étiquettes / panneaux) */
  --kraft-ink: #241c14;   /* encre sur kraft */
  --verdigris: #7f8d77;   /* vert-de-gris (accent rare) */
  --slate:     #2b4a63;
  --line:      rgba(244, 236, 226, 0.10);
  --line-2:    rgba(244, 236, 226, 0.18);

  /* DA Atelier Urbain : grotesque condensé + pochoir + marqueur */
  --font-display: "Oswald", system-ui, sans-serif;        /* signalétique condensée */
  --font-serif:   "Caveat", "Segoe Script", cursive;      /* accents marqueur (em, taglines) */
  --font-stencil: "Saira Stencil One", "Oswald", sans-serif;
  --font-script:  "Caveat", "Segoe Script", cursive;
  --font-body:    "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; -webkit-text-size-adjust: 100%; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;            /* 16px floor */
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* film grain — 0KB inline SVG */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--ember); color: #1a1109; }

/* ---------- Shared type helpers ---------- */
.eyebrow {
  font-family: var(--font-stencil);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow .num { color: var(--ink-dim); margin-right: 0.6em; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
/* les contrôles de formulaire n'héritent PAS la police par défaut (sinon Arial UA) */
button, input, select, textarea { font-family: inherit; }

/* ===== PRELOADER brandé (rideau + triskèle) ===== */
#preloader { position: fixed; inset: 0; z-index: 9999; background: #0b0908; display: grid; place-items: center;
  transition: opacity .55s ease, visibility .55s; }
/* retrait piloté en CSS (indépendant du JS/CPU throttlé) -> le poster LCP se révèle tôt */
@media (prefers-reduced-motion: no-preference) { #preloader { animation: plAutoHide .5s ease .8s forwards; } }
@keyframes plAutoHide { to { opacity: 0; visibility: hidden; } }
#preloader.done { opacity: 0 !important; visibility: hidden !important; animation: none !important; }
#preloader .pl-mark { width: clamp(64px, 11vw, 104px); height: auto; color: var(--ember);
  animation: plPulse 1.1s ease-in-out infinite; }
@keyframes plPulse { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { #preloader { transition: none; } #preloader .pl-mark { animation: none; } }
.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; }

/* ============================================================
   HUD / nav
   ============================================================ */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  font-family: var(--font-mono);
  transition: background .4s ease, backdrop-filter .4s ease, padding .4s ease, opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
/* HUD caché tant que le burger du hero n'est pas tourné à fond */
.hud.hud-hidden { opacity: 0; transform: translateY(-110%); pointer-events: none; }

/* HUD right group + hamburger */
.hud-right { display: flex; align-items: center; gap: .85rem; }
.nav-burger { width: 50px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 13px; background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  transition: border-color .25s; }
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: background .25s; }
.nav-burger:hover, .nav-burger:focus-visible { border-color: var(--ember); }
.nav-burger:hover span, .nav-burger:focus-visible span { background: var(--ember); }

/* mini-CTA "Commander" persistant pendant le hero (le HUD complet est cache) */
.order-mini {
  position: fixed; z-index: 90;
  top: calc(env(safe-area-inset-top, 0px) + .95rem); right: var(--pad);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem;
  font-family: var(--font-mono); font-weight: 700; font-size: .66rem;
  letter-spacing: .18em; text-transform: uppercase; color: #1a1008;
  background: linear-gradient(180deg, var(--ember), var(--ember-hot));
  border-radius: 999px; box-shadow: 0 6px 20px rgba(255,90,31,.34);
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.order-mini.show { opacity: 1; transform: none; pointer-events: auto; }
.order-mini:hover, .order-mini:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,90,31,.5); }

/* ============================================================
   MENU OVERLAY plein écran (street-food premium)
   ============================================================ */
.navmenu { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center;
  padding: clamp(2rem, 6vw, 5rem);
  background: radial-gradient(85% 80% at 72% 28%, rgba(232,130,30,.12), transparent 58%), rgba(9,7,5,.98);
  backdrop-filter: blur(8px); opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease; }
.navmenu.open { opacity: 1; visibility: visible; }
.navmenu-close { position: absolute; top: clamp(1rem,3vw,1.6rem); right: clamp(1rem,3vw,2rem);
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink); font-size: 1.2rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .35s; }
.navmenu-close:hover, .navmenu-close:focus-visible { background: var(--ember); color: #1a1008; border-color: var(--ember); transform: rotate(90deg); }
.navmenu-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; width: 100%; max-width: var(--maxw); margin-inline: auto; }
.navmenu-list { display: grid; gap: clamp(.1rem, 1.4vh, .9rem); }
.navmenu-list a { display: flex; align-items: baseline; gap: 1.3rem; text-decoration: none;
  padding: .45rem 0; opacity: 0; transform: translateX(-26px); }
.navmenu.open .navmenu-list a { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.navmenu.open .navmenu-list a:nth-child(1) { transition-delay: .06s; }
.navmenu.open .navmenu-list a:nth-child(2) { transition-delay: .12s; }
.navmenu.open .navmenu-list a:nth-child(3) { transition-delay: .18s; }
.navmenu.open .navmenu-list a:nth-child(4) { transition-delay: .24s; }
.navmenu.open .navmenu-list a:nth-child(5) { transition-delay: .30s; }
.navmenu.open .navmenu-list a:nth-child(6) { transition-delay: .36s; }
.nm-num { font-family: var(--font-mono); font-size: clamp(.7rem,1vw,.85rem); color: var(--ember); opacity: .7; }
.nm-link { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 7.5vw, 5.5rem); line-height: .92;
  text-transform: uppercase; letter-spacing: -.01em; color: transparent;
  -webkit-text-stroke: 1.4px var(--ink-mut); transition: color .3s, -webkit-text-stroke-color .3s, text-shadow .3s; }
.navmenu-list a:hover .nm-link, .navmenu-list a:focus-visible .nm-link {
  color: var(--ember); -webkit-text-stroke-color: var(--ember); text-shadow: 0 0 45px rgba(255,90,31,.5); }
.nm-cta .nm-link { color: var(--ember); -webkit-text-stroke-color: var(--ember); }

.navmenu-aside { display: flex; flex-direction: column; gap: 1.8rem; }
.nm-media { position: relative; border-radius: 16px; overflow: hidden; }
.nm-media img, .nm-media video { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; display: block; }
.nm-sticker { position: absolute; font-family: var(--font-script); font-size: 1.3rem; line-height: 1; color: #1a1008;
  background: var(--ink); padding: .4rem .85rem; border-radius: 5px; box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.nm-sticker-a { top: 1rem; left: 1rem; transform: rotate(-4deg); }
.nm-sticker-b { bottom: 1rem; right: 1rem; transform: rotate(3deg);
  background: linear-gradient(180deg, var(--ember), var(--ember-hot)); }
.nm-contact { display: flex; flex-direction: column; gap: .35rem; }
.nm-deliv { font-family: var(--font-script); font-size: 1.6rem; color: var(--ember); }
.nm-contact a { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); text-decoration: none; }
.nm-contact a:hover { color: var(--ember); }
.nm-web { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }

@media (max-width: 860px) {
  .navmenu-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .navmenu-aside { flex-direction: row; align-items: center; gap: 1.2rem; }
  .nm-media { flex: 1; }
}
@media (max-width: 560px) {
  .navmenu-aside { flex-direction: column; align-items: stretch; }
  .nm-media { display: none; }
}

/* Vidéo Dolmen en FOND du menu (toutes tailles) + scrim sombre à gauche pour lisibilité */
.navmenu-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: .55; z-index: 0; pointer-events: none; }
.navmenu::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(9,7,5,.96) 0%, rgba(9,7,5,.85) 38%, rgba(9,7,5,.48) 70%, rgba(9,7,5,.72) 100%); }
.navmenu-close { z-index: 3; }
.navmenu-inner { position: relative; z-index: 2; grid-template-columns: 1fr; }
.nm-media { display: none; }                           /* burger déjà en fond */
.navmenu-aside { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1rem 2.2rem; margin-top: 1.2rem; }
@media (min-width: 861px) { .navmenu-bg { object-position: 72% center; opacity: .6; } }
.hud.scrolled {
  background: rgba(11, 9, 8, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding-top: .8rem; padding-bottom: .8rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.3rem;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.brand .dot { color: var(--ember); }

/* Triskèle brand mark */
.mark { width: 1em; height: 1em; color: var(--ember); flex: none; display: inline-block; vertical-align: middle; }
.brand .mark { width: 1.15em; height: 1.15em; }
.mark-lg { width: 2.6rem; height: 2.6rem; margin: 0 auto 1.1rem; display: block;
  animation: triskelSpin 26s linear infinite; transform-origin: 50% 50%; }
@keyframes triskelSpin { to { transform: rotate(360deg); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 1.4rem;
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--ember), var(--ember-hot));
  color: #1a1008;
  box-shadow: 0 6px 24px rgba(255, 90, 31, 0.28);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(255, 90, 31, 0.45);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--ember); color: var(--ember); }
.btn-lg { min-height: 56px; padding: 0 2rem; font-size: 0.84rem; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   Cinematic scrub sections
   ============================================================ */
.cinematic { position: relative; }
.cinematic.tall  { height: 300vh; }   /* less scroll, still ~10px/frame = smooth */
.cinematic.mid   { height: 260vh; }
.sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; display: grid; place-items: center;
  background: var(--bg);
}
.scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== HERO VIDÉO (boucle 360°, remplace le scrub long) ===== */
.hero-video { position: relative; height: 100dvh; min-height: 100dvh; overflow: hidden;
  display: grid; place-items: center; background: #0b0908; }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  filter: var(--regrade); }
.hero-video .vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-video .embers { z-index: 2; }
.hero-video .overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; }
.hero-video .reveal-line { position: static; transform: none; opacity: 1;
  animation: heroIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-video .reveal-line { animation: none; } }
/* fin de boucle (~4.5s) : BÂTI se résout en MENHIR (marque) et reste */
.big-swap { position: relative; display: grid; justify-items: center; }
.big-swap .big { grid-area: 1 / 1; }
.big-swap .swap-b { opacity: 0; color: var(--ember);
  text-shadow: 0 1px 2px rgba(0,0,0,.96), 0 3px 10px rgba(0,0,0,.92), 0 4px 26px rgba(0,0,0,.8), 0 0 60px rgba(255,120,40,.4); }
@media (prefers-reduced-motion: no-preference) {
  .swap-a { animation: heroSwapOut .8s cubic-bezier(.2,.8,.2,1) 4.5s forwards; }
  .swap-b { animation: heroSwapIn .9s cubic-bezier(.2,.8,.2,1) 4.5s forwards; }
}
@keyframes heroSwapOut { to { opacity: 0; transform: translateY(-12px); filter: blur(3px); } }
@keyframes heroSwapIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .swap-a { display: none; } .swap-b { opacity: 1; } }
/* poster behind canvas until frame sequence loads */
#hero .sticky { background-image: url("assets/hero.webp"); background-size: cover; background-position: center; }
#anatomy .sticky, #grill .sticky { background: radial-gradient(80% 60% at 50% 60%, #1a120c, #0b0908 70%); }

/* ===== TRANSITION CINEMATIQUE inter-scenes (cross-dissolve plein ecran) ===== */
:root { --regrade: saturate(1.2) brightness(1.16) contrast(0.8); }
/* #2 MEME grade clair sur TOUTES les scenes (hero / anatomie / grill) + le calque-pont.
   brightness = multiply -> remonte le burger eclaire au niveau "image claire", tout en
   gardant les noirs (gaps entre couches ecartees) sombres = clair mais pas delave. */
.scrub-canvas, .seam-dissolve { filter: var(--regrade); }
/* #1 raccord des bords : chaque scene se feutre dans son fond */
#anatomy .scrub-canvas, #grill .scrub-canvas {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* hero = vidéo 100dvh (plus de scrub long) : l'anatomie démarre normalement, sans overlap */
#anatomy { margin-top: 0; }
/* bas du heros force au noir exact de l'anatomie (#0b0908) : le raccord derriere le
   calque devient noir<->noir => invisible meme a mi-fondu */
#hero .sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: linear-gradient(180deg, transparent 58%, rgba(11,9,8,.85) 86%, #0b0908 100%);
}
/* #3 calque cross-dissolve : 1re frame anatomie, PLEIN ECRAN FIXE, fondue sur la fin du heros,
   puis retiree des que le canvas anatomie prend le relais (meme frame => raccord invisible) */
.seam-dissolve {
  position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 40; pointer-events: none; will-change: opacity;
  /* calque-pont feutre comme le canvas (raccord des bords) ; meme grade que l'anatomie
     -> le pont est aussi clair que les scenes, transition homogene */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* #5 voile braise/fumee qui relie les 2 plans pendant le fondu */
.seam-smoke { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  mix-blend-mode: screen; will-change: opacity; }
.seam-smoke i { position: absolute; bottom: -25%; left: var(--x, 50%); width: 62%; height: 95%;
  border-radius: 50%; transform: translateX(-50%); filter: blur(42px);
  background: radial-gradient(closest-side, rgba(255,228,194,.5), rgba(255,184,122,.12) 55%, transparent 76%);
  animation: smokeRise 13s ease-in-out infinite; }
.seam-smoke i:nth-child(2) { animation-duration: 16s; animation-delay: 2s; }
.seam-smoke i:nth-child(3) { animation-duration: 11s; animation-delay: 4s; }

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(125% 95% at 50% 42%, transparent 42%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(7,5,4,0.6) 0%, transparent 22%, transparent 64%, rgba(7,5,4,0.85) 100%);
}
/* floating embers */
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--ember-hot); box-shadow: 0 0 8px 2px rgba(255,90,31,.6);
  opacity: 0; animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: .9; }
  100% { transform: translateY(-104vh) translateX(22px); opacity: 0; }
}

/* overlay copy lines (scroll-driven opacity via JS) */
.overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
/* scrim cinématique derrière le texte : lisibilité + profondeur premium */
.overlay::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(78% 56% at 50% 50%, rgba(7,5,4,.7), rgba(7,5,4,.4) 55%, transparent 82%); }
.reveal-line {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content; max-width: 92vw; text-align: center;
  opacity: 0; will-change: opacity, transform;
}
.reveal-line .kic {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(.6rem, 2vw, 1.2rem);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink); opacity: 1; margin-bottom: 1.2rem; text-shadow: 0 1px 2px rgba(0,0,0,1), 0 0 12px rgba(0,0,0,.95);
}
.reveal-line .kic::before, .reveal-line .kic::after {
  content: ""; width: clamp(16px, 4vw, 46px); height: 1px; flex: none;
  background: var(--ember); opacity: .85;
}
.reveal-line .big {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 8.6vw, 7rem); line-height: 0.94;
  letter-spacing: -0.015em; text-transform: uppercase; text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0,0,0,.92), 0 2px 18px rgba(0,0,0,.85), 0 12px 60px rgba(0,0,0,.6);
}
.reveal-line .sub {
  display: block; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem); color: var(--ink);
  margin-top: 1.1rem; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 2px 16px rgba(0,0,0,.85);
}
.reveal-line.accent .big { color: var(--ember);
  /* halo sombre serre (lisibilite sur burger clair) + glow ember (identite accent) */
  text-shadow: 0 1px 2px rgba(0,0,0,.96), 0 3px 10px rgba(0,0,0,.92), 0 4px 26px rgba(0,0,0,.8), 0 0 60px rgba(255,120,40,.4); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 12; font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.42em; color: rgba(244,236,226,.6);
  animation: bob 1.9s ease-in-out infinite; transition: opacity .4s;
}
@keyframes bob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(7px);} }

/* ============================================================
   Standard sections
   ============================================================ */
.section { padding: clamp(5rem, 12vw, 9rem) var(--pad); position: relative; }
.container { max-width: var(--maxw); margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 6.5vw, 4.5rem); line-height: 1; text-transform: uppercase;
  letter-spacing: 0.005em; margin-top: 1rem;
}
.section-head h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; text-transform: none; color: var(--ember); }
.section-head p { color: var(--ink-mut); margin-top: 1.2rem; font-size: 1.05rem; max-width: 56ch; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Ingredient (anatomy) cards over scrub ---------- */
.ingredients {
  position: absolute; z-index: 11; left: 0; right: 0; bottom: 6vh;
  padding: 0 var(--pad); pointer-events: none;
}
.ingredients .grid {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem;
}
.ing-card {
  pointer-events: auto;
  background: rgba(18, 13, 10, 0.55);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem; backdrop-filter: blur(10px) saturate(130%);
}
.ing-card .n { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; color: var(--ember); }
.ing-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin: .5rem 0 .35rem; text-transform: uppercase; }
.ing-card p { font-size: .82rem; color: var(--ink-mut); line-height: 1.45; }

/* ---------- Terroir / stats ---------- */
.terroir { background:
  radial-gradient(90% 70% at 50% 0%, rgba(232,130,30,.08), transparent 60%), var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1rem; }
.stat { border-top: 1px solid var(--line-2); padding-top: 1.4rem; }
.stat .stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; color: var(--ember); }
.stat .lab { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mut); margin-top: .6rem; }

/* ---------- Terroir : 3 loops verticaux des lieux ---------- */
.terroir-loops { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 5vw, 3.5rem); }
.loop { position: relative; }
.loop-media { position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.5); background: var(--bg-2); }
.loop-vid { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-2);
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.loop:hover .loop-vid { transform: scale(1.04); }
.loop-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(7,5,4,.72)); }
.loop-cap { position: absolute; z-index: 2; left: .95rem; right: .95rem; bottom: .9rem;
  display: flex; flex-direction: column; gap: .12rem; }
.loop-cat { font-family: var(--font-stencil); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.loop-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  text-transform: uppercase; line-height: 1; color: var(--ink); }
.loop-loc { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; color: var(--ink-mut); margin-top: .12rem; }
.terroir-note { font-family: var(--font-serif); font-style: italic; color: var(--ink-mut);
  font-size: 1.05rem; text-align: center; max-width: 52ch; margin: clamp(1.6rem, 4vw, 2.4rem) auto 0; }

/* Terroir : montage mobile (1 vidéo des 3 lieux, légende synchronisée) */
.terroir-montage { display: none; margin-top: clamp(2rem, 5vw, 3.5rem); }
.terroir-montage-vid { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-2); }
.montage-cap.cap-in { animation: capIn .5s ease both; }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
  .terroir-loops { display: none; }          /* mobile : remplacé par le montage 1 vidéo */
  .terroir-montage { display: block; }
}

.terroir .stats { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ---------- La carte : signature en vedette + ledger éditorial ---------- */
.carte { background: radial-gradient(70% 50% at 50% 0%, rgba(232,130,30,.05), transparent 60%), var(--bg); }

/* Signature */
.signature {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center; margin-bottom: clamp(3rem, 7vw, 5rem);
}
.sig-media { position: relative; border-radius: 16px; overflow: hidden; }
.sig-media img, .sig-video { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.signature:hover .sig-media img, .signature:hover .sig-video { transform: scale(1.04); }
.sig-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7,5,4,.5)); }
.sig-flag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; font-weight: 700;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: #1a1008; background: linear-gradient(180deg, var(--ember), var(--ember-hot));
  padding: .5rem .9rem; border-radius: 999px;
}
@keyframes smokeRise {
  0%   { opacity: 0; transform: translate(-50%, 10%) scale(.45); }
  18%  { opacity: .5; }
  55%  { opacity: .32; }
  100% { opacity: 0; transform: translate(calc(-50% + 26px), -125%) scale(1.5); }
}

.sig-body h3 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.sig-desc { color: var(--ink-mut); margin-top: 1rem; max-width: 50ch; font-size: 1.02rem; text-wrap: pretty; }
.sig-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.sig-tags li { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-mut);
  border: 1px solid var(--line-2); border-radius: 999px; padding: .42rem .85rem; }
.sig-foot { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.sig-price { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--ink); }
.sig-price .cur { color: var(--ember); font-size: 1.5rem; vertical-align: super; margin-left: 2px; }

/* Lineup : cartes vedette (style "spotlight") */
.lineup-head { margin: clamp(2.5rem, 6vw, 4rem) 0 1.8rem; }
.lineup-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 3rem);
  text-transform: uppercase; line-height: 1; letter-spacing: .005em; margin-top: .6rem; }
.lineup-title em { font-family: var(--font-serif); font-style: italic; color: var(--ember); text-transform: none; }
.lineup-sub { font-family: var(--font-script); font-size: 1.5rem; color: var(--ink-mut); margin-top: .4rem; }

.lineup { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.bcard { position: relative; display: flex; flex-direction: column;
  background: rgba(20,14,10,.5); backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.1rem 1.1rem; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; }
.bcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(232,130,30,.16), transparent 60%);
  transition: opacity .3s; }
.bcard:hover { transform: translateY(-6px); border-color: var(--line-2); }
.bcard:hover::before { opacity: 1; }
.bcard-num { position: relative; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; color: var(--ink-dim); }
.bcard-name { position: relative; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: .92; text-transform: uppercase; margin-top: .5rem; }
.bcard-name span { color: var(--ember); display: block; }
.bcard-tag { position: relative; font-family: var(--font-script); font-size: 1.35rem; color: var(--ember);
  line-height: 1; margin: .25rem 0 1rem; display: block; }
.bcard-media { position: relative; border-radius: 12px; overflow: hidden; }
.bcard-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bcard:hover .bcard-media img { transform: scale(1.05); }
.bcard-price { position: absolute; z-index: 2; right: .7rem; bottom: .7rem; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; color: #1a1008;
  background: linear-gradient(180deg, var(--ember), var(--ember-hot));
  padding: .3rem .75rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(255,90,31,.35); }
/* fumée continue sur chaque carte (boucle CSS, desktop + mobile) */
.bcard-smoke { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.bcard-smoke i { position: absolute; bottom: -20%; left: var(--x, 50%); width: 58%; height: 65%; border-radius: 50%;
  transform: translate(-50%, 0) scale(.5); opacity: 0; filter: blur(15px); will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(255,236,212,.5), rgba(255,196,140,.12) 52%, transparent 72%);
  animation: smokeRise var(--d, 10s) ease-in-out infinite; }
.bcard-smoke i:nth-child(1) { --x: 34%; --d: 9s;  animation-delay: 0s; }
.bcard-smoke i:nth-child(2) { --x: 56%; --d: 12s; animation-delay: 2.5s; }
.bcard-smoke i:nth-child(3) { --x: 72%; --d: 8.5s; animation-delay: 4.5s; }
.bcard-foot { position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-top: auto; padding-top: 1rem; }
.bcard-meta { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mut); }
.bcard-btn { min-height: 44px; padding: 0 1.05rem; font-size: .66rem; }

/* Filtres */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem;
  border-top: 1px solid var(--line); padding-top: 2.2rem; }
.chip {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mut); background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  min-height: 44px; padding: 0 1.3rem; cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.chip:hover { color: var(--ink); border-color: var(--ink-mut); }
.chip.is-active { color: #1a1008; background: var(--ember); border-color: var(--ember); }

/* Ledger (lignes éditoriales, pas de cartes) */
.ledger { list-style: none; }
.m-item { position: relative; padding: 1.4rem .4rem 1.4rem; border-bottom: 1px solid var(--line);
  overflow: hidden; transition: background .3s; }
.m-item::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(232,130,30,.13), transparent 60%);
  transition: opacity .3s; }
.m-item:hover { background: rgba(244,236,226,.025); }
.m-item:hover::before { opacity: 1; }
.m-item.is-hidden { display: none; }
.m-head { display: flex; align-items: baseline; gap: .9rem; }
.m-head h4 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 3vw, 2rem);
  text-transform: uppercase; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.m-badge { align-self: center; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ember-hot); border: 1px solid rgba(255,90,31,.4);
  border-radius: 999px; padding: .25rem .55rem; }
.m-dots { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-2); transform: translateY(-5px); }
.m-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ember); }
.m-desc { color: var(--ink-mut); font-size: .95rem; margin-top: .5rem; max-width: 64ch; text-wrap: pretty; }
.m-cat { display: inline-block; margin-top: .55rem; font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.menu-foot { margin-top: 1.8rem; color: var(--ink-mut); font-size: .92rem; font-style: italic;
  font-family: var(--font-serif); }

/* CTA -> ouvre la carte complète */
/* ============================================================
   COUCHE TEXTURE — "Atelier Urbain"
   etiquettes kraft - numeros tamponnes - grain papier - ardoise
   ============================================================ */
:root {
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

/* base etiquette kraft reutilisable */
.kraft-label {
  display: inline-block; font-family: var(--font-mono); color: var(--kraft-ink);
  background-color: var(--kraft); background-image: var(--paper);
  background-blend-mode: overlay; background-size: 120px 120px;
  border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(36,28,20,.14);
}

/* ingredients signature -> puces kraft */
.sig-tags li {
  font-family: var(--font-mono); font-size: .64rem; color: var(--kraft-ink);
  background-color: var(--kraft); background-image: var(--paper);
  background-blend-mode: overlay; background-size: 120px 120px;
  border: 0; border-radius: 3px; padding: .42rem .72rem;
  box-shadow: 0 2px 5px rgba(0,0,0,.35), inset 0 0 0 1px rgba(36,28,20,.12);
}
.sig-tags li:nth-child(odd)  { transform: rotate(-1deg); }
.sig-tags li:nth-child(even) { transform: rotate(1.1deg); }

/* "La signature" -> etiquette kraft + onglet ember */
.sig-flag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--font-mono); font-weight: 700; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--kraft-ink);
  background: var(--kraft); background-image: var(--paper);
  background-blend-mode: overlay; background-size: 120px 120px;
  padding: .5rem .85rem .5rem 1rem; border-radius: 3px; transform: rotate(-2deg);
  box-shadow: 0 6px 16px rgba(0,0,0,.5), inset 0 0 0 1px rgba(36,28,20,.16);
}
.sig-flag::before {
  content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 24px;
  transform: translateY(-50%) rotate(-2deg); border-radius: 2px;
  background: linear-gradient(180deg, var(--ember), var(--ember-hot));
  box-shadow: 0 2px 7px rgba(255,90,31,.55);
}

/* numeros cartes -> tampon encre */
.bcard-num {
  position: relative; display: inline-block;
  font-family: var(--font-mono); font-weight: 700; font-size: .72rem; letter-spacing: .1em;
  color: var(--ember); opacity: .92; transform: rotate(-3deg);
  text-shadow: 0 0 1px rgba(232,130,30,.55), .5px .5px 0 rgba(232,130,30,.3);
}

/* prix cartes -> etiquette kraft tamponnee */
.bcard-price {
  position: absolute; z-index: 2; right: .7rem; bottom: .7rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--kraft-ink);
  background: var(--kraft); background-image: var(--paper);
  background-blend-mode: overlay; background-size: 120px 120px;
  padding: .26rem .68rem; border-radius: 3px; transform: rotate(-2.5deg);
  box-shadow: 0 4px 12px rgba(0,0,0,.5), inset 0 0 0 1px rgba(36,28,20,.16);
}

/* ardoise = encart "carte complete" sur panneau slate */
.carte-cta {
  text-align: center; position: relative; margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.5rem, 5vw, 3rem);
  border-radius: 12px; border: 6px solid #14181a;
  background-color: #1f2528;
  background-image: var(--paper), radial-gradient(120% 130% at 50% 0%, rgba(244,236,226,.06), transparent 62%);
  background-blend-mode: soft-light, normal; background-size: 160px 160px, cover;
  box-shadow: inset 0 0 0 2px rgba(244,236,226,.07), inset 0 0 70px rgba(0,0,0,.6), 0 20px 44px rgba(0,0,0,.5);
}
.carte-cta::before {
  content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(244,236,226,.2);
  border-radius: 7px; pointer-events: none;
}
.carte-cta .btn { position: relative; }
.ardoise-eyebrow {
  position: relative; font-family: var(--font-stencil); font-size: .82rem; letter-spacing: .22em;
  text-transform: uppercase; color: #8a987f;
}
.ardoise-title {
  position: relative; font-family: var(--font-script); font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1; color: #f4ece2;
  margin: .25rem 0 1.3rem; text-shadow: 0 0 9px rgba(244,236,226,.2);
}
.carte-cta-note {
  position: relative; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mut); margin-top: 1rem;
}

/* Modal carte complète (dialog natif) */
.menu-modal { border: none; padding: 0; background: transparent; color: var(--ink);
  width: 100%; height: 100%; max-width: 100vw; max-height: 100dvh; overflow: visible; }
.menu-modal::backdrop { background: rgba(7,5,4,.74); backdrop-filter: blur(8px); }
.menu-modal[open] { display: flex; align-items: center; justify-content: center; }
.mm-inner { position: relative; display: flex; flex-direction: column; width: min(940px, 92vw); max-height: 88dvh;
  background: linear-gradient(180deg, #16100b, var(--bg)); border: 1px solid var(--line-2);
  border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6); }

/* FAB panier dans la modale carte : apparait en bas a droite des qu'un produit est ajoute */
.mm-cart {
  position: absolute; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: 6;
  display: inline-flex; align-items: center; gap: .55rem; padding: 0 1.05rem; min-height: 50px; border: 0;
  border-radius: 999px; cursor: pointer; color: #1a1008; background: var(--ember);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  box-shadow: 0 14px 36px rgba(0,0,0,.55), 0 0 0 4px rgba(232,130,30,.16);
  animation: mmCartIn .42s cubic-bezier(.2,.8,.2,1) both;
}
.mm-cart[hidden] { display: none; }
.mm-cart svg { width: 20px; height: 20px; }
.mm-cart-label { letter-spacing: .12em; }
.mm-cart-count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px;
  border-radius: 999px; background: #1a1008; color: var(--ember); font-size: .74rem; }
.mm-cart-total { font-variant-numeric: tabular-nums; }
.mm-cart:hover, .mm-cart:focus-visible { filter: brightness(1.06); outline: 2px solid #1a1008; outline-offset: 2px; }
.mm-cart.pulse { animation: mmCartPulse .5s ease; }
@keyframes mmCartIn { from { opacity: 0; transform: translateY(16px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes mmCartPulse { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mm-cart, .mm-cart.pulse { animation: none; } }
@media (max-width: 480px) { .mm-cart-label { display: none; } }
.menu-modal[open] .mm-inner { animation: mmIn .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mmIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.mm-head { flex: none; display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.4rem); border-bottom: 1px solid var(--line); }
.mm-brand { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-display);
  font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; }
.mm-brand .mark { width: 1.1em; height: 1.1em; }
.mm-kicker { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim); margin-right: auto; }
.mm-close { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font-size: 1rem; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s; }
.mm-close:hover, .mm-close:focus-visible { background: var(--ember); color: #1a1008; border-color: var(--ember); }
.mm-body { overflow-y: auto; padding: 1.4rem clamp(1.2rem, 4vw, 2.4rem) 2rem; }
.mm-body .filter-bar { border-top: none; padding-top: 0; margin-bottom: .8rem; position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, #16100b 72%, transparent); padding-bottom: .9rem; }
.mm-body .m-item { padding: 1.05rem .2rem; }
/* carte avec visuel : vignette produit a gauche, contenu a droite */
.mm-body .ledger .m-item {
  display: grid; grid-template-columns: clamp(96px, 24vw, 128px) 1fr;
  column-gap: clamp(.9rem, 3vw, 1.4rem); align-items: start;
}
.mm-body .ledger .m-item.is-hidden { display: none; }
.m-thumb {
  grid-column: 1; grid-row: 1 / span 6; align-self: center;
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg-2);
  box-shadow: 0 10px 26px rgba(0,0,0,.45); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.mm-body .ledger .m-item:hover .m-thumb { transform: scale(1.04); }
.m-thumb, .bcard-media, .sig-media { cursor: zoom-in; }
.m-thumb:focus-visible, .bcard-media:focus-visible, .sig-media:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* lightbox produit : dialog plein écran, image centrée, backdrop sombre flou */
.zoom-modal { width: 100%; height: 100%; max-width: 100vw; max-height: 100dvh; padding: 0;
  background: transparent; border: 0; overflow: hidden; place-items: center; }
.zoom-modal[open] { display: grid; }
.zoom-modal::backdrop { background: rgba(7,5,4,.86); backdrop-filter: blur(10px); }
.zoom-fig { margin: 0; display: grid; gap: .9rem; justify-items: center;
  animation: zoomIn .42s cubic-bezier(.2,.8,.2,1) both; }
.zoom-fig img { max-width: min(92vw, 640px); max-height: 82dvh; width: auto; height: auto; object-fit: contain;
  border-radius: 16px; border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.7); }
.zoom-fig figcaption { font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; font-size: clamp(1.2rem, 4vw, 1.8rem); color: var(--ink); text-align: center; }
.zoom-close { position: fixed; top: clamp(1rem, 4vw, 2rem); right: clamp(1rem, 4vw, 2rem); z-index: 2;
  width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  background: rgba(20,14,8,.7); color: var(--ink); border: 1px solid var(--line-2); font-size: 1.1rem;
  backdrop-filter: blur(6px); transition: background .25s, color .25s, border-color .25s; }
.zoom-close:hover, .zoom-close:focus-visible { background: var(--ember); color: #1a1008; border-color: var(--ember); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zoom-fig { animation: none; } }
.mm-body .ledger .m-item > :not(.m-thumb) { grid-column: 2; min-width: 0; }  /* min-width:0 = la colonne texte peut retrecir et le texte s'enrouler (pas de debordement) */
.mm-body .ledger .m-head { align-items: center; flex-wrap: wrap; min-width: 0; }
.mm-body .ledger .m-desc { max-width: none; }
@media (prefers-reduced-motion: reduce) { .m-thumb { transition: none; } }
.mm-body .menu-foot { margin-top: 1.4rem; }
@keyframes mItemIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Finale (best deal) over grill scrub ---------- */
.finale-copy {
  position: absolute; z-index: 11; left: 0; right: 0; bottom: 12vh; text-align: center; padding: 0 var(--pad);
}
.finale-copy::before { content: ""; position: absolute; inset: -24% -14% -18% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 92% at 50% 64%, rgba(7,5,4,.72), rgba(7,5,4,.4) 58%, transparent 86%); }
.finale-copy .deal { font-family: var(--font-mono); letter-spacing: .4em; color: var(--ember); font-size: .8rem; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,1), 0 0 12px rgba(0,0,0,.9); }
.finale-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 9vw, 7rem); text-transform: uppercase; line-height: .9; margin: 1rem 0 1.6rem; text-shadow: 0 1px 2px rgba(0,0,0,.92), 0 2px 18px rgba(0,0,0,.85), 0 12px 60px rgba(0,0,0,.6); }
.finale-copy h2 em { font-family: var(--font-serif); font-style: italic; color: var(--ember); text-transform: none; }
.finale-copy .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* mobile : scrim plus fort sous le texte (burger lumineux) — desktop reste plus clair */
@media (max-width: 720px) {
  /* scrim allege : le burger est plus clair (grade x1.4) + le texte a des ombres fortes,
     donc on laisse passer plus de lumiere au centre tout en gardant la lisibilite */
  .overlay::before { background: radial-gradient(82% 60% at 50% 50%, rgba(7,5,4,.62), rgba(7,5,4,.34) 54%, transparent 84%); }
  .finale-copy::before { background: radial-gradient(80% 94% at 50% 64%, rgba(7,5,4,.6), rgba(7,5,4,.32) 56%, transparent 86%); }
}

/* ---------- Footer ---------- */
.foot { background: var(--bg-wood); border-top: 1px solid var(--line);
  padding: clamp(3.5rem,8vw,5.5rem) var(--pad) calc(5rem + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; max-width: var(--maxw); margin-inline: auto; }
.foot .brand { font-size: 1.6rem; }
.foot h3 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1rem; }
.foot p, .foot a { color: var(--ink-mut); font-size: .92rem; line-height: 1.8; }
.foot a:hover { color: var(--ember); }
/* cibles tactiles 44px (WCAG 2.2) sur les liens contact footer + menu */
.foot-grid a, .nm-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .tagline { font-family: var(--font-serif); font-style: italic; color: var(--ink-mut); margin-top: 1rem; max-width: 34ch; }
/* signoff oversized + moment vidéo (pattern footer awwwards) */
.foot-signoff { position: relative; overflow: hidden; margin: clamp(2rem, 6vw, 4rem) 0 .5rem; border-radius: 14px;
  display: grid; place-items: center; min-height: clamp(120px, 22vw, 280px); isolation: isolate; }
.foot-signoff .foot-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  opacity: .26; filter: var(--regrade) grayscale(.15); }
.foot-signoff::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 100% at 50% 50%, transparent 30%, rgba(11,9,8,.7) 100%); }
.foot-signoff-word { font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.4rem, 19vw, 16rem); line-height: .8; letter-spacing: -.02em; color: var(--ink);
  text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.foot-bottom {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--ink-dim);
}
.concept-note { color: var(--ink-dim); font-size: .72rem; font-family: var(--font-mono); }

/* crédit Phare du Web (auteur du site) */
.foot-credit { max-width: var(--maxw); margin: 1.4rem auto 0; padding-top: 1.3rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: .7rem; text-decoration: none;
  color: var(--ink-mut); transition: color .25s; }
.foot-credit:hover, .foot-credit:focus-visible { color: var(--ink); }
.foot-credit-by { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; }
.foot-credit img { height: 34px; width: auto; opacity: .95; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.foot-credit-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .03em; text-transform: uppercase; }

/* ============================================================
   ATELIER : collage photo kraft + tampon heritage + stickers
   ============================================================ */
.atelier { background: var(--bg-2); }
/* grille éditoriale asymétrique : vedette (chef) à droite pleine hauteur + 3 vignettes alignées à gauche */
.collage { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: auto auto auto;
  gap: clamp(.9rem, 1.8vw, 1.5rem); align-items: stretch; }
.photo { position: relative; display: flex; flex-direction: column; margin: 0;
  background: var(--kraft); background-image: var(--paper); background-blend-mode: overlay; background-size: 120px 120px;
  padding: .6rem .6rem 0; border-radius: 4px;
  box-shadow: 0 16px 38px rgba(0,0,0,.5), inset 0 0 0 1px rgba(36,28,20,.14);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.photo img { width: 100%; display: block; border-radius: 2px; object-fit: cover; }
/* 3 vignettes gauche, ratio uniforme */
.photo:nth-child(1) { grid-column: 1; grid-row: 1; }
.photo:nth-child(3) { grid-column: 1; grid-row: 2; }
.photo:nth-child(4) { grid-column: 1; grid-row: 3; }
.photo:nth-child(1) img, .photo:nth-child(3) img, .photo:nth-child(4) img { aspect-ratio: 5 / 4; height: auto; }
/* vedette = chef, colonne droite, pleine hauteur */
.photo:nth-child(2) { grid-column: 2; grid-row: 1 / 4; }
.photo:nth-child(2) img { flex: 1 1 auto; min-height: 0; height: 100%; aspect-ratio: auto; }
.photo figcaption { font-family: var(--font-script); color: var(--kraft-ink); font-size: 1.15rem;
  text-align: center; padding: .42rem .2rem .55rem; line-height: 1; }
.photo:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 30px 66px rgba(0,0,0,.62); z-index: 3; }

/* sticker kraft contextuel reutilisable */
.tag-sticker { font-family: var(--font-mono); font-weight: 700; font-size: .58rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--kraft-ink);
  background: var(--kraft); background-image: var(--paper); background-blend-mode: overlay; background-size: 120px 120px;
  padding: .42rem .7rem; border-radius: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.45), inset 0 0 0 1px rgba(36,28,20,.14); }
.photo .tag-sticker { position: absolute; z-index: 2; top: .8rem; right: .8rem; transform: rotate(3deg); }

/* tampon heritage (cachet encre) */
.stamp-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 132px; height: 132px; border-radius: 50%; border: 2px solid var(--ember); color: var(--ember);
  text-align: center; transform: rotate(-9deg); opacity: .9; box-shadow: inset 0 0 0 4px rgba(232,130,30,.22); }
.stamp-badge .s-top, .stamp-badge .s-sub { font-family: var(--font-stencil); font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; }
.stamp-badge .s-mid { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: .9; margin: .25rem 0; text-transform: uppercase; letter-spacing: .02em; }
.atelier-stamp { position: absolute; right: clamp(1rem, 4vw, 4rem); top: clamp(5rem, 9vw, 7.5rem); z-index: 4; }

/* points du carrousel atelier (mobile) */
.collage-dots { display: none; justify-content: center; gap: .4rem; margin-top: 1.1rem; }
.collage-dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.collage-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink-mut);
  transition: background .25s, border-color .25s, transform .25s; }
.collage-dot:hover::before, .collage-dot:focus-visible::before { border-color: var(--ember); }
.collage-dot[aria-current="true"]::before { background: var(--ember); border-color: var(--ember); transform: scale(1.3); }
/* points du deck lineup (mobile) — réutilisent .collage-dot */
.lineup-dots { display: none; justify-content: center; gap: .4rem; margin-top: 1.2rem; }

/* flèches deck (mobile) — affordance subtile "on peut parcourir" */
.deck-arrow { display: none; }
@keyframes arrowNudgeR { 0%,100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(4px); } }
@keyframes arrowNudgeL { 0%,100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(-4px); } }

@media (max-width: 767px) {
  .collage { grid-template-columns: 1fr; }
  .photo { grid-column: 1 / -1 !important; transform: rotate(-1.4deg) !important; margin-top: 0 !important; }
  .photo:nth-child(even) { transform: rotate(1.4deg) !important; }
  /* carrousel auto : 1 polaroid visible, cross-dissolve (toutes les photos empilées dans 1 cellule) */
  .collage.carousel-on { grid-template-columns: 1fr; }
  .collage.carousel-on .photo { grid-column: 1 !important; grid-row: 1 !important; justify-self: center; width: 75%; max-width: 320px; opacity: 0; pointer-events: none; transition: opacity .9s ease; }
  .collage.carousel-on .photo.is-active { opacity: 1; pointer-events: auto; }
  .collage.carousel-on .photo img { aspect-ratio: 3 / 4; }
  .collage.carousel-on + .collage-dots { display: flex; }
  /* tampon = cachet posé en haut à droite (collé à la section, plus de badge isolé centré) */
  .atelier { padding-top: clamp(2.4rem, 8vw, 3.4rem); }
  .atelier-stamp { top: clamp(1rem, 4vw, 1.8rem); right: var(--pad); }
  .stamp-badge { width: 84px; height: 84px; transform: rotate(-8deg); }
  .stamp-badge .s-mid { font-size: .82rem; margin: .16rem 0; }
  .stamp-badge .s-top, .stamp-badge .s-sub { font-size: .44rem; letter-spacing: .14em; }
}

/* terroir/stats : compactes sur mobile (bloc trop haut pour peu d'infos) */
@media (max-width: 767px) {
  .terroir { padding-bottom: clamp(2.6rem, 9vw, 4rem); }
  .terroir .stats { margin-top: clamp(1.4rem, 5vw, 2rem); }
  .stats { gap: .9rem 1.3rem; }
  .stat { padding-top: .85rem; }
  .stat .stat-num { font-size: clamp(2rem, 9vw, 2.6rem); }
  .stat .lab { font-size: .62rem; letter-spacing: .12em; margin-top: .35rem; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .ingredients .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .ingredients { bottom: 4vh; }
  .ingredients .ing-card:nth-child(5) { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .lineup { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .signature { grid-template-columns: 1fr; }
  /* signature : montrer le burger en entier (vidéo 4:3, zéro crop) */
  .sig-media img, .sig-video { aspect-ratio: 4 / 3; }
  .m-head h4 { white-space: normal; }
  /* lineup : défaut = empilées verticales (fallback reduced-motion) */
  .lineup { display: grid; grid-template-columns: 1fr; gap: 1rem; }
  .bcard { min-width: 0; }
  /* mode DECK (activé en JS hors reduced-motion) : cartes superposées, swipe/tap pour parcourir */
  .lineup.deck { gap: 0; padding-bottom: 4.5rem; position: relative; }
  /* flèches latérales subtiles (cliquables prev/suivant) */
  .lineup.deck .deck-arrow { display: grid; place-items: center; position: absolute; top: 42%; z-index: 50;
    width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2);
    background: rgba(11,9,8,.4); backdrop-filter: blur(5px); color: var(--ink); opacity: .5; cursor: pointer;
    transition: opacity .25s, border-color .25s, color .25s; transform: translateY(-50%); }
  .lineup.deck .deck-arrow svg { width: 15px; height: 15px; }
  .lineup.deck .deck-arrow.prev { left: -4px; animation: arrowNudgeL 2.6s ease-in-out infinite; }
  .lineup.deck .deck-arrow.next { right: -4px; animation: arrowNudgeR 2.6s ease-in-out infinite; }
  .lineup.deck .deck-arrow:hover, .lineup.deck .deck-arrow:focus-visible { opacity: 1; border-color: var(--ember); color: var(--ember); }
  .lineup.deck .bcard { grid-column: 1; grid-row: 1; width: 100%; background: #16100b;
    transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .45s ease; will-change: transform; }
  .lineup.deck .bcard.is-p0 { transform: none; opacity: 1; z-index: 40; }
  .lineup.deck .bcard.is-p1 { transform: translateY(34px) scale(.96) rotate(1.5deg); opacity: .6; z-index: 30; pointer-events: none; }
  .lineup.deck .bcard.is-p2 { transform: translateY(60px) scale(.93) rotate(-1.5deg); opacity: .38; z-index: 20; pointer-events: none; }
  .lineup.deck .bcard.is-p3 { transform: translateY(84px) scale(.9) rotate(2.2deg); opacity: .2; z-index: 10; pointer-events: none; }
  .lineup.deck + .lineup-dots { display: flex; }
  .cinematic.tall { height: 246vh; }   /* mobile : scrub ralenti + overlap cross-dissolve standard 100vh (transition propre, zéro zone morte) */
  .cinematic.mid { height: 150vh; }
  #anatomy { height: 180vh; }          /* décomposition ralentie -20% (overlap base -100vh -> anatomie à 146vh, sous flottaison) */
  /* #anatomy garde l'overlap de base -100vh : hero 205vh -> anatomie à 105vh (sous la flottaison, pas de 2 burgers) + dead-zone = 0 */
  .ingredients { display: none; }              /* keep mobile hero clean; cards shown as static section below */
  .ing-static { display: block !important; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* mobile static fallback : "couche par couche" en timeline premium (spine + nœuds ember) */
.ing-static { display: none; margin-top: 2rem; }
.ing-static .grid { display: flex; flex-direction: column; position: relative; }
.ing-static .grid::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--ember), rgba(232,130,30,.1)); border-radius: 2px; }
.ing-static .ing-card { background: none; border: none; border-radius: 0; backdrop-filter: none;
  display: grid; grid-template-columns: 40px 1fr; column-gap: 1.1rem; align-items: start;
  padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ing-static .ing-card:last-child { border-bottom: none; }
.ing-static .ing-card .n { grid-row: 1 / 3; grid-column: 1; align-self: start; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--ember); letter-spacing: 0; font-size: .72rem; }
.ing-static .ing-card h3 { grid-column: 2; align-self: center; margin: 0; font-size: 1.12rem; }
.ing-static .ing-card p { grid-column: 2; margin-top: .25rem; font-size: .85rem; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .embers { display: none; }
  .bcard-smoke { display: none; }
  .mark-lg { animation: none; }
  .scroll-hint { animation: none; }
  .order-mini { transition: none; }
}

/* ============================================================
   PANIER (cart)
   ============================================================ */
/* contrôle d'ajout dans les lignes de la carte (modal) */
.cart-ctl { margin-top: .7rem; }
.add-btn { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; min-height: 44px; padding: 0 1.15rem; border-radius: 999px; cursor: pointer;
  color: var(--ember); background: transparent; border: 1px solid var(--line-2);
  transition: background .2s, color .2s, border-color .2s; }
.add-btn:hover, .add-btn:focus-visible { background: var(--ember); color: #1a1008; border-color: var(--ember); }
.stepper { display: inline-flex; align-items: center; gap: .2rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.stp { width: 44px; height: 44px; border-radius: 999px; border: none; cursor: pointer; font-size: 1.1rem; line-height: 1;
  background: transparent; color: var(--ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.stp:hover { background: var(--ember); color: #1a1008; }
.stp-q { min-width: 1.6ch; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

/* FAB */
.cart-fab { position: fixed; z-index: 200; right: clamp(1rem, 3vw, 2rem); bottom: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .7rem; min-height: 56px; padding: 0 1.2rem 0 1rem;
  border: none; border-radius: 999px; cursor: pointer; color: #1a1008;
  background: linear-gradient(180deg, var(--ember), var(--ember-hot));
  box-shadow: 0 12px 34px rgba(255,90,31,.4); animation: fabIn .45s cubic-bezier(.2,.8,.2,1) both; }
.cart-fab[hidden] { display: none; }
.cart-fab.pulse { animation: fabPulse .45s ease; }
.cart-fab-ico { width: 26px; height: 26px; }
.cart-fab-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.cart-fab-count { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.cart-fab-count::after { content: " articles"; }
.cart-fab-total { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
@keyframes fabIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fabPulse { 0%,100% { transform: scale(1); } 40% { transform: scale(1.12); } }

/* backdrop + drawer */
.cart-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(7,5,4,.6);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.cart-backdrop.show { opacity: 1; }
.cart-backdrop[hidden] { display: none; }
.cart-drawer { position: fixed; z-index: 950; top: 0; right: 0; height: 100dvh; width: min(440px, 100vw);
  transform: translateX(105%); transition: transform .42s cubic-bezier(.16,1,.3,1);
  background: linear-gradient(180deg, #16100b, var(--bg)); border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.cart-drawer.open { transform: none; }
.cart-view { display: flex; flex-direction: column; height: 100%; }
.cart-view[hidden] { display: none; }
.cart-head { flex: none; display: flex; align-items: center; gap: 1rem; padding: 1.3rem clamp(1.2rem,4vw,1.8rem);
  border-bottom: 1px solid var(--line); }
.cart-head h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; margin-right: auto; }
.cart-close { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); cursor: pointer; font-size: 1rem; transition: background .2s, color .2s, border-color .2s; }
.cart-close:hover, .cart-close:focus-visible { background: var(--ember); color: #1a1008; border-color: var(--ember); }
.cart-back { background: none; border: none; color: var(--ink-mut); font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .08em; cursor: pointer; padding: .4rem 0; margin-right: auto; }
.cart-back:hover { color: var(--ember); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem clamp(1.2rem,4vw,1.8rem); }
.cart-line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: .7rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cart-line-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .01em; }
.cart-line-unit { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; color: var(--ink-dim); }
.cart-line-total { font-family: var(--font-display); font-weight: 700; color: var(--ember); min-width: 3.4ch; text-align: right; }
.cart-line-rm { background: none; border: none; color: var(--ink-dim); cursor: pointer; font-size: .85rem;
  width: 44px; height: 44px; display: grid; place-items: center; }
.cart-line-rm:hover { color: var(--ember-hot); }

.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 2rem; }
.cart-empty[hidden] { display: none; }
.cart-empty-ico { width: 54px; height: 54px; color: var(--ink-dim); }
.cart-empty p { color: var(--ink-mut); }

.cart-foot { flex: none; padding: 1.2rem clamp(1.2rem,4vw,1.8rem) calc(1.2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cart-foot[hidden] { display: none; }
.cart-upsell { font-family: var(--font-serif); font-style: italic; font-size: .85rem; color: var(--ink-mut); margin-bottom: 1rem; }
.cart-subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.cart-subtotal span:first-child { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mut); }
.cart-subtotal span:last-child { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; }
.cart-checkout { width: 100%; }

/* checkout */
.checkout-body { flex: 1; overflow-y: auto; padding: 1.4rem clamp(1.2rem,4vw,1.8rem) 2rem; }
.acct-choice { display: grid; gap: .9rem; }
.acct-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: .35rem;
  padding: 1.2rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(244,236,226,.02);
  cursor: pointer; transition: border-color .25s, background .25s, transform .2s; }
.acct-card:hover { transform: translateY(-2px); border-color: var(--ink-mut); }
.acct-card.is-selected { border-color: var(--ember); background: rgba(232,130,30,.08); }
.acct-card.is-promo { border-color: rgba(232,130,30,.4); }
.acct-flag { align-self: flex-start; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: #1a1008; background: linear-gradient(180deg,var(--ember),var(--ember-hot)); padding: .3rem .6rem; border-radius: 999px; margin-bottom: .2rem; }
.acct-t { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; }
.acct-d { color: var(--ink-mut); font-size: .9rem; line-height: 1.45; }

.checkout-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.checkout-form[hidden] { display: none; }
.checkout-form label { display: grid; gap: .4rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mut); }
.checkout-form input, .checkout-form select { font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .8rem .9rem; min-height: 48px; }
.checkout-form input:focus-visible, .checkout-form select:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
.checkout-form .acct-only[hidden] { display: none; }
.checkout-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: .4rem; }
.checkout-total span:first-child { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mut); }
.checkout-total span:last-child { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ember); }
.checkout-note { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; color: var(--ink-dim); text-align: center; }

.cart-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; text-align: center; padding: 2rem; }
.cart-done-ico { width: 64px; height: 64px; color: var(--ember); }
.cart-done h2 { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; text-transform: uppercase; }
.cart-done p { color: var(--ink-mut); max-width: 34ch; line-height: 1.6; }

/* toast */
.toast { position: fixed; z-index: 1000; left: 50%; bottom: clamp(1rem,3vw,2rem); transform: translate(-50%, 20px);
  background: var(--ink); color: #15100b; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700; padding: .8rem 1.3rem; border-radius: 999px; opacity: 0;
  transition: opacity .3s, transform .3s; box-shadow: 0 10px 30px rgba(0,0,0,.4); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[hidden] { display: none; }

@media (max-width: 480px) {
  .cart-fab-count::after { content: ""; }
  .cart-drawer { width: 100vw; }
}
