/* ============================================================
   SERRA DI FALCO — Pizza al forno
   ============================================================ */

@font-face {
  font-family: "Comic Sidekick Rough";
  src: url("fonts/ComicSidekickRough.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Palette Serradifalco ───────────────────────────────── */
  --green:        #138A0A;
  --green-deep:   #0C6A06;
  --green-soft:   #5AB552;
  --red:          #E42E1A;
  --yellow:       #FBE500;
  --pink:         #F9BCC8;
  --blue:         #0E94D6;
  --rouge-profond:#9A1208;
  --cream:        #EFEAD7;
  --cream-warm:   #E6DFCA;
  --cream-deep:   #D8CEAF;
  --ink:          #141210;
  --ink-deep:     #0D0B0A;
  --ink-soft:     #4A2E28;
  --ink-mute:     #8B6B60;
  --line:         rgba(154, 18, 8, 0.14);
  --line-soft:    rgba(154, 18, 8, 0.07);

  /* Opacity variants */
  --cream-85: rgba(239, 234, 215, 0.85);
  --cream-75: rgba(239, 234, 215, 0.75);
  --cream-55: rgba(239, 234, 215, 0.55);
  --cream-50: rgba(239, 234, 215, 0.50);
  --cream-12: rgba(239, 234, 215, 0.12);
  --cream-10: rgba(239, 234, 215, 0.10);

  /* ── Legacy aliases — map old names to new palette ──────── */
  --terracotta:      var(--rouge-profond);
  --terracotta-deep: #7A0E06;
  --terracotta-soft: var(--yellow);
  --sage:            var(--green);
  --sage-deep:       var(--green-deep);
  --sage-soft:       var(--green-soft);
  --terracotta-10:   rgba(154, 18, 8, 0.10);
  --sage-15:         rgba(19, 138, 10, 0.15);
  --sage-40:         rgba(19, 138, 10, 0.40);

  /* ── Type ─────────────────────────────────────────────────  */
  --display: "Comic Sidekick Rough", "Georgia", serif;
  --body:    "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --mono:    "Space Grotesk", ui-monospace, Menlo, monospace;

  /* Spacing rhythm */
  --pad-x: clamp(20px, 4vw, 64px);
  --section: clamp(72px, 9vw, 140px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ─────────── Reusable ─────────── */
.shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}

.italic { font-style: italic; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--rouge-profond);
  color: var(--yellow);
  border: 2px solid var(--rouge-profond);
}
.btn-primary:hover { background: #7A0E06; }
/* Bouton « Commander » du header : couleurs configurables (site.cta_bg /
   site.cta_text), repli sur la charte. Cible uniquement le CTA, pas les autres
   boutons primaires. */
.btn-primary.header-cta {
  background: var(--cta-bg, var(--rouge-profond));
  color: var(--cta-text, var(--yellow));
  border-color: var(--cta-bg, var(--rouge-profond));
}
.btn-primary.header-cta:hover {
  background: var(--cta-bg, var(--rouge-profond));
  filter: brightness(0.9);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}
.btn-ink:hover { background: var(--ink-deep); }

/* ─────────── Topbar ─────────── */
.topbar {
  background: var(--red);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.topbar .pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(251, 229, 0, 0.7);
  animation: pulse 2s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251, 229, 0, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(251, 229, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 229, 0, 0); }
}
.topbar-marquee {
  display: flex;
  gap: 36px;
  opacity: 0.8;
}

/* ─────────── Header ─────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg, var(--green));
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--nav-border, rgba(0,0,0,0.15));
  will-change: transform;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
}
.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--nav-text, rgba(239,234,215,0.65));
  transition: color .2s ease;
}
.nav a:hover { color: var(--nav-text-hover, var(--cream)); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--nav-underline, var(--yellow));
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
}
.brand img { height: 56px; width: auto; }

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(239, 234, 215, 0.15);
  color: var(--nav-text, var(--cream));
  transition: background .2s ease;
}
.cart-button:hover { background: rgba(239, 234, 215, 0.25); }
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--yellow);
  color: var(--rouge-profond);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green);
}

/* ─────────── Bande de séparation header / hero (damier bleu & blanc) ─────────── */
/* Bande damier rattachée au header : reste affichée au scroll avec lui */
.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
  /* Une seule rangée de carreaux 16px, bleu & crème alternés */
  background-image: repeating-linear-gradient(90deg, #1B3A6B 0 16px, var(--cream) 16px 32px);
  background-repeat: repeat-x;
}

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  background: var(--yellow);
  padding-top: 60px;
  padding-bottom: var(--section);
  overflow: hidden;
}

/* Animated confetti background */
.hero-confetti-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-confetti-svg {
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  animation: confetti-drift 28s linear infinite;
  will-change: transform;
}
@keyframes confetti-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-18%, -18%); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 40px;
  align-items: center;
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 360px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-eyebrow .dash {
  width: 36px; height: 2px;
  background: var(--rouge-profond);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(52px, 7.5vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--rouge-profond);
  margin-bottom: 24px;
}
.hero h1 .accent {
  color: var(--red);
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 2%; right: 2%;
  bottom: 0.06em;
  height: 7px;
  background: var(--green);
  border-radius: 4px;
  opacity: .7;
  z-index: -1;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(154, 18, 8, 0.75);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 24px;
}
.hero-stat .num {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  color: var(--rouge-profond);
  line-height: 1;
}
.hero-stat .num em {
  color: var(--red);
  font-style: normal;
}
.hero-stat .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(154, 18, 8, 0.55);
  margin-top: 6px;
  font-weight: 600;
}

/* ── Animated mascot ── */
.hero-mascot {
  position: relative;
  width: 100%;
  aspect-ratio: 631 / 662;
  z-index: 3;
  overflow: visible;
}
.mascot-burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 48.9% 45.9%;
  animation: mascot-spin 42s linear infinite;
  will-change: transform;
}
.mascot-char {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}
@keyframes mascot-spin {
  from { transform: scale(1.18) rotate(0deg); }
  to   { transform: scale(1.18) rotate(360deg); }
}
/* Desktop : on aligne le HAUT du logo sur le haut du texte. Comme le personnage
   occupe la partie basse du PNG, il se retrouve au niveau du titre. */
