/* ==========================================================================
   Épicerie de Mondonville — feuille de styles
   Palette et esprit repris du logo : brun gravure sur crème.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink:        #33170a;
  --ink-2:      #4a2a17;
  --ink-3:      #6b4b36;
  --muted:      #7f624e;   /* WCAG AA (>= 4.5:1) sur tous les fonds crème */

  --cream:      #faf6ee;
  --cream-2:    #f3ecdf;
  --cream-3:    #ede3d1;
  --card:       #fffcf7;

  --line:       #e4d7c3;
  --line-2:     #d3c0a4;

  --accent:     #6b7a52;
  --accent-2:   #55613f;
  --accent-bg:  #eef0e6;

  /* Accents produits — contrastes vérifiés : texte >= 4.6:1 sur crème,
     blanc >= 4.6:1 sur la version pleine. */
  --tomate:     #c1502e;  --tomate-ink:  #b0492a;  --tomate-bg:  #f9eeea;
  --ocre:       #986d21;  --ocre-ink:    #8a631e;  --ocre-bg:    #f9f3ea;
  --olive-a:    #6b7a52;  --olive-ink:   #616f4b;  --olive-bg:   #f0f2ee;
  --prune:      #8a4a62;  --prune-ink:   #8a4a62;  --prune-bg:   #f3edef;
  --basilic:    #4f7a52;  --basilic-ink: #4a734d;  --basilic-bg: #edf2ee;

  --danger:     #a33d2a;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius:     4px;
  --radius-lg:  8px;

  --container:  1180px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);

  --shadow-sm:  0 1px 2px rgba(51, 23, 10, .05);
  --shadow:     0 2px 14px rgba(51, 23, 10, .07);
  --shadow-lg:  0 12px 40px rgba(51, 23, 10, .10);

  --ease:       cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* Sans cela, un `display` posé par une classe annule l'attribut hidden. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* L'en-tête est collant : sans cette marge, une ancre atterrit dessous. */
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

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

/* --- Typographie -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.35rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { color: var(--accent-2); }
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow--center::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.lead {
  font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem);
  color: var(--ink-3);
  line-height: 1.7;
}

.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); }
.section--tight { padding-block: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.section--cream { background: var(--cream-2); }
.section--vert  { background: #f0f3ec; border-block: 1px solid #e1e8dd; }
.section--ocre  { background: #faf3e6; border-block: 1px solid #efe4cf; }

.section-head { max-width: 46ch; margin-bottom: clamp(1.4rem, 1rem + 1.8vw, 2.2rem); }
.section-head > * + * { margin-top: .9rem; }
.section-head--center { max-width: 52ch; margin-inline: auto; text-align: center; }

.rule { height: 1px; background: var(--line); border: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .935rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; }

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

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--cream-3); border-color: var(--ink-3); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); }

.btn--wa { background: #1f7a4d; color: #fff; }
.btn--wa:hover { background: #1a6741; }

.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .55rem 1rem; font-size: .875rem; }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Lien souligné discret */
.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: border-color .18s var(--ease);
}
.link:hover { border-color: var(--ink); }

/* --- En-tête ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
  padding-block: .6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;          /* plancher de cible tactile */
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 44px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__place { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: .92rem;
  text-decoration: none;
  color: var(--ink-2);
  position: relative;
  padding-block: .25rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background-color .18s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .22s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header__cta .btn { display: none; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: .85rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; }
}

