/* ════════════════════════════════════════════════════════════
   Cake House Dakar — "La Maison"
   A pâtisserie told through its own objects: the kitchen film, the cake
   of the week, a menu of cakes with folded price cards, biscuit barquettes,
   Noël gifts on tags (Christmas red with snow), and a cart.
   Sections are cream (Moe 2026-11-23: no dark brown backgrounds); Noël is
   red. Piped scallops join a section to a different colour above it.
   Performance rule: nothing that repaints every frame — no SVG filters,
   no animated masks or blend modes, no backdrop blur. Animate only
   transform and opacity. Phones first; the film is the only thing that
   moves on its own, everything else reacts to a tap.
   Colours come from the logo (chocolate #6F422D, latte #D7B093, their
   steps, cream/milk) plus Christmas red for the Noël section and the hat.
   ════════════════════════════════════════════════════════════ */

:root {
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-sheet: env(safe-area-inset-bottom, 0px);
  --choc: #6F422D;      /* logo */
  --choc-d: #4B2C1E;
  --choc-dd: #2B1911;
  --latte: #D7B093;     /* logo */
  --latte-d: #B48D6F;
  --latte-l: #EAD7C6;
  --cream: #F6EBDF;
  --milk: #FFFAF5;
  --ink: #2B1911;
  --muted: #866654;
  --red: #9E1B22;       /* Noël only */
  --red-d: #6E0F16;

  --display: 'Fraunces', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --soft: 'SOFT' 100, 'WONK' 1, 'opsz' 144;

  --nav-h: 64px;
  --spring: cubic-bezier(.3, 1.45, .45, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--cream); }
html.is-locked { overflow: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.55;
  color: var(--ink);
  background: var(--milk);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.has-bar .footer { padding-bottom: calc(var(--safe-b) + 110px); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
a, button, input, label { -webkit-tap-highlight-color: transparent; }
input { font: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--choc); outline-offset: 3px; border-radius: 10px; }
.hero :focus-visible, .noel :focus-visible { outline-color: var(--latte-l); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 1000; background: var(--ink); color: var(--milk); padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ── type ── */
.label, .eyebrow {
  font-weight: 800; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--choc);
}
.sec-head { display: grid; gap: 12px; }
.sec-title {
  font-family: var(--display); font-variation-settings: var(--soft); font-weight: 900;
  font-size: clamp(42px, 11.5vw, 104px); line-height: .95; letter-spacing: -.025em;
  text-wrap: balance;
}
.sec-title em, .hero-title em, .footer-line em { font-style: italic; font-weight: 600; color: var(--choc); }
.lede { font-size: 16.5px; line-height: 1.5; color: var(--muted); max-width: 40ch; }
.note {
  font-family: var(--hand); font-weight: 700; font-size: 23px; line-height: 1.05; color: var(--choc);
  transform: rotate(-5deg); display: inline-block; white-space: nowrap;
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.4rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 800; font-size: 15.5px; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .3s var(--spring), background-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; }
.btn-block { width: 100%; min-height: 58px; font-size: 16.5px; }
.btn-grow { flex: 1; min-height: 58px; }
.btn-choc { background: var(--choc); color: var(--milk); box-shadow: 0 12px 26px rgba(111, 66, 45, .3); }
.btn-choc:hover { background: var(--choc-d); }
.btn-choc:disabled { background: var(--latte-d); box-shadow: none; cursor: not-allowed; }
.btn-latte { background: var(--latte); color: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.btn-latte:hover { background: var(--latte-l); }
.btn-line { color: var(--choc); box-shadow: inset 0 0 0 2px var(--choc); }
.btn-snow { background: var(--milk); color: var(--red); box-shadow: 0 10px 22px rgba(60, 5, 10, .35); }
.x {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--milk); color: var(--ink);
  box-shadow: 0 4px 16px rgba(43, 25, 17, .16);
}
.x-soft { background: var(--cream); box-shadow: none; }

/* piped scallops: a row of cream beads from the section above hangs over the top edge */
section, .footer { position: relative; }
.scallop {
  position: absolute; left: 0; right: 0; top: -1px; height: 15px; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 13px 0, var(--prev, var(--cream)) 12px, transparent 12.6px) 0 0 / 26px 15px repeat-x;
}
.scallop-dark { --prev: var(--cream); }
.scallop-footer { --prev: var(--red-d); }

/* ════════ NAV ════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  display: flex; align-items: center; gap: 8px;
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-solid { background: var(--milk); box-shadow: 0 1px 0 rgba(180, 141, 111, .35), 0 8px 24px rgba(43, 25, 17, .08); }
.nav-logo {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--milk); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.nav-logo img { width: 31px; height: auto; }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 2px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.nav.is-solid .nav-links { opacity: 1; pointer-events: auto; }
.nav-links a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px;
  font-family: var(--display); font-variation-settings: var(--soft); font-weight: 700; font-size: 17px; color: var(--choc);
}
.nav-links a[aria-current="true"] { background: var(--cream); }
.nav-box {
  position: relative; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--choc); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.nav-links + .nav-box { margin-left: 0; }
.carticon { width: 25px; height: 25px; color: var(--milk); stroke-width: 2; margin-left: -1px; }
.nav-box.is-bump .carticon { animation: cartpop .6s var(--spring); }
@keyframes cartpop { 40% { transform: translateY(-3px) rotate(-10deg) scale(1.12); } }
.nav-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px;
  background: var(--latte); color: var(--ink);
  font-size: 11.5px; font-weight: 800; line-height: 21px; text-align: center;
  box-shadow: 0 0 0 2px var(--milk);
  transform: scale(0); transition: transform .35s var(--spring);
}
.nav-count.is-on { transform: scale(1); }

/* ════════ 1 · HERO — their kitchen film ════════ */
.hero {
  height: 100vh; height: 100svh; min-height: 560px; max-height: 1000px;
  overflow: hidden; background: var(--choc-dd); color: var(--milk);
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; background: var(--choc-dd); }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(43, 25, 17, .78) 0%, rgba(43, 25, 17, .35) 26%, rgba(43, 25, 17, 0) 44%),
    linear-gradient(0deg, rgba(43, 25, 17, .92) 0%, rgba(43, 25, 17, .6) 24%, rgba(43, 25, 17, 0) 48%);
}
.hero-play {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%;
  display: grid; place-items: center; background: var(--latte); color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}