@media (min-width: 901px) {
  .hero-mascot { align-self: start; transform: translateY(-140px); }
}

/* Legacy hero-visual (kept for config compatibility) */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
}
.hero-img-dome {
  position: absolute;
  inset: 0;
  border-radius: 200px 200px 22px 22px;
  overflow: hidden;
}
.hero-img-dome img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual image-slot {
  position: absolute;
  inset: 0;
  border-radius: 200px 200px 22px 22px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-badge {
  position: absolute;
  top: 8%; right: -6%;
  width: 144px; height: 144px;
  border-radius: 50%;
  background: var(--rouge-profond);
  color: var(--cream);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.2;
  transform: rotate(-8deg);
  z-index: 2;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.35);
}
.hero-badge .num {
  font-size: 38px;
  display: block;
  color: var(--yellow);
}
.hero-fire {
  position: absolute;
  bottom: -4%; left: -8%;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
  padding: 12px;
}

/* hero-deco hidden — replaced by confetti background */
.hero-deco { display: none; }

/* ─────────── Pizza du moment ─────────── */
.momento {
  padding: clamp(48px, 7vw, 100px) 0 clamp(48px, 6vw, 80px);
  position: relative;
}
.momento-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 40px 80px -40px rgba(154, 85, 63, 0.5);
  /* Légèrement réduit pour ne pas déborder + léger espacement des bords */
  width: 95%;
  margin-inline: auto;
}
@media (max-width: 820px) {
  .momento-card { grid-template-columns: 1fr; min-height: 0; }
}
.momento-card::after {
  content: 'm';
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(380px, 42vw, 600px);
  line-height: 0.8;
  color: var(--terracotta);
  opacity: 0.1;
  right: -6%;
  bottom: -28%;
  pointer-events: none;
  z-index: 0;
}
.momento-visual {
  position: relative;
  min-height: 380px;
  z-index: 1;
}
/* ORIGINAL: background: var(--terracotta-deep); — restaurer si besoin */
.momento-visual image-slot {
  width: 100%;
  height: 100%;
  background: var(--cream);
}
/* Cadre damier bleu/crème — option B */
.momento-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  /* 4 bandes : haut/bas = damier horizontal, gauche/droite = damier vertical */
  background-image:
    repeating-linear-gradient(90deg, #1B3A6B 0 8px, var(--cream) 8px 16px),
    repeating-linear-gradient(90deg, #1B3A6B 0 8px, var(--cream) 8px 16px),
    repeating-linear-gradient(0deg,  #1B3A6B 0 8px, var(--cream) 8px 16px),
    repeating-linear-gradient(0deg,  #1B3A6B 0 8px, var(--cream) 8px 16px);
  background-size: 100% 8px, 100% 8px, 8px 100%, 8px 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 3;
}
.momento-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(26, 22, 20, 0.4));
  pointer-events: none;
}
.momento-stamp {
  position: absolute;
  top: 22px; left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}
.momento-stamp .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: pulse 2s infinite;
}
.momento-body {
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2; /* au-dessus du visuel gauche pour que le brush déborde sur le damier */
}
/* Brush en calque positionné : il déborde de sa case (surtout vers la gauche,
   par-dessus le damier) sans être rogné par le cadre. Ses bords frangés restent
   visibles → effet pinceau + débordement. Le texte reste au-dessus (z-index auto). */
.momento-body::before {
  content: '';
  position: absolute;
  /* Haut/droite/bas : on pousse les franges au-delà du bord (rognées par le
     cadre) → le vert plein atteint le bord, plus de noir dans les creux.
     Gauche : débordement modéré sur le damier, frange visible sur la crème. */
  top: -12%;
  right: -12%;
  bottom: -12%;
  left: -9%;
  background: url('assets/brush-frame-green-fill.png') center/100% 100% no-repeat;
  z-index: -1;
  pointer-events: none;
}
.momento-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--terracotta-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.momento-eyebrow .dash {
  width: 28px; height: 1px;
  background: var(--terracotta-soft);
}
.momento-name {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  color: var(--cream);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.momento-name .accent { color: var(--terracotta-soft); }
.momento-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-75);
  max-width: 440px;
  margin-bottom: 28px;
}
.momento-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: baseline;
  padding-top: 24px;
  border-top: 1px solid var(--cream-12);
}
.momento-price {
  font-family: var(--display);
  font-size: 38px;
  color: var(--terracotta-soft);
  font-style: italic;
  line-height: 1;
}
.momento-season {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-55);
}
.momento-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, transform .15s;
}
.momento-cta:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-1px);
}

/* badge variant for the "momento" pizza tag */
.pizza-tag.momento {
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
}
/* ─────────── Marquee ─────────── */
.marquee {
  background: var(--rouge-profond);
  color: var(--yellow);
  padding: 22px 0;
  overflow: hidden;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────── Story ─────────── */
.story {
  padding-top: var(--section);
  padding-bottom: var(--section);
  position: relative;
}
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
}
.story h2 {
  font-size: clamp(42px, 5.4vw, 80px);
  margin: 20px 0 28px;
}
.story h2 em {
  color: var(--terracotta);
  font-style: italic;
}
.story p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 520px;
}
.story-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.pillar {
  background: var(--cream-warm);
  border-radius: 18px;
  padding: 22px 20px;
}
.pillar .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--terracotta);
}
.pillar .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 4px 0 10px;
}
.pillar .text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.story-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 1.05;
}
.story-visual image-slot { width: 100%; height: 100%; }
.story-visual .v1 { grid-row: 1 / 3; border-radius: 200px 200px 22px 22px; overflow: hidden; }
.story-visual .v2 { border-radius: 22px; overflow: hidden; }
.story-visual .v3 { border-radius: 22px 22px 22px 80px; overflow: hidden; }

