/* ==========================================================================
   FOURNIL DELATTRE · Boulangerie artisanale, Arras
   Site fictif de démonstration BRNSG. Aucune image externe, tout est dessiné.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette : chaleur cuivrée de fournil, pas de crème froide */
  --levain:       oklch(0.955 0.026 82);   /* fond, crème levain chaude */
  --levain-2:     oklch(0.925 0.038 80);   /* surfaces secondaires */
  --surface:      oklch(0.975 0.017 84);   /* cartes */
  --froment:      oklch(0.82 0.125 82);    /* doré */
  --froment-deep: oklch(0.71 0.135 70);    /* doré profond, illustrations */
  --croute:       oklch(0.47 0.1 52);      /* brun croûte cuivré */
  --braise:       oklch(0.54 0.15 42);     /* cuivre chaud, accents */
  --seigle:       oklch(0.26 0.04 48);     /* encre seigle foncé */
  --seigle-2:     oklch(0.31 0.045 50);    /* surfaces sur fond sombre */
  --muted:        oklch(0.44 0.06 52);     /* texte secondaire sur clair */
  --muted-dark:   oklch(0.8 0.045 80);     /* texte secondaire sur sombre */
  --ring:         var(--braise);

  /* Typo fluide */
  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.3vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.55vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.32rem + 0.95vw, 2.05rem);
  --step-3:  clamp(1.9rem, 1.56rem + 1.7vw, 2.8rem);
  --step-4:  clamp(2.35rem, 1.8rem + 2.75vw, 3.9rem);

  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Outfit", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 38px -20px oklch(0.35 0.08 55 / 0.45);
  --border: 1px solid oklch(0.47 0.1 52 / 0.16);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 200ms;
  --dur-2: 450ms;
  --dur-3: 850ms;

  --header-h: 72px;

  /* Illustrations du sprite (héritées dans le shadow DOM des <use>) */
  --ill-crust: var(--froment-deep);
  --ill-crumb: var(--surface);
  --ill-glaze: var(--froment);
  --ill-dust: oklch(0.47 0.1 52 / 0.12);
  --ill-line: var(--croute);
  --ill-dot: oklch(0.26 0.04 48 / 0.78);
  --ill-fleck: oklch(0.47 0.1 52 / 0.55);
  --epi-stem: var(--croute);
  --epi-grain: var(--froment-deep);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-width: thin;
  scrollbar-color: oklch(0.47 0.1 52 / 0.5) transparent;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  color: var(--seigle);
  background: var(--levain);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--froment); color: var(--seigle); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb {
  background: oklch(0.47 0.1 52 / 0.45);
  border-radius: 99px;
  border: 2px solid var(--levain);
}
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul[role="list"], ol[role="list"] { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 0.7em 1.2em;
  background: var(--seigle);
  color: var(--levain);
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-300%);
  transition: transform var(--dur-1) var(--ease-out);
}
.skip:focus-visible { transform: none; }

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.ill { color: var(--seigle); }

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 99px;
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out),
              background-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }

.btn-primary {
  background: var(--seigle);
  color: var(--levain);
}
.btn-primary:hover {
  background: var(--braise);
  box-shadow: 0 10px 24px -12px oklch(0.54 0.15 42 / 0.7);
}

.btn-ghost {
  border-color: oklch(0.47 0.1 52 / 0.4);
  background: transparent;
  color: var(--seigle);
}
.btn-ghost:hover { background: var(--levain-2); border-color: var(--croute); }

.btn-light { background: var(--levain); color: var(--seigle); }
.btn-light:hover { background: var(--froment); }
.btn-ghost-light {
  border-color: oklch(0.955 0.026 82 / 0.4);
  color: var(--levain);
}
.btn-ghost-light:hover { background: oklch(0.955 0.026 82 / 0.12); }

.btn-sm { padding: 0.55em 1.1em; font-size: var(--step--1); }
.btn-wide { width: 100%; }

.btn-add {
  padding: 0.5em 1em;
  font-size: var(--step--1);
  background: var(--levain-2);
  color: var(--seigle);
  border: 1.5px solid oklch(0.47 0.1 52 / 0.2);
}
.btn-add:hover {
  background: var(--seigle);
  color: var(--levain);
  border-color: var(--seigle);
}

