/* =============================================================
   Moteur Pixel et Commerce — feuille du SITE PUBLIC
   -------------------------------------------------------------
   Refonte du 26 septembre 2026 : le site d'un commerçant se lit
   comme sa page dans une application de commande haut de gamme
   (référence de finition : Uber Eats). Fond blanc, photos du
   commerçant en vedette, puces en pilules, feuille de composition
   qui monte du bas.

   Seules les pages publiques chargent ce fichier. L'administration,
   l'assistant d'installation et les écrans de station gardent
   `app.css` : ce sont des outils de travail, pas une vitrine.

   Aucune couleur de marque ici. Tout ce qui dépend du commerçant
   vient des variables injectées dans le <head> (`app/theme.py`) ;
   les valeurs de `:root` ne sont qu'un repli neutre.
   ============================================================= */

/* Grotesque auto-hébergée : le camion peut tourner hors ligne, aucune ressource externe.
   Ubuntu Sans, licence Ubuntu Font Licence 1.0 (web/fonts/LICENCE-UbuntuSans.txt). Axes
   de graisse et de chasse : les titres se serrent, le texte courant respire. */
@font-face {
  font-family: 'Pixel Sans';
  src: url('/fonts/UbuntuSans.ttf') format('truetype');
  font-weight: 100 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Repli de charte (neutre, remplacé par <style id="charte">) ----------------- */
  --brand: #2f6f4f;
  --brand-dark: #1d4632;
  --accent: #e0a83d;
  --on-brand: #ffffff;
  --on-brand-dark: #ffffff;
  --on-accent: #241a17;
  --brand-edge: #24563d;
  --accent-edge: #ae8230;
  --hero-b: #16341f;
  --on-hero: #ffffff;
  --on-hero-soft: rgba(255, 255, 255, .8);
  --hero-line: rgba(255, 255, 255, .18);
  --brand-ink: #2f6f4f;
  --brand-ink-doux: #2f6f4f;
  --accent-ink: #8a6212;
  --on-brand-ink: #ffffff;
  --brand-doux: #eef2ef;
  --brand-doux-fort: #dfe8e2;
  --etat-ouvert-encre: #1f7a45;
  --etat-complet-encre: #8a6212;
  --etat-ferme-encre: #b93a2a;

  /* --- Le monde du site public (neutres : ils n'appartiennent à aucun commerçant) --- */
  --paper: #ffffff;
  --surface: #f3f3f2;          /* puces, champs, bandeaux de groupe */
  --surface-2: #e8e8e6;        /* survol des puces */
  --ink: #141414;
  --ink-soft: #5b5b5b;         /* 6,6:1 sur blanc */
  --ink-faint: #717171;        /* 4,8:1 sur blanc : reste lisible */
  --line: #e7e7e5;
  --on-ink: #ffffff;
  /* Teintes sémantiques : vert « ouvert », rouge « erreur ». Elles ne se choisissent
     pas, elles ne sont donc pas des couleurs de marque. */
  --ok: #1f7a45;
  --ok-doux: #e8f5ed;
  --warn: #8a5a08;
  --warn-doux: #fdf4e3;
  --danger: #b3261e;
  --danger-doux: #fcebe9;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --ombre: 0 1px 2px rgba(20, 20, 20, .06), 0 6px 18px -8px rgba(20, 20, 20, .16);
  --ombre-haute: 0 2px 6px rgba(20, 20, 20, .08), 0 24px 48px -18px rgba(20, 20, 20, .32);
  --font: 'Pixel Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Pixel Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sortie: cubic-bezier(.16, 1, .3, 1);     /* ease-out exponentielle */
  --gouttiere: clamp(1rem, 4vw, 2rem);
}

/* =================================================================== socle ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
::selection { background: var(--brand); color: var(--on-brand); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
small { font-size: .84rem; }
sup { line-height: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 750; font-stretch: 88%;
  line-height: 1.08; letter-spacing: -.028em; margin: 0 0 .45em; text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.12rem; letter-spacing: -.018em; }
h4 { font-size: 1rem; letter-spacing: -.01em; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }
/* Le contenu arrive de l'API une fraction de seconde après le premier rendu : la hauteur
   réservée garde le pied de page sous le pli (cf. passe 10, décalage de mise en page). */
main { min-height: calc(100vh - var(--header-h, 64px) - 5rem); }

:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.site-footer :focus-visible { outline-color: currentColor; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

/* Barres de défilement fines et neutres : elles font partie du dessin. */
* { scrollbar-width: thin; scrollbar-color: #cfcfcc transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfcfcc; border-radius: 99px; border: 3px solid var(--paper); }

.ic {
  width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: min(1200px, 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.section { padding-block: clamp(2.2rem, 5vw, 4rem); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.rule-ref { font-size: .8rem; color: var(--ink-faint); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .6rem 1rem;
  border-radius: 8px; z-index: 999; box-shadow: var(--ombre-haute); }

/* ================================================================= boutons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.25rem; border-radius: 999px; border: 0;
  font: inherit; font-weight: 650; font-size: .96rem; line-height: 1.2; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--brand); color: var(--on-brand);
  /* Le liseré intérieur redessine un bouton de marque presque blanche sur le fond blanc. */
  box-shadow: inset 0 0 0 1px var(--brand-edge);
  transition: transform .18s var(--sortie), background-color .18s, box-shadow .18s, color .18s;
}
.btn:hover { background: var(--brand-dark); color: var(--on-brand-dark); box-shadow: inset 0 0 0 1px var(--brand-dark); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-noir { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.btn-noir:hover { background: #2b2b2b; color: var(--on-ink); box-shadow: none; }
.btn-gris, .btn-ghost { background: var(--surface); color: var(--ink); box-shadow: none; }
.btn-gris:hover, .btn-ghost:hover { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.btn-blanc { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 20, .1); }
.btn-blanc:hover { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 20, .18); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--accent-edge); }
.btn-accent:hover { background: var(--accent-edge); color: var(--on-accent); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-on-hero { background: transparent; color: var(--on-hero); box-shadow: inset 0 0 0 1.5px var(--hero-line); }
.btn-sm { min-height: 36px; padding: .4rem .9rem; font-size: .88rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.04rem; }
.btn-block { width: 100%; }
.lien-fleche { display: inline-flex; align-items: center; gap: .3rem; font-weight: 650;
  font-size: .94rem; text-decoration: none; white-space: nowrap; }
.lien-fleche:hover { text-decoration: underline; }
.lien-fleche .ic { transition: transform .2s var(--sortie); }
.lien-fleche:hover .ic { transform: translateX(3px); }

/* ================================================================== badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem;
  border-radius: 999px; font-size: .76rem; font-weight: 650; letter-spacing: 0;
  background: var(--surface); color: var(--ink-soft); white-space: nowrap; line-height: 1.3;
}
.badge-featured { background: var(--accent); color: var(--on-accent); }
.badge-ok { background: var(--ok-doux); color: var(--ok); }
.badge-warn { background: var(--warn-doux); color: var(--warn); }
.badge-danger { background: var(--danger-doux); color: var(--danger); }
.badge-off { background: var(--surface); color: var(--ink-faint); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pulse { position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor;
  animation: onde 1.8s var(--sortie) infinite;
}
@keyframes onde { from { transform: scale(.5); opacity: .9 } to { transform: scale(1.6); opacity: 0 } }

/* ================================================================== en-tête ==== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo {
  display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0;
  font-family: var(--font-display); font-weight: 800; font-stretch: 88%; font-size: 1.2rem; letter-spacing: -.03em;
}
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--brand); color: var(--on-brand);
}
.logo-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav a {
  text-decoration: none; padding: .5rem .8rem; border-radius: 999px; font-size: .94rem;
  font-weight: 550; color: var(--ink-soft); white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--surface); font-weight: 650; }
/* Le panier : une pilule noire dès qu'il contient quelque chose, grise à vide. Un seul
   bouton, dans l'en-tête, sur toutes les pages (passe 13). */
.btn-panier {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .45rem 1rem;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .94rem;
  background: var(--ink); color: var(--on-ink); flex: none; order: 3;
  transition: background-color .2s, transform .25s var(--sortie);
}
.btn-panier:hover { text-decoration: none; background: #2b2b2b; }
.btn-panier.vide { background: var(--surface); color: var(--ink); }
.btn-panier.vide:hover { background: var(--surface-2); }
.btn-panier strong { font-variant-numeric: tabular-nums; min-width: 1ch; text-align: center; }
.btn-panier.rebond { animation: rebond .5s var(--sortie); }
@keyframes rebond { 0% { transform: scale(1) } 30% { transform: scale(1.12) } 100% { transform: scale(1) } }
.nav { order: 2; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); place-items: center; order: 4; flex: none;
}
.burger .ic { width: 22px; height: 22px; }
@media (min-width: 901px) and (max-width: 1120px) {
  .nav a { padding: .45rem .55rem; font-size: .88rem; }
  .btn-panier .etiquette { display: none; }
}
@media (max-width: 900px) {
  .site-header .bar { gap: .6rem; min-height: 60px; }
  .burger { display: grid; }
  .btn-panier { margin-left: auto; }
  .btn-panier .etiquette { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: .6rem var(--gouttiere) 1rem;
    flex-direction: column; align-items: stretch; gap: .15rem; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--ombre-haute);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .28s var(--sortie), visibility 0s .28s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .28s var(--sortie); }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
}

/* ======================================================= barre de créneau ===== */
/* Règle n°1 : le contexte de la commande ne se perd jamais. Une pilule, comme le
   sélecteur d'heure d'une application de commande. */
.slot-bar {
  position: sticky; top: var(--header-h, 64px); z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.slot-bar .inner { display: flex; align-items: center; gap: .6rem; min-height: 54px; }
.slot-pick {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 38px; min-width: 0;
  padding: .35rem .85rem .35rem .7rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem;
  transition: background-color .15s;
}
.slot-pick:hover { background: var(--surface-2); }
.slot-pick .slot-libelle { font-weight: 700; }
.slot-pick .slot-meta { color: var(--ink-soft); }
.slot-pick .texte { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-pick .ic-fin { width: 1.1em; height: 1.1em; color: var(--ink-soft); }
.slot-bar .hold { margin-left: auto; display: flex; align-items: center; gap: .45rem;
  font-size: .86rem; color: var(--ink-soft); white-space: nowrap; }
.slot-bar .countdown {
  font-variant-numeric: tabular-nums; font-weight: 750; color: var(--brand-ink);
  background: var(--brand-doux); padding: .15rem .55rem; border-radius: 999px;
}
@media (max-width: 640px) {
  .slot-bar .inner { min-height: 50px; gap: .4rem; }
  .slot-pick { flex: 1; font-size: .86rem; }
  .slot-bar .hold { font-size: .78rem; }
  .slot-bar .hold .ic, .slot-bar .hold .mot { display: none; }
}

/* ================================================================== accueil ===== */
/* La page d'un restaurant dans une application : une couverture, le logo à cheval
   sur son bord, le nom en très grand, l'état du service en direct. */
.vitrine { padding-top: clamp(0rem, 2vw, 1.25rem); }
.couverture {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 3 / 1; max-height: 420px; width: 100%;
  background-color: var(--hero-b); background-image: var(--hero-image);
  background-size: cover; background-position: center;
}
/* Sans bannière : un aplat de marque franc portant le nom du commerçant, un cran sous le
   titre de la page — le logo, lui, est déjà dans la pastille juste dessous. */
.couverture.sans-photo {
  aspect-ratio: 4 / 1; display: grid; place-items: center; color: var(--on-hero);
  background: var(--hero-b); padding: 0 var(--gouttiere);
}
.couverture-marque {
  font-family: var(--font-display); font-weight: 800; font-stretch: 80%; letter-spacing: -.04em;
  font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1; text-align: center; opacity: .96;
}
.vitrine-corps {
  position: relative; display: grid; gap: 1.2rem 3rem; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  padding: 0 clamp(0rem, 2vw, 1.5rem);
}
.pastille-logo {
  width: clamp(76px, 9vw, 104px); height: clamp(76px, 9vw, 104px); margin-top: calc(-1 * clamp(38px, 4.5vw, 52px));
  border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-size: clamp(2.2rem, 4vw, 3rem);
  border: 4px solid var(--paper); box-shadow: var(--ombre); grid-column: 1; position: relative; z-index: 2;
}
.pastille-logo img { width: 100%; height: 100%; object-fit: cover; }
.vitrine-texte { grid-column: 1; }
.vitrine-texte h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); max-width: 16ch; margin-bottom: .3em; }
.vitrine-texte .lead { margin-bottom: 1.4rem; }
.vitrine-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
#service-card { grid-column: 2; grid-row: 1 / span 2; margin-top: 1.25rem; min-height: 214px; }
@media (max-width: 900px) {
  .couverture { aspect-ratio: 16 / 9; border-radius: 0; max-height: none; }
  .couverture.sans-photo { aspect-ratio: 2.4 / 1; }
  .vitrine { padding-top: 0; }
  .vitrine > .wrap { width: 100%; }
  .vitrine-corps { grid-template-columns: 1fr; padding: 0 var(--gouttiere); }
  #service-card { grid-column: 1; grid-row: auto; margin-top: 0; min-height: 196px; }
}

/* Panneau d'état du service : ce que le client vient chercher en premier (section 2). */
/* Tant que l'état du service n'est pas arrivé, sa place est tenue par un gris calme. */
#service-card:empty, #upcoming:empty { background: var(--surface); border-radius: var(--radius-lg); }
.service-panneau {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem 1.25rem;
  background: var(--paper); box-shadow: var(--ombre);
}
.service-panneau .etat {
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: .9rem;
}
.state-open { color: var(--etat-ouvert-encre); }
.state-full { color: var(--etat-complet-encre); }
.state-closed { color: var(--etat-ferme-encre); }
.service-panneau .loc {
  font-family: var(--font-display); font-weight: 750; font-stretch: 88%; letter-spacing: -.025em;
  font-size: 1.35rem; line-height: 1.15; margin: .35rem 0 .8rem;
}
.faits { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .94rem; }
.faits li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); }
.faits li .ic { color: var(--ink); margin-top: .1em; }
.faits strong { color: var(--ink); font-weight: 650; }
.jauge { margin-top: 1rem; }
.jauge .piste { height: 6px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.jauge .rempli { height: 100%; border-radius: inherit; background: var(--ink);
  transform-origin: left; animation: jauge 1s var(--sortie) both; }
@keyframes jauge { from { transform: scaleX(0) } }
.jauge .legende { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-soft); margin-top: .4rem; }
.service-note { font-size: .9rem; color: var(--ink-soft); margin: .8rem 0 0; }

/* Titres de section : le titre porte seul, le lien « tout voir » à droite. */
.tete-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.tete-section h2 { margin: 0; flex: 1; min-width: 0; }
@media (max-width: 640px) { .tete-section h2 { font-size: 1.4rem; } }

/* Mises en avant (Règle #33bis) : grandes cartes photo, en rail sur téléphone. */
.zone-avant { padding-top: clamp(2rem, 5vw, 3.5rem); }
.zone-avant:empty, #featured-zone:empty { display: none; }
.rail-avant { display: grid; gap: 1rem; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.featured-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--paper); text-decoration: none; min-height: 280px; gap: 0 1.5rem;
}
.featured-hero .shot { position: relative; background: var(--surface); min-height: 220px; border-radius: var(--radius-lg); overflow: hidden; }
.featured-hero .shot .ribbon { position: absolute; top: .9rem; left: .9rem; z-index: 1; }
.featured-hero .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-hero .shot .emoji { position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(4rem, 10vw, 6.5rem); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
.featured-hero .body { padding: 1rem 0; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.featured-hero h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .1rem 0 0; font-weight: 800; }
.featured-hero p { color: var(--ink-soft); margin: 0; max-width: 42ch; }
.featured-hero .row { margin-top: .6rem; }
.featured-hero .price { font-weight: 750; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
/* Plusieurs mises en avant : côte à côte, image au-dessus. */
.rail-avant.plusieurs .featured-hero { grid-template-columns: 1fr; min-height: 0; }
.rail-avant.plusieurs .featured-hero .body { padding: 1rem 0 0; justify-content: flex-start; }
.rail-avant.plusieurs .featured-hero .row { margin-top: auto; padding-top: .6rem; }
.rail-avant.plusieurs .featured-hero .shot { aspect-ratio: 16 / 9; min-height: 0; }
@media (max-width: 760px) {
  .rail-avant { grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); scroll-padding-inline: var(--gouttiere);
    scrollbar-width: none; }
  .rail-avant::-webkit-scrollbar { display: none; }
  .rail-avant:not(.plusieurs) { grid-auto-columns: 100%; }
  .featured-hero { grid-template-columns: 1fr; scroll-snap-align: start; min-height: 0; }
  .featured-hero .body { padding: .9rem 0 0; }
  .featured-hero .shot { aspect-ratio: 16 / 10; min-height: 0; }
}

/* Rail « Les incontournables » : tuiles photo, défilement horizontal au doigt. */
.rail {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.tuile { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: inherit; position: relative; }
.tuile:hover { text-decoration: none; }
.tuile .visual { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin-bottom: .55rem;
  display: grid; place-items: center; background: var(--surface); }
.tuile .visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sortie); }
.tuile:hover .visual img { transform: scale(1.04); }
.tuile .visual .emoji { font-size: clamp(3rem, 8vw, 4.5rem); transition: transform .5s var(--sortie); }
.tuile:hover .visual .emoji { transform: scale(1.08) rotate(-3deg); }
.tuile h3 { font-size: 1rem; margin: 0; }
.tuile .desc { font-size: .88rem; color: var(--ink-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tuile .foot { margin-top: .1rem; }
.tuile .price { font-weight: 650; font-size: .95rem; font-variant-numeric: tabular-nums; }
.tuile .ribbon { position: absolute; top: .6rem; left: .6rem; }
@media (max-width: 760px) {
  .rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); scroll-padding-inline: var(--gouttiere); }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
}

/* Comment ça marche : une bande, trois temps. L'ordre compte, d'où les numéros. */
.etapes {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface); border-radius: var(--radius-lg); counter-reset: etape;
}
.etape { padding: 1.6rem; position: relative; }
.etape + .etape { border-left: 1px solid var(--surface-2); }
.etape .picto { font-size: 1.5rem; line-height: 1; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--paper); margin-bottom: .9rem; }
.etape .picto .ic { width: 22px; height: 22px; }
.etape h3 { margin: 0 0 .3rem; }
.etape p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 760px) {
  .etapes { grid-template-columns: 1fr; }
  .etape + .etape { border-left: 0; border-top: 1px solid var(--surface-2); }
  .etape { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
  .etape .picto { grid-row: span 2; margin: 0; }
  .etape { padding: 1.2rem; }
}

/* Prochains services + fidélité. */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }
.duo > * { min-width: 0; }
#loyalty-card:empty { display: none; }
.duo:has(#loyalty-card:empty) { grid-template-columns: 1fr; }
.prochains { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.prochains h2 { font-size: 1.35rem; margin-bottom: .8rem; }
#upcoming { min-height: 150px; }
.prochain { display: flex; align-items: center; gap: .9rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.prochain:first-child { border-top: 0; padding-top: .2rem; }
.prochain .quand {
  width: 3.2rem; flex: none; text-align: center; border-radius: 12px; background: var(--surface);
  padding: .35rem 0; line-height: 1.1;
}
.prochain .quand b { display: block; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.prochain .quand span { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 650; }
.prochain .ou { flex: 1; min-width: 0; }
.prochain .ou strong { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prochain .ou small { color: var(--ink-soft); }
.prochains .lien-fleche { margin-top: .8rem; }

/* Fidélité (Règle #26) : un aplat de marque, le chiffre en vedette. */
.loyalty-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 0;
  padding: 1.8rem; color: var(--on-hero); background: var(--hero-b);
}
.loyalty-card h2 { color: var(--on-hero); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5rem; max-width: 18ch; }
.loyalty-card p, .loyalty-card li { color: var(--on-hero-soft); }
.loyalty-card .fine { font-size: .85rem; }
.loyalty-card .btn { margin-top: .4rem; }
.loyalty-card ul { padding-left: 1.1rem; }
.loyalty-card .cadeau-geant {
  position: absolute; right: -1.5rem; bottom: -1.8rem; width: 9rem; height: 9rem; color: var(--on-hero); opacity: .1;
  stroke-width: 1.3; pointer-events: none;
}

/* Brèves du camion sur l'accueil et sur la page Actualités. */
.actu-fil { display: grid; gap: 1.2rem; }
.actu-fil-apercu { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.actu { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.actu-photo { background: var(--surface); overflow: hidden; }
.actu-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.actu-corps { padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.actu-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; font-size: .84rem; color: var(--ink-soft); }
.actu h3 { font-size: 1.3rem; margin: 0 0 .4rem; }
.actu p { margin: 0; color: var(--ink-soft); }
.actu-compact .actu-photo img { aspect-ratio: 21 / 9; }
.actu-compact h3 { font-size: 1.1rem; }

/* =================================================================== carte ====== */
.carte-tete { padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.carte-tete h1 { margin-bottom: .2rem; }
.carte-tete p { color: var(--ink-soft); margin: 0 0 .6rem; }
/* Catégories collées sous la barre de créneau ; l'onglet actif suit la lecture. */
.menu-nav {
  display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 0;
  position: sticky; top: calc(var(--header-h, 64px) + var(--barre-h, 0px)); z-index: 30;
  background: var(--paper); scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav button {
  flex: none; border: 0; border-radius: 999px; padding: .5rem 1rem; min-height: 40px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 650;
  cursor: pointer; white-space: nowrap; transition: background-color .18s, color .18s;
}
.menu-nav button:hover { background: var(--surface-2); }
.menu-nav button.active { background: var(--ink); color: var(--on-ink); }
.menu-section { padding-top: clamp(1.8rem, 4vw, 2.6rem); scroll-margin-top: calc(var(--header-h, 64px) + var(--barre-h, 0px) + 3.4rem); }
.menu-section > h2 { margin-bottom: 1rem; }

/* Ligne produit : le texte à gauche, la photo carrée à droite, le « + » posé dessus. */
.menu-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.product {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem;
  align-items: stretch; text-align: left; width: 100%; padding: 1rem; min-height: 148px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  font: inherit; color: inherit; cursor: pointer; text-decoration: none;
  transition: border-color .2s, box-shadow .25s var(--sortie), transform .2s var(--sortie);
}
.product:hover { border-color: #d3d3d0; box-shadow: var(--ombre); }
.product:active { transform: scale(.985); }
.product .lp-texte { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.product h3 { margin: 0; font-size: 1.04rem; font-weight: 700; font-stretch: 92%; }
.product .price { font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.product .desc { color: var(--ink-soft); font-size: .9rem; margin: .1rem 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .35rem; }
.product .foot .badge { font-size: .72rem; }
.product .visual {
  width: 116px; height: 116px; border-radius: var(--radius-sm); overflow: hidden; flex: none; align-self: center;
  display: grid; place-items: center; background: var(--surface);
}
.product .visual img { width: 100%; height: 100%; object-fit: cover; }
.product .visual .emoji { font-size: 3.2rem; }
.product .ajout {
  position: absolute; right: 1.35rem; bottom: 1.35rem; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 20, 20, .2), 0 4px 10px -2px rgba(20, 20, 20, .18);
  transition: transform .25s var(--sortie), background-color .2s, color .2s;
}
.product .ajout .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.product:hover .ajout { transform: scale(1.08); background: var(--ink); color: var(--on-ink); }
/* Étiquette « À la une » : une petite pilule d'accent au-dessus du nom. */
.ribbon {
  align-self: flex-start; display: inline-flex; font-size: .72rem; font-weight: 750; letter-spacing: .01em;
  padding: .18rem .55rem; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  margin-bottom: .15rem;
}
.ribbon-off { background: var(--surface); color: var(--ink-soft); }
.product.is-featured h3 { color: var(--ink); }
/* Indisponible ou en rupture : le produit garde sa place, étiqueté, au lieu de disparaître. */
.product.unavailable { cursor: not-allowed; }
.product.unavailable .visual, .product.unavailable h3, .product.unavailable .desc,
.product.unavailable .price { opacity: .45; }
.product.unavailable .visual { filter: grayscale(1); }
.product.unavailable .ajout { display: none; }
.product.unavailable:hover { box-shadow: none; border-color: var(--line); }
.product.unavailable:active { transform: none; }
@media (max-width: 760px) {
  .menu-grille { grid-template-columns: 1fr; gap: 0; }
  .product { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 1rem 0; min-height: 0; }
  .menu-grille .product:last-child { border-bottom: 0; }
  .product:hover { box-shadow: none; }
  .product .visual { width: 104px; height: 104px; }
  .product .ajout { right: .35rem; bottom: .85rem; width: 34px; height: 34px; }
  .product .foot .badge { display: none; }
}

/* Barre « Voir mon panier » : dès le premier ajout, en bas d'écran, sous le pouce. */
.barre-panier {
  position: fixed; left: var(--gouttiere); right: var(--gouttiere); bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: .6rem .7rem .6rem 1.3rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1.02rem; background: var(--brand); color: var(--on-brand);
  box-shadow: inset 0 0 0 1px var(--brand-edge), var(--ombre-haute);
  transform: translateY(0); transition: transform .45s var(--sortie), opacity .3s;
}
.barre-panier:hover { text-decoration: none; }
.barre-panier[hidden] { display: flex; transform: translateY(160%); opacity: 0; pointer-events: none; }
.barre-panier .nb {
  min-width: 2.1rem; height: 2.1rem; padding: 0 .55rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--on-brand); color: var(--brand); font-variant-numeric: tabular-nums;
}
.barre-panier.rebond .nb { animation: rebond .5s var(--sortie); }
body.avec-barre-panier main { padding-bottom: 6rem; }
@media (min-width: 901px) { .barre-panier { display: none !important; } body.avec-barre-panier main { padding-bottom: 0; } }

/* ================================================= feuille de composition ======= */
/* Une feuille qui monte du bas sur téléphone, une fenêtre centrée sur grand écran. */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center;
  background: rgba(10, 10, 10, .5); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative; background: var(--paper); width: 100%; max-height: 94vh; max-height: 94dvh;
  overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .35);
  transform: translateY(100%); transition: transform .42s var(--sortie);
  display: flex; flex-direction: column;
}
.modal-backdrop.open .modal { transform: none; }
.modal:focus, .modal [data-focus]:focus { outline: none; }
.modal::before {           /* poignée */
  content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
  border-radius: 99px; background: rgba(20, 20, 20, .18); z-index: 3;
}
@media (min-width: 700px) {
  .modal-backdrop { place-items: center; padding: 2rem; }
  .modal { width: min(600px, 100%); max-height: 88vh; border-radius: var(--radius-lg);
    transform: translateY(24px) scale(.98); opacity: 0; transition: transform .38s var(--sortie), opacity .25s; }
  .modal-backdrop.open .modal { transform: none; opacity: 1; }
  .modal::before { display: none; }
}
.modal header { padding: 1.5rem 1.5rem .6rem; background: var(--paper); }
.modal header h2 { margin: 0 2.8rem .3rem 0; font-size: clamp(1.45rem, 4vw, 1.8rem); }
.modal .body { padding: 0 1.5rem 1.2rem; flex: 1; }
.modal footer {
  position: sticky; bottom: 0; z-index: 2; padding: .9rem 1.5rem calc(.9rem + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
}
.modal-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 4; width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2), 0 4px 12px -2px rgba(0, 0, 0, .2);
}
.modal-close .ic { width: 20px; height: 20px; }
.modal-close:hover { background: var(--surface); }
/* Grande photo en tête de la fiche produit. */
.fiche-visuel {
  aspect-ratio: 16 / 10; max-height: 340px; width: 100%; flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--surface);
}
.fiche-visuel img { width: 100%; height: 100%; object-fit: cover; }
.fiche-visuel .emoji { font-size: clamp(5rem, 16vw, 7.5rem); filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .16));
  animation: apparait .6s var(--sortie) both; }
@keyframes apparait { from { transform: scale(.85) translateY(10px); opacity: 0 } }
.fiche-prix { font-size: 1.1rem; font-weight: 650; font-variant-numeric: tabular-nums; margin: 0 0 .5rem; }
.fiche-desc { color: var(--ink-soft); margin: 0; }

/* Groupes d'options — Règle n°2 : un bandeau gris par groupe, des lignes nettes. */
.opt-group { margin: 1.1rem -1.5rem 0; }
.opt-group > h4 {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin: 0; padding: .9rem 1.5rem .15rem; background: var(--surface); font-size: 1.02rem;
}
.opt-group > h4 .badge { background: var(--ink); color: var(--on-ink); font-size: .72rem; }
.opt-group .hint { padding: 0 1.5rem .85rem; background: var(--surface); color: var(--ink-soft); font-size: .86rem; margin-bottom: .2rem; }
.opt {
  display: flex; align-items: center; gap: .9rem; width: 100%; padding: .85rem 1.5rem; min-height: 56px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer;
  font: inherit; color: inherit; text-align: left; transition: background-color .15s;
}
.opt:last-child { border-bottom: 0; }
.opt:hover { background: #fafaf9; }
.opt .name { flex: 1; min-width: 0; }
.opt .delta { color: var(--ink-soft); font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt.checked .name { font-weight: 650; }
.opt.disabled { opacity: .45; cursor: not-allowed; }
/* Contrôle à droite, dessiné : rond pour un choix unique, carré pour plusieurs. */
.opt input {
  order: 3; appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 22px; height: 22px;
  border: 2px solid #b9b9b6; border-radius: 50%; display: grid; place-items: center; cursor: inherit;
  transition: border-color .15s, background-color .15s;
}
.opt input[type="checkbox"] { border-radius: 6px; }
.opt input:checked { border-color: var(--ink); background: var(--ink); }
.opt input[type="radio"]:checked { background: var(--paper); border-width: 7px; }
.opt input[type="checkbox"]:checked::after {
  content: ""; width: 10px; height: 5px; border: solid var(--on-ink); border-width: 0 0 2.2px 2.2px;
  transform: translate(0, -1px) rotate(-45deg);
}
.opt input:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.qty { display: inline-flex; align-items: center; gap: .15rem; background: var(--surface); border-radius: 999px; padding: 3px; }
.qty button {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  cursor: pointer; display: grid; place-items: center; font: inherit; font-size: 1.2rem; font-weight: 600;
  transition: background-color .15s;
}
.qty button:hover { background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.qty span { min-width: 1.8rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pied-fiche { display: flex; align-items: center; gap: .8rem; }
.pied-fiche .btn { flex: 1; }
.btn .total-btn { font-variant-numeric: tabular-nums; }
.btn.ajoute { background: var(--ok); color: #fff; box-shadow: none; }

/* Composeur de menu — Règle n°2 (formules) : une étape par écran. */
.menu-progress { display: flex; gap: .35rem; margin: .5rem 0 .45rem; }
.menu-progress span { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; position: relative; }
.menu-progress span.fait { background: var(--ink); }
.menu-progress span.ici::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left;
  animation: jauge .5s var(--sortie) both; transform: scaleX(.5); }
.menu-etape { color: var(--ink-soft); font-size: .88rem; margin: 0; font-weight: 550; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin-top: .6rem; }
.choice {
  display: flex; flex-direction: column; gap: .35rem; text-align: left; padding: 0; border: 0; background: none;
  font: inherit; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.choice .vignette {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; font-size: 2.6rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .25s var(--sortie);
}
.choice .vignette img { width: 100%; height: 100%; object-fit: cover; }
.choice:hover .vignette { transform: translateY(-2px); }
.choice[aria-pressed="true"] .vignette { box-shadow: inset 0 0 0 3px var(--ink); }
.choice .nom { font-weight: 650; line-height: 1.2; padding: 0 .1rem; }
.choice .prix { color: var(--ink-soft); font-size: .88rem; padding: 0 .1rem; font-variant-numeric: tabular-nums; }
.choice:disabled { opacity: .45; cursor: not-allowed; }
.choice:disabled:hover .vignette { transform: none; }
.choice.sans .vignette { font-size: 1.8rem; background: var(--surface); }
.menu-recap { margin: .6rem 0 0; padding: 0; list-style: none; }
.menu-recap li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.menu-recap li span:first-child { color: var(--ink-soft); }
.menu-recap strong { text-align: right; font-weight: 650; }
.upsell { display: grid; gap: .55rem; }
.upsell p { margin: 0 0 .1rem; font-weight: 750; font-size: 1.1rem; letter-spacing: -.01em; }
.menu-items { margin: .3rem 0 0; padding: 0 0 0 .8rem; list-style: none; font-size: .88rem; color: var(--ink-soft); border-left: 2px solid var(--line); }
.menu-items li { padding: .08rem 0; }

/* ================================================================== panier ====== */
.page-tete { padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.page-tete h1 { margin-bottom: .3rem; }
.page-tete p { color: var(--ink-soft); max-width: 62ch; }
.panier-grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
.panier-grille > .colonne-droite { position: sticky; top: calc(var(--header-h, 64px) + var(--barre-h, 54px) + 1rem); }
@media (max-width: 900px) { .panier-grille { grid-template-columns: 1fr; } .panier-grille > .colonne-droite { position: static; } }
.bloc { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--paper); }
@media (max-width: 640px) { .bloc, .prochains { padding: 1.1rem; } }
.bloc + .bloc { margin-top: 1rem; }
.bloc > h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:first-child { padding-top: .2rem; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .vignette { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--surface); font-size: 1.9rem; }
.cart-line .vignette img { width: 100%; height: 100%; object-fit: cover; }
.cart-line strong { font-weight: 650; }
.cart-line .opts { color: var(--ink-soft); font-size: .88rem; margin: .15rem 0 .45rem; }
.cart-line .price { font-weight: 650; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line .price small { font-weight: 400; }
.cart-line .qty { margin-top: .5rem; }
.cart-line .qty button { width: 32px; height: 32px; font-size: 1.05rem; }
.totals { display: grid; gap: .5rem; font-variant-numeric: tabular-nums; }
.totals .line { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .25rem; }
.retrait {
  display: flex; align-items: center; gap: .85rem; margin: 1.1rem 0; padding: .9rem 1rem;
  border-radius: var(--radius); background: var(--surface);
}
.retrait > .ic { width: 1.6rem; height: 1.6rem; }
.retrait .grow { min-width: 0; }
.retrait strong { display: block; font-weight: 700; }
.retrait small { color: var(--ink-soft); }
.panier-vide { text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1rem; grid-column: 1 / -1; }
.panier-vide .ic { width: 3.5rem; height: 3.5rem; stroke-width: 1.3; color: var(--ink-faint); margin-bottom: 1rem; }
.panier-vide h2 { margin-bottom: .4rem; }
.panier-vide p { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* « Et avec ça ? » : un rail de tuiles, comme en bas du panier d'une application. */
.plus-panier { margin: 1.2rem 0 .4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.plus-panier h3 { font-size: 1.12rem; margin: 0 0 .7rem; }
.plus-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; justify-content: start; gap: .75rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.plus-rail::-webkit-scrollbar { display: none; }
.plus-item { display: flex; flex-direction: column; gap: .2rem; position: relative; }
.plus-item .vignette { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center;
  font-size: 2.4rem; background: var(--surface); }
.plus-item .vignette img { width: 100%; height: 100%; object-fit: cover; }
.plus-item strong { font-weight: 650; font-size: .94rem; line-height: 1.2; margin-top: .3rem; }
.plus-item small { color: var(--ink-soft); }
.plus-item .prix { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.plus-item .btn-ajout {
  position: absolute; top: .45rem; right: .45rem; width: 34px; height: 34px; padding: 0; min-height: 0;
  border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2), 0 4px 10px -2px rgba(0, 0, 0, .18);
  transition: transform .2s var(--sortie), background-color .2s, color .2s;
}
.plus-item .btn-ajout:hover { background: var(--ink); color: var(--on-ink); transform: scale(1.08); }
.plus-panier .non-merci { margin-top: .5rem; background: none; border: 0; padding: .3rem 0; font: inherit;
  font-size: .88rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }

/* ================================================================= formulaires === */
.field { display: block; margin-bottom: .9rem; }
.field > span { display: block; font-size: .86rem; font-weight: 650; color: var(--ink); margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem; border: 1.5px solid transparent; border-radius: 12px;
  font: inherit; font-size: 1rem; background: var(--surface); color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:hover, select:hover, textarea:hover { background: var(--surface-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); }
textarea { min-height: 88px; resize: vertical; }
input, textarea { caret-color: var(--brand-ink); }

/* Heures de retrait (sélecteur de créneau, Règle n°1). */
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; padding: 0 1.5rem .8rem; }
.time-grid button {
  display: grid; gap: .05rem; padding: .6rem .3rem; min-height: 56px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.time-grid button:hover { border-color: var(--ink); }
.time-grid button small { font-weight: 500; color: var(--ink-soft); font-size: .76rem; }
.time-grid button.active { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.time-grid button.active small { color: var(--on-ink); opacity: .75; }
.time-grid button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.time-grid button:disabled:hover { border-color: var(--line); }
.opt-asap { margin: 0 -1.5rem; }

/* ================================================================== messages ==== */
.alert { display: block; border-radius: 12px; padding: .8rem 1rem; font-size: .93rem; margin-bottom: 1rem; border: 0; }
.alert-info { background: var(--surface); color: var(--ink); }
.alert-ok { background: var(--ok-doux); color: var(--ok); }
.alert-warn { background: var(--warn-doux); color: var(--warn); }
.alert-danger { background: var(--danger-doux); color: var(--danger); }
.alert a { font-weight: 650; }
.toast-zone { position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 200; display: grid; gap: .5rem; width: min(440px, calc(100% - 2rem)); }
body.avec-barre-panier .toast-zone { bottom: 5.6rem; }
.toast {
  display: flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem; border-radius: 14px;
  background: var(--ink); color: var(--on-ink); font-size: .94rem; font-weight: 550; box-shadow: var(--ombre-haute);
  animation: monte .45s var(--sortie);
}
.toast.ok::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--ok)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.toast.err { background: var(--danger); }
@keyframes monte { from { transform: translateY(14px) scale(.97); opacity: 0 } }

/* ================================================================ suivi ========== */
/* La commande se suit comme une livraison : une phrase, une barre qui avance, l'heure. */
.suivi-carte { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.suivi-tete { padding: clamp(1.3rem, 3.5vw, 2rem); }
.suivi-num { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .9rem; color: var(--ink-soft); margin-bottom: .8rem; }
.suivi-num strong { color: var(--ink); font-size: 1rem; }
.suivi-tete h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; margin: 0 0 .35rem; max-width: 20ch; }
.suivi-tete .sous { color: var(--ink-soft); margin: 0; }
.suivi-eta { display: flex; gap: .8rem 2rem; flex-wrap: wrap; margin-top: 1.3rem; }
.suivi-eta div { display: grid; gap: .05rem; }
.suivi-eta small { color: var(--ink-soft); }
.suivi-eta b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.suivi-code {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.3rem, 3.5vw, 2rem);
  background: var(--surface);
}
.suivi-code b { font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.suivi-code.prete { background: var(--brand); color: var(--on-brand); }
.suivi-code.prete small { color: var(--on-brand); opacity: .85; }
.timeline { display: grid; padding: 1.2rem clamp(1.3rem, 3.5vw, 2rem) .4rem; }
.timeline .step { display: grid; grid-template-columns: 24px 1fr; gap: .9rem; padding-bottom: 1rem; position: relative; }
.timeline .bullet { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--surface-2);
  display: grid; place-items: center; font-size: .72rem; font-weight: 750; color: var(--ink-faint); position: relative; z-index: 1; }
.timeline .bullet .ic { width: 14px; height: 14px; stroke-width: 3; }
.timeline .step:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--surface-2); }
.timeline .step.done::before { background: var(--ink); }
.timeline .step.done .bullet { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
/* L'étape atteinte : remplie de `--brand-ink`, jamais de `--brand` (passe 14). */
.timeline .step.current .bullet { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--on-brand-ink);
  box-shadow: 0 0 0 5px var(--brand-doux-fort); }
.timeline .ligne { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.timeline .ligne strong { font-weight: 650; }
.timeline .step:not(.done):not(.current) .ligne strong { color: var(--ink-faint); font-weight: 550; }
.timeline .quand { font-size: .86rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.timeline .step.current .ligne strong { font-weight: 750; color: var(--ink); }
.suivi-eta .delai { font-size: 1rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.timeline .ici { font-size: .7rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase;
  background: var(--brand-ink); color: var(--on-brand-ink); border-radius: 999px; padding: .12rem .5rem; }
.timeline small { color: var(--ink-soft); display: block; margin-top: .15rem; }
.etat-resume { display: none; }

/* ========================================================== pages de contenu ===== */
.contenu-grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin: 1.6rem 0; }
.fiche-contact { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; transition: border-color .15s, box-shadow .2s; }
.fiche-contact:hover { border-color: #d3d3d0; box-shadow: var(--ombre); text-decoration: none; }
.fiche-contact .rond { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex: none; }
.fiche-contact small { display: block; color: var(--ink-soft); }
.fiche-contact strong { font-weight: 650; word-break: break-word; }
.encart { padding: 1.3rem 1.4rem; border-radius: var(--radius-lg); background: var(--surface); }
.encart .picto .ic { width: 1.2em; height: 1.2em; }
.encart h2, .encart h3 { display: flex; gap: .55rem; align-items: center; margin-bottom: .4rem; font-size: 1.12rem; letter-spacing: -.018em; }
.encart p { color: var(--ink-soft); margin: 0; }
.appel { margin-top: 1.4rem; padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: var(--radius-lg); text-align: center; background: var(--surface); }
.appel h2 { margin-bottom: .4rem; }
.appel p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.lieu { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.lieu h3 { margin: 0; font-size: 1.2rem; }
.lieu .adresse { display: flex; gap: .5rem; color: var(--ink-soft); margin: 0; }
.lieu .adresse .ic { margin-top: .15em; color: var(--ink); }
.lieu .jours { display: flex; gap: .35rem; flex-wrap: wrap; }
.lieu .horaires { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.lieu .btn { align-self: flex-start; margin-top: .3rem; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: .8rem; font-weight: 650; color: var(--ink-soft); padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
table.data td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.mentions h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.mentions h2:first-child { margin-top: 0; }
.mentions p { color: var(--ink-soft); max-width: 70ch; }
.onglets { display: inline-flex; gap: .25rem; padding: 4px; border-radius: 999px; background: var(--surface); margin-bottom: 1.2rem; }
.onglets button { border: 0; border-radius: 999px; padding: .5rem 1.1rem; font: inherit; font-weight: 650; font-size: .92rem;
  background: transparent; color: var(--ink-soft); cursor: pointer; }
.onglets button.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Espace client : la carte de fidélité et son historique, posés sur l'aplat de marque. */
.jauge-fidelite { height: 8px; border-radius: 99px; background: var(--hero-line); overflow: hidden; margin: 1rem 0 .8rem; }
.jauge-fidelite div { height: 100%; border-radius: inherit; background: var(--on-hero); transform-origin: left; animation: jauge 1s var(--sortie) both; }
.historique { margin-top: .6rem; position: relative; }
.historique summary { cursor: pointer; color: var(--on-hero); font-weight: 650; font-size: .92rem; }
.historique table.data { color: var(--on-hero); margin-top: .5rem; }
.historique table.data td { border-color: var(--hero-line); }
.historique table.data td[style] { color: inherit !important; }

/* ================================================================ pied de page === */
/* Pied de page neutre : la marque garde ses aplats pour l'action, pas pour le décor. */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(2.5rem, 6vw, 4rem) 0 1.6rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.pied-haut { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.pied-marque { font-family: var(--font-display); font-weight: 800; font-stretch: 88%; font-size: 1.6rem; letter-spacing: -.03em; color: #fff; margin: 0 0 .4rem; }
.site-footer h4 { color: rgba(255, 255, 255, .6); font-size: .92rem; font-weight: 600; letter-spacing: 0; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .94rem; }
.site-footer p { font-size: .94rem; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.2rem; padding-top: 1.1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 800px) { .pied-haut { grid-template-columns: 1fr 1fr; } .pied-haut > :first-child { grid-column: 1 / -1; } }

/* ================================================================ loupe ========== */
/* Ancrée à côté de la vignette, jamais dessous (passe 6). */
.zoomable { cursor: zoom-in; }
.zoom-layer { position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .16s, visibility .16s; }
.zoom-layer.open { opacity: 1; visibility: visible; }
.zoom-layer figure { position: absolute; margin: 0; background: var(--paper); border-radius: 16px; padding: 6px; box-shadow: var(--ombre-haute); }
.zoom-layer img { display: block; width: 100%; height: auto; border-radius: 11px; }
.zoom-layer figcaption { padding: .45rem .3rem .15rem; font-size: .86rem; color: var(--ink-soft); text-align: center; }
.zoom-layer.plein { display: grid; place-items: center; padding: 2rem; pointer-events: auto; background: rgba(10, 10, 10, .78); cursor: zoom-out; }
.zoom-layer.plein figure { position: static; max-width: min(90vw, 720px); }
.zoom-layer.plein img { max-height: 76vh; object-fit: contain; }

/* ======================================================= mouvement réduit ====== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pulse::after { animation: none; }
}
@media print { .zoom-layer, .site-header, .slot-bar, .barre-panier, .site-footer { display: none !important; } }