/* ─────────── Story v2 — Crème + Mascotte ─────────── */
.story-v2 {
  padding-top: var(--section);
  padding-bottom: var(--section);
  background: var(--story-bg, var(--cream));
}
.story-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-v2 .eyebrow { margin-bottom: 18px; }
.story-v2 h2 {
  font-size: clamp(42px, 5.4vw, 80px);
  margin: 0 0 28px;
}
.story-v2 h2 em { color: var(--terracotta); font-style: italic; }
.story-v2 p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 500px;
}
.story-v2-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line-soft);
}
.story-v2-pillar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.story-v2-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  color: var(--terracotta);
  min-width: 64px;
  line-height: 1;
}
.story-v2-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.story-v2-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* mascot composition */
.story-v2-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-mascot-wrap {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-gesto {
  width: 82%;
  height: 82%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 32px rgba(154, 18, 8, 0.12));
}

@media (max-width: 900px) {
  .story-v2-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-v2-right { display: none; }
  .story-mascot-wrap { width: 280px; height: 280px; }
}

/* ─────────── Order section / Menu ─────────── */
.order {
  padding: var(--section) 0;
  background: var(--menu-bg, var(--cream-warm));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}
.order-head h2 {
  font-size: clamp(42px, 5.4vw, 80px);
  margin-top: 12px;
  max-width: 720px;
}
.order-head h2 em { color: var(--terracotta); font-style: italic; }
.order-mode {
  display: inline-flex;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  position: relative;
}
.order-mode button {
  position: relative;
  z-index: 1;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.order-mode button.active { color: var(--cream); }
.order-mode .pill {
  position: absolute;
  top: 5px; bottom: 5px;
  background: var(--ink);
  border-radius: 999px;
  transition: left .25s cubic-bezier(.4,0,.2,1), width .25s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}

.menu-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.menu-tab {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}
.menu-tab .count {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 0.06em;
}
.menu-tab:hover { background: var(--cream); }
.menu-tab.active {
  background: var(--ink);
  color: var(--cream);
}
.menu-tab.active .count { opacity: 0.7; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

/* dense mode */
.menu-grid.dense {
  grid-template-columns: 1fr;
  gap: 0;
}
.menu-grid.dense .pizza-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 8px;
}
.menu-grid.dense .pizza-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  aspect-ratio: 1;
}
.menu-grid.dense .pizza-img image-slot {
  border-radius: 50%;
}
.menu-grid.dense .pizza-info { padding: 0; }
.menu-grid.dense .pizza-meta { display: none; }
.menu-grid.dense .pizza-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pizza-card {
  position: relative;
  background: var(--cream);
  /* Cadre pointille configurable (cards.dashed) sur TOUTES les cartes,
     avec ou sans photo. */
  border: 1.5px dashed var(--card-dashed, var(--terracotta-soft));
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, border-color .25s ease, transform .28s cubic-bezier(.3,1,.4,1);
}
.pizza-card:hover {
  border-color: var(--card-dashed, var(--terracotta));
  box-shadow: 0 28px 56px -20px rgba(154, 85, 63, 0.4);
  transform: translateY(-6px);
}
/* On masque le cadre interne de la zone photo (il etait rogne aux angles
   par les coins arrondis de la carte) : le cadre de la carte fait le tour. */
.pizza-card.no-photo .pizza-img image-slot::part(ring) {
  display: none;
}
.pizza-img {
  position: relative;
  aspect-ratio: 16/11;
  background: var(--cream-warm);
  overflow: hidden;
}
.pizza-img image-slot {
  width: 100%; height: 100%;
}
.pizza-tags {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 1;
}
.pizza-tag {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pizza-tag.veggie { background: var(--sage-deep); }
.pizza-tag.spicy { background: var(--terracotta-deep); }
.pizza-tag.signature { background: var(--ink); }

.pizza-info {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pizza-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.pizza-name .price {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  color: var(--terracotta-deep);
  white-space: nowrap;
}
.pizza-meta {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.pizza-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.pizza-pricetag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease, transform .15s ease;
}
.add-btn:hover { background: var(--terracotta); }
.add-btn:active { transform: scale(0.96); }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  height: 40px;
  overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 40px;
  color: var(--cream);
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: background .15s ease;
}
.qty-stepper button:hover { background: rgba(255,255,255,0.12); }
.qty-stepper .v {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ─────────── Process ─────────── */
.process {
  padding-top: var(--section);
  padding-bottom: var(--section);
  background: var(--process-bg, var(--cream));
}
.process h2 {
  font-size: clamp(42px, 5.4vw, 76px);
  text-align: center;
  margin-bottom: 16px;
}
.process h2 em { color: var(--terracotta); font-style: italic; }
.process .sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 60px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
.step {
  position: relative;
  padding: 32px 4px 0;
}
.step .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 64px;
  color: var(--terracotta);
  opacity: .5;
  line-height: 1;
}
.step .name {
  font-family: var(--display);
  font-size: 24px;
  margin: 14px 0 8px;
}
.step .text {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 240px;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 1px;
  background: var(--terracotta);
}

/* ─────────── Footer / contact ─────────── */
.footer {
  background: var(--footer-bg, var(--green-deep));
  color: var(--footer-text, var(--cream));
  padding: var(--section) 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand .wordmark {
  font-family: var(--display);
  font-size: 52px;
  line-height: 0.9;
  color: var(--footer-accent, var(--yellow));
}
.footer-brand .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-text, var(--cream));
  opacity: 0.6;
}
.footer-col h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-accent, var(--yellow));
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--terracotta-soft); }

.hours-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.hours-line .day { opacity: 0.7; }
.hours-line.closed .time { color: var(--terracotta-soft); }