.hero-play svg path { fill: currentColor; stroke: none; }
.hero-copy {
  position: absolute; z-index: 2; left: 0; right: 0;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 12px);
  padding: 0 20px;
}
.hero-kicker { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--latte-l); }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--latte); box-shadow: 0 0 0 4px rgba(215, 176, 147, .25); }
.hero-title {
  margin-top: 10px;
  font-family: var(--display); font-variation-settings: var(--soft); font-weight: 900;
  font-size: min(8.6vw, 6.2svh, 150px); line-height: .95; letter-spacing: -.025em;
  color: var(--milk); text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero-title em { display: block; color: var(--latte); }
.hero-copy > * { animation: rise .9s var(--spring) both; }
.hero-title { animation-delay: .1s !important; }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }
.hero-foot {
  position: absolute; z-index: 2; left: 0; right: 0;
  bottom: calc(var(--safe-b) + 22px);
  padding: 0 20px; display: grid; gap: 16px;
  animation: rise .9s var(--spring) .3s both;
}
.btn-hero { width: 100%; min-height: 58px; font-size: 16.5px; }

/* the small glass cloche (lifts off each cake in the product sheet) */
.cloche-knob {
  position: absolute; left: 50%; top: 0; width: 13%; height: 13%;
  transform: translateX(-50%);
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--latte-l) 45%, var(--latte-d));
  box-shadow: 0 4px 10px rgba(43, 25, 17, .2);
  z-index: 1;
}
.cloche-dome {
  position: absolute; inset: 9% 0 0 0;
  border-radius: 50% 50% 7% 7% / 88% 88% 12% 12%;
  background:
    radial-gradient(60% 40% at 30% 22%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    linear-gradient(100deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .02) 70%, rgba(255, 255, 255, .3) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .85),
    inset 8px 0 22px rgba(255, 255, 255, .45),
    inset -10px -6px 26px rgba(215, 176, 147, .25),
    0 0 0 1px rgba(180, 141, 111, .28),
    0 26px 50px rgba(43, 25, 17, .08);
}
.cloche-dome::before {   /* long reflection streak */
  content: ''; position: absolute; left: 12%; top: 16%; width: 9%; height: 62%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  transform: rotate(-16deg);
}
.cloche-dome::after {    /* rim */
  content: ''; position: absolute; left: -2%; right: -2%; bottom: -3%; height: 9%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 3px 6px rgba(43, 25, 17, .12);
}
.cloche-knob {
  position: absolute; left: 50%; top: 0; width: 13%; height: 13%;
  transform: translateX(-50%);
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--latte-l) 45%, var(--latte-d));
  box-shadow: 0 4px 10px rgba(43, 25, 17, .2);
  z-index: 1;
}

/* ════════ 2 · PROMISE STRIP ════════ */
.promise {
  list-style: none;
  display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 12px 10px;   /* columns fit their words (Moe's longer lines, 2026-11-26) */
  padding: 20px 18px; background: var(--latte); color: var(--ink);
}
.promise li { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13.5px; line-height: 1.2; }
.promise svg { width: 30px; height: 30px; stroke: var(--choc-d); stroke-width: 1.8; }

/* ════════ 3 · LE CAKE DE LA SEMAINE ════════ */
.semaine { background: var(--cream); padding: 44px 20px 60px; display: grid; gap: 6px; }
/* "Le cake de la semaine": a bright yellow badge so the week's cake stands out (Moe 2026-11-24).
   Yellow is a background, never text colour: yellow text on cream would be unreadable. */
.semaine-parts { margin-bottom: 6px; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--choc); }
.semaine-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.semaine-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: #F7C631; color: var(--choc-dd);
  font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(196, 140, 0, .28), inset 0 -2px 0 rgba(120, 80, 0, .15);
}
.semaine-badge svg { width: 17px; height: 17px; fill: var(--choc-dd); stroke: none; }
.semaine-stage { position: relative; height: 290px; display: grid; place-items: center; margin: 4px -20px 0; }
.semaine-glow { position: absolute; inset: 6% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 250, 245, .95), rgba(255, 250, 245, 0)); }
.semaine-stage img {
  position: relative; max-width: 92%; max-height: 290px; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 30px 26px rgba(43, 25, 17, .3));
}
.semaine-name {
  font-family: var(--display); font-variation-settings: var(--soft); font-weight: 900;
  font-size: clamp(40px, 11vw, 80px); line-height: .95; letter-spacing: -.025em; color: var(--ink);
}
.semaine-desc { margin-top: 10px; font-size: 16.5px; color: var(--muted); max-width: 42ch; }
.semaine-buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 10px; margin-top: 18px; }
.semaine-buy .tag-price { grid-column: 1 / -1; justify-self: start; }
.tag-price {   /* a paper price tag with a punched hole */
  position: relative; display: inline-flex; align-items: center;
  height: 46px; padding: 0 16px 0 26px;
  font-family: var(--display); font-variation-settings: var(--soft); font-weight: 900; font-size: 22px;
  background: var(--milk); color: var(--ink);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  filter: drop-shadow(0 4px 8px rgba(43, 25, 17, .12));
}
.tag-price::before { content: ''; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--latte-d); }