.btn-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1.5px solid oklch(0.47 0.1 52 / 0.25);
  border-radius: 50%;
  background: var(--surface);
  color: var(--seigle);
  transition: transform var(--dur-1) var(--ease-out),
              background-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.btn-round:hover {
  background: var(--seigle);
  color: var(--levain);
  transform: translateY(-2px);
}
.btn-round:active { transform: scale(0.94); }

/* ---------- 4. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: transform var(--dur-2) var(--ease-out),
              background-color 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out);
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-scrolled {
  background: oklch(0.955 0.026 82 / 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 oklch(0.47 0.1 52 / 0.12);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name em { font-style: italic; color: var(--braise); }
.brand-name-lg { font-size: var(--step-2); }

.nav { display: none; gap: 1.6rem; }
.nav a {
  position: relative;
  font-weight: 500;
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--seigle);
  padding-block: 0.3em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--braise);
  border-radius: 2px;
  transition: right var(--dur-1) var(--ease-out);
}
.nav a:hover::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid oklch(0.47 0.1 52 / 0.25);
  border-radius: 50%;
  background: var(--surface);
  color: var(--seigle);
  transition: background-color var(--dur-1) var(--ease-out),
              transform var(--dur-1) var(--ease-out);
}
.cart-btn:hover { background: var(--froment); transform: translateY(-2px); }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  background: var(--braise);
  color: var(--levain);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 99px;
}
.cart-count.bump { animation: bump 0.4s var(--ease-out); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 11px;
  border: 1.5px solid oklch(0.47 0.1 52 / 0.25);
  border-radius: 50%;
  background: var(--surface);
}
.menu-btn span {
  height: 2px;
  background: var(--seigle);
  border-radius: 2px;
}
.menu-btn:hover { background: var(--froment); }

.header-cta { display: none; }

@media (min-width: 720px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 8vw, 5.5rem)) clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(52rem 30rem at 85% -12%, oklch(0.82 0.125 82 / 0.4), transparent 62%),
    radial-gradient(38rem 24rem at -12% 108%, oklch(0.54 0.15 42 / 0.14), transparent 60%),
    var(--levain);
}

.hero-grid {
  display: grid;
  gap: clamp(2.4rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--braise);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--braise);
}
.eyebrow-light { color: var(--froment); }
.eyebrow-light .eyebrow-dot { background: var(--froment); }

.hero h1 {
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-block: 1rem 1.3rem;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.hero h1 em {
  font-style: italic;
  color: var(--braise);
}

.split .line { display: block; overflow: clip; }
.split .line > span { display: block; }

.hero-sub {
  max-width: 46ch;
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.9rem;
}
.hero-badges li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 9px; height: 9px;
  border-radius: 50% 50% 50% 0;
  background: var(--froment-deep);
  transform: rotate(-45deg);
}

/* Scène SVG du hero */
.hero-scene {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.scene { width: 100%; height: auto; }
.scene-halo { fill: oklch(0.925 0.038 80 / 0.85); }
.scene-board { fill: var(--croute); }
.scene-crust { fill: var(--froment-deep); }
.scene-grigne { stroke: var(--croute); stroke-width: 7; fill: none; stroke-linecap: round; }
.scene-flour { fill: oklch(0.975 0.017 84 / 0.75); }
.scene-fleck { fill: var(--croute); opacity: 0.5; }
.steam path {
  stroke: var(--croute);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  opacity: 0.4;
}

.scene-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5em 0.95em;
  background: var(--surface);
  border: var(--border);
  border-radius: 99px;
  font-size: var(--step--1);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.scene-chip svg { color: var(--braise); }
.scene-chip-1 { top: 12%; right: 2%; }
.scene-chip-2 { bottom: 14%; left: 4%; background: var(--seigle); color: var(--levain); }

@media (prefers-reduced-motion: no-preference) {
  .steam path {
    animation: steam 3.4s ease-in-out infinite;
  }
  .steam .steam-2 { animation-delay: 0.6s; }
  .steam .steam-3 { animation-delay: 1.2s; }
  @keyframes steam {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-7px); opacity: 0.18; }
  }
  .scene-chip { animation: chip-float 5s ease-in-out infinite; }
  .scene-chip-2 { animation-delay: 1.4s; }
  @keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  /* Entrée orchestrée du hero */
  .stage > * {
    opacity: 0;
    transform: translateY(22px);
    animation: enter var(--dur-3) var(--ease-out) both;
  }
  .stage > *:nth-child(1) { animation-delay: 0.05s; }
  .stage > *:nth-child(2) { animation-delay: 0.12s; }
  .stage > *:nth-child(3) { animation-delay: 0.24s; }
  .stage > *:nth-child(4) { animation-delay: 0.34s; }
  .stage > *:nth-child(5) { animation-delay: 0.46s; }
  @keyframes enter { to { opacity: 1; transform: none; } }

  .split .line > span {
    transform: translateY(112%);
    animation: line-up 0.9s var(--ease-out) both;
    animation-delay: 0.18s;
  }
  .split .line:nth-child(2) > span { animation-delay: 0.3s; }
  @keyframes line-up { to { transform: none; } }

  .hero-scene {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
    animation: scene-in 1s var(--ease-out) 0.35s both;
  }
  @keyframes scene-in { to { opacity: 1; transform: none; } }
}