.footer-bottom {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--footer-border, var(--cream-10));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-legal-links a {
  color: inherit;
  text-decoration: none;
}
.footer-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─────────── Cart Drawer ─────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 20, 0.45);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(440px, 100vw);
  background: var(--cream);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -30px 0 60px -20px rgba(0,0,0,0.25);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-head h3 {
  font-size: 26px;
  font-family: var(--display);
}
.drawer-head .close {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream-warm);
}
.drawer-head .close:hover { background: var(--cream-deep); }

.drawer-mode {
  padding: 16px 26px 0;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 26px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.cart-empty .icon {
  font-family: var(--display);
  font-style: italic;
  font-size: 60px;
  color: var(--terracotta);
  opacity: 0.5;
  margin-bottom: 12px;
}
.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-line .thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--cream-warm);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
  font-size: 22px;
}
.cart-line .name {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
  margin-bottom: 2px;
}
.cart-line .sub {
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.cart-line .right {
  text-align: right;
}
.cart-line .price {
  font-weight: 700;
  font-size: 14px;
}
.cart-line .qbtns {
  display: inline-flex;
  margin-top: 6px;
  background: var(--cream-warm);
  border-radius: 999px;
  align-items: center;
  font-size: 12px;
}
.cart-line .qbtns button {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-size: 14px;
}
.cart-line .qbtns .v {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.drawer-foot {
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line-soft);
  background: var(--cream-warm);
}
.totals {
  display: grid;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.totals .row {
  display: flex;
  justify-content: space-between;
}
.totals .row.total {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.totals .row.total .v { color: var(--terracotta-deep); }

.checkout-btn {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s ease;
}
.checkout-btn:hover { background: var(--rouge-profond); }
.checkout-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--ink);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 200;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.3);
}
.toast.show { transform: translate(-50%, 0); }
.toast .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

/* image-slot styling: stripe placeholder feel */
image-slot {
  --is-bg: var(--cream-warm);
  --is-fg: var(--terracotta);
  --is-border: transparent;
  background: var(--cream-warm);
  display: block;
}

/* ─────────── Responsive: Mobile-first additions ─────────── */

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(239, 234, 215, 0.15);
  padding: 0 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
}