/* ════════ 4 · LA VITRINE — the counter ════════ */
.vitrine { background: var(--cream); color: var(--ink); padding: 34px 14px 60px; }
.vitrine::before {   /* a piped dotted line between the cake of the week and the menu */
  content: ''; position: absolute; left: 20px; right: 20px; top: 0;
  border-top: 2px dotted var(--latte-d); opacity: .6;
}
.vitrine .sec-head { padding: 0 6px; }
.moods { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 22px -14px 0; padding: 0 20px 4px; }
.moods::-webkit-scrollbar { display: none; }
.moods button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-weight: 800; font-size: 14.5px; color: var(--choc-d);
  box-shadow: inset 0 0 0 1.5px var(--latte);
  transition: background-color .2s, color .2s;
}
.moods button small { font-size: 12px; color: var(--muted); }
.moods button[aria-checked="true"] { background: var(--choc); color: var(--milk); box-shadow: none; }
.moods button[aria-checked="true"] small { color: var(--latte-l); }
.counter { display: grid; gap: 40px; margin-top: 24px; }
.shelf-title {   /* the flyer's group names, in its script style */
  font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 1; color: var(--choc);
  padding: 0 6px 14px; margin-bottom: 18px; border-bottom: 2px dotted rgba(180, 141, 111, .6);
}
.shelf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 12px; align-items: end; }
.piece { position: relative; display: flex; flex-direction: column; align-items: center; transition: opacity .2s; }
.piece-open { --ph: 150px; position: relative; width: 100%; display: grid; place-items: end center; height: var(--ph); }
.piece-open::before {   /* a pool of light on the counter */
  content: ''; position: absolute; left: 4%; right: 4%; bottom: -8px; height: 46px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(180, 141, 111, .3), transparent);
}
.piece-open img {
  position: relative; max-width: 100%; max-height: var(--ph); width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 16px 14px rgba(43, 25, 17, .3));
  transition: transform .45s var(--spring);
}
.tent {   /* the folded paper price card standing in front of the cake */
  position: relative; z-index: 2; width: 92%; margin-top: -2px;
  padding: 12px 10px 10px; border-radius: 4px 4px 10px 10px;
  background: linear-gradient(180deg, var(--latte-l) 0 7px, var(--milk) 7px);
  color: var(--ink); text-align: center;
  box-shadow: 0 10px 20px rgba(43, 25, 17, .14), 0 0 0 1px rgba(180, 141, 111, .25);
  transform: perspective(500px) rotateX(8deg);
}
.tent-name { display: block; font-family: var(--display); font-variation-settings: var(--soft); font-style: italic; font-weight: 700; font-size: 17px; line-height: 1.1; }
.tent-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.tent-price { font-weight: 800; font-size: 15px; white-space: nowrap; }
.tent-add {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--choc); color: var(--milk); font-size: 23px; font-weight: 600; line-height: 1;
  transition: transform .3s var(--spring);
}
.tent-add.is-done { animation: thump .5s var(--spring); }
@keyframes thump { 40% { transform: scale(1.18); } }
.piece .note { position: absolute; z-index: 3; top: -6px; left: -2px; max-width: 100%; white-space: normal; color: var(--choc); font-size: 21px; }
/* a two-line note (Cake Fit: "sans sucre, sans farine, / sans lait") starts one line higher, so its
   second line sits where a one-line note does: above the cake, never over it */
.piece .note-2 { top: -32px; font-size: 19px; line-height: 1; }
/* Cake Décoré is a TALL cake: shown at the same width as the round cakes (their photo is
   --ph tall × 1000/934 wide), so it stands taller; its photo keeps the same space above the cake
   for the handwritten note. */
.piece[data-id="cake-decore"] .piece-open { height: auto; }
.piece[data-id="cake-decore"] .piece-open img { max-height: none; width: min(100%, calc(var(--ph) * 1000 / 934)); }
/* Mini Gourmets in their gift box: the cake keeps the round cakes' size (canvas 1080 wide where the cake
   canvas is 1000), the box rises behind it, so the photo is taller (Moe 2026-11-25). */
.piece.boxed .piece-open { height: auto; }
.piece.boxed .piece-open img { max-height: none; width: min(100%, calc(var(--ph) * 1080 / 934)); }
/* Each card spans two rows of its shelf (photo row, card row) as a subgrid, so in a row every cake
   stands on the same line and every price card starts on the same line, whatever the name length
   ("Cake Pomme & Cannelle" wraps) or cake height (Cake Décoré). Space between rows = padding. */
@supports (grid-template-rows: subgrid) {
  .shelf-row { row-gap: 0 !important; align-items: stretch; }   /* beats the breakpoint gaps below */
  .piece { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; justify-items: center; align-items: stretch; padding-bottom: var(--row-gap, 42px); }   /* stretch: not the flex layout's centre */
  .piece-open { align-self: end; }
  .tent { display: flex; flex-direction: column; justify-content: center; }
}
.piece-qty {
  position: absolute; z-index: 3; top: 0; right: 4px;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px;
  background: var(--choc); color: var(--milk); font-size: 12.5px; font-weight: 800; line-height: 28px; text-align: center;
}

/* ════════ 6 · LE BOCAL ════════ */
.bocal-sec { background: var(--cream); padding: 40px 20px 70px; }
.sachets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.sachet {   /* a kraft bag with a folded, zig-zag top */
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 10px 12px; border-radius: 6px 6px 16px 16px;
  background: linear-gradient(180deg, #E4C9A9 0 18px, var(--latte-l) 18px);
  clip-path: polygon(0 8px, 6.25% 0, 12.5% 8px, 18.75% 0, 25% 8px, 31.25% 0, 37.5% 8px, 43.75% 0, 50% 8px, 56.25% 0, 62.5% 8px, 68.75% 0, 75% 8px, 81.25% 0, 87.5% 8px, 93.75% 0, 100% 8px, 100% 100%, 0 100%);
}
.sachet-open { display: flex; flex-direction: column; align-items: center; width: 100%; }
.sachet img { height: 96px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(43, 25, 17, .25)); }
.sachet b { margin-top: 8px; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 800; font-size: 18px; line-height: 1.1; }
.sachet .sachet-desc { font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.sachet-price { margin-top: 6px; font-weight: 800; font-size: 15px; }
.sachet .btn { margin-top: 10px; min-height: 44px; padding: 0 16px; font-size: 14px; }
.sachet-qty { position: absolute; top: 14px; right: 10px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--choc); color: var(--milk); font-size: 12px; font-weight: 800; line-height: 26px; }

/* ════════ 7 · NOËL — gifts on tags ════════ */
.noel {
  background: radial-gradient(120% 60% at 50% 0%, #B42129 0%, var(--red) 45%, var(--red-d) 100%);
  color: var(--milk); padding: 64px 14px 74px; overflow: hidden;
}
.noel .sec-head { position: relative; z-index: 1; padding: 0 6px; }   /* above the snow */
.noel .label { color: #F7D9C9; }
.noel .sec-title em { color: var(--milk); }
.noel .lede { color: #F7D9C9; }
/* snow: still white specks (nothing moves), two tile sizes so the pattern never lines up */
.snow { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2.4px 2.4px at 22px 34px, rgba(255, 255, 255, .95) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 96px 12px, rgba(255, 255, 255, .8) 50%, transparent 52%),
    radial-gradient(3px 3px at 150px 92px, rgba(255, 255, 255, .9) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 60px 128px, rgba(255, 255, 255, .7) 50%, transparent 52%),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, .75) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 210px 40px, rgba(255, 255, 255, .7) 50%, transparent 52%),
    radial-gradient(2.6px 2.6px at 130px 190px, rgba(255, 255, 255, .85) 50%, transparent 52%);
  background-size: 180px 150px, 180px 150px, 180px 150px, 180px 150px, 260px 230px, 260px 230px, 260px 230px; }