/* ---------- 6. Sections communes ---------- */
section { padding-block: clamp(3.2rem, 8vw, 6rem); }

.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 {
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-block: 0.7rem 0.8rem;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.section-sub { color: var(--muted); font-size: var(--step-0); max-width: 56ch; }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.2rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  opacity: 0.75;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: oklch(0.47 0.1 52 / 0.25);
}

/* Signature : la fournée qui lève */
[data-rise] {
  opacity: 0;
  transform: translateY(30px) scale(0.93);
  transform-origin: 50% 100%;
}
[data-rise].in {
  animation: lever 0.95s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes lever {
  0% { opacity: 0; transform: translateY(30px) scale(0.93); }
  55% { opacity: 1; }
  78% { transform: translateY(-3px) scale(1.015); }
  100% { opacity: 1; transform: none; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 7. La fournée du jour ---------- */
.fournee { padding-block-start: clamp(1.4rem, 4vw, 3rem); }

.fournee-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-0);
  color: var(--braise);
}

.fournee-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(215px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.fournee-row::-webkit-scrollbar { height: 8px; }

.fournee-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1rem;
  box-shadow: var(--shadow);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.fournee-card:hover { transform: translateY(-4px); }
.fournee-card .ill {
  width: 78%;
  max-width: 150px;
  height: auto;
  margin-inline: auto;
  transition: transform var(--dur-2) var(--ease-out);
}
.fournee-card:hover .ill { transform: translateY(-4px) rotate(-2deg); }

.fournee-hour {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.22em 0.7em;
  background: oklch(0.54 0.15 42 / 0.12);
  color: var(--braise);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.fournee-card h3 {
  font-size: var(--step-1);
  margin-top: 0.45rem;
  font-variation-settings: "SOFT" 60;
}
.fournee-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
}

.price {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--seigle);
}

/* ---------- 8. Click & collect ---------- */
.steps {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.3rem 1.3rem 1.2rem 4.4rem;
  background: var(--levain-2);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.15rem; top: 1.2rem;
  width: 2.3rem; height: 2.3rem;
  display: grid;
  place-items: center;
  background: var(--seigle);
  color: var(--froment);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  border-radius: 50% 50% 50% 8px;
}
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--muted); font-size: var(--step--1); margin-top: 0.3rem; }

.products {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -22px oklch(0.35 0.08 55 / 0.55);
}

.card-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.2em 0.75em;
  background: var(--levain-2);
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--croute);
}

.card-ill {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 3;
  margin-bottom: 0.6rem;
  border-radius: var(--radius-sm);
  background: radial-gradient(65% 80% at 50% 60%, oklch(0.925 0.038 80 / 0.9), transparent);
}
.card-ill .ill {
  width: 70%;
  max-width: 170px;
  height: auto;
  transition: transform var(--dur-2) var(--ease-out);
}
.card:hover .card-ill .ill { transform: translateY(-5px) rotate(-2.5deg); }

.card h3 { font-size: var(--step-1); font-variation-settings: "SOFT" 60; }
.card-desc {
  color: var(--muted);
  font-size: var(--step--1);
  margin-top: 0.3rem;
  flex-grow: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

/* ---------- 9. Quartier : avis, horaires ---------- */
.quartier {
  background:
    radial-gradient(46rem 26rem at 110% 0%, oklch(0.54 0.15 42 / 0.2), transparent 60%),
    var(--seigle);
  color: var(--levain);
}
.quartier .section-sub { color: var(--muted-dark); }

.gcard {
  background: var(--seigle-2);
  border: 1px solid oklch(0.955 0.026 82 / 0.12);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.3rem, 3.5vw, 2.4rem);
}