/* --- Pastille horaires -------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  font-size: .82rem;
  color: var(--ink-3);
}
.status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.status.is-open  .status__dot { background: var(--basilic); box-shadow: 0 0 0 3px rgba(63, 156, 104, .18); }
.status.is-closed .status__dot { background: #b4634a; box-shadow: 0 0 0 3px rgba(180, 99, 74, .16); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 9vw, 8rem);
  background:
    radial-gradient(120% 90% at 50% 0%, #fffdf9 0%, var(--cream) 55%, var(--cream-2) 100%);
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
}
.hero__mark {
  width: clamp(96px, 12vw, 150px);
  margin: 0 auto 1.75rem;
  opacity: .96;
}
.hero__inner { position: relative; max-width: 46rem; margin-inline: auto; }
.hero h1 { margin-top: 1.1rem; }
.hero .lead { margin: 1.4rem auto 0; max-width: 40rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 2.2rem;
}
.hero__status { margin-top: 1.9rem; }

/* --- Grille produits ---------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, .5rem + 1.5vw, 1.75rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.25rem; gap: .5rem; }
.card__body p { font-size: .925rem; color: var(--ink-3); }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
}
.card__price { font-size: .875rem; color: var(--muted); }
.card__price b { color: var(--ink); font-weight: 600; font-size: 1.02rem; }

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: .22rem .6rem;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* --- Bloc alterné ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  align-items: center;
}
.split__body > * + * { margin-top: 1.1rem; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--ink-3);
}
.checks svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .25rem; }
.checks li:nth-child(1) svg { color: var(--basilic); }
.checks li:nth-child(2) svg { color: var(--ocre); }
.checks li:nth-child(3) svg { color: var(--tomate); }

/* --- Infos pratiques ---------------------------------------------------- */
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, .5rem + 2vw, 2rem); }

.panel {
  padding: clamp(1.15rem, .9rem + 1.1vw, 1.7rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.panel h3 { margin-bottom: 1.25rem; }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .68rem 0; text-align: left; vertical-align: top; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--ink-2); }
