/*
 * Feuille des pages publiques du produit (carte 06) — charte « Appétit » + Fredoka, proposée par
 * Alix (carte 24) et validée par la cliente ; elle remplace la charte A le 2026-10-22.
 * Tokens RECOPIÉS de `design/pages-client/maquettes/prototype/prototype.css` (`.theme-appetit`),
 * contrastes mesurés le 2026-10-22 (CLAUDE.md § Charte). Un test (test_pages_truck) fige l'encre.
 * Polices : fichiers @fontsource (OFL), servis par ce serveur — jamais de CDN. Fredoka s'arrête à
 * 700 : le 600 sert les graisses 400–700, le 700 sert 800–900 ; size-adjust 106 % (demande d'Alix).
 * ⛔ La moutarde (--accent-2) n'est jamais du texte sur fond clair (1,99 : 1).
 */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  size-adjust: 106%;
  src: url(/_produit/polices/fredoka-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  size-adjust: 106%;
  src: url(/_produit/polices/fredoka-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 800 900;
  size-adjust: 106%;
  src: url(/_produit/polices/fredoka-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 800 900;
  size-adjust: 106%;
  src: url(/_produit/polices/fredoka-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_produit/polices/atkinson-hyperlegible-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_produit/polices/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_produit/polices/atkinson-hyperlegible-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_produit/polices/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --encre: #2b1a12;          /* brun expresso : textes, fonds sombres */
  --encre-douce: #5c4a40;    /* textes secondaires */
  --encre-survol: #45291c;
  --accent: #c62d1f;         /* rouge tomate : boutons, texte blanc dessus (5,53) */
  --accent-survol: #a8241a;
  --sur-accent: #ffffff;
  --accent-texte: #b02a1c;   /* liens (6,33 sur la page) */
  --accent-2: #f2a516;       /* moutarde : marque, décor — jamais du texte sur fond clair */
  --surface: #fcebd5;        /* crème : fonds de cartes */
  --fond: #fffaf3;
  --ouvert: #3f7d3a;         /* basilic : « Ouvert » (texte blanc dessus : 4,99) */
  --focus: #2b1a12;
  --blanc: #ffffff;
  --filet: color-mix(in srgb, var(--encre) 12%, transparent);
  --police-titres: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --police-texte: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rayon: 16px;
  --ombre: 0 1px 2px color-mix(in srgb, var(--encre) 6%, transparent), 0 8px 24px color-mix(in srgb, var(--encre) 8%, transparent);
  --cible: 44px;
  --rayon-petit: 10px;
  --gouttiere: clamp(1rem, 4vw, 1.5rem);
  --largeur: 60rem;
  --ombre-haute: 0 -4px 24px color-mix(in srgb, var(--encre) 12%, transparent);
  --sur-ouvert: #ffffff;
  --bord-accent: transparent;
  --accent-contour: var(--accent);
  --accent-2-pale: color-mix(in srgb, var(--accent-2) 24%, #ffffff);
  --ouvert-pale: color-mix(in srgb, var(--ouvert) 16%, #ffffff);
  --encre-2: #6b2a17;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.55;
  /* ⛔ `anywhere`, JAMAIS `break-word` : les deux coupent un mot trop long au rendu, mais seul
     `anywhere` réduit le min-content — donc laisse une carte (grille, flex) se resserrer. Avec
     `break-word`, un mot long (« Accompagnements » : 411 px à l'échelle de texte 2,0) élargissait la
     carte, et le document atteignait 500 px sur un écran de 375 : contenu coupé (carte 19). */
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--police-titres); line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-weight: 900; font-size: clamp(1.4rem, 4.5vw, 1.9rem); margin-top: 2rem; }
h3 { font-weight: 700; font-size: 1.15rem; margin: 0; }
p { margin: 0 0 0.75em; }
a { color: var(--accent-texte); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.conteneur { max-width: 52rem; margin-inline: auto; padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem; }
.entete { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.entete__logo { width: 72px; height: 72px; border-radius: var(--rayon); object-fit: cover; box-shadow: var(--ombre); }
.surtitre { font-family: var(--police-titres); font-weight: 700; color: var(--accent-texte); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin: 0; }
.note { font-weight: 700; }
.encart { background: var(--surface); border-radius: var(--rayon); padding: 1rem 1.25rem; margin-block: 1.25rem; box-shadow: var(--ombre); }
.encart--vif { border-left: 6px solid var(--accent); }
.encart p:last-child { margin-bottom: 0; }
.encart h2 { margin-top: 0; }
.discret { color: var(--encre-douce); font-size: 0.95rem; }
.menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.produit { background: var(--blanc); border-radius: var(--rayon); padding: 1rem 1.25rem; box-shadow: var(--ombre); display: grid; gap: 0.25rem; }
.produit__tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; align-items: baseline; }
/* ⛔ Avec `overflow-wrap: anywhere`, un texte en flex peut se resserrer jusqu'à UNE lettre par ligne
   (vu le 2026-09-30, suivi à 320 px ×2 : « S / a / v / o / y… » — la mesure disait vert, c'est la
   capture qui l'a montré). Une base de 10rem au texte : en dessous, c'est le prix ou le champ qui
   passe à la ligne, pas le texte qui s'effondre. */
.produit__tete > :first-child, .ligne > :first-child { flex: 1 1 10rem; }
.produit__prix { font-family: var(--police-titres); font-weight: 900; white-space: nowrap; }
.produit--indisponible { opacity: 0.7; }
.etiquette { display: inline-block; background: var(--encre); color: var(--fond); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.85rem; font-weight: 700; }
.liens { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; list-style: none; padding: 0; }
.liens a { display: inline-flex; align-items: center; min-height: var(--cible); }
/* Liens seuls dans leur paragraphe : ce sont des cibles, pas du texte courant (carte 19 : 16 à 40 px
   de haut mesurés). Un lien DANS une phrase n'est pas concerné (WCAG 2.5.8, exception « en ligne »). */
.surtitre a, .lien-cible { display: inline-flex; align-items: center; min-height: var(--cible); }
.pied { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--filet); color: var(--encre-douce); font-size: 0.9rem; }
.pied a { color: var(--encre-douce); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Formulaire de commande et suivi (carte 15). */
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
legend { padding: 0; }
legend h2 { margin-top: 2rem; }
.choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.5rem; }
.choix__item { position: relative; display: grid; justify-items: center; align-content: center; background: var(--blanc); border: 2px solid var(--encre-douce); border-radius: 10px; padding: 0.4rem 0.25rem; min-height: 3.25rem; cursor: pointer; text-align: center; }
.choix__item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choix__item:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choix__heure { font-family: var(--police-titres); font-weight: 900; white-space: nowrap; }
.choix__places { font-size: 0.8rem; color: var(--encre-douce); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.choix__item--complet { opacity: 0.55; cursor: not-allowed; }
.choix__item:has(input:checked) { border-color: var(--accent); background: var(--surface); }
/* Le champ quantité ne rétrécit plus face à un nom long (31 px mesurés) : la ligne passe à la ligne. */
.ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.quantite { flex-shrink: 0; width: 4.5rem; min-height: var(--cible); font: inherit; text-align: center; border: 2px solid var(--encre-douce); border-radius: 10px; }
.categorie { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.champ { display: grid; gap: 0.3rem; margin-bottom: 0.9rem; }
.champ label { font-weight: 700; }
.champ input, .champ textarea { font: inherit; color: var(--encre); background: var(--blanc); border: 2px solid var(--encre-douce); border-radius: 10px; padding: 0.55rem 0.75rem; min-height: var(--cible); width: 100%; }
.champ textarea { resize: vertical; }
.choix--notes { grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); }
.semaine { margin: 0; }
.semaine dt { font-weight: 700; margin-top: 0.75rem; }
.semaine dt:first-child { margin-top: 0; }
.semaine dd { margin: 0.1rem 0 0; }
.semaine__horaire { white-space: nowrap; }
.champ select { font: inherit; color: var(--encre); background: var(--blanc); border: 2px solid var(--encre-douce); border-radius: 10px; padding: 0.55rem 0.75rem; min-height: var(--cible); width: 100%; }
.avis { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.avis__note { font-family: var(--police-titres); font-weight: 900; }
.pot-de-miel { display: none; }
.total { font-size: 1.2rem; margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.25rem; }
.bouton--secondaire { background: transparent; color: var(--encre); border: 2px solid var(--encre); }
.bouton--secondaire:hover { background: var(--encre); color: var(--fond); }
button.bouton { cursor: pointer; font-size: 1rem; }

/* Socle du design d'Alix (carte 26, A) : lien d'évitement, pictogrammes au trait, illustrations. */
.lien-evitement {
  position: absolute; left: 0.5rem; top: -10rem; z-index: 10; padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--encre); color: var(--fond); font-weight: 700; min-height: var(--cible);
}
.lien-evitement:focus { top: 0.5rem; }
.sprite { display: none; }
.icone { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Démo à deux fenêtres (RUBAN_DEMO, jamais en production) : moutarde, texte brun (8,08 : 1). */
.ruban-demo {
  margin: 0; padding: 0.6rem 1rem; background: var(--accent-2); color: var(--encre);
  font-family: var(--police-titres); font-size: 1.05rem; text-align: center;
}
.ruban-demo strong { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 900; }

/* =====================================================================
   Design d'Alix (carte 24) — règles RECOPIÉES de prototype.css, palette Appétit résolue, dans
   l'ordre du prototype (les surcharges suivent leur base). Portage : carte 26.
   ===================================================================== */
/* Page truck (B) */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; padding: 0.75rem 1.5rem; border-radius: 999px; border: 0; font-family: var(--police-titres); font-weight: 900; font-size: 1.05rem; text-decoration: none; background: var(--accent); color: var(--sur-accent); cursor: pointer; text-align: center; box-shadow: inset 0 0 0 2px var(--bord-accent); }
.bouton:hover { background: var(--accent-survol); }
.bouton--plein { width: 100%; }
.bouton--contour { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.bouton--contour:hover { background: var(--surface); }
.bouton--petit { min-height: var(--cible); padding: 0.5rem 1rem; font-size: 0.95rem; }
.banniere { position: relative; height: 11rem; overflow: hidden; background: var(--accent-2); }
.banniere__dessin { position: absolute; right: -0.5rem; bottom: -0.25rem; width: 15rem; height: auto; color: var(--surface); opacity: 0.9; }
.page { max-width: var(--largeur); margin-inline: auto; padding: 0 var(--gouttiere) 7rem; }
.fiche { position: relative; margin-top: -3rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.25rem; display: grid; gap: 0.75rem; }
.fiche__haut { display: flex; gap: 1rem; align-items: center; }
.fiche__logo { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--surface); color: var(--encre); display: grid; place-items: center; font-family: var(--police-titres); font-weight: 900; font-size: 1.4rem; box-shadow: 0 0 0 4px var(--blanc), var(--ombre); margin-top: -2.5rem; }
.onglets { position: sticky; top: 0; z-index: 5; margin: 1.25rem calc(-1 * var(--gouttiere)) 0; background: color-mix(in srgb, var(--fond) 96%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--filet); }
.onglets ul { list-style: none; margin: 0; padding: 0.5rem var(--gouttiere); display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.onglets ul::-webkit-scrollbar { display: none; }
.onglets a { display: inline-flex; align-items: center; min-height: var(--cible); padding: 0 1rem; border-radius: 999px; white-space: nowrap; text-decoration: none; color: var(--encre); font-weight: 700; scroll-snap-align: start; }
.onglets a:hover { background: var(--surface); }
.onglets a[aria-current="true"] { background: var(--encre); color: var(--fond); }
.rubrique { padding-top: 1.75rem; scroll-margin-top: 4rem; }
.rubrique > h2 { margin-bottom: 0.25rem; }
.rubrique > .discret { margin-bottom: 0.75rem; }
.ajouter { position: absolute; right: 0.35rem; bottom: 0.35rem; width: var(--cible); height: var(--cible); display: grid; place-items: center; border-radius: 50%; background: var(--blanc); color: var(--encre); box-shadow: var(--ombre); }
.ajouter:hover { background: var(--accent); }
.carte-info { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.25rem; display: grid; gap: 0.75rem; }
.carte-info + .carte-info { margin-top: 0.75rem; }
.ligne-icone { display: flex; gap: 0.75rem; align-items: flex-start; }
.ligne-icone .icone { margin-top: 0.15rem; color: var(--accent-texte); }
.liens-action { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.resume-avis { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.resume-avis__note { font-family: var(--police-titres); font-weight: 900; font-size: 3rem; line-height: 1; }
.liste-avis { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.un-avis { background: var(--surface); border-radius: var(--rayon-petit); padding: 1rem; display: grid; gap: 0.35rem; }
.un-avis__tete { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.etoiles { color: var(--accent-texte); letter-spacing: 0.1em; }
.barre-action { position: fixed; inset: auto 0 0 0; z-index: 10; background: var(--blanc); box-shadow: var(--ombre-haute); padding: 0.75rem var(--gouttiere) calc(0.75rem + env(safe-area-inset-bottom)); }
.barre-action__dedans { max-width: var(--largeur); margin-inline: auto; display: grid; gap: 0.35rem; }
.barre-action .discret { text-align: center; font-size: 0.85rem; }
@media (min-width: 900px) {
  .banniere { height: 14rem; }
  .colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; align-items: start; }
  .colonnes__cote { position: sticky; top: 4.5rem; padding-top: 1.75rem; }
  .barre-action { display: none; }
  .commander-cote { display: grid; }
  .page { padding-bottom: 3rem; }
}
.commander-cote { display: none; gap: 0.5rem; margin-bottom: 0.75rem; }
.fiche__haut { flex-wrap: wrap; }
.fiche__haut > div { flex: 1 1 12rem; min-width: 0; }
.d-encre { fill: var(--encre); }
.d-accent { fill: var(--accent); }
.d-trait-accent { stroke: var(--accent-2); }
.d-trait-surface { stroke: var(--surface); }
.colonnes > div > .rubrique + .rubrique { border-top: 4px solid var(--surface); margin-top: 1.5rem; }
@media (max-width: 899px) {
  .colonnes > div > .rubrique + .rubrique { margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); }
}
.fiche__logo { background: var(--accent); color: var(--sur-accent); }
.ajouter { background: var(--accent); color: var(--sur-accent); box-shadow: var(--ombre), inset 0 0 0 2px var(--bord-accent); }
.ajouter:hover { background: var(--accent-survol); }
.onglets a:hover { background: var(--accent-2-pale); }
.onglets a[aria-current="true"] { background: var(--accent); color: var(--sur-accent); }
.colonnes > div > .rubrique + .rubrique { border-top-color: var(--accent-2-pale); }
/* Ordinateur : la largeur d'Alix (prototype.css, « la page n'occupait que 960 px au centre ») —
   oubliée au portage, d'où une page truck étroite et un menu en une colonne (carte 27, J). */
@media (min-width: 900px) {
  :root { --largeur: 78rem; }
  .colonnes { grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.5rem; }
  .colonnes > div > .rubrique + .rubrique { margin-inline: 0; }
}
@media (min-width: 1440px) {
  :root { --largeur: 88rem; }
  .colonnes { grid-template-columns: minmax(0, 1fr) 24rem; }
}
.note-mini__etoile { color: var(--accent-2); }
.etat-ouvert { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.etat-ouvert::before { content: ''; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ouvert); }
.etat-ouvert--grand { padding: 0.35rem 0.95rem; border-radius: 999px; background: var(--ouvert); color: var(--sur-ouvert); }
.etat-ouvert--grand::before { background: var(--sur-ouvert); }
.banniere { height: 12.5rem; }
.banniere::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3.6rem; height: 3px; background: color-mix(in srgb, var(--encre) 18%, transparent); }
.banniere__dessin { left: 0; right: 0; bottom: 2.4rem; z-index: 1; margin-inline: auto; width: 13.5rem; opacity: 1; }
.fiche { margin: -1.75rem calc(-1 * var(--gouttiere)) 0; padding: 1.5rem var(--gouttiere) 0.5rem; border-radius: 24px 24px 0 0; background: var(--fond); box-shadow: none; gap: 0.85rem; z-index: 2; }
.fiche__haut { align-items: flex-start; justify-content: space-between; }
.fiche__titre { display: grid; gap: 0.2rem; }
.fiche__titre h1 { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -0.02em; }
.fiche__note { display: grid; justify-items: center; flex: 0 0 auto; padding: 0.45rem 0.85rem; border-radius: 14px; background: var(--surface); color: var(--encre); text-decoration: none; }
.fiche__note strong { font-family: var(--police-titres); font-weight: 900; font-size: 1.3rem; }
.fiche__note span { font-size: 0.875rem; color: var(--encre-douce); }
.fiche__desc { color: var(--encre-douce); }
.infos-truck { list-style: none; margin: 0.25rem 0 0; padding: 0; border-radius: var(--rayon); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet); }
.infos-truck li { display: flex; gap: 0.75rem; align-items: center; padding: 0.85rem 1rem; }
.infos-truck li + li { border-top: 1px solid var(--filet); }
.infos-truck li > .icone { color: var(--accent-texte); }
.infos-truck__texte { display: grid; flex: 1; min-width: 0; }
.infos-truck__texte span { font-size: 0.9rem; color: var(--encre-douce); }
.infos-truck__lien { display: inline-flex; align-items: center; min-height: var(--cible); font-weight: 700; flex-shrink: 0; }
.onglets a[aria-current="true"] { background: var(--encre); color: var(--fond); }
.carte-menu { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0 1rem; }
.ligne-plat { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--filet); scroll-margin-top: 5rem; }
.carte-menu > .ligne-plat:last-child { border-bottom: 0; }
.ligne-plat__texte { position: relative; flex: 1 1 11rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.ligne-plat__texte h3 { font-weight: 800; font-size: 1.15rem; }
.ligne-plat__desc { font-size: 0.95rem; line-height: 1.4; color: var(--encre-douce); }
.ligne-plat__allergenes { font-size: 0.875rem; color: var(--encre-douce); }
.ligne-plat__prix { font-family: var(--police-titres); font-weight: 900; font-size: 1.1rem; }
.ligne-plat__media { position: relative; flex-shrink: 0; align-self: flex-start; }
.ligne-plat__visuel { display: grid; place-items: center; width: 6.75rem; height: 6.75rem; border-radius: var(--rayon); background: var(--surface); }
.ligne-plat__visuel .illus { width: 80%; height: 80%; }
.ajouter { right: -0.4rem; bottom: -0.4rem; background: var(--blanc); color: var(--accent-contour); box-shadow: inset 0 0 0 2px var(--accent-contour), var(--ombre); }
.ajouter .icone { stroke-width: 2.6; }
.ajouter:hover { background: var(--accent); color: var(--sur-accent); }
.badge-epuise { display: inline-block; padding: 0.1rem 0.65rem; border-radius: 999px; font-size: 0.875rem; font-weight: 700; }
.badge-epuise { background: color-mix(in srgb, var(--encre) 8%, var(--fond)); color: var(--encre-douce); }
.ligne-plat.plat--epuise :is(.ligne-plat__texte h3, .ligne-plat__prix) { color: var(--encre-douce); }
.ligne-plat.plat--epuise .ligne-plat__visuel .illus { opacity: 0.5; filter: grayscale(0.6); }
/* Carte 37 : « plus que 3 » et le remplaçant d'un produit épuisé. */
.ligne-plat__reste, .article__reste { font-weight: 700; color: var(--accent); }
.ligne-plat__remplacant { margin: 0; }
.article--epuise .article__nom { justify-items: start; }
.article--epuise .article__nom > strong { color: var(--encre-douce); }
.article--epuise .vignette .illus { opacity: 0.5; filter: grayscale(0.6); }
@media (min-width: 900px) {
  .banniere { height: 15rem; }
  .banniere__dessin { width: 18rem; }
  .banniere::after { bottom: 4.4rem; }
  .fiche { margin: -2.5rem 0 0; padding: 2rem 2rem 1.5rem; border-radius: 24px; box-shadow: var(--ombre); background: var(--blanc); }
  .commander-cote { display: grid; }
  .infos-truck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .infos-truck li + li { border-top: 0; border-left: 1px solid var(--filet); }
  .carte-menu { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1rem; }
  .ligne-plat, .carte-menu > .ligne-plat:last-child { padding: 1rem; border: 0; border-radius: var(--rayon); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet); }
}

/* Ajouts du portage (carte 26, B) : les listes d'actions sont des <ul> ; le logo du pro est une
   image ; « photo à venir » (2026-10-23) : l'image plus petite, sa légende écrite dessous. */
.ligne-plat__visuel--a-venir { align-content: center; gap: 0.15rem; padding: 0.4rem; }
.ligne-plat__visuel--a-venir .illus { width: 55%; height: auto; }
.ligne-plat__a-venir { font-size: 0.75rem; font-weight: 700; line-height: 1.1; text-align: center; color: var(--encre-douce); }
.liens-action { list-style: none; margin: 0; padding: 0; }
.fiche__logo { object-fit: cover; }
.fiche__infos { display: grid; gap: 0.75rem; }
.semaine .aujourdhui { color: var(--encre); }
@media (max-width: 899px) { .colonnes__cote { margin-top: 2rem; } }

/* Commander (C) — quantités en pastilles 0 à 10 sans script : des boutons radio cachés, l'état
   coché choisit lequel des onze affichages se voit. */
.vignette { position: relative; display: grid; place-items: center; border-radius: var(--rayon-petit); background: var(--accent-2-pale); color: var(--encre-2); width: 6.5rem; height: 6.5rem; }
.plat__prix { font-family: var(--police-titres); font-weight: 900; }
.barre-haut { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--fond) 96%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--filet); }
.barre-haut__dedans { max-width: var(--largeur); margin-inline: auto; padding: 0.5rem var(--gouttiere); display: flex; align-items: center; gap: 0.5rem; }
.retour { display: grid; place-items: center; width: var(--cible); height: var(--cible); border-radius: 50%; color: var(--encre); }
.retour:hover { background: var(--surface); }
.barre-haut__titre { display: grid; }
.barre-haut__titre span { font-size: 0.85rem; color: var(--encre-douce); }
.bloc { padding-top: 1.75rem; scroll-margin-top: 4.5rem; }
.bloc > h2 { margin-bottom: 0.75rem; display: flex; gap: 0.6rem; align-items: center; }
.numero { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--encre); color: var(--fond); font-size: 1rem; }
.categorie { margin: 1.25rem 0 0.25rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--encre-douce); }
.article { padding: 1rem 0; border-bottom: 1px solid var(--filet); display: grid; gap: 0.6rem; }
.article__haut { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.article__haut label { flex: 1 1 10rem; display: grid; gap: 0.15rem; cursor: pointer; }
.article__haut .vignette { width: 4rem; height: 4rem; }
.puces { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.puces legend { width: 100%; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; padding: 0; }
.puces legend.visuellement-cache { width: 1px; margin: 0; }
.puce { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; min-height: var(--cible); padding: 0 1rem; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--filet); cursor: pointer; font-size: 0.95rem; }
.puce input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.puce:has(input:checked) { background: var(--encre); color: var(--fond); box-shadow: none; }
.puce:has(input:checked)::before { content: '✓'; font-weight: 700; }
.puce:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.creneaux { display: flex; gap: 0.5rem; overflow-x: auto; margin: 0 calc(-1 * var(--gouttiere)); padding: 0.25rem var(--gouttiere) 0.5rem; scroll-snap-type: x proximity; }
.creneau { position: relative; flex: 0 0 auto; scroll-snap-align: start; display: grid; justify-items: center; min-width: 5.5rem; min-height: 3.75rem; padding: 0.5rem 0.75rem; border-radius: var(--rayon-petit); background: var(--blanc); box-shadow: inset 0 0 0 2px var(--filet); cursor: pointer; }
.creneau input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.creneau__heure { font-family: var(--police-titres); font-weight: 900; white-space: nowrap; }
.creneau__places { font-size: 0.8rem; color: var(--encre-douce); white-space: nowrap; }
.creneau--bientot-plein .creneau__places { color: var(--accent-texte); font-weight: 700; }
.creneau:has(input:checked) { background: var(--encre); color: var(--fond); box-shadow: none; }
.creneau:has(input:checked) .creneau__places { color: var(--surface); }
.creneau:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.creneau--complet { opacity: 0.5; cursor: not-allowed; text-decoration: line-through; }
.champ { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.champ input { font: inherit; color: var(--encre); background: var(--blanc); border: 2px solid var(--filet); border-radius: var(--rayon-petit); padding: 0.65rem 0.85rem; min-height: 3.25rem; width: 100%; }
.champ input:focus { border-color: var(--encre); outline: none; }
.champ input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rassurance { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--surface); border-radius: var(--rayon-petit); padding: 0.9rem 1rem; margin-top: 1rem; }
.rassurance .icone { color: var(--accent-texte); margin-top: 0.15rem; }
  .barre-action--toujours { display: block; position: sticky; margin: 0 calc(-1 * var(--gouttiere)); border-radius: var(--rayon) var(--rayon) 0 0; }
fieldset.bloc { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.bloc > legend { padding: 0; float: left; width: 100%; padding-top: 1.75rem; margin-bottom: 0.75rem; }
fieldset.bloc > legend + * { clear: both; }
fieldset.bloc > legend h2 { display: flex; gap: 0.6rem; align-items: center; }
fieldset.bloc { padding-top: 0; }
.article__nom { flex: 1 1 10rem; display: grid; gap: 0.15rem; min-width: 0; }
fieldset.qte { border: 0; padding: 0; margin: 0 0 0 auto; min-width: 0; position: relative; }
.qte-choix { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.qte-affichage { display: inline-flex; border-radius: 999px; background: var(--surface); padding: 0.25rem; }
.qte-etat { display: none; align-items: center; gap: 0.25rem; }
.qte-bouton { display: grid; place-items: center; width: var(--cible); height: var(--cible); border-radius: 50%; background: var(--blanc); color: var(--encre); font-family: var(--police-titres); font-weight: 900; font-size: 1.4rem; line-height: 1; cursor: pointer; user-select: none; box-shadow: var(--ombre); }
.qte-bouton:hover { background: var(--encre); color: var(--fond); }
.qte-bouton--plus { background: var(--accent); color: var(--sur-accent); box-shadow: inset 0 0 0 2px var(--bord-accent); }
.qte-bouton--plus:hover { background: var(--accent-survol); color: var(--sur-accent); }
.qte-bouton--inactif { opacity: 0.35; cursor: default; box-shadow: none; }
.qte-bouton--inactif:hover { background: var(--blanc); color: var(--encre); }
.qte-nombre { min-width: 2rem; text-align: center; font-family: var(--police-titres); font-weight: 900; font-size: 1.2rem; }
fieldset.qte:has(.qte-choix:focus-visible) .qte-affichage { outline: 3px solid var(--focus); outline-offset: 2px; }
.article:has(.qte-choix:checked:not([value="0"])) { background: var(--accent-2-pale); box-shadow: -0.75rem 0 0 var(--accent-2-pale), 0.75rem 0 0 var(--accent-2-pale); }
.qte-choix:nth-of-type(1):checked ~ .qte-affichage .qte-etat:nth-child(1) { display: inline-flex; }
.qte-choix:nth-of-type(2):checked ~ .qte-affichage .qte-etat:nth-child(2) { display: inline-flex; }
.qte-choix:nth-of-type(3):checked ~ .qte-affichage .qte-etat:nth-child(3) { display: inline-flex; }
.qte-choix:nth-of-type(4):checked ~ .qte-affichage .qte-etat:nth-child(4) { display: inline-flex; }
.qte-choix:nth-of-type(5):checked ~ .qte-affichage .qte-etat:nth-child(5) { display: inline-flex; }
.qte-choix:nth-of-type(6):checked ~ .qte-affichage .qte-etat:nth-child(6) { display: inline-flex; }
.qte-choix:nth-of-type(7):checked ~ .qte-affichage .qte-etat:nth-child(7) { display: inline-flex; }
.qte-choix:nth-of-type(8):checked ~ .qte-affichage .qte-etat:nth-child(8) { display: inline-flex; }
.qte-choix:nth-of-type(9):checked ~ .qte-affichage .qte-etat:nth-child(9) { display: inline-flex; }
.qte-choix:nth-of-type(10):checked ~ .qte-affichage .qte-etat:nth-child(10) { display: inline-flex; }
.qte-choix:nth-of-type(11):checked ~ .qte-affichage .qte-etat:nth-child(11) { display: inline-flex; }
form:has(.qte-choix) { counter-reset: articles; }
.bouton--panier { gap: 0.75rem; }
/* Pastille plus SOMBRE que le bouton : éclaircie (blanc à 20 %), le chiffre blanc tombait à 4,05 (carte 26, F) ; ici 7,49. */
.panier-compte::before { content: counter(articles); display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding: 0 0.4rem; border-radius: 999px; background: color-mix(in srgb, var(--encre) 25%, transparent); font-size: 0.95rem; }
.qte-choix[value="1"]:checked { counter-increment: articles 1; }
.qte-choix[value="2"]:checked { counter-increment: articles 2; }
.qte-choix[value="3"]:checked { counter-increment: articles 3; }
.qte-choix[value="4"]:checked { counter-increment: articles 4; }
.qte-choix[value="5"]:checked { counter-increment: articles 5; }
.qte-choix[value="6"]:checked { counter-increment: articles 6; }
.qte-choix[value="7"]:checked { counter-increment: articles 7; }
.qte-choix[value="8"]:checked { counter-increment: articles 8; }
.qte-choix[value="9"]:checked { counter-increment: articles 9; }
.qte-choix[value="10"]:checked { counter-increment: articles 10; }
.numero { background: var(--accent); color: var(--sur-accent); }
.rassurance { background: var(--ouvert-pale); }
.rassurance .icone { color: var(--encre); }
.puce:has(input:checked), .creneau:has(input:checked) { background: var(--accent); color: var(--sur-accent); box-shadow: inset 0 0 0 2px var(--bord-accent); }
.creneau:has(input:checked) .creneau__places { color: var(--sur-accent); }
.illus { display: block; width: 100%; height: 100%; }
.numero { background: var(--encre); color: var(--fond); }
.rassurance { background: var(--surface); }
.article__haut .vignette { width: 3.75rem; height: 3.75rem; background: var(--surface); }
.article__haut .vignette > .illus { width: 80%; height: 80%; }
.puce:has(input:checked), .creneau:has(input:checked) { background: var(--encre); color: var(--fond); box-shadow: none; }
.creneau:has(input:checked) .creneau__places { color: var(--surface); }
.article:has(.qte-choix:checked:not([value="0"])) { background: var(--blanc); box-shadow: inset 0 0 0 2px var(--accent); border-radius: var(--rayon); margin-inline: -0.75rem; padding-inline: 0.75rem; border-bottom-color: transparent; }
fieldset.qte:has(.qte-choix[value="0"]:checked) .qte-affichage { background: transparent; padding: 0; }
.qte-etat:first-child .qte-bouton--inactif, .qte-etat:first-child .qte-nombre { display: none; }
.qte-etat:first-child .qte-bouton--plus { background: var(--blanc); color: var(--accent-contour); box-shadow: inset 0 0 0 2px var(--accent-contour); }
.qte-etat:first-child .qte-bouton--plus:hover { background: var(--accent); color: var(--sur-accent); }
fieldset.qte:has(.qte-choix:checked:not([value="0"])) .qte-affichage { background: var(--accent); }
fieldset.qte:has(.qte-choix:checked:not([value="0"])) .qte-bouton { background: color-mix(in srgb, var(--sur-accent) 18%, transparent); color: var(--sur-accent); box-shadow: none; }
fieldset.qte:has(.qte-choix:checked:not([value="0"])) .qte-nombre { color: var(--sur-accent); }
.champ textarea { font: inherit; width: 100%; box-sizing: border-box; min-height: 6.5rem; padding: 0.65rem 0.85rem; resize: vertical; color: var(--encre); background: var(--blanc); border: 2px solid var(--filet); border-radius: var(--rayon-petit); }
.champ textarea:focus { border-color: var(--encre); outline: none; }
.champ textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 1100px) {
  /* Les choix à gauche ; heure de retrait, coordonnées et envoi à droite (prototype, l. 905–917).
     Le pied de page est hors du formulaire ici (base.html) : sa règle de grille ne sert pas. */
  form:has(> #choix) { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; column-gap: 3rem; align-items: start; }
  form:has(> #choix) > #choix { grid-column: 1; grid-row: 1 / span 4; }
  form:has(> #choix) > #retrait, form:has(> #choix) > #coordonnees, form:has(> #choix) > .barre-action { grid-column: 2; }
  form:has(> #choix) > .barre-action { margin: 1.5rem 0 0; border-radius: var(--rayon); box-shadow: var(--ombre); position: sticky; bottom: 1rem; z-index: 5; grid-row: 3; }
  #retrait .creneaux { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .page:has(form > #choix) { padding-bottom: 3rem; }
}
/* La flèche ne cède pas sa place au nom du truck : écrasée à 25 px de large par un nom long
   (mesuré le 2026-10-23, 320 px) ; c'est le titre qui passe à la ligne. */
.retour { flex-shrink: 0; }
.barre-haut__titre { min-width: 0; }
/* Suivi (D) — la frise et le récapitulatif ; le « mot du truck » (.message-truck) est reporté. */
.statut { margin-top: 1rem; border-radius: var(--rayon); padding: 1.5rem 1.25rem; background: var(--encre); color: var(--fond); display: grid; gap: 0.5rem; position: relative; overflow: hidden; }
.statut h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
.statut__retrait { display: flex; gap: 0.5rem; align-items: center; font-size: 1.1rem; }
.statut__retrait strong { font-family: var(--police-titres); font-weight: 900; }
.frise { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; }
.frise li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; position: relative; padding-bottom: 1.1rem; }
.frise li::before { content: ''; position: absolute; left: calc(1rem - 1px); top: 1.75rem; bottom: 0.15rem; width: 2px; background: var(--filet); }
.frise li:last-child::before { display: none; }
.frise__rond { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--blanc); box-shadow: inset 0 0 0 2px var(--filet); color: var(--encre-douce); }
.frise__rond .icone { width: 1rem; height: 1rem; stroke-width: 3; }
.frise__texte { display: grid; padding-top: 0.2rem; }
.frise__texte span { font-size: 0.9rem; color: var(--encre-douce); }
.frise .faite .frise__rond { background: var(--encre); color: var(--fond); box-shadow: none; }
.frise .faite::before { background: var(--encre); }
.frise .en-cours .frise__rond { background: var(--accent); color: var(--sur-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); }
.frise .en-cours .frise__texte strong { font-family: var(--police-titres); font-weight: 900; font-size: 1.1rem; }
.frise .a-venir .frise__texte { color: var(--encre-douce); }
.actions-suivi { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
@media (min-width: 600px) {
  .actions-suivi { grid-template-columns: 1fr 1fr; }
}
.recap { margin-top: 1.25rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); }
.recap summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding: 0.75rem 1.25rem; font-family: var(--police-titres); font-weight: 900; }
.recap summary::-webkit-details-marker { display: none; }
.recap summary::after { content: '▾'; transition: transform 0.2s; }
.recap[open] summary::after { transform: rotate(180deg); }
.recap__corps { padding: 0 1.25rem 1.25rem; display: grid; gap: 0.5rem; }
.recap__ligne { display: flex; justify-content: space-between; gap: 1rem; }
.recap__total { border-top: 1px solid var(--filet); padding-top: 0.6rem; font-family: var(--police-titres); font-weight: 900; font-size: 1.15rem; }
.statut { gap: 0.9rem; padding: 1.5rem 1.35rem; border-radius: 24px; }
.statut__coche { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ouvert); color: var(--sur-ouvert); }
.statut__coche .icone { width: 1.9rem; height: 1.9rem; stroke-width: 3; }
.statut h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -0.02em; }
.statut .statut__retrait { display: grid; gap: 0.15rem; padding: 0.9rem 1rem; border-radius: var(--rayon); background: color-mix(in srgb, var(--fond) 9%, transparent); font-size: 1rem; }
.statut__retrait span { color: var(--surface); }
.statut .statut__retrait strong { font-size: 1.6rem; }
.bouton--clair { background: var(--fond); color: var(--encre); box-shadow: none; }
.bouton--clair:hover { background: var(--surface); }
.frise .faite .frise__rond { background: var(--encre); color: var(--fond); }
.frise .faite::before { background: var(--encre); }
.frise .en-cours .frise__rond { background: var(--ouvert); color: var(--sur-ouvert); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ouvert) 25%, transparent); }
.frise__point { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--sur-ouvert); }
.rappel { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--rayon); background: var(--surface); font-size: 0.95rem; line-height: 1.5; }
.statut__sous-titre { color: var(--surface); }
.statut__coche--attente { background: var(--accent-2); color: var(--encre); }
.statut__coche--annulee { background: color-mix(in srgb, var(--fond) 16%, transparent); color: var(--fond); }
.barre { text-decoration: line-through; text-decoration-thickness: 2px; }
.frise .en-cours--attente .frise__rond { background: var(--accent-2); color: var(--encre); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.frise .en-cours--attente .frise__point { background: var(--encre); }
.bouton--discret { background: transparent; color: var(--encre-douce); box-shadow: none; text-decoration: underline; text-underline-offset: 0.2em; font-family: var(--police-texte); font-weight: 700; font-size: 1rem; }
.bouton--discret:hover { background: var(--surface); color: var(--encre); }
.recap__ligne small { display: block; font-size: 0.875rem; color: var(--encre-douce); }
.avis-form { display: grid; gap: 0.9rem; margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre); }
.avis-form form { display: grid; gap: 0.9rem; }
.avis-form .champ { margin: 0; }
.notes { border: 0; margin: 0; padding: 0; min-width: 0; }
.notes legend { padding: 0; margin-bottom: 0.5rem; font-weight: 700; }
.notes__choix { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
/* Cinq colonnes forcées : 33 px de large à 320 px, texte ×2 (mesuré le 2026-10-23). Une case
   ne descend plus sous 3 rem — qui suit la taille du texte ; la rangée passe à la ligne. */
.notes__choix { grid-template-columns: repeat(auto-fit, minmax(3rem, 1fr)); }
.note-choix { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.5rem; border-radius: 12px; background: var(--blanc); box-shadow: inset 0 0 0 2px var(--filet); cursor: pointer; font-family: var(--police-titres); font-weight: 900; line-height: 1.1; }
.note-choix input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.note-choix > span[aria-hidden] { font-size: 1.35rem; color: color-mix(in srgb, var(--encre) 55%, var(--blanc)); }
.note-choix:hover { background: var(--surface); }
.note-choix:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.note-choix:has(input:checked) { background: var(--encre); color: var(--fond); box-shadow: none; }
.notes__choix:has(.note-choix:nth-child(1) input:checked) .note-choix:nth-child(-n+1) > span[aria-hidden], .notes__choix:has(.note-choix:nth-child(2) input:checked) .note-choix:nth-child(-n+2) > span[aria-hidden], .notes__choix:has(.note-choix:nth-child(3) input:checked) .note-choix:nth-child(-n+3) > span[aria-hidden], .notes__choix:has(.note-choix:nth-child(4) input:checked) .note-choix:nth-child(-n+4) > span[aria-hidden], .notes__choix:has(.note-choix:nth-child(5) input:checked) .note-choix:nth-child(-n+5) > span[aria-hidden] { color: var(--accent-2); }
.suivi-cote { display: grid; align-content: start; }
/* Le prototype n'a aucune marge de titre ni de paragraphe (p, h1, h2 { margin: 0 }) : ses blocs
   s'espacent par `gap`. Les nôtres en ont une, gardée pour les pages pas encore portées. */
.statut :is(h1, p), .avis-form :is(h2, p), .recap p, .rassurance p { margin: 0; }
.rappel { margin-bottom: 0; }
.recap__ligne > span:last-child { white-space: nowrap; }
@media (min-width: 1100px) {
  /* Le statut et la frise (ou l'avis) à gauche ; actions, récapitulatif et rappel à droite. */
  .page:has(> .statut) { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; }
  .page:has(> .statut) > .statut { grid-column: 1; grid-row: 1; }
  .page:has(> .statut) > .pied { grid-column: 1 / -1; }
  .page:has(> .statut) > .suivi-cote { grid-column: 2; grid-row: 1 / span 6; }
  .suivi-cote > .actions-suivi { grid-template-columns: 1fr; margin-top: 1rem; }
  .page:has(> .statut) > :is(.frise, .avis-form) { grid-column: 1; grid-row: auto; }
  .page:has(> .statut) { padding-bottom: 3rem; }
}

/* Recherche (carte 26, E) — prototype d'Alix, `accueil.html`. */
.accueil-haut { color: var(--encre); padding: 1.25rem var(--gouttiere) 0.25rem; }
/* Aligné sur le contenu de .page : sa largeur, moins ses gouttières. */
.accueil-haut__dedans { max-width: calc(var(--largeur) - 2 * var(--gouttiere)); margin-inline: auto; display: grid; gap: 0.75rem; }
.accueil-haut h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); margin: 0; }
.accueil-accroche { margin: -0.35rem 0 0; font-size: 1.05rem; color: var(--encre-douce); }
.logo { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-family: var(--police-titres); font-weight: 900; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--encre); }
.logo__marque { width: 2.6rem; height: 2.6rem; padding: 0.55rem 0.4rem; box-sizing: border-box; border-radius: 12px; background: var(--accent-2); flex-shrink: 0; }
/* Deux champs (ville, nom), puis Filtres et Chercher sur une ligne ; les filtres ouverts passent dessous. */
.recherche { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; align-items: start; }
.recherche__champ { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.5rem; background: var(--blanc); color: var(--encre); border-radius: 999px; padding: 0 1.25rem; min-height: 3.6rem; font-size: 1.1rem; box-shadow: inset 0 0 0 2px var(--filet), var(--ombre); }
.recherche__champ input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--encre); min-height: var(--cible); }
.recherche__champ input:focus { outline: none; }
.recherche__champ:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.recherche__champ input::placeholder { color: var(--encre-douce); }
.recherche .filtres { grid-row: 3; grid-column: 1; }
.recherche__envoi { grid-row: 3; grid-column: 2; }
.recherche .filtres[open] { grid-column: 1 / -1; grid-row: 4; }
.filtres { color: var(--encre); }
.filtres summary { list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--cible); cursor: pointer; font-weight: 700; }
.filtres summary::-webkit-details-marker { display: none; }
.filtres__corps { display: grid; gap: 1.1rem; margin-top: 0.5rem; padding: 1.1rem; border-radius: var(--rayon); background: var(--blanc); color: var(--encre); box-shadow: var(--ombre), 0 0 0 1px var(--filet); }
.filtres__groupe { border: 0; margin: 0; padding: 0; min-width: 0; }
.filtres__groupe legend { padding: 0; margin-bottom: 0.6rem; font-family: var(--police-titres); font-weight: 900; font-size: 1.05rem; color: var(--encre); }
.filtres__puces { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filtres__corps .puce { background: var(--blanc); }
.filtres__corps .puce:hover { box-shadow: inset 0 0 0 2px var(--encre-douce); }
.filtres__corps .puce:has(input:checked) { background: var(--encre); color: var(--fond); box-shadow: none; }
@media (min-width: 900px) {
  .recherche { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; align-items: center; column-gap: 0.75rem; }
  .recherche__champ { grid-column: auto; grid-row: 1; min-height: 4rem; padding-inline: 1.5rem; font-size: 1.2rem; gap: 0.75rem; }
  .recherche .filtres { grid-row: 1; grid-column: 3; }
  .recherche__envoi { grid-row: 1; grid-column: 4; }
  .recherche .filtres[open] { grid-column: 1 / -1; grid-row: 2; }
  .filtres__corps { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; column-gap: 2rem; }
}
.page--accueil { padding-bottom: 3rem; }
.page--accueil > .encart { margin-top: 1rem; }
.cuisines { margin: 1rem calc(-1 * var(--gouttiere)) 0; }
.cuisines ul { list-style: none; margin: 0; padding: 0.25rem var(--gouttiere) 0.5rem; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.cuisines ul::-webkit-scrollbar { display: none; }
.cuisines li { flex: none; }
/* Au téléphone la rangée défile (geste naturel) ; sur grand écran elle passe à la ligne : rien n'y est caché sans barre de défilement. */
@media (min-width: 900px) {
  .cuisines ul { flex-wrap: wrap; overflow-x: visible; }
}
.cuisines a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--cible); padding: 0.25rem 1rem 0.25rem 0.3rem; border-radius: 999px; background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--filet); font-size: 0.95rem; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--encre); }
.cuisines a:hover { background: var(--surface); }
.cuisines a[aria-current="true"] { background: var(--encre); color: var(--fond); box-shadow: none; }
.cuisines .illus { width: 2.2rem; height: 2.2rem; padding: 0.25rem; box-sizing: border-box; border-radius: 50%; background: var(--surface); }
.cuisines .cuisines__tout { padding-inline: 1.1rem; }
.ordre-neutre { margin: 1rem 0 0; }
.ordre-neutre + .rubrique { padding-top: 0.75rem; }
.rubrique__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1rem; }
.rubrique__tete h2 { margin: 0; }
.page--accueil > .rubrique + .rubrique { border-top: 4px solid var(--accent-2-pale); margin: 1.5rem calc(-1 * var(--gouttiere)) 0; padding-inline: var(--gouttiere); }
.liste-trucks { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; column-gap: 2rem; }
@media (min-width: 700px) {
  .liste-trucks { grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); }
}
.ligne-truck { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--filet); color: var(--encre); text-decoration: none; }
.ligne-truck__visuel { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 14px; background: var(--surface); flex-shrink: 0; overflow: hidden; }
.ligne-truck__visuel .illus { width: 74%; height: 74%; object-fit: contain; }
.ligne-truck__visuel .illus--camion { width: 80%; }
.ligne-truck__texte { display: grid; gap: 0.2rem; min-width: 0; flex: 1 1 12rem; }
.ligne-truck__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 0.5rem; }
.ligne-truck__nom { font-family: var(--police-titres); font-weight: 900; font-size: 1.1rem; overflow-wrap: anywhere; }
.ligne-truck:hover .ligne-truck__nom { text-decoration: underline; text-underline-offset: 0.15em; }
.ligne-truck--ferme .ligne-truck__visuel .illus { opacity: 0.5; filter: grayscale(0.6); }
.note-mini { display: inline-flex; align-items: center; gap: 0.2rem; background: var(--accent-2-pale); border-radius: 999px; padding: 0.1rem 0.5rem; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
/* Moutarde jamais en texte sur fond clair (charte) : 1,74 mesuré ici. Même teinte que l'étoile de la page truck. */
.note-mini .note-mini__etoile { color: var(--encre-douce); }
.reperes { display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; font-size: 0.95rem; }
.reperes > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ligne-truck__etat { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.75rem; font-size: 0.9rem; }
.etat-commande { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.etat-commande::before { content: "✓"; color: var(--ouvert); font-weight: 900; }
.etat-ferme { padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--encre); color: var(--fond); font-weight: 700; }
.aucun-resultat { margin: 0.5rem 0 0; padding: 1rem; border-radius: var(--rayon); background: var(--surface); }
.principe { margin-top: 2.5rem; padding: 1.5rem 1.25rem; border-radius: var(--rayon); background: var(--surface); }
.principe h2 { font-size: 1.3rem; margin: 0; }
.principe__etapes { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.principe__etapes li { display: flex; gap: 0.85rem; align-items: flex-start; }
.principe__etapes p { display: grid; gap: 0.2rem; margin: 0; color: var(--encre-douce); }
.principe__etapes strong { font-family: var(--police-titres); font-size: 1.05rem; color: var(--encre); }
.principe__etapes .numero { flex: none; }
@media (min-width: 900px) {
  .principe__etapes { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* Introuvable (carte 26, E) — le camion est parti. */
.page--introuvable { display: grid; justify-items: center; gap: 1rem; max-width: 40rem; padding-top: 2.5rem; text-align: center; }
.page--introuvable h1, .introuvable__texte { margin: 0; }
.page--introuvable > .pied { justify-self: stretch; }
.introuvable__dessin { width: min(20rem, 85%); height: auto; padding: 1rem 0.5rem 0.25rem; box-sizing: border-box; border-radius: 24px; background: var(--accent-2); color: var(--surface); }
.introuvable__route { stroke: color-mix(in srgb, var(--encre) 25%, transparent); stroke-width: 3; }
.introuvable__poussiere { fill: none; stroke: var(--surface); stroke-width: 5; stroke-linecap: round; }
.introuvable__texte { color: var(--encre-douce); }
