/* MARLEYQR : carte consultable et commande au telephone. Mobile d'abord, aucune ressource tierce.
   Direction « vitrine » (comme l'ecran 1 du restaurant) : haut vert profond granuleux, bas enduit a la chaux, titres pinceau or,
   noms en condensee, prix en gros avec centimes en exposant, filets or fins.
   Jetons = LEMARLEY/data/theme.json (un test compare ces valeurs au theme du contrat). */

@font-face { font-family: "Jost"; src: url("/fonts/Jost-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("/fonts/KaushanScript-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/fonts/Oswald-VF.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --vert-marley: #336231;
  --vert-profond: #1C3520;
  --vert-nuit: #12241A;
  --or: #B8935D;
  --or-clair: #D9BC8A;
  --brun-prix: #7A4A22;
  --creme: #F6EEDF;
  --creme-2: #EADCC2;
  --encre: #1E1A16;
  --rupture: #8A8A80;
  --encre-douce: #4A4338;
  /* enduit a la chaux (meme recette que MARLEYWEB) */
  --chaux: #e5dcc8;
  --chaux-encre: #1c3520;
  --chaux-encre-2: #2c4733;
  --chaux-prix: #65390f;
  --chaux-lib: #5c4210;
  --papier: rgba(247, 241, 227, 0.78);
  --trait: rgba(92, 66, 16, 0.3);
  --plateau-1: #336231;
  --plateau-2: #1C3520;
  --plateau-3: #12241A;
  --f-corps: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-pinceau: "Kaushan Script", "Brush Script MT", cursive;
  --f-nom: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gouttiere: 1rem;
  --rayon: 0.5rem;
  --rayon-carte: 0.9rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3.9rem; scroll-padding-bottom: 5rem; } /* le focus ne passe jamais sous la navigation collante ni sous la barre du panier */
body {
  margin: 0; color: var(--chaux-encre); font-family: var(--f-corps); font-size: 1.0625rem; line-height: 1.5;
  background-color: var(--chaux);
  background-image:
    radial-gradient(60% 30% at 15% 6%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(50% 25% at 85% 60%, rgba(255, 255, 255, 0.3), transparent 70%),
    url("/css/chaux-nuages.svg"), url("/css/chaux-grain.svg");
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--brun-prix); outline-offset: 2px; border-radius: 2px; }
.entete :focus-visible, .nav-cat :focus-visible, .pied :focus-visible, .barre-panier:focus-visible { outline-color: var(--or-clair); }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 0.5rem; top: -4rem; z-index: 40; background: var(--or-clair); color: var(--vert-nuit); padding: 0.75rem 1.1rem; border-radius: var(--rayon); font-weight: 600; }
.lien-evitement:focus { top: 0.5rem; }
.conteneur { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur-etroit { max-width: 40rem; }

/* ------------------------------------------------------------------ En-tete : vert profond, halo, grain, filet or */
.entete {
  position: relative; color: var(--creme); border-bottom: 3px solid var(--or);
  background-color: var(--vert-nuit);
  background-image:
    radial-gradient(75% 60% at 50% 38%, rgba(75, 130, 80, 0.5), transparent 70%),
    radial-gradient(120% 90% at 50% 0%, #24472c 0%, var(--vert-profond) 55%, var(--vert-nuit) 100%),
    url("/css/grain-vert.svg");
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.55);
}
.entete-interne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.marque { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; min-height: 2.75rem; justify-content: center; }
.marque-nom { font-family: var(--f-pinceau); font-size: 1.9rem; color: var(--or-clair); text-shadow: 0 0.05em 0 rgba(0, 0, 0, 0.3); }
.marque-baseline { font-family: var(--f-cond); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e8cf9d; }
.etiquette-table { flex: none; border: 1px solid var(--or-clair); color: var(--or-clair); border-radius: 999px; padding: 0.15rem 0.95rem; font-family: var(--f-cond); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0, 0, 0, 0.18); }
.entete .fil a { color: var(--or-clair); }