.hours td { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hours tr.is-today th { font-weight: 600; color: var(--ink); }
.hours tr.is-today td { color: var(--ink); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.35rem; }

.contact-list svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .3rem; color: var(--muted); }
.contact-list dt { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.contact-list dd { margin: 0; font-size: 1rem; color: var(--ink); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact-list a:hover { border-color: var(--ink); }

/* --- Bandeau d'appel ---------------------------------------------------- */
.callout {
  padding: clamp(1.6rem, 1.1rem + 2.2vw, 2.75rem);
  background-color: #3c5a3e;                    /* repli uni sous le dégradé */
  background-image: linear-gradient(150deg, #44653f, #33513a);
  color: var(--cream-2);
  border-radius: var(--radius-lg);
  text-align: center;
}
.callout h2 { color: var(--cream); }
.callout p { margin: 1rem auto 0; max-width: 42ch; color: rgba(250, 246, 238, .74); }
.callout .btn--primary { background: var(--cream); color: var(--ink); }
.callout .btn--primary:hover { background: #fff; }
.callout .btn--ghost { color: var(--cream); border-color: rgba(250, 246, 238, .32); }
.callout .btn--ghost:hover { background: rgba(250, 246, 238, .1); border-color: rgba(250, 246, 238, .55); }
.callout__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }

/* --- Pied de page ------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--cream-2);
  padding-block: clamp(2rem, 1.4rem + 2vw, 2.9rem) 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.75rem 2rem;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .93rem; }
.footer a { text-decoration: none; color: var(--ink-3); }
.footer a:hover { color: var(--ink); }
.footer__brand img { width: 130px; margin-bottom: 1rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-top: clamp(1.4rem, 1rem + 1.8vw, 2.25rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
}

/* --- Révélation au défilement ------------------------------------------- */
/* Amélioration progressive : sans JavaScript, la classe « js » n'est jamais
   posée sur <html> et le contenu reste visible. On ne masque que ce qu'on
   saura ré-afficher. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  .btn:active { transform: none; }
}

/* ==========================================================================
   Durcissement mobile
   Objectif : aucun débordement horizontal, cibles tactiles >= 44px,
   respect des encoches (safe-area), pas de zoom iOS au focus.
   ========================================================================== */

html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

body {
  /* Respiration sous la barre d'action fixe mobile + zone de geste iOS */
  padding-bottom: env(safe-area-inset-bottom);
}

/* Encoches latérales (iPhone en paysage) */
.container { padding-left: max(var(--gutter), env(safe-area-inset-left));
             padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* Supprime le délai de 300 ms et le flash bleu sur iOS/Android */
a, button, label, summary, input[type="radio"], input[type="checkbox"], .stepper__btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Cibles tactiles : plancher de 44px sur tout ce qui se tape */
.btn { min-height: 44px; }
.btn--sm { min-height: 40px; }
@media (pointer: coarse) { .btn--sm { min-height: 44px; } }

/* Les médias ne débordent jamais de leur conteneur */
img, svg, video, iframe, table { max-width: 100%; }

/* Les mots très longs (e-mails, URL) ne poussent pas la mise en page */
p, li, dd, h1, h2, h3, h4, .field__error { overflow-wrap: break-word; }

/* ==========================================================================
   Page commande
   ========================================================================== */

.page-head {
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) clamp(1.1rem, .9rem + 1.4vw, 1.8rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf9, var(--cream));
}
.page-head__inner { max-width: 46rem; }
.page-head > .container > * + * { margin-top: 1rem; }

.notice {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--accent-bg);
  border: 1px solid #dfe4d2;
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--accent-2);
}
.notice svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .18rem; }
.notice strong { color: #414b2f; }

/* Options de format : radios stylées, pas de perte de sémantique */
.opts { display: grid; gap: .5rem; margin-top: 1.15rem; }
@media (min-width: 480px) { .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.opt { position: relative; display: block; min-width: 0; }
.opt input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.opt__box {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  justify-content: center;
  min-height: 56px;
  padding: .6rem .75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color .18s var(--ease), background-color .18s var(--ease),
              box-shadow .18s var(--ease);
}
.opt__label { font-size: .875rem; font-weight: 500; color: var(--ink); line-height: 1.25; }
.opt__price { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.opt input:hover + .opt__box { border-color: var(--ink-3); }
.opt input:checked + .opt__box {
  border-color: var(--ink);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.opt input:focus-visible + .opt__box { outline: 2px solid var(--accent); outline-offset: 2px; }

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 1.15rem;
}
.product__actions .btn { flex: 1 1 auto; }

/* --- Sélecteur de quantité --------------------------------------------- */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--cream);
  flex: none;
}
.stepper__btn {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  border-radius: var(--radius);
  transition: background-color .16s var(--ease);
}
.stepper__btn:hover:not([disabled]) { background: var(--cream-3); }
.stepper__btn[disabled] { opacity: .35; cursor: not-allowed; }
.stepper__btn svg { width: 1rem; height: 1rem; }
.stepper__value {
  min-width: 2.25rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.summary__note { margin-top: .6rem; font-size: .8rem; color: var(--muted); }

/* --- Formulaire --------------------------------------------------------- */
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset + .fieldset { margin-top: 1.75rem; }
.fieldset > legend {
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.fields { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: .4rem; min-width: 0; }
.field > label { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.field .req { color: var(--danger); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: .65rem .85rem;
  /* 16px minimum : en dessous, iOS zoome automatiquement au focus */
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  appearance: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease);
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.55; }

.field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236b4b36' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 12px 8px;
}
.field select:disabled { opacity: .55; cursor: not-allowed; }

.field input:not([type="checkbox"]):hover,
.field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:not([type="checkbox"]):focus,
.field select:focus, .field textarea:focus {
  outline: 0;
  background: var(--card);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(107, 122, 82, .18);
}
.field input::placeholder, .field textarea::placeholder { color: #7f624e; }

.field__help { font-size: .8rem; color: var(--muted); }

.field__error {
  display: none;
  gap: .4rem;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--danger);
}
.field__error svg { width: .9rem; height: .9rem; flex: none; margin-top: .22rem; }
.field.has-error .field__error { display: flex; }
.field.has-error input:not([type="checkbox"]),
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error input:not([type="checkbox"]):focus,
.field.has-error select:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(163, 61, 42, .16); }

/* Case à cocher en erreur : le liseré double le message, jamais seul */
.field.has-error .check input { outline: 2px solid var(--danger); outline-offset: 2px; }

/* Toute la ligne est cliquable : la case seule ferait 22px, sous le seuil
   tactile, mais le label l'englobe et dépasse 44px de haut. */
.check {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .6rem .7rem;
  margin: -.6rem -.7rem;
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color .16s var(--ease);
}
.check:hover { background: var(--cream-2); }
.check input {
  width: 22px; height: 22px;
  flex: none;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.check:has(input:focus-visible) { background: var(--cream-2); }

.submit-group { display: grid; gap: .7rem; margin-top: 1.75rem; }
.submit-sep {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.submit-sep::before, .submit-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-status {
  display: none;
  gap: .75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: .9rem;
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .15rem; }
.form-status--ok    { background: #e9f2ec; border: 1px solid #cbe0d3; color: #26623f; }
.form-status--error { background: #f9ece8; border: 1px solid #ecd2c9; color: var(--danger); }
.form-status--info  { background: var(--cream-2); border: 1px solid var(--line); color: var(--ink-3); }

/* --- Barre d'action mobile --------------------------------------------- */
.orderbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 1rem;
  padding: .75rem max(var(--gutter), env(safe-area-inset-right))
           calc(.75rem + env(safe-area-inset-bottom))
           max(var(--gutter), env(safe-area-inset-left));
  background: rgba(255, 252, 247, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(51, 23, 10, .07);
  transform: translateY(101%);
  transition: transform .28s var(--ease);
}
.orderbar.is-visible { transform: none; }
.orderbar__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.orderbar__count { font-size: .78rem; color: var(--muted); }
.orderbar__total {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.orderbar .btn { margin-left: auto; flex: none; }

@media (max-width: 999px) {
  .orderbar { display: flex; }
  /* Réserve la place de la barre pour ne rien masquer en bas de page */
  body.has-orderbar { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .orderbar { transition: none; }
}

/* --- Page légale -------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: .9rem; font-size: .95rem; color: var(--ink-3); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose a { color: var(--ink); }

/* --- Impression --------------------------------------------------------- */
@media print {
  .header, .orderbar, .footer, .hero__actions, .submit-group { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Utilitaires --------------------------------------------------------- */

/* Visible uniquement pour les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Le fieldset porte la grille des formats : neutraliser ses styles natifs */
.opts { border: 0; padding: 0; margin: 1.15rem 0 0; min-width: 0; }
.opts > legend { padding: 0; }

/* Le bouton « Commander » du panneau mobile ne doit pas doubler celui de l'en-tête */
.nav > .btn { display: none; }
@media (max-width: 860px) { .nav > .btn { display: flex; margin-top: 1rem; } }
.mt-3 { margin-top: 1.25rem; }

/* Liste de contact : <dl> avec des <div> groupant chaque dt/dd */
.contact-list > .contact-item { display: flex; gap: .9rem; align-items: flex-start; }

/* Titres d'étape numérotés (page commande) */
.h-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  margin-bottom: 1.15rem;
}
.h-step__n {
  display: grid;
  place-items: center;
  width: 1.8rem; height: 1.8rem;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-3);
}
.order-block + .order-block { margin-top: clamp(2rem, 1.25rem + 2.5vw, 3rem); }

/* ==========================================================================
   Photographies
   ========================================================================== */

.media {
  position: relative;
  overflow: hidden;
  background: var(--cream-3);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
/* Léger fondu chaud : relie les photos à la palette crème/brun */
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51,23,10,.04), rgba(51,23,10,.14));
  pointer-events: none;
}
.card:hover .media img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  .media img, .card:hover .media img { transition: none; transform: none; }
}

.card__media { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Hero photographique
   ========================================================================== */

.hero--photo {
  position: relative;
  padding-block: clamp(2.75rem, 1.75rem + 6.5vw, 5.5rem);
  background: var(--ink);
  isolation: isolate;
  text-align: center;
  overflow: hidden;
}
.hero--photo::after { display: none; }

.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 85% at 50% 30%, rgba(51,23,10,.52) 0%, rgba(51,23,10,.80) 55%, rgba(30,13,5,.93) 100%);
}

.hero--photo .eyebrow { color: rgba(250,246,238,.72); }
.hero--photo .eyebrow::before,
.hero--photo .eyebrow::after { background: rgba(250,246,238,.38); }
.hero--photo h1 { color: var(--cream); }
.hero--photo .lead { color: rgba(250,246,238,.84); }
.hero--photo .hero__mark { filter: drop-shadow(0 2px 10px rgba(20, 8, 2, .45)); }
.hero--photo .btn--primary { background: var(--cream); color: var(--ink); }
.hero--photo .btn--primary:hover { background: #fff; }
.hero--photo .btn--ghost { color: var(--cream); border-color: rgba(250,246,238,.4); }
.hero--photo .btn--ghost:hover { background: rgba(250,246,238,.12); border-color: rgba(250,246,238,.7); }
.hero--photo .status {
  background: rgba(30,13,5,.5);
  border-color: rgba(250,246,238,.28);
  color: rgba(250,246,238,.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Flèche de défilement */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;          /* plancher de cible tactile */
  border-radius: 50%;
  color: rgba(250,246,238,.55);
  animation: bob 2.4s var(--ease) infinite;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.hero__scroll:hover { color: var(--cream); background: rgba(250,246,238,.12); }
.hero__scroll svg { width: 1.5rem; height: 1.5rem; }
@keyframes bob { 0%,100% { translate: -50% 0; } 50% { translate: -50% 7px; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* ==========================================================================
   Bandeau défilant
   ========================================================================== */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  padding-block: 1.05rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  padding-left: 3rem;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.marquee__track span { color: var(--dot, var(--ink-3)); font-weight: 600; }
.marquee__track span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--dot, var(--line-2));
  flex: none;
}
.marquee__track span:nth-child(5n+1) { --dot: var(--tomate-ink); }
.marquee__track span:nth-child(5n+2) { --dot: var(--ocre-ink); }
.marquee__track span:nth-child(5n+3) { --dot: var(--basilic-ink); }
.marquee__track span:nth-child(5n+4) { --dot: var(--prune-ink); }
.marquee__track span:nth-child(5n+5) { --dot: var(--olive-ink); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__group { display: flex; align-items: center; gap: 3rem; }
@media (prefers-reduced-motion: reduce) {
  /* Pas de défilement : on affiche une seule fois la liste, centrée. */
  .marquee__track { animation: none; width: 100%; padding-left: 0; justify-content: center; }
  .marquee__group { flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; }
  .marquee__group[data-clone] { display: none; }
}

/* ==========================================================================
   Page commande — fil d'étapes
   ========================================================================== */

.steps { margin-bottom: clamp(1.75rem, 1rem + 2.5vw, 2.75rem); }

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 .9rem;
  counter-reset: step;
}
.steps__btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  min-height: 48px;
  padding: .5rem .75rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
  color: var(--muted);
  font-size: .9rem;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.steps__btn:hover:not([disabled]) { background: var(--cream-2); color: var(--ink-2); }
.steps__btn[disabled] { cursor: default; opacity: 1; }
.steps__n {
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 600;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.steps__btn[aria-current="step"] { color: var(--ink); font-weight: 500; }
.steps__btn[aria-current="step"] .steps__n {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.steps__btn.is-done .steps__n {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.steps__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .steps__label { display: none; }
  .steps__btn { justify-content: center; }
  .steps__list { grid-template-columns: repeat(3, auto); justify-content: center; gap: 1.25rem; }
}

.steps__bar { height: 3px; background: var(--cream-3); border-radius: 999px; overflow: hidden; }
.steps__bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  transition: width .4s var(--ease);
}

/* Panneaux d'étape */
.step[hidden] { display: none; }
.step { animation: stepin .34s var(--ease) both; }
@keyframes stepin { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }

.step__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}
.step__nav .btn { flex: 1 1 auto; }
.step__nav .btn--ghost { flex: 0 1 auto; }

/* Barre mobile : bouton d'étape contextuel */
.orderbar__step { margin-left: auto; flex: none; }

/* À l'étape « Réservation » sur mobile, le récapitulatif passe avant le
   formulaire : on ne valide pas une commande qu'on ne voit pas. */
.step__title:focus { outline: none; }

/* Visuel du bloc « panier » : même traitement que les cartes */
.split__media { border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.split__media:hover img { transform: scale(1.04); }

/* ==========================================================================
   Écran de confirmation
   ========================================================================== */

.confirm { max-width: 42rem; margin-inline: auto; }
.confirm[hidden] { display: none !important; }

.confirm__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: confirmin .5s var(--ease) both;
}
@keyframes confirmin { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .confirm__card { animation: none; } }

.confirm__head {
  padding: clamp(2rem, 1.25rem + 3vw, 3rem) clamp(1.25rem, 1rem + 2vw, 2.5rem)
           clamp(1.5rem, 1rem + 2vw, 2rem);
  text-align: center;
  background: linear-gradient(180deg, #fffdf9, var(--cream));
  border-bottom: 1px solid var(--line);
}
.confirm__seal {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-2);
  animation: seal .55s var(--ease) .12s both;
}
.confirm__seal svg { width: 1.9rem; height: 1.9rem; }
@keyframes seal { from { opacity: 0; transform: scale(.72); } }
@media (prefers-reduced-motion: reduce) { .confirm__seal { animation: none; } }

.confirm__head h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); }
.confirm__head p { margin-top: .85rem; color: var(--ink-3); font-size: .98rem; }

.confirm__ref {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line-2);
}
.confirm__ref dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.confirm__ref dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
}

.confirm__body { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }

.confirm__block + .confirm__block {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.confirm__block h3 {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.confirm__items { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.confirm__items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .2rem .9rem;
}
.confirm__items b { font-weight: 500; color: var(--ink); font-size: .95rem; }
.confirm__items span { grid-column: 1; font-size: .84rem; color: var(--muted); }
.confirm__items em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.confirm__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-2);
}
.confirm__total dt { font-weight: 500; color: var(--ink); }
.confirm__total dd {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.confirm__pickup {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem);
  color: var(--ink);
  line-height: 1.3;
}
.confirm__addr { margin-top: .4rem; font-size: .9rem; color: var(--ink-3); }

.confirm__rows { display: grid; gap: .8rem; margin: 0; }
.confirm__rows > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: .25rem 1rem;
}
@media (max-width: 460px) { .confirm__rows > div { grid-template-columns: minmax(0, 1fr); } }
.confirm__rows dt { font-size: .84rem; color: var(--muted); }
.confirm__rows dd { margin: 0; font-size: .95rem; color: var(--ink); overflow-wrap: break-word; }

.confirm__callout {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  padding: 1.1rem 1.2rem;
  background: var(--accent-bg);
  border: 1px solid #dfe4d2;
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--accent-2);
}
.confirm__callout svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .18rem; }

.confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  padding: 0 clamp(1.25rem, 1rem + 2vw, 2.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.confirm__actions .btn { flex: 1 1 12rem; }

/* Impression : ne garder que le récapitulatif */
@media print {
  .page-head, .steps, .confirm__actions { display: none !important; }
  .confirm__card { border: 0; box-shadow: none; animation: none; }
  .confirm__head { background: none; }
  .confirm { max-width: none; }
}

/* ==========================================================================
   Boutique
   ========================================================================== */

/* --- Cartes produit ----------------------------------------------------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1rem, .6rem + 1.4vw, 1.6rem);
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard.is-added { border-color: var(--accent); }

.pcard__media { position: relative; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.pcard__note {
  position: absolute;
  left: .8rem; bottom: .8rem;
  z-index: 1;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: var(--pc, rgba(30, 13, 5, .78));
  color: #fff;
  box-shadow: 0 1px 6px rgba(30, 13, 5, .25);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .03em;
}

.pcard__body { display: flex; flex-direction: column; flex: 1; gap: .55rem; padding: 1.25rem; }
.pcard__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.pcard__desc { font-size: .89rem; color: var(--ink-3); }

.pcard__foot { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: auto; padding-top: 1rem; }
.pcard__foot .btn { flex: 1 1 10rem; }

.pcard__incart {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  padding: .5rem .7rem;
  background: var(--accent-bg);
  border-radius: var(--radius);
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent-2);
}
.pcard__incart svg { width: .9rem; height: .9rem; }

/* Choix du format : radios déguisées en pastilles */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; border: 0; padding: 0; margin: .3rem 0 0; min-width: 0; }
.format { position: relative; }
.format input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.format span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .05rem;
  min-height: 48px;
  padding: .4rem .7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: .8rem;
  line-height: 1.35;
  color: var(--ink-3);
  overflow-wrap: break-word;
  hyphens: auto;
  transition: border-color .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease);
}
.format b { font-weight: 500; font-size: .82rem; color: inherit; }
.format em {
  font-style: normal;
  font-size: .76rem;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}