/* Header CTA — hide on small screens */
@media (max-width: 768px) {
  /* Layout mobile : [☰] .... [Logo] .... [👤 🛒] */
  .header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
  }
  .hamburger {
    display: flex;
    flex-shrink: 0;
    order: 0;
  }
  .brand {
    order: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-self: unset;
  }
  .nav { display: none; }
  .header-actions {
    order: 2;
    margin-left: auto;
    justify-content: flex-end;
  }
  .header-cta { display: none; }

  /* Mobile dropdown nav */
  .mobile-nav {
    display: flex;
    flex-direction: column;
    background: var(--green-deep);
    border-top: 1px solid rgba(239,234,215,0.15);
    padding: 16px var(--pad-x) 24px;
    gap: 4px;
    box-shadow: 0 12px 32px -12px rgba(0,0,0,0.3);
  }
  .mobile-nav a {
    display: block;
    padding: 13px 16px;
    font-size: 17px;
    font-weight: 500;
    color: var(--cream);
    border-radius: 10px;
    transition: background .15s;
  }
  .mobile-nav a:hover { background: rgba(239,234,215,0.1); }
  .mobile-nav a:active { background: rgba(239,234,215,0.18); }
  .mobile-nav-account {
    margin-top: 12px;
    border-top: 1px solid rgba(239,234,215,0.15);
    padding-top: 16px !important;
    color: var(--yellow) !important;
    font-family: var(--mono);
    font-size: 12px !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  /* Topbar: keep only status on mobile */
  .topbar-inner { justify-content: center; }
  .topbar-marquee { display: none; }
  .topbar-inner > div:last-child { display: none; }

  /* Grand bandeau défilant : inutile sur mobile, prend de la place */
  .marquee { display: none; }

  /* Hero: tighten on small screens */
  .hero h1 { font-size: clamp(44px, 12vw, 80px); }

  /* Momento: stack vertically */
  .momento-card { min-height: 0; }
  .momento-visual { min-height: 280px; }

  /* Story pillars: 1 column on phone */
  .story-pillars { grid-template-columns: 1fr; gap: 10px; }

  /* Process steps: 1 column on phone */
  .steps { grid-template-columns: 1fr !important; }
  .step .text { max-width: 100%; }

  /* Menu tabs: horizontal scroll instead of wrap */
  .menu-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 16px;
    margin-bottom: 24px;
  }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tab { flex-shrink: 0; }

  /* Pizza cards: colonnes configurables via admin (mobile.menu_cols) */
  .menu-grid { grid-template-columns: repeat(var(--mobile-cols, 1), 1fr); }

  /* ── Suppléments — styles communs ── */
  .supp-below, .supp-above, .supp-inline {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-mute);
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .supp-below  { margin-top: 8px; }
  .supp-above  { min-height: 18px; margin-bottom: 6px; font-size: 10px; }
  .supp-inline { white-space: nowrap; font-size: 9px; }

  /* Badge sur photo (option D) */
  .supp-photo-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: .05em;
  }
  .supp-photo-badge::before { content: '+'; }

  /* Cartes compactes en mode 2+ colonnes */
  .menu-multi .pizza-card  { border-radius: 14px; }
  .menu-multi .pizza-img   { aspect-ratio: 1/1; }
  .menu-multi .pizza-tags  { top: 8px; left: 8px; right: 8px; gap: 4px; }
  .menu-multi .pizza-tag   { font-size: 8px; padding: 3px 7px; }
  .menu-multi .pizza-info  { padding: 10px 12px 12px; }
  .menu-multi .pizza-name  { font-size: 14px; gap: 2px; margin-bottom: 4px; flex-direction: column; align-items: flex-start; }
  .menu-multi .pizza-name .price { font-size: 13px; align-self: flex-start; }
  .menu-multi .pizza-meta  { font-size: 11px; margin-bottom: 10px; }
  .menu-multi .pizza-pricetag { display: none; }
  .menu-multi .pizza-actions { gap: 6px; }
  .menu-multi .add-btn     { height: 34px; padding: 0 12px; font-size: 12px; gap: 5px; }
  .menu-multi .qty-stepper { gap: 6px; }
  .menu-multi .qty-stepper button { width: 28px; height: 28px; font-size: 12px; }
  .menu-multi .qty-stepper .v { font-size: 14px; min-width: 18px; }

  /* Suppléments en mode multi-colonnes */
  .menu-multi .supp-above  { font-size: 8px; min-height: 14px; margin-bottom: 4px; }
  .menu-multi .supp-below  { font-size: 8px; margin-top: 5px; }
  .menu-multi .supp-inline { font-size: 8px; }
  .menu-multi .supp-photo-badge { font-size: 8px; top: 5px; right: 5px; padding: 2px 5px; }

  /* Option A (hidden) : masquer tout texte supplément */
  .menu-multi.supp-display-hidden .supp-above,
  .menu-multi.supp-display-hidden .supp-below,
  .menu-multi.supp-display-hidden .supp-inline { display: none; }

  /* Logo hauteur mobile (mobile.logo_height) */
  .brand img { height: var(--mobile-logo-h, 48px); }

  /* Topbar masquable sur mobile (mobile.show_topbar = 0) */
  .topbar { display: var(--topbar-mobile, flex); }

  /* ── Nouvelles options mobiles ─────────────────────────── */

  /* Header blur (mobile.header_blur = 1) */
  .header.mobile-blur {
    background: rgba(19, 138, 10, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Topbar compacte (mobile.topbar_compact = 1) */
  .topbar.topbar-compact .topbar-marquee,
  .topbar.topbar-compact .topbar-inner > div:last-child { display: none; }
  .topbar.topbar-compact .topbar-inner { justify-content: center; gap: 8px; }
  .topbar.topbar-compact .topbar-status { display: flex; align-items: center; gap: 8px; }
  .topbar.topbar-compact .topbar-status::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sage);
    flex-shrink: 0;
    animation: pulse-dot 2.4s ease-in-out infinite;
  }

  /* Option A : logo compact centré en haut, bands serrées derrière */
  .hero-mob-A .hero-grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero-mob-A .hero-mascot { order: -1; width: 150px; height: 150px; aspect-ratio: 1; align-self: center; margin: 0 auto 16px; }
  .hero-mob-A .hero-bg-layer { top: 8px; height: 210px; }

  /* Option C : logo watermark semi-transparent, band fine en haut */
  .hero-mob-C .hero-grid { grid-template-columns: 1fr; position: relative; }
  .hero-mob-C .hero-mascot { position: absolute; top: 0; right: -6%; width: 220px; height: 220px; aspect-ratio: 1; opacity: 0.11; pointer-events: none; z-index: 0; }
  .hero-mob-C .hero-text-anim { position: relative; z-index: 2; }
  /* Bandeaux watermark contenus du haut du hero jusqu'aux alentours du bouton */
  .hero-mob-C .hero-bg-layer { clip-path: none; top: 0; height: 520px; }

  /* Option 0 / legacy 1 : pas de logo mobile */
  .hero-mob-0 .hero-mascot { display: none; }
  .hero-mob-0 .hero-grid, .hero-mob-1 .hero-grid { grid-template-columns: 1fr; }

  /* Badge héro masquable (mobile.hero_badge = 0) */
  .hero-badge-hidden .hero-badge { display: none; }

  /* CTA grands (mobile.cta_large = 1) */
  .cta-large .btn {
    min-height: 52px;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Titre section menu (mobile.menu_title = 1) */
  .menu-section-title {
    display: none;
    font-family: var(--display);
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 16px;
  }
  .menu-title-visible .menu-section-title { display: block; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}

@media (max-width: 768px) {

  /* ── Section histoire — photos masquables ── */
  .story-photos-hidden .story-visual { display: none; }
  .story-photos-hidden .story-grid   { grid-template-columns: 1fr; }

  /* ── Piliers — style cartes ── */
  /* Piliers masques */
  .pillars-hidden .story-pillars { display: none; }

  .pillars-cards .story-pillars       { display: flex; flex-direction: column; gap: 10px; }
  .pillars-cards .pillar              { background: var(--cream-warm); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
  .pillars-cards .pillar .num         { font-size: 28px; min-width: 44px; }
  .pillars-cards .pillar .label       { font-size: 11px; font-weight: 600; letter-spacing: .1em; }
  .pillars-cards .pillar .text        { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }

  /* ── Piliers — style minimaliste ── */
  .pillars-minimal .story-pillars     { display: flex; flex-direction: row; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .pillars-minimal .pillar            { flex: 1; text-align: center; padding: 14px 8px; border-right: 1px solid var(--line); }
  .pillars-minimal .pillar:last-child { border-right: none; }
  .pillars-minimal .pillar .num       { font-size: 22px; }
  .pillars-minimal .pillar .label     { font-size: 9px; letter-spacing: .1em; margin-top: 4px; }
  .pillars-minimal .pillar .text      { display: none; }

  /* ── Process — timeline ── */
  .process-timeline .steps            { grid-template-columns: 1fr !important; gap: 0; }
  .process-timeline .step             { display: flex; align-items: flex-start; gap: 16px; padding: 0 0 20px 0; position: relative; }
  .process-timeline .step::before    { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--cream-deep); }
  .process-timeline .step:last-child::before { display: none; }
  .process-timeline .step .num       { width: 40px; height: 40px; border-radius: 50%; background: var(--terracotta); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 16px; flex-shrink: 0; }
  .process-timeline .step .name      { padding-top: 8px; font-size: 16px; }
  .process-timeline .step .text      { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }

  /* ── Process — compact ── */
  .process-compact .steps             { grid-template-columns: 1fr !important; gap: 6px; }
  .process-compact .step              { display: flex; align-items: center; gap: 14px; background: var(--cream-warm); border-radius: 10px; padding: 12px 14px; }
  .process-compact .step .num         { font-size: 20px; min-width: 32px; }
  .process-compact .step .name        { font-size: 14px; font-weight: 600; }
  .process-compact .step .text        { display: none; }

  /* ── Pizza card — description masquable ── */
  .card-desc-hidden .pizza-meta       { display: none; }

  /* ── Momento masquable ── */
  .momento-hidden .momento            { display: none; }

  /* ── Footer horaires masquables ── */
  .footer-hours-hidden .footer-col:nth-child(3) { display: none; }

  /* Footer: single column on phone */
  .footer-grid { grid-template-columns: 1fr !important; gap: 36px; }

  /* Cart drawer: full width on phone */
  .drawer { width: 100vw; }

  /* Cart qty buttons: bigger touch targets */
  .qbtns button {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Account page */
  .acc-main { grid-template-columns: 1fr; }
  .acc-aside { display: none; }
  .acc-panel { padding: 32px 24px; }
}

/* Intermediate breakpoint: tablet landscape */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav { gap: 20px; font-size: 13px; }
  .header-cta { display: none; }
}

/* Extra small phones */
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

/* Focus styles — keyboard navigation */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ─────────── Visual Enhancement Layer ─────────── */

/* Hero ambient glow blobs — disabled for confetti hero */
.hero-glow { display: none; }

/* Hero badge: float continuously */
@keyframes float {
  0%, 100% { transform: rotate(-8deg) translateY(0px); }
  50%       { transform: rotate(-8deg) translateY(-10px); }
}
.hero-badge {
  animation: float 4.5s ease-in-out infinite;
}

/* Hero fire: gentle pulse */
@keyframes fire-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.92; }
}
.hero-fire {
  animation: fire-pulse 3.2s ease-in-out infinite;
}