.gcard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid oklch(0.955 0.026 82 / 0.14);
}
.gcard-name { font-size: var(--step-2); font-variation-settings: "SOFT" 60, "WONK" 1; }
.gcard-kind { color: var(--muted-dark); font-size: var(--step--1); margin-top: 0.2rem; }

.gcard-rating {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.15rem 0.7rem;
}
.gcard-note {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--froment);
}
.stars { position: relative; width: max-content; }
.stars-base, .stars-fill { display: flex; gap: 2px; }
.stars-base svg { fill: oklch(0.955 0.026 82 / 0.22); }
.stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 96%;
  overflow: hidden;
}
.stars-fill svg { flex-shrink: 0; fill: var(--froment); }
.gcard-count { font-size: var(--step--1); color: var(--muted-dark); }

.reviews {
  display: grid;
  gap: 1rem;
  padding-block: 1.5rem;
}
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.review {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  background: oklch(0.955 0.026 82 / 0.06);
  border: 1px solid oklch(0.955 0.026 82 / 0.1);
  border-radius: var(--radius);
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.review:hover { background: oklch(0.955 0.026 82 / 0.1); transform: translateY(-3px); }
.review-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-0);
  line-height: 1.45;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  font-size: var(--step--1);
  color: var(--muted-dark);
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--seigle);
}
.avatar-1 { background: var(--froment); }
.avatar-2 { background: oklch(0.75 0.1 55); }
.avatar-3 { background: oklch(0.8 0.07 95); }

.gcard-grid {
  display: grid;
  gap: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.955 0.026 82 / 0.14);
}
@media (min-width: 760px) { .gcard-grid { grid-template-columns: 1.1fr 0.9fr; } }

.gcard h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.gcard h4 svg { color: var(--froment); }

.open-chip {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3em 0.9em;
  border-radius: 99px;
  font-size: var(--step--1);
  font-weight: 600;
  background: oklch(0.82 0.125 82 / 0.16);
  color: var(--froment);
}
.open-chip.is-open { background: oklch(0.75 0.13 145 / 0.2); color: oklch(0.85 0.11 145); }
.open-chip.is-closed { background: oklch(0.6 0.15 30 / 0.2); color: oklch(0.82 0.09 40); }

.hours { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.hours th, .hours td { padding: 0.42em 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--muted-dark); }
.hours tr { border-bottom: 1px dashed oklch(0.955 0.026 82 / 0.12); }
.hours tr:last-child { border-bottom: 0; }
.hours tr.today th, .hours tr.today td {
  color: var(--froment);
  font-weight: 600;
}

.gcard-address { font-size: var(--step-1); font-family: var(--font-display); line-height: 1.3; }
.gcard-hint { color: var(--muted-dark); font-size: var(--step--1); margin-top: 0.5rem; }
.gcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

/* ---------- 10. Footer ---------- */
.footer {
  background: var(--levain);
  padding-block: clamp(2.8rem, 6vw, 4.5rem) 1.6rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.4rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr 0.9fr; }
}
.footer-tag {
  color: var(--muted);
  max-width: 30ch;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-style: italic;
}
.footer-h {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--croute);
  margin-bottom: 0.9rem;
}
.footer-col li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.footer-col svg { flex-shrink: 0; color: var(--braise); transform: translateY(2px); }
.footer-col a {
  color: var(--seigle);
  text-decoration: none;
  border-bottom: 1px solid oklch(0.47 0.1 52 / 0.3);
  transition: border-color var(--dur-1), color var(--dur-1);
}
.footer-col a:hover { color: var(--braise); border-color: var(--braise); }