.format input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.format input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { .format span { min-height: 52px; } }

.fcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .9rem;
}
.fcard__price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Panier modifiable (étape 1 du checkout)
   ========================================================================== */

.checkout { max-width: 44rem; margin-inline: auto; }

.cartlist { list-style: none; padding: 0; margin: 0; }
.cartrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .3rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.cartrow:first-child { border-top: 1px solid var(--line); }
.cartrow__name { grid-column: 1; font-size: 1rem; color: var(--ink); line-height: 1.35; }
.cartrow__amount {
  grid-column: 2; grid-row: 1;
  justify-self: end;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cartrow__meta { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.cartrow__ctrl { grid-column: 1; margin-top: .55rem; }
.cartrow__remove {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  min-height: 40px;
  padding: .35rem .6rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  font-size: .84rem;
  color: var(--muted);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.cartrow__remove:hover { color: var(--danger); background: #f7ece8; }
@media (pointer: coarse) { .cartrow__remove { min-height: 44px; } }

.carttotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 2px solid var(--ink);
}
.carttotal dt { font-size: 1rem; font-weight: 500; color: var(--ink); }
.carttotal dd {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cartnote { margin-top: .5rem; font-size: .84rem; color: var(--muted); }

.cartempty {
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 1rem;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
}
.cartempty svg { width: 2.6rem; height: 2.6rem; margin: 0 auto 1rem; color: var(--line-2); }
.cartempty p { color: var(--muted); }
.cartempty .btn { margin-top: 1.5rem; }

.cartmore {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.35rem;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  min-height: 44px;
}
.cartmore:hover { border-color: var(--ink); }
.cartmore svg { width: 1rem; height: 1rem; }

/* Récapitulatif figé de l'étape 3 */
.recap {
  padding: clamp(1.1rem, 1rem + 1vw, 1.6rem);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}
.recap > h3 {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Panier vide à l'étape 1 : les produits sont juste au-dessus, un simple
   rappel suffit — pas besoin d'un grand écran vide. */
.cartempty--inline {
  padding: 1.5rem 1rem;
  font-size: .92rem;
  color: var(--muted);
}

/* Sélection en cours, sous les cartes produit */
.selection { margin-top: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); }
.selection > h3 {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

/* ==========================================================================
   Bloc « comment ça marche »
   ========================================================================== */


.steps3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.25rem, .8rem + 1.8vw, 2.25rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps3 li { display: flex; gap: .95rem; align-items: flex-start; }
.steps3__n {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  flex: none;
  border-radius: 50%;
  background: var(--c, var(--ink));
  color: #fff;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1rem;
  font-weight: 600;
}
.steps3 h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.steps3 p { font-size: .89rem; color: var(--ink-3); }

/* Panneaux thématiques : un filet de couleur suffit à les distinguer */
.panel--accent { border-top: 3px solid var(--pa, var(--accent)); }
.panel--accent h3 { color: var(--pa-ink, var(--ink)); }

/* Étiquette de catégorie sur les cartes de la vitrine */
.card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: .26rem .7rem;
  border-radius: 999px;
  background: var(--tg-bg, var(--accent-bg));
  color: var(--tg, var(--accent-2));
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Mention d'édition au pied de page */
.footer__bottom { align-items: baseline; }
.footer__bottom strong { color: var(--ink-3); font-weight: 600; }

/* --- Carte produit : composition, prix unitaire, quantité ---------------- */

.pcard__detail {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--muted);
}

.pcard__unit {
  margin-top: .2rem;
  font-size: .88rem;
  color: var(--ink-3);
}
.pcard__unit b {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pcard__min { display: inline-block; color: var(--muted); font-size: .8rem; }

.pcard__qty { display: flex; flex-direction: column; gap: .3rem; flex: none; }
.pcard__qtylabel {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pcard__foot { align-items: flex-end; }
.pcard__foot .btn { flex: 1 1 9rem; }

/* Les formules tiennent sur une ligne : Apéro / Gourmand / Repas */
.formats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Grille de cartes : auto-fill pour que 5 cartes gardent la largeur d'une
   colonne sur la dernière rangée au lieu de s'étirer. */
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.grid-2 { max-width: 46rem; margin-inline: auto; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card__detail { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.card__per { font-weight: 400; font-size: .85em; color: var(--muted); }

/* Bloc alterné : inverser l'ordre visuel sans toucher à l'ordre du DOM */
@media (min-width: 900px) {
  .split--reverse > :first-child { order: 2; }
}