/* Marquee: fade edges */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

/* Marquee: slightly faster & bigger */
.marquee-track {
  animation-duration: 28s;
}

/* Momento: deeper shadow + border glow */
.momento-card {
  box-shadow:
    0 60px 120px -40px rgba(154, 85, 63, 0.55),
    0 0 0 1px rgba(182, 107, 92, 0.08);
}

/* Momento stamp: subtle shimmer on the dot */
.momento-stamp .dot {
  box-shadow: 0 0 0 0 rgba(182, 107, 92, 0.5);
}

/* Story pillar: lift on hover */
.pillar {
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: default;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px -8px rgba(182, 107, 92, 0.22);
}

/* Step: lift on hover */
.step {
  transition: transform .22s ease;
  cursor: default;
}
.step:hover {
  transform: translateY(-4px);
}

/* Primary button: warm glow on hover */
.btn-primary:hover {
  box-shadow: 0 8px 24px -6px rgba(182, 107, 92, 0.48);
}
.momento-cta:hover {
  box-shadow: 0 8px 24px -6px rgba(246, 241, 232, 0.35);
}

/* Add-to-cart button: glow on hover */
.add-btn:hover {
  box-shadow: 0 6px 18px -6px rgba(26, 22, 20, 0.5);
}

/* Hero visual shadow: more dramatic */
.hero-visual image-slot {
  box-shadow: 0 40px 100px -30px rgba(154, 85, 63, 0.55);
}

/* Section title accent: subtle underline glow */
.order-head h2 em,
.story h2 em,
.process h2 em {
  text-shadow: 0 2px 16px rgba(182, 107, 92, 0.18);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .topbar .pulse { animation: none; }
  .hero-badge { animation: none; transform: rotate(-8deg); }
  .hero-fire { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--pad-x);
  z-index: 9999;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* Undefined token fixes */
:root {
  --ink-40: var(--ink-mute);
  --font-body: var(--body);
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
}

/* ─────────── Form fields (used in CartDrawer checkout steps) ─────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  padding: 0 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s ease;
}
.field input,
.field select { height: 48px; }
.field textarea {
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.5;
  min-height: 80px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); opacity: 0.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.field .hint {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-mute);
}

/* Case « enregistrer cette adresse » (étape livraison) */
.addr-save-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-soft, #4A3F38);
  cursor: pointer;
}
.addr-save-check input { width: 16px; height: 16px; flex: 0 0 auto; cursor: pointer; }

/* ─────────── Schedule step ─────────── */
.schedule-step {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.schedule-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.schedule-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.schedule-empty {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}
.schedule-error {
  font-size: 13px;
  color: var(--danger);
  margin: 0;
}

/* Date row */
.date-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.date-row::-webkit-scrollbar { display: none; }

.date-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-family: var(--body);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
  white-space: nowrap;
  line-height: 1.3;
}
.date-btn:hover { border-color: var(--terracotta); }
.date-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
}
.date-today {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Slot grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.slot-btn {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
  text-align: center;
}
.slot-btn:hover { border-color: var(--terracotta); }
.slot-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
}
.slot-btn.slot-full {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
  position: relative;
}
.slot-btn.slot-full:hover { border-color: var(--line); }
.slot-full-tag {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--terracotta-deep, #7A0E06);
}