/* the Santa hat tipped over the last "e" of "prépare." — the one deliberate non-logo colour (red) */
.hat-e { position: relative; display: inline-block; }
.santa {
  position: absolute; z-index: 1; pointer-events: none;
  /* measured in Fraunces italic: the "e" ink spans .01–.46em and its top sits .35em below the line
     box top, so the fur band (y 68–92 of 104, centred at x 58 of 130) is placed to rest on it */
  width: .86em; height: auto; left: -.1em; top: -.18em;
  transform: rotate(12deg); transform-origin: 44.6% 80%;
  filter: drop-shadow(0 .04em .05em rgba(0, 0, 0, .35));
  overflow: visible;
}
.santa path, .santa rect, .santa circle { stroke: none; }
.countdown { display: flex; align-items: baseline; gap: 8px; }
.countdown b { font-family: var(--display); font-variation-settings: var(--soft); font-weight: 900; font-size: 64px; line-height: .9; color: var(--milk); }
.countdown span { font-family: var(--hand); font-size: 26px; color: #F7D9C9; }
.gifts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.gift {
  position: relative; display: flex; flex-direction: column;
  padding: 14px 12px 12px; border-radius: 20px;
  background: radial-gradient(100% 70% at 50% 30%, rgba(255, 255, 255, .16), transparent 62%), rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.gift-open { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.gift-img { height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.gift-img img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .5)); }
.gift b { margin-top: 10px; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 800; font-size: 17px; line-height: 1.12; }
.gift .btn { margin-top: 12px; min-height: 44px; font-size: 14px; padding: 0 12px; }
.gift-tag {   /* hangs from the top right corner on a string */
  position: absolute; z-index: 2; top: -4px; right: 14px;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0; transform: rotate(6deg);
}
.gift-tag::before { content: ''; width: 1.5px; height: 18px; background: var(--milk); }
.gift-tag span {
  position: relative; padding: 10px 9px 6px; border-radius: 4px 4px 8px 8px;
  background: var(--milk); color: var(--ink); font-weight: 800; font-size: 12.5px; white-space: nowrap;
  clip-path: polygon(50% 0, 100% 8px, 100% 100%, 0 100%, 0 8px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
}
.gift-tag span::before { content: ''; position: absolute; left: 50%; top: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red-d); }
.gift.is-swing .gift-tag { animation: swing 1.1s var(--ease); }
@keyframes swing { 20% { transform: rotate(-16deg); } 45% { transform: rotate(14deg); } 70% { transform: rotate(-6deg); } 100% { transform: rotate(6deg); } }
.gift-qty { position: absolute; top: 10px; left: 10px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--milk); color: var(--red); font-size: 12px; font-weight: 800; line-height: 26px; text-align: center; }

/* ════════ FOOTER ════════ */
.footer { background: var(--cream); color: var(--ink); padding: 58px 18px 40px; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 16px; }
.footer-badge { width: 104px; height: 104px; border-radius: 50%; background: var(--milk); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(43, 25, 17, .1); }
.footer-badge img { width: 60px; height: auto; }
.footer-line { font-family: var(--display); font-variation-settings: var(--soft); font-weight: 900; font-size: clamp(34px, 9vw, 64px); line-height: 1; color: var(--ink); }
.footer-line em { white-space: nowrap; }   /* "que beaux." stays together on the second line */
.footer-links { display: flex; gap: 22px; font-weight: 700; color: var(--choc); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--latte); text-underline-offset: 5px; }
.footer-legal { font-size: 12.5px; color: var(--muted); }
/* hours, address, phone, payment */
.facts {
  width: 100%; max-width: 760px; margin-top: 6px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px;
  padding: 20px 18px; border-radius: 22px; background: var(--milk); text-align: left;
  box-shadow: 0 10px 24px rgba(43, 25, 17, .07), inset 0 0 0 1px rgba(180, 141, 111, .25);
}
.facts dt { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 4px; display: grid; font-size: 15.5px; line-height: 1.35; font-weight: 700; }
.facts .hours, .facts .nowrap { white-space: nowrap; }
.facts .muted { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.facts a { display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; font-weight: 800; color: var(--choc); font-size: 16.5px; text-decoration: underline; text-underline-offset: 4px; }
.facts a + a { margin-top: -12px; }

/* ════════ BOX BAR ════════ */
.boxbar {
  position: fixed; z-index: 190;
  left: 50%; bottom: calc(var(--safe-b) + 14px);
  width: min(520px, calc(100% - 28px)); min-height: 66px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: var(--choc);
  color: var(--milk);
  box-shadow: 0 18px 36px rgba(43, 25, 17, .35);
  animation: barin .55s var(--spring);
}
@keyframes barin { from { transform: translate(-50%, 140%); } }
.boxbar-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--latte); color: var(--choc-dd); }
.boxbar-icon svg { width: 24px; height: 24px; }
.boxbar.is-bump .boxbar-icon { animation: cartpop .6s var(--spring); }
.boxbar-text { flex: 1; text-align: left; line-height: 1.15; }
.boxbar-text b { display: block; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 800; font-size: 20px; }
.boxbar-text span { font-size: 12.5px; font-weight: 700; color: var(--latte-l); }
.boxbar-total { font-weight: 800; font-size: 18px; }