.footer-legal {
  padding-top: 1.4rem;
  border-top: 1px solid oklch(0.47 0.1 52 / 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.footer-legal a {
  color: var(--seigle);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--froment-deep);
  transition: color var(--dur-1), border-color var(--dur-1);
}
.footer-legal a:hover { color: var(--braise); border-color: var(--braise); }
.footer-note { font-size: 0.8rem; opacity: 0.8; }

/* ---------- 11. Panier (sheet) ---------- */
dialog {
  border: 0;
  padding: 0;
  color: var(--seigle);
}
dialog::backdrop {
  background: rgba(38, 26, 18, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.sheet {
  position: fixed;
  inset: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(430px, 100vw);
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--levain);
  box-shadow: -18px 0 50px -22px rgba(38, 26, 18, 0.5);
}
.sheet:not([open]) { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in var(--dur-2) var(--ease-out); }
  @keyframes sheet-in {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  .modal[open] { animation: modal-in var(--dur-2) var(--ease-out); }
  @keyframes modal-in {
    from { transform: translateY(26px) scale(0.95); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid oklch(0.47 0.1 52 / 0.15);
}
.sheet-head h2 { font-size: var(--step-2); font-variation-settings: "SOFT" 60, "WONK" 1; }

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.4rem;
}

.cart-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  padding-block: 2.5rem;
  color: var(--muted);
}
.cart-empty .ill { width: 130px; opacity: 0.85; }
.cart-empty p { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); }
.cart-empty.show { display: flex; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.9rem;
  padding-block: 0.85rem;
  border-bottom: 1px dashed oklch(0.47 0.1 52 / 0.2);
}
.cart-item-name { font-weight: 600; font-size: var(--step-0); }
.cart-item-unit { color: var(--muted); font-size: var(--step--1); }
.cart-item-line {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
}
.qty {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  justify-self: end;
}
.qty button {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 1.5px solid oklch(0.47 0.1 52 / 0.25);
  border-radius: 50%;
  background: var(--surface);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: background-color var(--dur-1), color var(--dur-1), transform var(--dur-1);
}
.qty button:hover { background: var(--seigle); color: var(--levain); }
.qty button:active { transform: scale(0.9); }
.qty-n {
  min-width: 2ch;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sheet-foot {
  padding: 1.1rem 1.4rem 1.3rem;
  border-top: 1px solid oklch(0.47 0.1 52 / 0.15);
  background: var(--levain-2);
}
.field-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0.8rem; }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field select {
  width: 100%;
  padding: 0.6em 0.8em;
  font: inherit;
  color: var(--seigle);
  background: var(--surface);
  border: 1.5px solid oklch(0.47 0.1 52 / 0.3);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-1);
}
.field select:hover { border-color: var(--croute); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  font-weight: 500;
}
.cart-total-row strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--seigle);
}
.cart-note {
  font-size: var(--step--1);
  color: var(--muted);
  margin-block: 0.3rem 0.9rem;
}

/* ---------- 12. Modale de confirmation ---------- */
.modal {
  margin: auto;
  width: min(430px, calc(100vw - 2.5rem));
  background: var(--levain);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.1rem 1.8rem 1.8rem;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(38, 26, 18, 0.6);
}
.modal-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50% 50% 50% 12px;
  background: var(--froment);
  color: var(--seigle);
}
.modal h2 { font-size: var(--step-2); font-variation-settings: "SOFT" 60, "WONK" 1; }
.modal-recap {
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--braise);
}
.modal-demo {
  margin-block: 1rem 1.4rem;
  padding: 0.9rem 1rem;
  background: var(--levain-2);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- 13. Menu mobile ---------- */
.menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: var(--levain);
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
.menu[open] { display: flex; }
.menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.menu nav a {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  text-decoration: none;
  padding-block: 0.35em;
  border-bottom: 1px solid oklch(0.47 0.1 52 / 0.15);
  transition: color var(--dur-1), padding-left var(--dur-1) var(--ease-out);
}
.menu nav a:hover { color: var(--braise); padding-left: 0.4em; }
.menu-close { position: absolute; top: 1.2rem; right: 1.2rem; }
.menu-foot {
  margin-top: 2rem;
  font-size: var(--step--1);
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .menu[open] nav a {
    opacity: 0;
    transform: translateY(16px);
    animation: enter 0.55s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms + 60ms);
  }
}

/* ---------- 14. Toast ---------- */
.toast-zone {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 2rem);
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75em 1.3em;
  background: var(--seigle);
  color: var(--levain);
  border-radius: 99px;
  font-size: var(--step--1);
  font-weight: 600;
  box-shadow: 0 16px 40px -18px rgba(38, 26, 18, 0.65);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.toast svg { color: var(--froment); flex-shrink: 0; }
.toast.show { opacity: 1; transform: none; }

/* ---------- 15. Divers ---------- */
.quartier, .footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }

body.locked { overflow: hidden; }

/* ---------- 16. Reduced motion : état final immédiat ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-rise], [data-reveal], .stage > *, .split .line > span, .hero-scene {
    opacity: 1 !important;
    transform: none !important;
  }
}