/* Disponibilité horaire des produits */
.pizza-hours-badge {
  display: inline-block;
  margin: 2px 0 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--terracotta-soft, #F3E2DA);
  color: var(--terracotta-deep, #7A0E06);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.schedule-hours-info,
.schedule-hours-warn {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 8px 11px;
  border-radius: 9px;
}
.schedule-hours-info {
  background: var(--terracotta-soft, #F3E2DA);
  color: var(--terracotta-deep, #7A0E06);
}
.schedule-hours-warn {
  background: #FBE6E0;
  color: #9A2B1A;
  border: 1px solid #E8B6AC;
}

/* Sélecteur de point de vente (multi-boutique) */
.store-pick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 420px) {
  .store-pick-grid { grid-template-columns: 1fr 1fr; }
}
.store-pick-grid .slot-btn { padding: 13px 12px; font-family: var(--body); font-size: 14px; letter-spacing: 0; }
.store-chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--terracotta-soft, #F3E2DA);
  color: var(--terracotta-deep, #7A0E06);
  font-size: 13px;
}
.store-chosen .link-btn {
  background: none;
  border: none;
  color: var(--terracotta-deep, #7A0E06);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

/* Slot select */
.slot-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--body);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B7F76' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.slot-select:focus { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* Schedule summary shown in info step */
.schedule-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--cream-warm);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.dot-sep {
  color: var(--terracotta);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .date-btn, .slot-btn, .slot-select { transition: none; }
}


/* ─────────── CSS Scroll Reveal Animations ─────────── */

/* ── Base reveal classes — elements start hidden ── */
.rv-up    { opacity: 0; transform: translateY(28px);           transition: opacity .75s ease, transform .75s ease; }
.rv-left  { opacity: 0; transform: translateX(-28px);          transition: opacity .82s ease, transform .82s ease; }
.rv-right { opacity: 0; transform: translateX(28px) scale(.97); transition: opacity .88s ease, transform .88s ease; }
.rv-scale { opacity: 0; transform: scale(.94) translateY(24px); transition: opacity 1.05s ease, transform 1.05s ease; }

/* ── Visible state ── */
.rv-up.is-visible,
.rv-left.is-visible,
.rv-right.is-visible,
.rv-scale.is-visible { opacity: 1; transform: none; }

/* Delay helper for hero visual */
.rv-scale { transition-delay: .38s; }

/* ── Hero text stagger ── */
.hero-text-anim > .rv-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s ease;
}
.hero-text-anim.is-visible > .rv-item:nth-child(1) { opacity: 1; transform: none; transition-delay: .25s; }
.hero-text-anim.is-visible > .rv-item:nth-child(2) { opacity: 1; transform: none; transition-delay: .36s; }
.hero-text-anim.is-visible > .rv-item:nth-child(3) { opacity: 1; transform: none; transition-delay: .47s; }
.hero-text-anim.is-visible > .rv-item:nth-child(4) { opacity: 1; transform: none; transition-delay: .58s; }
.hero-text-anim.is-visible > .rv-item:nth-child(5) { opacity: 1; transform: none; transition-delay: .69s; }

/* ── Story pillars stagger ── */
.rv-pillars > .pillar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.rv-pillars.is-visible > .pillar:nth-child(1) { opacity: 1; transform: none; transition-delay: .2s; }
.rv-pillars.is-visible > .pillar:nth-child(2) { opacity: 1; transform: none; transition-delay: .31s; }
.rv-pillars.is-visible > .pillar:nth-child(3) { opacity: 1; transform: none; transition-delay: .42s; }

/* ── Menu grid stagger (uses --anim-i inline var) ── */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .52s ease, transform .52s ease;
}
.stagger-grid.is-visible > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--anim-i, 0) * .08s + .05s);
}

/* ── Process steps stagger ── */
.rv-steps > .step {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .62s ease, transform .62s ease;
}
.rv-steps.is-visible > .step:nth-child(1) { opacity: 1; transform: none; transition-delay: .05s; }
.rv-steps.is-visible > .step:nth-child(2) { opacity: 1; transform: none; transition-delay: .17s; }
.rv-steps.is-visible > .step:nth-child(3) { opacity: 1; transform: none; transition-delay: .29s; }
.rv-steps.is-visible > .step:nth-child(4) { opacity: 1; transform: none; transition-delay: .41s; }

/* ── Reduced motion override ── */
@media (prefers-reduced-motion: reduce) {
  .rv-up, .rv-left, .rv-right, .rv-scale,
  .hero-text-anim > .rv-item,
  .rv-pillars > .pillar,
  .stagger-grid > *,
  .rv-steps > .step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Compte bloqué : bandeau + message panier ─────────────────── */
.blocked-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #9A341F;
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  padding: 12px 20px;
}
.blocked-banner-icon { font-size: 16px; }
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #8a5a16;
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  padding: 12px 20px;
}
.verify-resend {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--body);
}
.verify-resend:hover { background: rgba(255,255,255,.3); }
.cart-blocked-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(154, 52, 31, 0.08);
  color: #9A341F;
  border: 1px solid rgba(154, 52, 31, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 12px;
}

/* ── Code promo (panier) ──────────────────────────────────────── */
.promo-box { margin-bottom: 12px; }
.promo-entry { display: flex; gap: 8px; }
.promo-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.promo-input:focus { outline: none; border-color: var(--terracotta); }
.promo-apply {
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--terracotta);
  background: var(--terracotta);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.promo-apply:disabled { opacity: 0.5; cursor: not-allowed; }
.promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--sage-15, rgba(143, 174, 148, 0.15));
  border: 1px solid var(--sage, #8FAE94);
}
.promo-applied-label { font-size: 13px; font-weight: 600; color: var(--sage-deep, #6B8B70); }
.promo-remove {
  background: none;
  border: none;
  color: var(--terracotta);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.promo-error { margin-top: 6px; font-size: 12px; color: #9A341F; }
.promo-row span { color: var(--sage-deep, #6B8B70) !important; }

/* ── Modale suppléments : en-tête et bouton toujours visibles, liste défilante ── */
.supp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 20, .55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.supp-modal {
  background: var(--cream);
  border-radius: 22px;
  max-width: 420px;
  width: 100%;
  max-height: 88vh;   /* repli navigateurs anciens */
  max-height: 88dvh;  /* tient compte des barres mobiles */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .3);
}

.supp-modal-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line, #E0D6C4);
}
.supp-modal-body {
  flex: 1 1 auto;
  min-height: 0;              /* indispensable pour que le scroll fonctionne en flex */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.supp-modal-foot {
  flex: 0 0 auto;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line, #E0D6C4);
  background: var(--cream);
}
/* ⚠️ Les media queries doivent rester APRÈS les règles de base :
   à spécificité égale, c'est la dernière déclarée qui l'emporte. */

/* Desktop : deux colonnes → moitié moins haut, plus lisible avec 20 suppléments */
@media (min-width: 620px) {
  .supp-modal { max-width: 640px; }
  .supp-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 10px 12px;
  }
}

/* Mobile : feuille ancrée en bas — le bouton reste toujours à l'écran,
   quel que soit le comportement des barres du navigateur. */
@media (max-width: 619px) {
  .supp-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .supp-modal {
    max-width: none;
    border-radius: 20px 20px 0 0;
    max-height: 82vh;
    max-height: 82dvh;
  }
  .supp-modal-head { padding: 18px 18px 14px; }
  .supp-modal-body { padding: 14px 18px; }
  .supp-modal-head h3 { font-size: 22px; }
  /* Barre d'accueil iOS : on garde le bouton au-dessus. */
  .supp-modal-foot {
    padding: 14px 18px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }
}

/* Réduction automatique du jour (étape planification) */
.auto-discount-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sage-soft, rgba(143, 174, 148, 0.15));
  border: 1px solid var(--sage-deep, #6B8B70);
  color: var(--sage-deep, #6B8B70);
  font-size: 13px;
  line-height: 1.4;
}
.auto-discount-note .auto-discount-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.8;
}

/* Récapitulatif de commande (étape « review ») */
.order-review { display: flex; flex-direction: column; gap: 14px; }
.review-block {
  border: 1px solid var(--line-soft, #E0D6C4);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--cream-warm, #f0ebe1);
}
.review-block-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-mute, #8B7F76);
  margin-bottom: 6px;
}
.review-line { font-size: 13px; color: var(--ink, #1A1614); line-height: 1.5; }
.review-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  padding: 3px 0;
}
.review-item-qty { font-weight: 700; color: var(--terracotta, #B66B5C); flex: 0 0 auto; }
.review-item-name { flex: 1; color: var(--ink, #1A1614); }
.review-item-supp { color: var(--ink-mute, #8B7F76); font-size: 12px; }
.review-item-price { flex: 0 0 auto; font-variant-numeric: tabular-nums; }

/* Bouton "étape précédente" dans le panier */
.back-step-btn {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.back-step-btn:hover { border-color: var(--terracotta); background: var(--cream-warm); }

/* Validation des coordonnées : message + clignotement des champs manquants */
.info-error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: #C0392B;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  font-family: var(--body);
}
@keyframes fieldFlash {
  0%, 100% { border-color: var(--line); box-shadow: none; }
  50%      { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(182, 107, 92, 0.22); }
}
.input-flash {
  border-color: var(--terracotta) !important;
  animation: fieldFlash 0.42s ease-in-out 3;
}

/* Lien discret "Modifier les suppléments" dans le panier */
.cart-edit-supp {
  margin-top: 5px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  color: var(--terracotta);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: var(--body);
}
.cart-edit-supp:hover { color: var(--terracotta-deep, #7A0E06); }
@media (max-width: 600px) {
  .blocked-banner { font-size: 13px; padding: 10px 14px; }
}

/* ─── Hero motif backgrounds ────────────────────────────── */
.hero-bg-layer {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
}

/* Bandeaux logotype */
@keyframes hero-band-fwd { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes hero-band-rev { from { transform: translateX(-50%) } to { transform: translateX(0) } }

/* Rayons solaires */
.hero-bg-rays {
  position: absolute; will-change: transform;
}
.hero-bg-rays-a {
  left: 62%; top: 50%; width: 210%; height: 210%;
  animation: hero-ray-a 55s linear infinite;
}
.hero-bg-rays-b {
  left: 62%; top: 50%; width: 210%; height: 210%;
  animation: hero-ray-b 80s linear infinite; opacity: .5;
}
@keyframes hero-ray-a { from { transform: translate(-50%,-50%) rotate(0deg)   } to { transform: translate(-50%,-50%) rotate(360deg)  } }
@keyframes hero-ray-b { from { transform: translate(-50%,-50%) rotate(0deg)   } to { transform: translate(-50%,-50%) rotate(-360deg) } }

/* Pois pulsés */
.hero-bg-dotlayer { position: absolute; inset: -20%; }
.hero-bg-dotlayer-a { animation: hero-dot-pulse 5s ease-in-out infinite,        hero-dot-drift 32s linear infinite; }
.hero-bg-dotlayer-b { animation: hero-dot-pulse 5s ease-in-out infinite reverse, hero-dot-drift 40s linear infinite reverse; }
@keyframes hero-dot-pulse { 0%,100% { transform: scale(1) } 50% { transform: scale(1.08) } }
@keyframes hero-dot-drift { from { background-position: 0 0 } to { background-position: 128px 128px } }

/* Aurora blobs */
.hero-bg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(44px); mix-blend-mode: multiply; will-change: transform;
}
@keyframes hero-blob1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8%,6%) scale(1.1)} }
@keyframes hero-blob2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-7%,9%) scale(1.06)} }
@keyframes hero-blob3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(6%,-8%) scale(1.12)} }

/* Pastilles pizza */
.hero-bg-pill-cols {
  position: absolute; inset: 0; display: flex;
  justify-content: space-around; align-items: flex-start; overflow: hidden;
}
.hero-bg-pill-col { display: flex; flex-direction: column; gap: 32px; will-change: transform; }
@keyframes hero-pill-up   { from { transform: translateY(0) }    to { transform: translateY(-50%) } }
@keyframes hero-pill-down { from { transform: translateY(-50%) } to { transform: translateY(0) }    }

/* Rayures bonbon */
@keyframes hero-stripe { from { background-position: 0 0 } to { background-position: 238px 0 } }

/* Nappe italienne */
@keyframes hero-check { from { background-position: 0 0, 40px 40px } to { background-position: 80px 80px, 120px 120px } }

/* Confettis volants */
@keyframes hero-confetti-x   { 0% { left: -9% } 100% { left: 109% } }
@keyframes hero-confetti-bob {
  0%   { transform: translateY(6px)  rotate(0deg)   }
  50%  { transform: translateY(-14px) rotate(180deg) }
  100% { transform: translateY(6px)  rotate(360deg)  }
}