/* ════════ SHEET ════════ */
.scrim { position: fixed; inset: 0; z-index: 300; background: rgba(43, 25, 17, .58); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 330; left: 0; right: 0; bottom: 0;
  max-height: 94svh; display: flex; flex-direction: column;
  background: var(--milk); border-radius: 28px 28px 0 0; overflow: hidden;
  animation: up .5s var(--spring);
}
@keyframes up { from { transform: translateY(100%); } }
.grab { display: none; }
.sheet > .x { position: absolute; top: 14px; right: 14px; z-index: 3; }
.sheet-stage {
  position: relative; flex-shrink: 0; height: 250px;
  display: grid; place-items: center; padding: 34px 20px 14px;
  background: radial-gradient(closest-side, var(--milk), var(--cream));
}
.sheet-stage img { max-height: 190px; max-width: 80%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(43, 25, 17, .3)); }
.mini-cloche { position: absolute; left: 50%; bottom: 22px; width: min(78%, 300px); height: 86%; transform: translateX(-50%); animation: lift 1s cubic-bezier(.5, 0, .3, 1) .2s forwards; pointer-events: none; }
@keyframes lift { to { transform: translate(-30%, -115%) rotate(-14deg); opacity: 0; } }
.sheet-body { overflow-y: auto; padding: 18px 20px 0; overscroll-behavior: contain; }
.sheet-name { font-family: var(--display); font-variation-settings: var(--soft); font-weight: 400; font-size: 40px; line-height: 1; margin-top: 6px; }
.sheet-desc { margin-top: 10px; color: var(--muted); }
.sheet-desc:empty { display: none; }
.choice { border: 0; margin-top: 18px; }
.choice legend { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--choc); margin-bottom: 10px; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px; text-align: left;
  min-height: 60px; padding: 8px 12px 8px 8px; border-radius: 16px;
  background: var(--cream);
  transition: box-shadow .2s, background-color .2s, transform .25s var(--spring);
}
.opt img { width: 40px; height: 44px; object-fit: contain; }
.opt .dot { width: 38px; height: 38px; border-radius: 50%; border: 2px dashed var(--latte-d); flex-shrink: 0; }
.opt b { display: block; font-size: 14px; line-height: 1.2; }
.opt small { font-size: 12.5px; color: var(--muted); }
.opt[aria-checked="true"] { background: var(--milk); box-shadow: inset 0 0 0 2.5px var(--choc); transform: scale(1.02); }
.sheet-foot {
  position: sticky; bottom: 0;
  display: flex; gap: 10px; align-items: center;
  margin: 20px -20px 0; padding: 14px 20px calc(var(--safe-sheet) + 14px);
  background: linear-gradient(180deg, rgba(255, 250, 245, 0), var(--milk) 30%);
}
.stepper { display: flex; align-items: center; height: 58px; border-radius: 999px; background: var(--cream); }
.stepper button { width: 46px; height: 58px; font-size: 22px; color: var(--choc); }
.stepper button:disabled { opacity: .3; }
.stepper output { min-width: 24px; text-align: center; font-weight: 800; font-size: 17px; }

/* ════════ MA BOÎTE ════════ */
.box {
  position: fixed; z-index: 330; left: 0; right: 0; bottom: 0;
  height: 92svh; display: flex; flex-direction: column;
  background: var(--milk);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .3);
  animation: up .55s var(--spring);
}
.box-head { display: flex; align-items: center; gap: 10px; padding: 18px 14px 10px 18px; }
.box-head h2 { flex: 1; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 400; font-size: 36px; line-height: 1; }
.box-scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 20px;
  background: radial-gradient(circle at 50% 120px, rgba(234, 215, 198, .35), transparent 300px);
}
.lines { list-style: none; }
.line { display: grid; grid-template-columns: 66px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1.5px dotted var(--latte); animation: fade .35s; }
.line-img { width: 66px; height: 66px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--latte-l); }
.line-img img { max-width: 54px; max-height: 54px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(43, 25, 17, .22)); }
.line-name { font-weight: 800; line-height: 1.25; }
.line-opt { font-size: 12.5px; color: var(--muted); }
.line .stepper { height: 44px; width: fit-content; margin-top: 6px; }
.line .stepper button { width: 44px; height: 44px; font-size: 20px; }
.line .stepper output { font-size: 14.5px; }
.line-price { font-family: var(--display); font-variation-settings: var(--soft); font-size: 21px; white-space: nowrap; }
.box-empty { text-align: center; padding: 50px 10px; display: grid; justify-items: center; gap: 8px; }
.box-empty p { font-family: var(--display); font-variation-settings: var(--soft); font-size: 32px; line-height: 1; }
.box-empty span { color: var(--muted); margin-bottom: 10px; }
.extra { margin-top: 18px; padding: 14px; border-radius: 20px; background: var(--cream); }
.extra p { font-family: var(--display); font-variation-settings: var(--soft); font-size: 22px; }
.extra-row { display: grid; grid-auto-flow: column; grid-auto-columns: 124px; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
.extra-row::-webkit-scrollbar { display: none; }
.xtra { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border-radius: 16px; background: var(--milk); text-align: center; }
.xtra img { height: 54px; width: auto; max-width: 100%; object-fit: contain; }
.xtra b { font-size: 12.5px; line-height: 1.2; }
.xtra small { font-size: 12px; color: var(--muted); }
.xtra button { margin-top: 4px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--choc); color: var(--milk); font-weight: 800; font-size: 12.5px; }

.sealed {   /* order summary at the top of the delivery step */
  display: flex; align-items: center; gap: 14px; margin-top: 4px;
  padding: 14px 16px; border-radius: 18px; background: var(--cream);
}
.sealed-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--choc); color: var(--milk); }
.sealed-icon svg { width: 24px; height: 24px; }
.sealed-text { display: grid; line-height: 1.3; }
.sealed-text b { font-family: var(--display); font-variation-settings: var(--soft); font-weight: 800; font-size: 20px; }
.sealed-text span { font-size: 14px; color: var(--muted); }
.sealed-text strong { color: var(--ink); font-weight: 800; }
.form-title { font-family: var(--display); font-variation-settings: var(--soft); font-weight: 400; font-size: 32px; margin-top: 22px; }
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 6px; }
.field input, .field select { width: 100%; height: 54px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--latte); background-color: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--choc) 50%), linear-gradient(135deg, var(--choc) 50%, transparent 50%);
  background-position: calc(100% - 23px) 50%, calc(100% - 17px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select:invalid { color: var(--muted); }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--choc); box-shadow: 0 0 0 4px rgba(111, 66, 45, .14); }