.tete-menu { padding-bottom: 0.25rem; }
.entete .titre-page { color: var(--or-clair); margin-top: 0.4rem; text-shadow: 0 0.04em 0 rgba(0, 0, 0, 0.3); }
.entete .titre-page::after { content: none; }
.tete-menu .intro { margin-top: 0.35rem; color: #efe3c8; max-width: 34rem; }

/* Vedettes : une ligne de trois puces defilantes sous la barre des categories (plateau vert, photo a gauche, nom et prix a droite) */
.vedettes { width: 100%; max-width: 46rem; margin: 0.9rem auto 0; padding-inline: var(--gouttiere); }
.vedettes-titre { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.25rem; font-family: var(--f-cond); font-weight: 600; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--chaux-lib); }
.vedettes-titre::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--or), transparent); }
.vedettes-liste { display: flex; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gouttiere) * -1); padding: 0.3rem var(--gouttiere) 0.4rem; scroll-padding-inline: var(--gouttiere); scrollbar-width: none; overscroll-behavior-x: contain; }
.vedettes-liste::-webkit-scrollbar { display: none; }
.vedette { flex: 0 0 min(78vw, 17rem); scroll-snap-align: start; }
.vedette-lien {
  position: relative; display: flex; align-items: center; gap: 0.5rem; min-height: 4.5rem; padding: 0.25rem 0.75rem 0.25rem 0.25rem; overflow: hidden; text-decoration: none; color: var(--creme);
  border: 1px solid rgba(217, 188, 138, 0.6); border-bottom: 3px solid var(--or); border-radius: var(--rayon-carte);
  background-color: var(--vert-nuit); background-image: radial-gradient(ellipse at 22% 50%, var(--plateau-1) 0%, var(--plateau-2) 60%, var(--plateau-3) 100%), url("/css/grain-vert.svg");
  box-shadow: 0 8px 14px -12px rgba(28, 53, 32, 0.8);
}
.vedette-lien:active { transform: scale(0.98); }
.vedette-img { flex: none; width: 5.5rem; height: auto; aspect-ratio: 4 / 3; object-fit: contain; filter: drop-shadow(0 0.4rem 0.35rem rgba(0, 0, 0, 0.5)); }
.vedette-texte { display: flex; flex-direction: column; min-width: 0; }
.vedette-nom { font-family: var(--f-nom); font-weight: 500; font-size: 1.2rem; line-height: 1.1; color: #fff6e2; }
.vedette-prix { margin-top: 0.1rem; color: #f6e3b4; display: inline-flex; align-items: baseline; gap: 0.4rem; }
.vedette-lib { font-family: var(--f-cond); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: #e8cf9d; }
.vedette-prix .prix-val { font-size: 1.35rem; color: #f6e3b4; }
.ruban { align-self: flex-start; margin-bottom: 0.15rem; padding: 0 0.5rem; border-radius: 999px; background: var(--or-clair); color: var(--vert-nuit); font-family: var(--f-cond); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ruban::before { content: "\2605\00a0"; }

/* ------------------------------------------------------------------ Navigation par categories : collante, onglet actif */
.nav-cat {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(217, 188, 138, 0.4);
  background-color: var(--vert-profond);
  background-image: linear-gradient(180deg, #223f28, var(--vert-profond)), url("/css/grain-vert.svg");
  box-shadow: 0 8px 14px -10px rgba(0, 0, 0, 0.6);
}
.nav-cat ul { position: relative; display: flex; gap: 0.5rem; overflow-x: auto; padding-block: 0.45rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.nav-cat ul::-webkit-scrollbar { display: none; }
.nav-cat li { flex: none; scroll-snap-align: center; }
.nav-cat a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.15rem 1rem; border: 1px solid rgba(217, 188, 138, 0.55); border-radius: 999px;
  color: var(--creme); text-decoration: none; white-space: nowrap; font-family: var(--f-cond); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.09em; text-transform: uppercase;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.nav-cat a:hover { background: rgba(217, 188, 138, 0.2); }
.nav-cat a:active { transform: scale(0.97); }
.nav-cat a[aria-current="true"] { background: var(--or-clair); border-color: var(--or-clair); color: var(--vert-nuit); }

.bandeau-apercu { background: #fff1b8; color: #3b2f00; text-align: center; padding: 0.5rem var(--gouttiere); font-size: 0.9rem; font-weight: 500; }

/* ------------------------------------------------------------------ Titres et textes */
.titre-page { font-family: var(--f-pinceau); font-weight: 400; font-size: 2.3rem; line-height: 1.15; color: var(--vert-profond); margin-top: 1.25rem; }
main > .conteneur > .titre-page::after { content: ""; display: block; width: 100%; max-width: 12rem; height: 2px; margin-top: 0.4rem; background: linear-gradient(90deg, var(--or), transparent); }
main h2 { font-family: var(--f-nom); font-size: 1.5rem; font-weight: 500; line-height: 1.2; color: var(--vert-profond); margin-top: 1.9rem; margin-bottom: 0.4rem; }
.intro { margin-top: 0.5rem; }
.intro-allergenes { font-size: 0.9rem; color: var(--chaux-encre-2); margin-top: 1.25rem; padding-left: 0.75rem; border-left: 3px solid var(--or); }
.petit { font-size: 0.9rem; color: var(--chaux-encre-2); margin-top: 0.5rem; }
.fil { margin-top: 0.6rem; }
.fil a { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--f-cond); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.liste-simple li + li { margin-top: 0.3rem; }
.liste-colonnes { columns: 2 12rem; }
.fiche div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.5rem; padding: 0.45rem 0; border-bottom: 1px solid var(--trait); }
.fiche dt { font-weight: 600; }

/* ------------------------------------------------------------------ Categories et plats */
.categorie { padding-top: 2.1rem; }
.categorie-titre { font-family: var(--f-pinceau); font-weight: 400; font-size: 2rem; line-height: 1.2; color: var(--vert-profond); margin: 0; }
.categorie-titre::after { content: ""; display: block; height: 2px; margin-top: 0.3rem; background: linear-gradient(90deg, var(--or), rgba(184, 147, 93, 0)); }
.categorie-sous { margin-top: 0.4rem; color: var(--chaux-encre-2); font-size: 0.95rem; }
/* Rangee horizontale par categorie : defilement natif a ancrage, la carte suivante depasse (indice de defilement). */
.rangee-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1.5rem; }
.rangee-titres { min-width: 0; }
.rangee-outils { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.rangee-compte { font-family: var(--f-cond); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chaux-lib); white-space: nowrap; }
.rangee-boutons { display: none; gap: 0.5rem; }
.rangee-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: linear-gradient(180deg, #2f5a35, var(--vert-profond)); color: var(--creme); box-shadow: inset 0 0 0 1px rgba(217, 188, 138, 0.6), 0 2px 0 rgba(0, 0, 0, 0.28); transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease); }
.rangee-btn:hover { background: linear-gradient(180deg, #3b6c42, #234529); }
.rangee-btn:active:not([aria-disabled="true"]) { background: linear-gradient(180deg, #234529, #1c3520); transform: scale(0.94); }
.rangee-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.rangee-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.plats {
  display: flex; align-items: stretch; gap: 0.75rem; margin: 0.6rem calc(var(--gouttiere) * -1) 0; padding: 0.6rem var(--gouttiere) 1.5rem;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.plats::-webkit-scrollbar { display: none; }
/* progression de la rangee (decorative, posee par menu.js : --l et --w) */
.rangee-progres { position: relative; height: 3px; margin: -0.6rem 0 0.9rem; border-radius: 999px; background: var(--trait); overflow: hidden; }
.rangee-progres[hidden] { display: none; }
.rangee-progres span { position: absolute; top: 0; bottom: 0; left: var(--l, 0%); width: var(--w, 100%); border-radius: 999px; background: var(--or); }
.plat { position: relative; display: flex; flex-direction: column; min-width: 0; flex: 0 0 80%; scroll-snap-align: start; }
.plat-corps { flex: 1 1 auto; display: flex; flex-direction: column; }
.plats .prix { margin-top: auto; padding-top: 0.9rem; }
.plat-nom { font-family: var(--f-nom); font-size: 1.6rem; font-weight: 500; line-height: 1.1; color: var(--vert-profond); letter-spacing: 0.004em; }
.plat-nom a { text-decoration: none; display: inline-block; }
.plat-nom a:hover { text-decoration: underline; text-decoration-color: var(--or); }
.plat-desc { margin-top: 0.35rem; color: var(--chaux-encre-2); line-height: 1.4; }
.plat-desc-grand { font-size: 1.15rem; margin-top: 1.25rem; }
.plat-corps { min-width: 0; }

/* Vitrine : chaque plat (photo ou medaillon) est pose sur un plateau vert 4:3 sous un filet or ; le bloc papier porte nom, description et prix. */
.plat-scene {
  position: relative; flex: none; display: grid; place-items: center; aspect-ratio: 7 / 4; overflow: hidden; border-radius: var(--rayon-carte) var(--rayon-carte) 0 0; border: 1px solid rgba(217, 188, 138, 0.5); border-bottom: 3px solid var(--or);
  background-color: var(--vert-nuit);
  background-image: radial-gradient(ellipse at 50% 42%, var(--plateau-1) 0%, var(--plateau-2) 58%, var(--plateau-3) 100%), url("/css/grain-vert.svg");
}
.vignette { position: relative; z-index: 1; width: 82%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0.7rem 0.6rem rgba(0, 0, 0, 0.45)); transition: transform 0.4s var(--ease); }
.plat-visuel .plat-corps { padding: 0.95rem 1rem 1.1rem; background: var(--papier); border: 1px solid var(--trait); border-top: 0; border-radius: 0 0 var(--rayon-carte) var(--rayon-carte); box-shadow: 0 10px 18px -14px rgba(28, 53, 32, 0.6); }
.plat-scene .badges { position: absolute; z-index: 2; top: 0.6rem; left: 0.6rem; margin: 0; }
/* Medaillon (plat sans photo) : le logo Le Marley en or dans un double filet, grand et lisible ; decoratif (le nom du plat porte l'information). */
.medaillon { position: relative; z-index: 1; display: block; width: 52%; max-width: 11rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(217, 188, 138, 0.75); box-shadow: 0 0 0 0.35rem rgba(217, 188, 138, 0.08), inset 0 0 1.6rem rgba(217, 188, 138, 0.14); }
.medaillon::before { content: ""; position: absolute; inset: 0.4rem; border-radius: 50%; border: 1px dashed rgba(217, 188, 138, 0.4); }
.medaillon::after { content: ""; position: absolute; inset: 17% 15%; background: url("/css/logo-marley-or.svg") center / contain no-repeat; }
/* Reflet or qui traverse la carte, une fois, au survol (pointeur fin) ou au focus clavier ; jamais sur le bloc prix. */
.plat-scene::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(236, 209, 151, 0.28) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat; }
.plat:focus-within .plat-scene::after { background-position: -60% 0; transition: background-position 0.9s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .plat-visuel:hover .plat-scene::after { background-position: -60% 0; transition: background-position 0.9s var(--ease); }
  .plat-visuel:hover .vignette { transform: translateY(-0.2rem) scale(1.02); }
}

.plat-rupture .plat-nom, .plat-rupture .plat-desc { color: #55554d; }
.plat-rupture .medaillon { opacity: 0.6; }
.plat-rupture .vignette { filter: grayscale(1) drop-shadow(0 0.9rem 0.7rem rgba(0, 0, 0, 0.35)); opacity: 0.7; }

/* prix : euros en gros, centimes en exposant */
.px { font-family: var(--f-nom); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.px-c { position: relative; top: -0.5em; vertical-align: baseline; font-size: 0.55em; line-height: 0; margin-left: 0.04em; }
.px-u { font-size: 0.6em; margin-left: 0.2em; }
.prix { display: flex; flex-wrap: wrap; gap: 0.9rem 1.25rem; margin-top: 0.9rem; }
.prix-col { display: flex; flex-direction: column; min-width: 0; flex: 0 1 auto; line-height: 1.15; }
.prix-ajout .prix-col { flex: 1 1 8rem; }
.prix-lib { font-family: var(--f-cond); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chaux-lib); }
.prix-lib small { font-family: var(--f-corps); font-weight: 500; font-size: 0.78rem; letter-spacing: 0; text-transform: none; }
.prix-val { font-size: 2rem; line-height: 1.05; font-weight: 600; color: var(--chaux-prix); }
.prix-ancien { color: #55554d; font-size: 0.9rem; }
.prix-unique .prix-col { flex-direction: row; align-items: baseline; }

.allergenes { margin-top: 0.8rem; padding-top: 0.55rem; border-top: 1px dashed var(--trait); font-size: 0.8125rem; line-height: 1.4; color: var(--chaux-encre-2); }
.allergenes strong { margin-right: 0.3rem; font-family: var(--f-cond); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chaux-lib); }
.allergenes-inconnus { font-style: italic; }

.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.badge { font-family: var(--f-cond); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--or-clair); color: var(--vert-nuit); padding: 0.05rem 0.7rem; border-radius: 999px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); }
.badge-rupture { background: #55554d; color: #fff; }


/* ------------------------------------------------------------------ Fiche d'un plat */
.tete-fiche { padding-bottom: 1.6rem; text-align: center; }
.tete-fiche .fil { text-align: left; }
.figure-plat { position: relative; max-width: 26rem; margin: 0.25rem auto 0; }
/* Fiche : grand plateau « ardoise » (vert nuit, filet or) ; halo qui suit le pointeur fin (fiche.js pose --mx et --my), aucun effet au tactile */
.fiche-plateau { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rayon-carte); border: 1px solid rgba(217, 188, 138, 0.6); border-bottom: 3px solid var(--or); background-color: var(--vert-nuit); background-image: radial-gradient(ellipse at 50% 42%, var(--plateau-1) 0%, var(--plateau-2) 58%, var(--plateau-3) 100%), url("/css/grain-vert.svg"); box-shadow: 0 14px 24px -16px rgba(0, 0, 0, 0.7); }
.fiche-plateau::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 50%), rgba(236, 209, 151, 0.22), transparent 65%); }
@media (hover: hover) and (pointer: fine) { .fiche-plateau:hover::after { opacity: 1; } }
.fiche-plateau .medaillon { width: 46%; max-width: 12rem; }
.photo-plat { position: relative; z-index: 1; width: 90%; height: 100%; object-fit: contain; filter: drop-shadow(0 1.4rem 1rem rgba(0, 0, 0, 0.5)); animation: arrivee 0.6s var(--ease) both; }
.figure-plat figcaption { position: relative; margin-top: 0.4rem; font-size: 0.75rem; color: #e3d6bb; }
.article-cat { font-family: var(--f-cond); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--or-clair); margin-top: 0.4rem; }
.entete .titre-plat { font-family: var(--f-nom); font-weight: 600; font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1.05; color: #fff6e2; margin-top: 0.15rem; }
.tete-fiche .badges { justify-content: center; margin-top: 0.7rem; }
.ornement { position: relative; display: block; width: min(14rem, 70%); height: 1.4rem; margin: 1.1rem auto 0.4rem; background: linear-gradient(90deg, transparent, var(--or) 30%, var(--or) 70%, transparent) center / 100% 1px no-repeat; }
.ornement::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.7rem; height: 0.7rem; transform: translate(-50%, -50%) rotate(45deg); background: var(--or-clair); box-shadow: 0 0 0 4px var(--vert-profond); }
.contenu-fiche { padding-top: 0.25rem; padding-bottom: 1rem; }
.carte-prix { margin-top: 1.25rem; padding: 0.4rem 1rem 1.1rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: 0 10px 18px -14px rgba(28, 53, 32, 0.6); }
.bloc { margin-top: 1.25rem; padding: 0.75rem 1rem 1rem; border-left: 3px solid var(--or); background: rgba(255, 255, 255, 0.35); border-radius: 0 var(--rayon) var(--rayon) 0; }
.bloc h2 { margin-top: 0; font-size: 1.25rem; }
.bloc .allergenes { font-size: 0.95rem; margin-top: 0; padding-top: 0; border-top: 0; }
.bloc .allergenes strong { display: none; }

/* ------------------------------------------------------------------ Pied */
.pied { margin-top: 2.5rem; color: var(--creme); padding-block: 1.6rem; font-size: 0.9rem; border-top: 3px solid var(--or); background-color: var(--vert-nuit); background-image: linear-gradient(180deg, var(--vert-profond), var(--vert-nuit)), url("/css/grain-vert.svg"); }
.pied p + p { margin-top: 0.4rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: 0.5rem; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ------------------------------------------------------------------ Commande : ajout, panier flottant, page "Ma commande", suivi */
.ajouts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.btn-ajout {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; width: 100%; min-height: 2.75rem; margin-top: 0.55rem; padding: 0.3rem 0.9rem; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #2f5a35, var(--vert-profond)); color: var(--creme); cursor: pointer;
  font-family: var(--f-cond); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(217, 188, 138, 0.6), 0 3px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ajouts .btn-ajout { width: auto; margin-top: 0; }
.btn-ajout:hover { background: linear-gradient(180deg, #3b6c42, #234529); }
.btn-ajout:active { background: linear-gradient(180deg, #234529, #1c3520); transform: translateY(1px) scale(0.97); box-shadow: inset 0 0 0 1px rgba(217, 188, 138, 0.6), 0 1px 0 rgba(0, 0, 0, 0.28); }
.btn-ajout.ajoute { animation: ajout 0.5s var(--ease); }
.ajout-plus { position: relative; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background:
  linear-gradient(var(--vert-nuit), var(--vert-nuit)) center / 0.7rem 2px no-repeat,
  linear-gradient(var(--vert-nuit), var(--vert-nuit)) center / 2px 0.7rem no-repeat,
  var(--or-clair); }
.barre-panier {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: max(0.75rem, env(safe-area-inset-bottom)); z-index: 30; max-width: 30rem; margin-inline: auto;
  display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0.35rem 1.1rem 0.35rem 0.5rem; border-radius: 999px; text-decoration: none; color: var(--creme);
  background-color: var(--vert-nuit); background-image: linear-gradient(180deg, #2a5130, var(--vert-nuit)); border: 2px solid var(--or);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: entree-barre 0.4s var(--ease) both;
}
.barre-panier[hidden] { display: none; }
.barre-panier:active { transform: scale(0.98); }
.barre-n { flex: none; display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding-inline: 0.3rem; border-radius: 999px; background: var(--or-clair); color: var(--vert-nuit); font-family: var(--f-nom); font-weight: 600; font-size: 1.25rem; }
.barre-lib { flex: 1; font-family: var(--f-cond); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase; }
.barre-total { font-size: 1.6rem; color: #f6e3b4; }
.barre-panier.saut { animation: saut 0.4s var(--ease); }
.avis-ferme { margin-top: 0.75rem; padding: 0.75rem 1rem; border-left: 4px solid var(--brun-prix); background: rgba(255, 255, 255, 0.4); border-radius: 0 var(--rayon) var(--rayon) 0; font-weight: 500; }
.avis-grand { font-size: 1.2rem; margin-top: 1.25rem; }

.panier-lignes { margin-top: 1rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding-inline: 1rem; }
.panier-ligne, .panier-lignes-fixes li { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem 0.75rem; align-items: center; padding-block: 0.7rem; border-bottom: 1px solid var(--trait); }
.panier-ligne:last-child, .panier-lignes-fixes li:last-child { border-bottom: 0; }
.panier-lignes-fixes li { grid-template-columns: auto 1fr auto; }
.ligne-nom { font-family: var(--f-nom); font-weight: 500; font-size: 1.25rem; line-height: 1.15; }
.ligne-q { font-family: var(--f-nom); font-weight: 600; font-size: 1.25rem; min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.ligne-ctl { display: inline-flex; align-items: center; gap: 0.35rem; }
.ligne-prix { font-size: 1.35rem; color: var(--chaux-prix); text-align: right; }
.btn-rond { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--vert-profond); background: transparent; color: var(--vert-profond); font: 500 1.5rem/1 var(--f-nom); cursor: pointer; transition: transform 0.15s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease); }
.btn-rond:hover { background: var(--vert-profond); color: var(--creme); }
.btn-rond:active { transform: scale(0.94); }
.panier-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; padding-top: 0.8rem; border-top: 2px solid var(--or); font-family: var(--f-cond); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase; }
.panier-total strong { font-size: 2.3rem; line-height: 1; letter-spacing: 0; color: var(--chaux-prix); }
#panier-form { margin-top: 1.25rem; }
#panier-form[hidden], #panier-vide[hidden], #bloc-distance[hidden], #panier-total[hidden], #panier-note[hidden] { display: none; }
.groupe { border: 0; padding: 0; margin: 0 0 1rem; }
.groupe legend { font-family: var(--f-nom); font-weight: 500; font-size: 1.25rem; margin-bottom: 0.25rem; }
.choix { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; }
.choix input { width: 1.4rem; height: 1.4rem; accent-color: var(--vert-profond); }
.champ { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.champ label { font-weight: 600; }
.champ input, .champ select { min-height: 2.75rem; padding: 0.4rem 0.7rem; font: inherit; border: 2px solid var(--vert-profond); border-radius: var(--rayon); background: #fffdf8; color: var(--encre); }
.erreur { min-height: 1.5rem; color: #8a1c1c; font-weight: 600; margin-top: 0.5rem; }
.btn-primaire {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 3.25rem; padding: 0.5rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #2f5a35, var(--vert-profond)); color: var(--creme);
  font-family: var(--f-cond); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(217, 188, 138, 0.7), 0 4px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease);
}
.btn-primaire:hover { background: linear-gradient(180deg, #3b6c42, #234529); }
.btn-primaire:active { background: linear-gradient(180deg, #234529, #1c3520); transform: translateY(1px) scale(0.98); }
.btn-primaire:disabled { opacity: 0.6; cursor: progress; }
.page-panier main, .page-menu main, .page-article main { padding-bottom: 4.5rem; }
.numero-commande { display: block; margin-top: 0.75rem; padding: 0.35rem 1rem 0.55rem; text-align: center; font-family: var(--f-pinceau); font-size: 4.5rem; line-height: 1.1; color: var(--or-clair); border: 1px solid var(--or); border-radius: var(--rayon-carte);
  background-color: var(--vert-nuit); background-image: radial-gradient(80% 90% at 50% 20%, rgba(75, 130, 80, 0.5), transparent 75%), linear-gradient(180deg, #24472c, var(--vert-nuit)), url("/css/grain-vert.svg"); box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.6); }
.etat-commande { margin-top: 0.9rem; padding: 0.8rem 1rem; border-radius: var(--rayon); border-left: 4px solid var(--or); background: rgba(255, 255, 255, 0.45); font-weight: 600; }
.etat-prete { background: var(--vert-profond); color: var(--creme); border-left-color: var(--or-clair); }
.etat-expiree, .etat-refusee, .etat-annulee { background: #f1d9d4; color: #5a1010; border-left-color: #8a1c1c; }
/* Stepper d'avancement du suivi : 5 etapes, point + libelle ; l'etat courant porte aria-current="step" (le texte reste lisible sans la couleur). */
.sr-seul { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.stepper { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.etape { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; }
.etape::before { content: ""; position: absolute; top: 0.7rem; right: 50%; width: 100%; height: 2px; background: var(--trait); }
.etape:first-child::before { display: none; }
.etape-fait::before, .etape-courant::before { background: var(--or); }
.etape-point { position: relative; z-index: 1; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--chaux-lib); background: var(--chaux); }
.etape-fait .etape-point { background: var(--vert-profond); border-color: var(--vert-profond); }
.etape-fait .etape-point::after { content: ""; position: absolute; left: 0.38rem; top: 0.14rem; width: 0.3rem; height: 0.55rem; border: solid var(--or-clair); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.etape-courant .etape-point { background: var(--or-clair); border-color: var(--vert-profond); box-shadow: 0 0 0 4px rgba(184, 147, 93, 0.35); animation: pulse-etape 2s var(--ease) infinite; }
.etape-lib { font-family: var(--f-cond); font-weight: 600; font-size: 0.82rem; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; color: var(--chaux-encre-2); }
.etape-courant .etape-lib { color: var(--vert-profond); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 0.25rem; text-decoration-thickness: 2px; }
@keyframes pulse-etape { 0%, 100% { box-shadow: 0 0 0 4px rgba(184, 147, 93, 0.35); } 50% { box-shadow: 0 0 0 7px rgba(184, 147, 93, 0.12); } }
.article-cat { margin-top: 0.4rem; }
main .article-cat { color: var(--chaux-lib); }

/* ------------------------------------------------------------------ Animations sobres (< 0.6 s, ease-out) */
@keyframes arrivee { from { transform: translateY(0.75rem) scale(0.96); } to { transform: none; } }
@keyframes monte { from { transform: translateY(0.9rem); } to { transform: none; } }
@keyframes ajout { 0% { transform: scale(1); } 35% { transform: scale(1.06); background: #b8935d; color: #12241A; } 100% { transform: scale(1); } }
@keyframes saut { 0% { transform: translateY(0); } 40% { transform: translateY(-0.35rem) scale(1.02); } 100% { transform: none; } }
@keyframes entree-barre { from { transform: translateY(150%); } to { transform: none; } }
.vedette { animation: monte 0.55s var(--ease) both; }
.vedette:nth-child(2) { animation-delay: 0.06s; }
.vedette:nth-child(3) { animation-delay: 0.12s; }
.vedette:nth-child(n+4) { animation-delay: 0.18s; }

@media (min-width: 36rem) {
  .plat { flex-basis: calc((100% - 0.75rem) / 2.2); }
}
@media (min-width: 40rem) {
  :root { --gouttiere: 1.5rem; }
  body { font-size: 1.125rem; }
  .titre-page { font-size: 2.8rem; }
  .categorie-titre { font-size: 2.3rem; }
}
@media (min-width: 48rem) {
  .page-menu main > .conteneur, .page-menu .nav-cat .conteneur { max-width: 74rem; }
  .page-menu .intro-allergenes, .page-menu .avis-ferme, .page-menu .categorie-sous { max-width: 46rem; }
  .rangee-boutons { display: flex; }
  .rangee-boutons[hidden] { display: none; }
  .plats { gap: 1rem; scrollbar-width: thin; scrollbar-color: var(--or) transparent; }
  .plats::-webkit-scrollbar { display: block; height: 0.5rem; }
  .plats::-webkit-scrollbar-thumb { background: var(--or); border-radius: 999px; }
  .plat { flex-basis: calc((100% - 2 * 1rem) / 3); }
}
@media (min-width: 72rem) {
  .plat { flex-basis: calc((100% - 3 * 1rem) / 4); }
}
@media (max-width: 22rem) {
  .prix-val { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .vedettes-liste, .plats { scroll-behavior: auto; }
  .plat-scene::after { display: none; }
}

/* ------------------------------------------------------------------ Page « A la caisse » : codes-barres EAN-13 lisibles sur un ecran de telephone (fond blanc, barres noires, largeur minimale). */
.numero-geant { font-size: 5.5rem; margin: 0.25rem 0; }
.codes-liste { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.code-carte { border: 2px solid var(--vert-profond); border-radius: var(--rayon-carte); padding: 0.75rem; background: #fff; color: #000; box-shadow: 0 10px 18px -14px rgba(28, 53, 32, 0.7); }
.code-libelle { font-family: var(--f-nom); font-weight: 500; font-size: 1.2rem; margin-bottom: 0.5rem; }
.code-quantite { display: inline-block; min-width: 3rem; padding: 0 0.6rem; border-radius: 999px; background: var(--vert-profond); color: var(--creme); text-align: center; font-family: var(--f-cond); font-weight: 600; letter-spacing: 0.08em; }
.code-fond { background: #fff; display: flex; justify-content: center; }
.code-barre { display: block; width: 100%; min-width: 15rem; max-width: 26rem; height: auto; background: #fff; }
.code-chiffres { text-align: center; font-size: 1.4rem; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; margin-top: 0.25rem; }
#bouton-lumineux[hidden] { display: none; }
body.ecran-lumineux { background: #fff; background-image: none; color: #000; }
body.ecran-lumineux .entete, body.ecran-lumineux .pied, body.ecran-lumineux .intro-caisse { display: none; }
body.ecran-lumineux .code-carte { border-color: #000; }
body.ecran-lumineux .code-barre { max-width: 34rem; }
.btn-lien { display: inline-flex; text-decoration: none; margin-top: 1.1rem; }

/* ------------------------------------------------------------------ Allergenes : mention generale en tete de carte, liens du pied */
.note-allergenes { margin-top: 1.25rem; padding: 0.85rem 1rem; border: 2px solid var(--or); border-radius: 0.5rem; background: var(--creme); color: var(--chaux-encre); }
.note-allergenes h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.note-allergenes p + p { margin-top: 0.4rem; }
.pied-site { margin-top: 0; }