.field .err { display: none; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--choc); }
.field.is-bad .err { display: block; }
.field.is-bad input, .field.is-bad select { border-color: var(--choc); background-color: var(--cream); }
.pay-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
/* quand livrer ? two pills; "Plus tard" opens day chips + one-hour windows right below */
.when-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.when-pill {
  display: flex; align-items: center; gap: 9px; min-height: 62px; padding: 10px 11px; border-radius: 16px;
  background: var(--cream); text-align: left; color: var(--ink);
  transition: box-shadow .2s, background-color .2s, transform .25s var(--spring);
}
.when-pill svg { width: 22px; height: 22px; color: var(--choc); }
.when-pill b { display: block; font-size: 14.5px; line-height: 1.2; }
.when-pill small { display: block; font-size: 12px; line-height: 1.25; color: var(--muted); }
.when-pill[aria-checked="true"] { background: var(--milk); box-shadow: inset 0 0 0 2.5px var(--choc); }
.when-pill:disabled { opacity: .5; cursor: not-allowed; }
.when-note { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--choc); }
.when-later { display: grid; gap: 8px; margin-top: 14px; animation: fade .3s; }
.when-sub { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.when-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 6px; padding: 2px 14px 4px; }
.when-days::-webkit-scrollbar { display: none; }
.when-day {
  flex-shrink: 0; min-width: 76px; min-height: 56px; padding: 8px 12px; border-radius: 14px;
  display: grid; place-items: center; align-content: center; text-align: center; line-height: 1.15;
  background: var(--cream); color: var(--ink);
}
.when-day b { font-size: 14px; }
.when-day small { font-size: 12px; color: var(--muted); }
.when-day[aria-checked="true"] { background: var(--choc); color: var(--milk); }
.when-day[aria-checked="true"] small { color: var(--latte-l); }
.when-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.when-slot { min-height: 46px; border-radius: 12px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.when-slot[aria-checked="true"] { background: var(--choc); color: var(--milk); }
.when-hint { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.field.is-bad .when-pill { box-shadow: inset 0 0 0 1.5px var(--latte-d); }
@media (hover: none) { .when-pill:active, .when-day:active, .when-slot:active { transform: scale(.96); } }
.box-foot { padding: 12px 14px calc(var(--safe-sheet) + 14px); border-top: 1.5px dotted var(--latte); background: var(--milk); }
.box-fee { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.box-fee small { font-weight: 600; font-size: 12.5px; }
.box-fee b { color: var(--ink); font-weight: 800; }
.field .hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.box-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.box-total span { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.box-total b { font-family: var(--display); font-variation-settings: var(--soft); font-weight: 400; font-size: 36px; line-height: 1; }

/* toast never catches taps */
.toast {
  position: fixed; z-index: 400; left: 50%; top: calc(var(--nav-h) + 10px);
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--milk); font-weight: 600; font-size: 14.5px; text-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .4s var(--spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.flyer { position: fixed; z-index: 500; pointer-events: none; object-fit: contain; }


/* the sheet, the box and the bar are milk/latte panels: dark text inside, whatever the section colour */
.sheet, .box { color: var(--ink); }
.sheet-name, .box-head h2, .form-title, .box-total b, .line-price { font-family: var(--display); font-variation-settings: var(--soft); font-weight: 800; }
/* toast: just above the box bar; never catches taps */
.toast { top: auto !important; bottom: calc(var(--safe-b) + 92px); }
.toast.is-on { transform: translate(-50%, 0) !important; }
.flyer { position: fixed; z-index: 500; pointer-events: none; object-fit: contain; }

/* ════════ ≥ 600 ════════ */
@media (min-width: 600px) {
  .promise { grid-template-columns: repeat(4, auto); padding: 22px 32px; }
  .shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 18px; }
  .piece { --row-gap: 34px; }
  .piece-open { --ph: 190px; }
  .tent-name { font-size: 20px; }
  .gifts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sachets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ════════ ≥ 960 (desktop) ════════ */
@media (min-width: 960px) {
  :root { --nav-h: 80px; }
  .nav { padding: 0 32px; }
  .nav-logo { width: 56px; height: 56px; }
  .nav-logo img { width: 36px; }
  .nav-box { width: 54px; height: 54px; }
  .nav-links a { font-size: 19px; padding: 0 16px; }

  .hero { height: 100vh; max-height: none; }
  .hero video { object-position: 50% 32%; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(43, 25, 17, .85) 0%, rgba(43, 25, 17, .45) 40%, rgba(43, 25, 17, 0) 65%),
      linear-gradient(0deg, rgba(43, 25, 17, .6) 0%, rgba(43, 25, 17, 0) 30%);
  }
  .hero-copy { top: auto; bottom: 30vh; left: 6vw; right: auto; width: 54vw; padding: 0; }
  .hero-title { font-size: clamp(76px, 7.6vw, 150px); }
  .hero-foot { left: 6vw; right: auto; bottom: 7vh; width: min(620px, 50vw); padding: 0; }
  .btn-hero { width: auto; justify-self: start; padding: 0 2rem; }

  section > .sec-head, .semaine, .counter, .moods, .sachets, .gifts { max-width: 1180px; margin-left: auto; margin-right: auto; }
  .semaine { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; align-items: center; column-gap: 40px; padding: 90px 6vw 100px; max-width: none; }
  .semaine > .semaine-head, .semaine > .semaine-parts { grid-column: 1 / -1; }
  .semaine-badge { font-size: 14px; }
  .semaine-stage { height: 440px; margin: 0; }
  .semaine-stage img { max-height: 440px; }
  .semaine-buy { grid-template-columns: auto auto; justify-content: start; }
  .vitrine { padding: 70px 32px 100px; }
  .vitrine::before { left: 6vw; right: 6vw; }
  .moods { margin-top: 30px; padding: 0; }
  .counter { gap: 60px; margin-top: 40px; }
  .shelf-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 30px; }
  .piece { --row-gap: 48px; }
  .shelf-title { font-size: 42px; }
  .piece-open { --ph: 230px; }
  .piece:hover .piece-open img { transform: translateY(-8px) scale(1.04); }
  .tent { width: 76%; margin-top: -14px; }
  .bocal-sec { padding: 100px 32px 110px; }
  .sachets { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .noel { padding: 110px 32px 120px; }
  .gifts { gap: 20px; }
  .gift-img { height: 190px; }
  .footer { padding: 90px 32px 64px; }
  .facts { max-width: 980px; }

  .sheet { left: 50%; top: 50%; right: auto; bottom: auto; width: min(920px, calc(100% - 64px)); max-height: min(660px, calc(100svh - 64px)); transform: translate(-50%, -50%); flex-direction: row; border-radius: 30px; animation: pop .5s var(--spring); }
  @keyframes pop { from { transform: translate(-50%, -46%) scale(.94); opacity: 0; } }
  .sheet-stage { width: 46%; height: auto; }
  .sheet-stage img { max-height: min(420px, calc(100svh - 200px)); }
  .mini-cloche { bottom: 18%; height: 66%; }
  .sheet-body { flex: 1; padding: 46px 36px 0; display: flex; flex-direction: column; }
  .sheet-name { font-size: 52px; }
  .sheet-foot { margin: auto -36px 0; padding: 20px 36px 28px; }

  .box { left: auto; right: 24px; bottom: 0; width: 470px; height: min(88svh, 820px); }
}

/* ════════ PHONES (< 960 px) — the main screen ════════ */
@media (max-width: 959px) {
  section[id] { scroll-margin-top: calc(var(--nav-h) + 6px); }
  .nav-links a { padding: 0 9px; font-size: 16px; }
  /* bottom sheets: grab handle, swipe down to close */
  .grab {
    display: block; position: absolute; z-index: 4; top: 8px; left: 50%;
    width: 44px; height: 5px; margin-left: -22px; border-radius: 3px;
    background: rgba(43, 25, 17, .22);
  }
  .box .grab { top: 4px; }
  .sheet .sheet-stage, .sheet .grab, .box .box-head, .box .grab { touch-action: none; }
  .sheet.is-dragging, .box.is-dragging { transition: none; animation: none; }
  .sheet.is-settling, .box.is-settling { transition: transform .3s var(--ease); }
  /* product sheet: everything (photo, text, glaçage choices, button) fits on one phone screen.
     The sheet may use the whole visible height; the photo area shrinks first (flex-shrink 100),
     from 250 px down to 120 px, before the text would ever need to scroll. */
  .sheet { max-height: calc(100svh - 12px); max-height: calc(100dvh - 12px); }
  .sheet-stage { flex: 0 100 250px; min-height: 120px; height: auto; padding: 0; }
  .sheet-stage img {
    position: absolute; left: 20px; top: 28px; width: calc(100% - 40px); height: calc(100% - 40px);
    max-width: none; max-height: none; object-fit: contain;
  }
  .sheet-body { flex: 0 1 auto; min-height: 0; }
  .sheet-body { padding-top: 12px; }
  .sheet-name { font-size: 31px; margin-top: 4px; }
  .sheet-desc { margin-top: 6px; font-size: 15px; line-height: 1.45; }
  .choice { margin-top: 12px; }
  .choice legend { margin-bottom: 8px; }
  .opt { min-height: 52px; padding: 6px 10px 6px 6px; gap: 8px; }
  .opt img { width: 32px; height: 38px; }
  .opt .dot { width: 32px; height: 32px; }
  .sheet-foot { margin-top: 12px; padding-top: 10px; padding-bottom: calc(var(--safe-sheet) + 12px); }
}
/* very short phone screens: slightly tighter text */
@media (max-width: 959px) and (max-height: 600px) {
  .sheet-name { font-size: 28px; }
  .sheet-desc { font-size: 14px; line-height: 1.4; }
  .opt { min-height: 46px; }
}
@media (max-width: 370px) {
  .nav-links a { padding: 0 6px; font-size: 15px; }
  .piece .note { font-size: 18px; }   /* keeps "sur commande, 48h" on one line above the cake */
  .piece .note-2 { top: -30px; font-size: 15.5px; }
}

/* iPhone Safari (iOS 26), measured on Moe's phone 2026-11-23: the toolbar, full or collapsed to its
   pill, sits BELOW the page viewport and never covers it (full: viewport = svh = 736; collapsed:
   viewport = lvh = 836, pill underneath). So no extra bottom reserve: --safe-b / --safe-sheet are
   just the home-indicator inset, and sheets size with dvh. Re-measure with a probe page before
   adding a reserve back. */

/* touch screens: no "stuck" hover after a tap, a press instead */
@media (hover: none) {
  .btn-choc:hover { background: var(--choc); }
  .btn-latte:hover { background: var(--latte); }
  .btn-snow:hover { background: var(--milk); }
  .piece-open:active img, .gift-open:active img, .sachet-open:active img { transform: scale(.96); transition-duration: .1s; }
  .tent-add:active, .xtra button:active { transform: scale(.9); transition: transform .1s; }
  .moods button:active, .opt:active { transform: scale(.96); }
}

/* ════════ reduced motion ════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Baked shadows (Moe 2026-11-26) ──────────────────────────────────────────────────────────────
   In the grids the photo is <id>-sh(-sm).webp: the same picture with its drop shadow painted in, on a
   canvas grown by the shadow (sides + bottom). iPhone Safari drew the old CSS drop-shadow filter as dark
   rectangles for many seconds while the page loaded; a painted shadow is right from the first frame and
   costs the phone nothing. Each img carries --sx / --sy (how much wider / taller the file is) and --ty
   (the bottom padding, % of its height): the size limits are scaled by them, symmetric negative margins
   keep it centred, and `translate` drops the padding below the line, so the CAKE sits exactly where the
   plain photo stood (rows still line up). `translate` composes with the hover/press `transform`. */
.piece-open img.sh, .sachet img.sh, .gift-img img.sh, .semaine-stage img.sh { filter: none; margin-inline: -30%; translate: 0 var(--ty); }
.piece-open img.sh { max-width: calc(100% * var(--sx)); max-height: calc(var(--ph) * var(--sy)); margin-top: calc(var(--ph) * (1 - var(--sy))); }   /* never taller than its slot, or the grid top-aligns it */
.piece[data-id="cake-decore"] .piece-open img.sh, .piece.boxed .piece-open img.sh { margin-top: 0; }
.piece[data-id="cake-decore"] .piece-open img.sh { max-height: none; width: calc(min(100%, calc(var(--ph) * 1000 / 934)) * var(--sx)); }
.piece.boxed .piece-open img.sh { max-height: none; width: calc(min(100%, calc(var(--ph) * 1080 / 934)) * var(--sx)); }
.sachet img.sh { height: calc(96px * var(--sy)); }
.gift-img img.sh { max-height: calc(100% * var(--sy)); max-width: calc(100% * var(--sx)); }
.semaine-stage img.sh { max-width: calc(92% * var(--sx)); max-height: calc(290px * var(--sy)); translate: none; margin-bottom: calc(290px * (1 - var(--sy))); }
/* ^ the painted shadow hangs BELOW the stage (negative margin) instead of making the photo taller than the stage:
     taller = the grid top-aligns it and the cake slid 32 px down over its name (Moe 2026-11-26). */
@media (min-width: 960px) { .semaine-stage img.sh { max-height: calc(440px * var(--sy)); margin-bottom: calc(440px * (1 - var(--sy))); } }
.semaine-stage, #cakes, #biscuits, #noel { overflow-x: clip; }   /* the painted shadow's transparent sides must not widen the page (320 px phones) */

/* No focus outline on the item photos, for anyone (Moe 2026-11-26): closing a sheet hands focus back to
   the photo that opened it, and Safari drew a brown square around it until the next tap. */
.piece-open:focus, .piece-open:focus-visible, .sachet-open:focus, .sachet-open:focus-visible,
.gift-open:focus, .gift-open:focus-visible { outline: none; }

/* Noël not orderable yet (NOEL_OPEN = false in app.js): same buttons, greyed out, no tap feedback. */
.gift .btn:disabled, #sheetAdd:disabled { background: #D9D2CC; color: #8C827B; box-shadow: none; cursor: not-allowed; transform: none; }

/* ── Coffrets cadeaux (Moe 2026-11-26) ── biscuits for gifting, their own row under the barquettes, same
   section. A milk card with a gold ribbon band + bow; the photo (baked shadow, shared 1000x1000 canvas, so all
   three stand the same height) sits on the line like the cakes. Phones: one wide card per line (photo left,
   text right) so long names stay readable; >= 600 px: three across. */
.coffrets-wrap { margin-top: 44px; }
.coffrets-lede { margin: -8px 6px 18px; color: var(--muted); font-size: 15px; }
.coffrets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.coffret {
  position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: end; gap: 6px 14px;
  padding: 26px 16px 16px; border-radius: 20px; background: linear-gradient(180deg, var(--milk), #FBF3EA);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 26px rgba(111, 66, 45, .12), 0 0 0 1px rgba(201, 162, 90, .28);
  overflow: hidden;
}
.coffret::before {   /* the gold ribbon band */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: linear-gradient(90deg, #B8893F, #E9C979 30%, #C9A25A 55%, #F1D99A 75%, #B8893F);
}
.coffret-bow { position: absolute; top: 1px; left: 50%; width: 46px; height: 27px; translate: -50% 0; pointer-events: none; }
.coffret-bow svg { width: 100%; height: 100%; fill: #D9B461; stroke: #A87C33; stroke-width: 1.4; stroke-linejoin: round; }
.coffret-bow path:nth-child(2) { fill: none; stroke-width: 3; stroke: #C9A25A; stroke-linecap: round; }
.coffret-open { --ph: 128px; position: relative; display: block; height: var(--ph); width: 100%; }
.coffret-open img { position: absolute; left: 50%; bottom: 0; height: var(--ph); width: auto; max-width: none; translate: -50% 0; }
/* painted-shadow copy: pinned bottom-centre at a FIXED height (the slot x sy), so the coffret itself is exactly the
   slot's height and stands on its line; flex/grid centring resized or nudged it in WebKit */
.coffret-open img.sh { height: calc(var(--ph) * var(--sy)); translate: -50% var(--ty); }
.coffret-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 2px; }
.coffret-name { font-family: var(--display); font-variation-settings: var(--soft); font-weight: 800; font-size: 19px; line-height: 1.12; color: var(--ink); }
.coffret-price { font-weight: 800; font-size: 16px; color: var(--choc); }
.coffret .btn { margin-top: 4px; min-height: 44px; padding: 0 18px; font-size: 14px; }
.coffret-qty { position: absolute; top: 16px; right: 12px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--choc); color: var(--milk); font-size: 12px; font-weight: 800; line-height: 26px; text-align: center; }
.coffret-open:active img { transform: scale(.96); transform-origin: 50% 100%; transition-duration: .1s; }
.coffret-open:focus, .coffret-open:focus-visible { outline: none; }
@media (min-width: 600px) {
  .coffrets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .coffret { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; justify-items: center; text-align: center; padding: 34px 16px 18px; row-gap: 18px; }
  .coffret-open { --ph: 170px; }
  .coffret-text { align-items: center; justify-content: flex-end; height: 100%; }
}
@media (min-width: 960px) {
  .coffrets-wrap { max-width: 1180px; margin-left: auto; margin-right: auto; }
  .coffrets { max-width: 900px; margin: 0 auto; gap: 24px; }
  .coffret-open { --ph: 190px; }
}

/* ── Evening notice (Moe 2026-11-26) ── 20h00–21h30 Dakar, Mon–Sat: online orders are over, call for the cakes left.
   The week badge's yellow, chocolate text; a floating pill just under the top bar that stays while scrolling, above
   the page (nav 200) but under the scrim / sheets / cart (300+), so it never covers an open panel. */
.lastcall {
  position: fixed; z-index: 199; left: 50%; translate: -50% 0;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 10px);
  width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px;
  border-radius: 22px; background: #F7C631; color: var(--choc-dd);
  box-shadow: 0 10px 26px rgba(43, 25, 17, .22), 0 1px 0 rgba(255, 255, 255, .5) inset;
  animation: lastcall-in .45s var(--spring) both;
}
.lastcall[hidden] { display: none; }
.lastcall-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--choc); display: grid; place-items: center; }
.lastcall-icon svg { width: 18px; height: 18px; fill: none; stroke: #F7C631; stroke-width: 2; stroke-linejoin: round; }
.lastcall-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.lastcall-text b { display: block; font-size: 14px; font-weight: 800; }
.lastcall-text a { font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.lastcall-x { flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--choc-dd); background: rgba(111, 66, 45, .1); }
.lastcall-x:active { transform: scale(.92); }
@keyframes lastcall-in { from { opacity: 0; translate: -50% -12px; } to { opacity: 1; translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .lastcall { animation: none; } }
@media (min-width: 960px) { .lastcall { top: calc(var(--nav-h) + 12px); width: min(700px, calc(100% - 48px)); padding: 12px 10px 12px 14px; } .lastcall-text { font-size: 14px; } .lastcall-text b { font-size: 15px; } }
@media (max-width: 370px) { .lastcall-icon { display: none; } .lastcall-text { font-size: 12.5px; } .lastcall-text b { font-size: 13.5px; } .lastcall { padding-left: 14px; } }
