/* Poketeria v2 : « fast casual premium » habillé « panda pop ».
   Signature : le trait épais du panda (contour 2,5 px anthracite + ombre portée nette),
   l'arc du bol en bas des sections, les festons du bandeau, les stickers en étoile,
   le motif baguettes et sésame. Sections entières en aplat lagon (le fond des photos). */
/* Figtree hébergée sur le site (variable 300 à 900), et une police de repli aux mêmes mesures :
   le texte ne bouge pas quand Figtree arrive (pas de décalage de mise en page au chargement). */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("assets/fonts/figtree-latin-wght.woff2") format("woff2-variations"), url("assets/fonts/figtree-latin-wght.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: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("assets/fonts/figtree-latin-ext-wght.woff2") format("woff2-variations"), url("assets/fonts/figtree-latin-ext-wght.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: "Figtree Repli"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 99.17%; ascent-override: 95.79%; descent-override: 25.21%; line-gap-override: 0%; }
@font-face { font-family: "Phenomena"; font-weight: 400; font-display: swap; src: url("assets/fonts/Phenomena-Regular.woff2") format("woff2"); }
@font-face { font-family: "Phenomena"; font-weight: 700; font-display: swap; src: url("assets/fonts/Phenomena-Bold.woff2") format("woff2"); }
@font-face { font-family: "Phenomena"; font-weight: 800; font-display: swap; src: url("assets/fonts/Phenomena-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Phenomena"; font-weight: 900; font-display: swap; src: url("assets/fonts/Phenomena-Black.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --lagon: #0f9bb4;         /* fond des photos produits : les bols s'y fondent */
  --lagon-nuit: #0b7c90;
  --menthe: #4dbdb1;        /* turquoise du logo */
  --menthe-pale: #e2f4f1;
  --encre: #232b2a;         /* trait du panda */
  --panda: #4f5655;
  --bol: #e3264a;           /* rouge du bol : action principale, stickers */
  --riz: #fffdf8;           /* blanc chaud, très léger */
  --sourdine: #5f6b69;
  --trait: #d8e4e2;
  --ok: #1d8a4b;
  --f-titre: "Phenomena", "Arial Narrow", sans-serif;
  --f-texte: "Figtree", "Figtree Repli", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ligne: 2.5px solid var(--encre);
  --ombre: 4px 4px 0 var(--encre);
  --ombre-l: 6px 6px 0 var(--encre);
  --r: 20px; --r-l: 28px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --large: 1240px;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M14 30 52 8M18 37 56 15'/%3E%3Cpath d='M70 96 108 74M74 103 112 81'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.18'%3E%3Cellipse cx='86' cy='26' rx='4' ry='2.2' transform='rotate(30 86 26)'/%3E%3Cellipse cx='98' cy='36' rx='4' ry='2.2' transform='rotate(-20 98 36)'/%3E%3Cellipse cx='26' cy='84' rx='4' ry='2.2' transform='rotate(60 26 84)'/%3E%3Cellipse cx='38' cy='96' rx='4' ry='2.2' transform='rotate(10 38 96)'/%3E%3Cellipse cx='60' cy='56' rx='4' ry='2.2' transform='rotate(-40 60 56)'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--riz); color: var(--encre); font: 400 1rem/1.55 var(--f-texte); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-titre); margin: 0; line-height: .9; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(3.4rem, 10vw, 7.6rem); letter-spacing: -.005em; }
h2 { font-weight: 900; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h3 { font-weight: 800; font-size: 1.9rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--bol); outline-offset: 3px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muet { color: var(--sourdine); }
.surtitre { font: 800 .8rem/1 var(--f-texte); letter-spacing: .14em; }
.cadre { width: 100%; max-width: var(--large); margin: 0 auto; padding-inline: var(--gouttiere); }
.pile { display: flex; flex-direction: column; gap: var(--g, 16px); }
.rang { display: flex; align-items: center; flex-wrap: wrap; gap: var(--g, 12px); }
.entre { justify-content: space-between; }

/* ---------- Boutons : le trait du panda ---------- */
.btn { --bg: #fff; --fg: var(--encre); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: var(--ligne); background: var(--bg); color: var(--fg); box-shadow: var(--ombre);
  font: 800 1.05rem/1 var(--f-texte); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--ombre-l); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--encre); }
.btn[disabled] { --bg: #e9eeed; --fg: #8a9492; box-shadow: none; cursor: not-allowed; transform: none; border-color: #b9c3c1; }
.btn-bol { --bg: var(--bol); --fg: #fff; }
.btn-encre { --bg: var(--encre); --fg: #fff; }
.btn-petit { min-height: 42px; padding: 0 18px; font-size: .92rem; box-shadow: 3px 3px 0 var(--encre); }
.btn-bloc { width: 100%; }
.btn-rond { width: 50px; height: 50px; min-height: 0; padding: 0; }
.lien { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; cursor: pointer; }

/* ---------- Stickers, pastilles ---------- */
.sticker { position: absolute; width: 132px; height: 132px; display: grid; place-items: center; transform: rotate(-12deg); z-index: 3; filter: drop-shadow(3px 3px 0 var(--encre)); }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker span { position: relative; font: 900 1.25rem/.92 var(--f-titre); text-align: center; color: #fff; }
.sticker b { display: block; font-size: 2.2rem; }
.n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: var(--ligne); font: 900 1.2rem/1 var(--f-titre); background: #fff; flex: none; }
.etiq { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 2px solid currentColor; font-weight: 700; font-size: .85rem; }
.etat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 40; background: var(--riz); border-bottom: var(--ligne); }
.entete .cadre { display: flex; align-items: center; gap: 22px; height: 76px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marque img { width: 48px; height: 50px; object-fit: cover; object-position: top; border-radius: 12px; border: var(--ligne); background: var(--menthe); }
.marque span { font: 900 1.85rem/1 var(--f-titre); letter-spacing: .04em; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--menthe-pale); }
.entete .droite { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.choix-resto-entete { display: inline-flex; border: var(--ligne); border-radius: 999px; overflow: hidden; background: #fff; }
.choix-resto-entete button { border: 0; background: none; padding: 0 14px; height: 42px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.choix-resto-entete button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.btn-panier { position: relative; }
.btn-panier .compte { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--bol); color: #fff; font: 800 12px/20px var(--f-texte); text-align: center; border: 2px solid var(--encre); }
@media (max-width: 900px) { .nav { display: none; } .choix-resto-entete button { padding: 0 10px; font-size: .82rem; } .marque span { display: none; } }

/* ---------- Héros lagon (arc du bol en bas) ---------- */
.heros { background: var(--lagon) var(--motif); color: #fff; border-bottom: var(--ligne); border-radius: 0 0 50% 50% / 0 0 70px 70px; overflow: hidden; }
.heros .cadre { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; padding-block: clamp(36px, 6vw, 72px) clamp(60px, 8vw, 110px); }
.heros h1 { color: #fff; text-shadow: 4px 4px 0 var(--encre); }
.heros h1 .rouge { color: var(--bol); }
.heros .chapo { font-size: 1.2rem; max-width: 42ch; margin-top: 18px; color: #f0fbfd; }
.heros .actions { margin-top: 30px; }
.heros .scene { position: relative; aspect-ratio: 1; }
.heros .scene .bol-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.heros .scene .sticker { right: 2%; top: 4%; }
.heros .scene .panda-coucou { position: absolute; left: -4%; bottom: 2%; width: 34%; filter: drop-shadow(4px 4px 0 var(--encre)); }
.heros .resto-statut { display: inline-flex; gap: 10px; align-items: center; background: rgba(0,0,0,.18); border-radius: 999px; padding: 8px 16px 8px 12px; font-weight: 600; margin-top: 18px; }
@media (max-width: 860px) { .heros .cadre { grid-template-columns: 1fr; } .heros .scene { max-width: 420px; width: 92%; margin: 0 auto; } .heros { border-radius: 0 0 50% 50% / 0 0 40px 40px; } }

/* ---------- Bandeau festonné qui défile ---------- */
.bandeau { background: var(--encre); color: #fff; overflow: hidden; margin-block: 28px;
  -webkit-mask: radial-gradient(9px at 50% 0, #0000 96%, #000) 50% 0 / 18px 51% repeat-x, radial-gradient(9px at 50% 100%, #0000 96%, #000) 50% 100% / 18px 51% repeat-x;
          mask: radial-gradient(9px at 50% 0, #0000 96%, #000) 50% 0 / 18px 51% repeat-x, radial-gradient(9px at 50% 100%, #0000 96%, #000) 50% 100% / 18px 51% repeat-x; }
.bandeau .piste { display: flex; gap: 38px; width: max-content; padding: 22px 0; animation: defile 40s linear infinite; font: 900 1.7rem/1 var(--f-titre); }
.bandeau .piste span { display: inline-flex; align-items: center; gap: 38px; }
.bandeau .piste i { width: 12px; height: 12px; border-radius: 50%; background: var(--menthe); display: inline-block; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 92px); }
.titre-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.grille-formules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1020px) { .grille-formules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grille-formules { grid-template-columns: 1fr; } }
.formule { --c: var(--lagon); display: flex; flex-direction: column; border: var(--ligne); border-radius: var(--r-l); box-shadow: var(--ombre); background: #fff; overflow: hidden;
  text-align: left; padding: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.formule:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--encre); }
.formule .photo { background: var(--lagon); aspect-ratio: 1.05; position: relative; border-bottom: var(--ligne); overflow: hidden; }
.formule .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.formule:hover .photo img { transform: rotate(-6deg) scale(1.05); }
.formule .prix-bulle { position: absolute; right: 12px; top: 12px; background: #fff; border: var(--ligne); border-radius: 999px; padding: 6px 12px; font: 900 1.35rem/1 var(--f-titre); }
.formule .corps { padding: 18px 18px 20px; display: grid; gap: 10px; }
.formule h3 { font-size: 2.4rem; font-weight: 900; }
.recette { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: .85rem; font-weight: 600; }
.recette > span { display: inline-flex; align-items: center; gap: 6px; }
.recette .n { width: 28px; height: 28px; font-size: 1.05rem; border-width: 2px; }

.etapes3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .etapes3 { grid-template-columns: 1fr; } }
.etape-carte { border: var(--ligne); border-radius: var(--r-l); padding: 22px; background: #fff; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; box-shadow: var(--ombre); }
.etape-carte svg { width: 96px; height: 90px; }
.etape-carte h3 { font-size: 1.8rem; font-weight: 900; }

.duo-resto { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .duo-resto { grid-template-columns: 1fr; } }
.carte-resto { --c: var(--menthe); --clair: var(--menthe-pale); position: relative; display: grid; grid-template-rows: 200px auto; border: var(--ligne); border-radius: var(--r-l); overflow: hidden;
  background: var(--clair); box-shadow: var(--ombre); text-align: left; padding: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.carte-resto:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--encre); }
.carte-resto[aria-pressed="true"] { outline: 4px solid var(--bol); outline-offset: 4px; }
.carte-resto .visuel { background: var(--c) center/cover; border-bottom: var(--ligne); position: relative; overflow: hidden; }
.carte-resto .visuel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte-resto .corps { padding: 18px 20px 22px; display: grid; gap: 6px; }
.carte-resto h3 { font-size: 2.3rem; font-weight: 900; color: var(--c); -webkit-text-stroke: 0; }
.carte-resto .surnom { font: 800 .8rem/1 var(--f-texte); letter-spacing: .12em; }
.carte-resto .choisi { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--bol); color: #fff; border: var(--ligne); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .85rem; }

.aplat-menthe { background: var(--menthe); border-block: var(--ligne); }
.zero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.zero .faits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zero .fait { background: #fff; border: var(--ligne); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--ombre); }
.zero .fait b { display: block; font: 900 2.4rem/1 var(--f-titre); }
@media (max-width: 860px) { .zero { grid-template-columns: 1fr; } }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: #d4dcda; margin-top: 0; }
.pied .geant { font: 900 clamp(4rem, 17vw, 15rem)/.8 var(--f-titre); color: var(--menthe); letter-spacing: .01em; padding-top: 40px; overflow: hidden; white-space: nowrap; }
.pied .grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-block: 36px; }
.pied h4 { font: 900 1.5rem/1 var(--f-titre); color: #fff; margin: 0 0 10px; }
.pied a { color: #d4dcda; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.15); padding-block: 18px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .pied .grille { grid-template-columns: 1fr 1fr; } }

/* ---------- Carte ---------- */
.entete-carte { background: var(--lagon) var(--motif); color: #fff; border-bottom: var(--ligne); border-radius: 0 0 50% 50% / 0 0 46px 46px; padding-block: 28px 56px; }
.entete-carte h1 { font-size: clamp(3rem, 8vw, 5.6rem); color: #fff; text-shadow: 4px 4px 0 var(--encre); }
.mise-carte { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
@media (max-width: 1040px) { .mise-carte { grid-template-columns: minmax(0, 1fr); } .colonne-panier { display: none; } }
.onglets { position: sticky; top: 76px; z-index: 30; background: var(--riz); display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; border-bottom: 2px solid var(--trait); }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { flex: none; padding: 9px 18px; border-radius: 999px; border: var(--ligne); background: #fff; text-decoration: none; font-weight: 800; font-size: .92rem; }
.onglets a.actif { background: var(--encre); color: #fff; }
.rayon { padding-top: 36px; scroll-margin-top: 150px; }
.rayon > header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.rayon h2 { font-size: 3rem; }
.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.produit { display: flex; flex-direction: column; border: var(--ligne); border-radius: var(--r); background: #fff; overflow: hidden; padding: 0; text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.produit:hover { transform: translate(-2px, -2px); box-shadow: var(--ombre); }
.produit .photo { position: relative; aspect-ratio: 1; background: var(--lagon); border-bottom: var(--ligne); }
.produit .photo img { width: 100%; height: 100%; object-fit: cover; }
.produit .plus { position: absolute; right: 10px; bottom: -20px; width: 42px; height: 42px; border-radius: 50%; background: var(--bol); color: #fff; border: var(--ligne); display: grid; place-items: center; font: 900 1.6rem/1 var(--f-titre); }
.produit .dans { position: absolute; left: 10px; top: 10px; background: var(--encre); color: #fff; border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: .8rem; }
.produit .corps { padding: 14px 14px 16px; display: grid; gap: 4px; }
.produit h3 { font: 700 1.02rem/1.25 var(--f-texte); padding-right: 30px; }
.produit .desc { font-size: .85rem; color: var(--sourdine); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.produit .prix { font: 900 1.4rem/1 var(--f-titre); margin-top: 6px; }
.colonne-panier { position: sticky; top: 96px; border: var(--ligne); border-radius: var(--r-l); padding: 20px; background: #fff; margin-top: 36px; box-shadow: var(--ombre); }
.colonne-panier h3 { font-size: 2rem; font-weight: 900; }
.barre-panier { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45; display: none; }
@media (max-width: 1040px) { .barre-panier.visible { display: block; } }
.barre-panier .btn { width: 100%; justify-content: space-between; min-height: 60px; }

/* ---------- Composer ---------- */
.mise-compo { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; padding-top: 24px; }
@media (max-width: 1040px) { .mise-compo { grid-template-columns: minmax(0, 1fr); } .bol-colonne { position: relative !important; top: 0 !important; } }
.selecteur-formule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .selecteur-formule { grid-template-columns: repeat(2, 1fr); } }
.pastille-formule { padding: 12px 14px; border-radius: var(--r); border: var(--ligne); background: #fff; cursor: pointer; text-align: left; display: grid; gap: 4px; transition: transform .12s, box-shadow .12s; }
.pastille-formule:hover { transform: translate(-2px, -2px); box-shadow: var(--ombre); }
.pastille-formule b { font: 900 1.7rem/1 var(--f-titre); }
.pastille-formule span { font-size: .82rem; font-weight: 700; }
.pastille-formule[aria-pressed="true"] { background: var(--lagon); color: #fff; box-shadow: var(--ombre); }
.etape { padding-block: 30px; border-bottom: 2px dashed var(--trait); scroll-margin-top: 92px; }
.etape > header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.etape > header .n { width: 44px; height: 44px; font-size: 1.5rem; }
.etape h2 { font-size: 2.6rem; }
.etape.faite > header .n { background: var(--ok); color: #fff; }
.compteur { margin-left: auto; font: 900 1.4rem/1 var(--f-titre); padding: 7px 14px; border-radius: 999px; border: var(--ligne); background: #fff; font-variant-numeric: tabular-nums; }
.etape.faite .compteur { background: var(--ok); color: #fff; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 16px; }
.tuile { position: relative; display: grid; justify-items: center; gap: 8px; padding: 12px 8px 12px; border: var(--ligne); border-radius: var(--r); background: #fff; cursor: pointer; text-align: center; font-weight: 700; font-size: .86rem; line-height: 1.15; transition: transform .12s, box-shadow .12s, background .12s; }
.tuile svg { width: 72px; height: 72px; transition: transform .25s; }
.tuile:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: var(--ombre); }
.tuile:hover:not(:disabled) svg { transform: rotate(-8deg) scale(1.06); }
.tuile[aria-pressed="true"] { background: var(--menthe-pale); box-shadow: var(--ombre); }
.tuile[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; border: var(--ligne); display: grid; place-items: center; font-weight: 900; }
.tuile:disabled { opacity: .35; cursor: not-allowed; }
.tuile.epuise { opacity: .55; }
.tuile.epuise svg { filter: grayscale(1); }
.tuile .badge { position: absolute; top: 8px; left: 8px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; background: var(--bol); color: #fff; border-radius: 6px; padding: 2px 6px; }
.tuile .badge.ici { background: var(--lagon); }
.bol-colonne { position: sticky; top: 96px; display: grid; gap: 16px; }
.bol-carte { border: var(--ligne); border-radius: var(--r-l); background: var(--lagon) var(--motif); box-shadow: var(--ombre); padding: 22px; color: #fff; display: grid; gap: 14px; }
.bol-carte svg.bol { width: 100%; height: auto; filter: drop-shadow(5px 5px 0 var(--encre)); }
.bol-carte h3 { font-size: 2.6rem; font-weight: 900; color: #fff; text-shadow: 3px 3px 0 var(--encre); }
.bol-carte .prix { font: 900 2.2rem/1 var(--f-titre); background: #fff; color: var(--encre); border: var(--ligne); border-radius: 999px; padding: 6px 16px; }
.bol-carte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.bol-carte li b { font-weight: 800; }
.bol-carte li .vide { opacity: .7; font-style: italic; }
.bulle-panda { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: center; }
.bulle-panda svg { width: 86px; height: 80px; }
.bulle-panda p { background: #fff; color: var(--encre); border: var(--ligne); border-radius: 18px 18px 18px 4px; padding: 12px 14px; font-weight: 700; font-size: .95rem; position: relative; }
.barre-compo { position: sticky; bottom: 0; z-index: 35; background: var(--riz); border-top: var(--ligne); padding: 12px 0 max(12px, env(safe-area-inset-bottom)); margin-top: 30px; }
.barre-compo .cadre { display: flex; align-items: center; gap: 14px; }
.barre-compo .manque { font-weight: 700; }
.barre-compo .btn { margin-left: auto; }
.note-txt { width: 100%; min-height: 90px; border: var(--ligne); border-radius: var(--r); padding: 12px 14px; resize: vertical; background: #fff; }

/* ---------- Tunnel ---------- */
.mise-tunnel { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 44px; align-items: start; padding-block: 34px 80px; }
@media (max-width: 960px) { .mise-tunnel { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.fil { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; font-weight: 700; font-size: .9rem; }
.fil > span { display: inline-flex; align-items: center; gap: 8px; color: var(--sourdine); }
.fil .ici { color: var(--encre); }
.fil .ici .n { background: var(--bol); color: #fff; }
.fil .n { width: 28px; height: 28px; font-size: 1rem; border-width: 2px; }
.ligne-panier { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; padding: 16px; border: var(--ligne); border-radius: var(--r); background: #fff; align-items: start; }
.ligne-panier + .ligne-panier { margin-top: 12px; }
.ligne-panier .photo { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--lagon); border: 2px solid var(--encre); }
.ligne-panier .photo img { width: 100%; height: 100%; object-fit: cover; }
.ligne-panier h3 { font: 800 1.08rem/1.25 var(--f-texte); }
.ligne-panier .details { font-size: .86rem; color: var(--sourdine); margin-top: 4px; }
.ligne-panier .actions { display: flex; gap: 14px; margin-top: 10px; font-size: .88rem; }
.ligne-panier .montant { display: grid; gap: 10px; justify-items: end; font: 900 1.4rem/1 var(--f-titre); }
.quantite { display: inline-flex; align-items: center; border: var(--ligne); border-radius: 999px; height: 40px; background: #fff; font-family: var(--f-texte); }
.quantite button { width: 38px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 1.2rem; font-weight: 800; }
.quantite span { min-width: 24px; text-align: center; font-weight: 800; font-size: 1rem; }
.carrousel { display: grid; grid-auto-flow: column; grid-auto-columns: 156px; gap: 14px; overflow-x: auto; padding: 4px 6px 12px 2px; }
.carrousel .produit .photo { aspect-ratio: 1; }
.boite { border: var(--ligne); border-radius: var(--r-l); padding: 22px; background: #fff; box-shadow: var(--ombre); }
.boite.lagon { background: var(--lagon) var(--motif); color: #fff; }
.total { display: grid; gap: 10px; font-variant-numeric: tabular-nums; }
.total .ligne { display: flex; justify-content: space-between; }
.total .grand { font: 900 2.2rem/1 var(--f-titre); padding-top: 12px; border-top: var(--ligne); }
.creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.creneau { height: 50px; border-radius: 14px; border: var(--ligne); background: #fff; cursor: pointer; font: 900 1.3rem/1 var(--f-titre); font-variant-numeric: tabular-nums; }
.creneau[aria-pressed="true"] { background: var(--encre); color: #fff; box-shadow: 3px 3px 0 var(--bol); }
.creneau:disabled { color: #9aa4a2; background: #f0f3f2; border-style: dashed; border-color: #b9c3c1; cursor: not-allowed; }
.creneau small { display: block; font: 700 .75rem/1.1 var(--f-texte); letter-spacing: .02em; margin-top: 3px; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 800; font-size: .92rem; }
.champ input { height: 54px; border: var(--ligne); border-radius: 14px; padding: 0 16px; background: #fff; }
.champ input:focus, .note-txt:focus { outline: none; box-shadow: var(--ombre); }
.champ .aide { font-size: .8rem; color: var(--sourdine); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .deux { grid-template-columns: 1fr; } }
.express { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-pay { height: 54px; border-radius: 14px; border: var(--ligne); background: #000; color: #fff; font: 600 1.05rem/1 -apple-system, system-ui, sans-serif; cursor: pointer; box-shadow: var(--ombre); }
.btn-pay.g { background: #fff; color: #3c4043; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--sourdine); font-weight: 700; font-size: .85rem; }
.ou::before, .ou::after { content: ""; flex: 1; height: 2px; background: var(--trait); }
.champ-carte { height: 54px; border: var(--ligne); border-radius: 14px; display: grid; grid-template-columns: 1fr 84px 60px; gap: 10px; align-items: center; padding: 0 16px; color: #8a9492; background: #fff; }
.cases { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.cases input { width: 22px; height: 22px; accent-color: var(--encre); flex: none; }

/* ---------- Confirmation ---------- */
.confirmation { max-width: 760px; margin: 0 auto; padding-block: 36px 80px; display: grid; gap: 22px; }
.ticket { position: relative; background: var(--lagon) var(--motif); color: #fff; border: var(--ligne); border-radius: var(--r-l); box-shadow: var(--ombre-l); padding: clamp(24px, 5vw, 40px); overflow: hidden; display: grid; gap: 14px; }
.ticket .no { font: 900 clamp(5rem, 18vw, 8.5rem)/.85 var(--f-titre); text-shadow: 5px 5px 0 var(--encre); }
.ticket .panda-fete { position: absolute; right: 18px; bottom: 10px; width: 140px; }
.suivi { list-style: none; margin: 0; padding: 0; display: grid; }
.suivi li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; position: relative; padding-bottom: 22px; }
.suivi li:last-child { padding-bottom: 0; }
.suivi li .n { width: 40px; height: 40px; font-size: 1.1rem; }
.suivi li.fait .n { background: var(--ok); color: #fff; }
.suivi li.encours .n { background: var(--bol); color: #fff; animation: battement 1.4s infinite; }
@keyframes battement { 50% { transform: scale(1.12); } }
.suivi li::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px; width: 2.5px; background: var(--encre); }
.suivi li:last-child::after { display: none; }

/* ---------- Restaurants ---------- */
.fiche { display: grid; grid-template-columns: 1.1fr 1fr; border: var(--ligne); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--ombre-l); background: var(--clair, #fff); }
.fiche + .fiche { margin-top: 32px; }
.fiche .visuel { min-height: 380px; background: var(--c) center/cover; border-right: var(--ligne); position: relative; }
.fiche .visuel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fiche .corps { padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; align-content: center; }
.fiche h2 { color: var(--c); font-size: clamp(3rem, 6vw, 4.6rem); }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.fiche dt { font-weight: 800; font-size: .85rem; letter-spacing: .08em; padding-top: 2px; }
.fiche dd { margin: 0; }
@media (max-width: 800px) { .fiche { grid-template-columns: 1fr; } .fiche .visuel { min-height: 240px; border-right: 0; border-bottom: var(--ligne); } }

/* ---------- Compte ---------- */
.compte-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .compte-grille { grid-template-columns: 1fr; } }
.favori { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 2px dashed var(--trait); }
.favori:last-child { border-bottom: 0; }
.favori .photo { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--lagon); border: 2px solid var(--encre); }
.favori .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Vide, feuilles, toast ---------- */
.vide-etat { max-width: 560px; margin: 0 auto; padding-block: 60px 90px; display: grid; justify-items: center; text-align: center; gap: 18px; }
.vide-etat svg { width: 200px; height: 186px; }
.voile { position: fixed; inset: 0; background: rgba(20,26,25,.5); z-index: 60; display: none; align-items: flex-end; justify-content: center; }
.voile.ouvert { display: flex; }
.feuille { width: 100%; max-width: 540px; background: var(--riz); border: var(--ligne); border-bottom: 0; border-radius: var(--r-l) var(--r-l) 0 0; padding: 24px var(--gouttiere) max(24px, env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; display: grid; gap: 18px; animation: monte .28s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 700px) { .voile { align-items: center; } .feuille { border-radius: var(--r-l); border-bottom: var(--ligne); box-shadow: var(--ombre-l); } }
.feuille .tete { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.feuille .tete .photo { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--lagon); border: var(--ligne); }
.feuille .tete .photo img { width: 100%; height: 100%; object-fit: cover; }
.feuille h3 { font-size: 2.2rem; font-weight: 900; }
.option { display: inline-flex; align-items: center; gap: 8px; border: var(--ligne); border-radius: 999px; padding: 10px 16px; background: #fff; font-weight: 700; cursor: pointer; }
.option:has(input:checked) { background: var(--encre); color: #fff; }
.option input { accent-color: var(--bol); }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--encre); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 70; border: 2px solid #fff; box-shadow: var(--ombre); display: none; }
.toast.visible { display: block; animation: monte .25s; }
.toast a { color: var(--menthe); }

/* ---------- Cuisine (outil de l'équipe : sobre, lisible de loin) ---------- */
.cuisine { background: #edf2f1; min-height: 100vh; }
.cuisine .barre { background: var(--encre); color: #fff; border-bottom: var(--ligne); }
.cuisine .barre .cadre { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 14px; }
.cuisine .barre h1 { font-size: 2.2rem; text-shadow: none; color: #fff; }
.cuisine .marque img { width: 40px; height: 42px; }
.interrupteur { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 0; color: #fff; padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer; font-weight: 700; }
.interrupteur .rail { width: 42px; height: 24px; border-radius: 12px; background: #3fa66a; position: relative; }
.interrupteur .rail::after { content: ""; position: absolute; top: 3px; left: 21px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.interrupteur[aria-pressed="false"] .rail { background: var(--bol); }
.interrupteur[aria-pressed="false"] .rail::after { left: 3px; }
.reglage { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.reglage button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; font-size: 1.1rem; }
.reglage b { min-width: 56px; text-align: center; font: 900 1.4rem/1 var(--f-titre); }
.cuisine select { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; height: 38px; padding: 0 12px; font-weight: 700; }
.cuisine select option { color: #000; }
.cuisine .horloge { margin-left: auto; font: 900 2.2rem/1 var(--f-titre); }
.tableau { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)) 290px; gap: 16px; padding: 18px var(--gouttiere) 40px; align-items: start; }
@media (max-width: 1150px) { .tableau { grid-template-columns: repeat(3, minmax(260px, 1fr)); } .ruptures { grid-column: 1 / -1; position: static !important; } }
@media (max-width: 780px) { .tableau { grid-template-columns: 1fr; } }
.colonne { display: grid; gap: 12px; }
.colonne > header { display: flex; align-items: center; gap: 10px; }
.colonne > header h2 { font-size: 1.8rem; }
.colonne > header .n { width: 32px; height: 32px; font-size: 1.1rem; }
.bon { background: #fff; border: var(--ligne); border-radius: 18px; padding: 14px 16px; display: grid; gap: 10px; border-left-width: 10px; border-left-color: var(--menthe); }
.bon.urgent { border-left-color: var(--bol); }
.bon.pret { border-left-color: var(--ok); }
.bon .haut { display: flex; align-items: baseline; gap: 10px; }
.bon .no { font: 900 2.3rem/1 var(--f-titre); }
.bon .h { margin-left: auto; font: 900 2rem/1 var(--f-titre); }
.bon .client { font-size: .86rem; color: var(--sourdine); display: flex; gap: 10px; flex-wrap: wrap; }
.bon .ticket-ok { color: var(--ok); font-weight: 700; }
.bon ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .9rem; }
.bon li > b { font-size: 1.02rem; }
.bon .compo { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin-top: 4px; }
.bon .compo span:nth-child(odd) { color: var(--sourdine); font-size: .72rem; letter-spacing: .06em; padding-top: 3px; font-weight: 700; }
.bon .note { background: #fde8ec; color: #9b1530; border: 2px solid #9b1530; border-radius: 10px; padding: 8px 10px; font-size: .88rem; font-weight: 700; }
.ruptures { background: #fff; border: var(--ligne); border-radius: 18px; padding: 16px; display: grid; gap: 12px; position: sticky; top: 16px; }
.ruptures h2 { font-size: 1.8rem; }
.ruptures .liste { display: flex; flex-wrap: wrap; gap: 6px; }
.ruptures button { border: 2px solid var(--encre); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.ruptures button[aria-pressed="true"] { background: var(--bol); color: #fff; text-decoration: line-through; }

/* ---------- Mentions ---------- */
.texte-long { max-width: 68ch; display: grid; gap: 14px; padding-block: 40px; }
.texte-long h2 { font-size: 2.2rem; margin-top: 16px; }
.a-fournir { background: #fff2b8; border: 1.5px dashed #b58b00; border-radius: 6px; padding: 0 6px; font-size: .9rem; }

/* ---------- Menu des maquettes (outil de validation, hors site) ---------- */
.maquettes-btn { position: fixed; right: 16px; bottom: 16px; z-index: 80; height: 46px; padding: 0 16px; border-radius: 999px; border: var(--ligne); background: #ffe14d; color: #222; font: 800 13px/1 var(--f-texte); box-shadow: var(--ombre); cursor: pointer; }
body.avec-barre .maquettes-btn { bottom: 88px; }
.maquettes { position: fixed; right: 16px; bottom: 72px; z-index: 81; width: 300px; max-height: 70vh; overflow: auto; background: #fff; border-radius: 18px; border: var(--ligne); box-shadow: var(--ombre-l); padding: 10px; display: none; }
.maquettes.ouvert { display: grid; gap: 2px; }
.maquettes p { font-size: .78rem; color: var(--sourdine); padding: 6px 10px; }
.maquettes a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.maquettes a:hover, .maquettes a[aria-current="page"] { background: var(--menthe-pale); }

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

/* ---------- Ajustements v2 ---------- */
.surligne { background: var(--bol); color: #fff; padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-shadow: none; box-shadow: 4px 4px 0 var(--encre); display: inline; line-height: 1.02; }
.heros .scene .bol-photo { border-radius: 0; object-fit: contain; }
.heros .chapo { font-weight: 600; }
.formule .corps { background: var(--c); flex: 1; }
.formule .recette .n { background: #fff; }
.etape-carte h3 { display: flex; align-items: center; gap: 10px; }
.etape-carte h3 .n { width: 32px; height: 32px; font-size: 1.15rem; }
.entete-carte .surtitre { color: #fff; }
.carte-resto .visuel, .fiche .visuel { background-size: cover; background-position: center; }
.carte-resto .corps p { font-weight: 600; }
.colonne-panier .n { flex: none; }
@media (max-width: 1040px) {
  .bol-colonne { order: -1; }
  .bol-carte { grid-template-columns: minmax(0, 150px) 1fr; align-items: center; padding: 16px; }
  .bol-carte > .rang { grid-column: 1 / -1; }
  .bol-carte h3 { font-size: 2rem; }
  .bol-carte ul { font-size: .8rem; }
  .bulle-panda { display: none; }
}
@media (max-width: 520px) { .sticker { width: 104px; height: 104px; } .sticker span { font-size: 1rem; } .sticker b { font-size: 1.7rem; } .entete .cadre { gap: 10px; } }
@media (max-width: 560px) {
  .barre-compo .cadre { flex-wrap: wrap; gap: 8px; }
  .barre-compo .manque { font-size: .9rem; width: 100%; }
  .barre-compo .btn { width: 100%; margin-left: 0; }
  body.avec-barre .maquettes-btn { bottom: 140px; }
}

/* ======================================================================
   Passe « épure » (14/11/2026, skills frontend-design-plus + ui-ux-pro-max)
   Une seule audace : le bowl qui se remplit et le panda. Le reste se tait.
   Titres en casse normale, plus d'étiquettes en capitales, texte jamais posé
   en petit corps sur le lagon (contraste insuffisant : 3,3:1 en blanc, 4,4:1 en encre).
   ====================================================================== */
:root { --ok: #17753f; }
h1, h2 { text-transform: none; letter-spacing: 0; }
h1 { font-size: clamp(3rem, 7.5vw, 5.6rem); line-height: .92; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin-bottom: 22px; }
h3 { text-transform: none !important; }

/* En-tête : menu sur mobile, cibles de 44 px */
.btn-menu { display: none; min-height: 44px; padding: 0 16px; border: var(--ligne); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
.choix-resto-entete button { height: 44px; }
.btn-panier.btn-rond { width: 48px; height: 48px; }
@media (max-width: 900px) {
  .btn-menu { display: inline-flex; align-items: center; order: 3; }
  .entete .cadre { gap: 10px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--riz); border-bottom: var(--ligne); flex-direction: column; padding: 8px var(--gouttiere) 16px; }
  .nav.ouverte { display: flex; }
  .nav a { min-height: 48px; display: flex; align-items: center; font-size: 1.1rem; }
  .entete .droite { margin-left: auto; }
}
@media (max-width: 420px) { .choix-resto-entete button { padding: 0 9px; font-size: .78rem; } .btn-menu { padding: 0 12px; } }

/* Héros : texte sur fond clair, le lagon réservé au bowl */
.heros { background: var(--riz); color: var(--encre); border-bottom: 0; border-radius: 0; }
.heros .cadre { grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-block: clamp(28px, 5vw, 64px); }
.heros h1 { color: var(--encre); text-shadow: none; max-width: 11ch; }
.heros .chapo { color: var(--encre); font-weight: 400; font-size: 1.2rem; margin: 20px 0 18px; max-width: 40ch; }
.heros .btn-bol { margin-top: 24px; min-width: 220px; }
.heros-visuel { position: relative; background: var(--lagon); border: var(--ligne); border-radius: var(--r-l); box-shadow: var(--ombre-l); aspect-ratio: 1; display: grid; place-items: center; }
.heros-visuel .bol-photo { width: 88%; height: auto; }
.heros-visuel .panda-coucou { position: absolute; left: -22px; bottom: -22px; width: 30%; filter: drop-shadow(4px 4px 0 var(--encre)); }
@media (max-width: 860px) { .heros .cadre { grid-template-columns: 1fr; } .heros-visuel { max-width: 440px; width: 100%; margin: 8px auto 0; } .heros-visuel .panda-coucou { left: -10px; bottom: -14px; } }

.statut-ligne { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pastille { width: 10px; height: 10px; border-radius: 50%; background: var(--sourdine); flex: none; }
.pastille.ok { background: var(--ok); }

/* Sections et pages internes */
.section { padding-block: clamp(40px, 6vw, 72px); }
.entete-page { padding-block: clamp(28px, 5vw, 48px) 8px; }
.entete-page .chapo { margin-top: 14px; font-size: 1.15rem; }
.entete-page .statut-ligne { margin-top: 14px; }

/* Formules : une photo, un nom, un prix, une ligne */
.formule .corps { background: #fff; gap: 6px; }
.formule h3 { font-size: 2.1rem; }
.formule .prix { font: 900 1.6rem/1 var(--f-titre); }
.formule:hover { transform: translate(-2px, -2px); box-shadow: var(--ombre-l); }
.formule:hover .photo img { transform: none; }

/* Restaurants */
.carte-resto { grid-template-rows: 190px auto; }
.carte-resto h3 { font-size: 2.2rem; }
.fiche h2 { margin-bottom: 0; }

/* Carte */
.onglets { top: 76px; }
.onglets a { min-height: 44px; display: inline-flex; align-items: center; }
.rayon h2 { margin-bottom: 0; }

/* Composer : le récapitulatif passe sur fond blanc, le bowl garde son disque lagon */
.bol-carte { background: #fff; color: var(--encre); }
.bol-carte h3 { color: var(--encre); text-shadow: none; font-size: 2.3rem; }
.bol-carte svg.bol { background: var(--lagon); border-radius: 50%; padding: 4%; border: var(--ligne); filter: none; }
.bol-carte li .vide { color: var(--sourdine); opacity: 1; }
.etape h2 { margin-bottom: 0; }
.label-note { display: block; font-weight: 800; margin-bottom: 10px; font-size: 1.1rem; }

/* Tunnel */
.quantite { height: 44px; }
.quantite button { width: 44px; }
.btn-petit { min-height: 44px; }
.lien { min-height: 44px; display: inline-flex; align-items: center; }

/* Confirmation : ticket encre, numéro menthe */
.ticket { background: var(--encre); }
.ticket .no { color: var(--menthe); text-shadow: none; }
.ticket p { color: #fff; }

/* Pied de page sobre */
.pied .grille { padding-block: 44px 28px; }
.pied .marque span { color: #fff; }
.pied h4 { font-size: 1.4rem; text-transform: none; }
.heros h1 { max-width: 13ch; }
.nav-resto { display: none; }
@media (max-width: 560px) {
  .entete .droite > .choix-resto-entete { display: none; }
  .nav .nav-resto { display: inline-flex; align-self: flex-start; margin-top: 8px; }
  .grille-formules { grid-template-columns: 1fr 1fr; gap: 12px; }
  .formule .corps { padding: 12px; }
  .formule h3 { font-size: 1.6rem; }
  .formule .prix { font-size: 1.25rem; }
  .formule .corps .muet { font-size: .82rem; }
  .pied .grille { grid-template-columns: 1fr; gap: 20px; }
  .heros-visuel { max-width: 340px; }
}
.pastille-formule b { text-transform: none; }
@media (max-width: 560px) { .ticket .panda-fete { display: none; } }
.pied .geant { padding-top: 48px; line-height: .78; }
.pied .grille { padding-top: 32px; }
.pied .geant { font-size: clamp(4.5rem, 20.5vw, 20rem); }
.pied .marque span { display: none; }

/* Choix du jour de retrait */
.jours { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 8px 2px; scrollbar-width: thin; }
.jour { flex: none; min-width: 92px; min-height: 56px; padding: 8px 12px; border-radius: 14px; border: var(--ligne); background: #fff; cursor: pointer; display: grid; justify-items: center; gap: 2px; }
.jour span { font-weight: 800; font-size: .92rem; }
.jour small { font-size: .78rem; color: var(--sourdine); }
.jour[aria-pressed="true"] { background: var(--encre); color: #fff; box-shadow: 3px 3px 0 var(--bol); }
.jour[aria-pressed="true"] small { color: #d4dcda; }
.creneaux { max-height: 312px; overflow-y: auto; padding: 2px 4px 4px 2px; }
@media (max-width: 560px) {
  .ligne-panier { grid-template-columns: 64px minmax(0, 1fr); }
  .ligne-panier .montant { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}
@media (max-width: 560px) {
  .maquettes-btn, body.avec-barre .maquettes-btn { top: 84px; bottom: auto; right: 8px; height: 34px; padding: 0 12px; font-size: 11px; box-shadow: 2px 2px 0 var(--encre); }
  .maquettes { top: 124px; bottom: auto; right: 8px; }
}

/* Bowl en direct sur mobile : une miniature dans la barre du bas, toujours visible */
.mini-bol { display: none; }
@media (max-width: 1040px) {
  .barre-compo .cadre { display: grid; grid-template-columns: 76px 1fr; align-items: center; column-gap: 12px; row-gap: 8px; }
  .mini-bol { display: block; width: 76px; height: 76px; border-radius: 50%; background: var(--lagon); border: var(--ligne); padding: 3px; box-shadow: 3px 3px 0 var(--encre); }
  .mini-bol svg { width: 100%; height: 100%; display: block; }
  .barre-compo .btn { grid-column: 1 / -1; width: 100%; margin-left: 0; }
  .barre-compo .manque { font-size: .95rem; }
  .mini-bol.pop { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
  body.avec-barre .maquettes-btn { top: 84px; bottom: auto; }
}
@media (min-width: 561px) and (max-width: 1040px) {
  .barre-compo .cadre { grid-template-columns: 76px 1fr auto; }
  .barre-compo .btn { grid-column: auto; width: auto; }
}
@keyframes pop { 40% { transform: scale(1.14) rotate(-6deg); } }

/* Pages WordPress hors application (paiement WooCommerce, pages légales) */
.page-wp { padding-block: 32px 80px; max-width: 760px; }
.page-wp h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); margin-bottom: 24px; }
.contenu-wp table { width: 100%; border-collapse: collapse; }
.contenu-wp td, .contenu-wp th { padding: 10px 8px; border-bottom: 1px solid var(--trait); text-align: left; }
.contenu-wp .button, .contenu-wp button[type=submit] { min-height: 54px; padding: 0 26px; border-radius: 999px; border: var(--ligne); background: var(--bol); color: #fff; font: 800 1.05rem/1 var(--f-texte); box-shadow: var(--ombre); cursor: pointer; }
.contenu-wp input[type=text], .contenu-wp input[type=email], .contenu-wp input[type=tel] { height: 50px; border: var(--ligne); border-radius: 14px; padding: 0 14px; }

/* Recette préprod 14/11 : en-tête d'étape sans débordement horizontal sur mobile
   (le compteur « 1/2 » sortait de 20 px, le navigateur dézoomait et la barre du bas passait sous l'écran). */
.etape > header h2 { min-width: 0; overflow-wrap: anywhere; }
.compteur { flex-shrink: 0; }
@media (max-width: 560px) { .etape h2 { font-size: clamp(1.7rem, 8vw, 2.6rem); } }
body { overflow-x: clip; }

/* Recette préprod 14/11 : page de paiement WooCommerce sur mobile (tableau qui débordait, bouton violet par défaut) */
.contenu-wp table.shop_table { width: 100%; max-width: 100%; table-layout: fixed; margin: 0 0 24px; border-collapse: collapse; }
.contenu-wp table.shop_table .product-name { width: auto; }
.contenu-wp table.shop_table .product-quantity { width: 3.2em; text-align: center; }
.contenu-wp table.shop_table .product-total, .contenu-wp table.shop_table tfoot td { width: 6.5em; text-align: right; white-space: nowrap; }
.contenu-wp ul.wc-item-meta { margin: 8px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--gris, #5d6664); }
.contenu-wp ul.wc-item-meta li { margin: 0 0 4px; }
.contenu-wp ul.wc-item-meta p, .contenu-wp ul.wc-item-meta strong { display: inline; margin: 0; }
.woocommerce .contenu-wp #payment #place_order, .contenu-wp #place_order { float: none; width: 100%; min-height: 56px; background: var(--bol); color: #fff; border: var(--ligne); border-radius: 999px; box-shadow: var(--ombre); font: 800 1.1rem/1 var(--f-texte); }
@media (max-width: 560px) { .contenu-wp td, .contenu-wp th { padding: 10px 6px; } }

/* Démo 14/11 : le tableau cuisine débordait à droite sur une tablette de 1180 px */
@media (min-width: 1151px) { .tableau { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 280px); } }

/* Ruptures rangées par catégorie (base, protéine, accompagnement, sauce, topping) */
.ruptures { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.groupe-rupt { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--trait); }
.groupe-rupt h3 { font: 800 .95rem/1.2 var(--f-texte); margin: 0; }
.ruptures button[data-act="rupture"] { min-height: 40px; font-size: .85rem; }

/* ==========================================================================
   Espace équipe, iPad d'abord (15/11/2026, revue Human Interface Guidelines)
   Barre sombre collante : identité et restaurant, onglets, heure.
   Paysage (1100 px et plus) : une ligne, onglets à droite.
   iPad portrait et iPad mini (720 à 1099 px) : onglets sur une 2e ligne, pleine largeur.
   Téléphone et Split View étroit (moins de 720 px) : onglets en bas d'écran.
   Cibles tactiles de 44 px minimum, textes de 15 px et plus, champ de saisie en 17 px.
   ========================================================================== */
.cuisine { --surface: #eef3f2; --carte: #fff; --ok-texte: #17753f; --alerte: #9b1530; background: var(--surface); min-height: 100vh; min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
.cuisine [hidden] { display: none !important; }
.cuisine button, .cuisine select, .cuisine summary, .cuisine a, .cuisine input { touch-action: manipulation; }
.cuisine button:focus-visible, .cuisine select:focus-visible, .cuisine summary:focus-visible, .cuisine .histo .col:focus-visible { outline: 3px solid var(--lagon); outline-offset: 2px; }

/* Barre d'en-tête */
.barre-equipe { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ident onglets heure"; align-items: center; gap: 10px 20px;
  padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left)); background: var(--encre); color: #fff; border-bottom: var(--ligne); }
.barre-equipe .ident { grid-area: ident; display: flex; align-items: center; gap: 12px; min-width: 0; }
.barre-equipe .marque { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.barre-equipe .marque img { width: 40px; height: auto; }
.titre-app { font: 900 1.9rem/1 var(--f-titre); }
.barre-equipe select { height: 44px; min-width: 156px; padding: 0 40px 0 16px; border: 0; border-radius: 999px; color: #fff; font: 700 1rem/1 var(--f-texte); cursor: pointer; -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, .13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; }
.barre-equipe select option { color: #000; }
.pastille-pause { background: var(--bol); color: #fff; font: 800 .9rem/1 var(--f-texte); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.onglets-equipe { grid-area: onglets; justify-self: end; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.onglets-equipe button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 700 1rem/1 var(--f-texte); cursor: pointer; transition: background-color .15s, transform .1s; }
.onglets-equipe button[aria-current="page"] { background: #fff; color: var(--encre); }
.onglets-equipe button:active { transform: scale(.97); }
.onglets-equipe svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.onglets-equipe .badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--bol); color: #fff; display: inline-grid; place-items: center; font: 800 .85rem/1 var(--f-texte); }
.barre-equipe .horloge { grid-area: heure; margin: 0; font: 900 2rem/1 var(--f-titre); }
@media (hover: hover) { .onglets-equipe button:not([aria-current]):hover { background: rgba(255, 255, 255, .14); } }

/* Page et barre d'outils de la page */
.espace-page { padding: 18px max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left)); }
.outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 12px; }
.outils h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.outils-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.aide { max-width: 70ch; margin: -2px 0 14px; font-size: .95rem; }
.outils .btn-petit { min-height: 48px; }

/* Commandes : interrupteur et temps de préparation, version claire */
.outils .interrupteur { min-height: 48px; padding: 6px 18px 6px 8px; gap: 12px; background: var(--carte); color: var(--encre); border: var(--ligne); font: 700 .98rem/1.1 var(--f-texte); }
.outils .interrupteur .rail { width: 50px; height: 30px; border-radius: 15px; background: var(--ok-texte); }
.outils .interrupteur .rail::after { top: 4px; left: 24px; width: 22px; height: 22px; }
.outils .interrupteur[aria-pressed="false"] { border-color: var(--bol); color: var(--alerte); }
.outils .interrupteur[aria-pressed="false"] .rail::after { left: 4px; }
.outils .reglage { min-height: 48px; padding: 2px 2px 2px 16px; gap: 6px; background: var(--carte); border: var(--ligne); border-radius: 999px; font-weight: 700; }
.outils .reglage button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--encre); font: 700 1.35rem/1 var(--f-texte); cursor: pointer; }
.outils .reglage button:active { background: #d9e4e2; }
.outils .reglage b { min-width: 66px; text-align: center; font: 900 1.5rem/1 var(--f-titre); }

.cuisine .tableau { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; align-items: start; }
.cuisine .colonne > header h2 { font-size: 1.7rem; }
.cuisine .bon ul { font-size: .97rem; }
.cuisine .bon .client { font-size: .92rem; }
.cuisine .bon .compo span:nth-child(odd) { font-size: .78rem; }
.cuisine .bon .btn { min-height: 50px; font-size: 1.05rem; }

/* Ruptures : recherche dans la barre d'outils (HIG : search field à droite de la barre) */
.recherche { position: relative; display: flex; align-items: center; width: min(380px, 100%); }
.recherche > svg { position: absolute; left: 16px; width: 20px; height: 20px; fill: none; stroke: var(--sourdine); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.recherche input { width: 100%; min-height: 48px; padding: 0 52px 0 46px; border: var(--ligne); border-radius: 999px; background: var(--carte); color: var(--encre); font: 600 1.0625rem/1 var(--f-texte); -webkit-appearance: none; appearance: none; }
.recherche input::placeholder { color: var(--sourdine); opacity: 1; }
.recherche input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.recherche input:focus-visible { outline: 3px solid var(--lagon); outline-offset: 2px; }
.recherche .effacer { position: absolute; right: 2px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.recherche .effacer svg { width: 18px; height: 18px; fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; }
.recherche .effacer:active { background: var(--surface); }
.en-rupture { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--carte); border: var(--ligne); border-radius: 18px; padding: 12px 14px; margin-bottom: 14px; }
.en-rupture b { margin-right: 4px; }
.resultat-recherche { margin: 0 0 10px; font-weight: 700; }
.resultat-recherche:empty { display: none; }
.grille-rupt { display: block; columns: 300px; column-gap: 14px; }
.grille-rupt .groupe-rupt { break-inside: avoid; margin: 0 0 14px; display: grid; gap: 10px; background: var(--carte); border: var(--ligne); border-radius: 18px; padding: 14px 16px; }
.groupe-rupt h2 { font: 800 1.05rem/1.2 var(--f-texte); display: flex; align-items: baseline; gap: 8px; }
.groupe-rupt .compte { font-size: .82rem; color: var(--alerte); font-weight: 800; }
.cuisine .liste { display: flex; flex-wrap: wrap; gap: 8px; }
.rupt { min-height: 44px; padding: 6px 15px; border: 2px solid var(--encre); border-radius: 999px; background: var(--carte); color: var(--encre); font: 700 .95rem/1.15 var(--f-texte); cursor: pointer; }
.rupt:active { transform: scale(.97); }
.rupt[aria-pressed="true"] { background: var(--bol); border-color: var(--bol); color: #fff; text-decoration: line-through; }
@media (hover: hover) { .rupt:not([aria-pressed="true"]):hover { background: var(--surface); } }
.vide-recherche { display: grid; justify-items: start; gap: 12px; background: var(--carte); border: var(--ligne); border-radius: 18px; padding: 18px; }

/* Carte côté client : produit épuisé */
.produit.epuise { cursor: not-allowed; opacity: .55; filter: grayscale(.9); box-shadow: none; transform: none; }
.produit.epuise .dans { background: var(--encre); }

/* Statistiques */
.segments { display: inline-flex; gap: 2px; padding: 3px; background: var(--carte); border: var(--ligne); border-radius: 999px; }
.segments button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--encre); font: 800 .95rem/1 var(--f-texte); cursor: pointer; }
.segments button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--carte); border: var(--ligne); border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.kpi .lib { font-weight: 700; font-size: .92rem; color: var(--sourdine); }
.kpi .val { font: 900 clamp(1.8rem, 3.2vw, 2.5rem)/1 var(--f-titre); }
.kpi .var { font-weight: 800; font-size: .86rem; }
.kpi .var .muet { font-weight: 600; }
.kpi .hausse { color: var(--ok-texte); }
.kpi .baisse { color: #b3261e; }
.carte-stat { background: var(--carte); border: var(--ligne); border-radius: 18px; padding: 16px 18px; margin-top: 14px; min-width: 0; }
.carte-stat h3 { font: 800 1.15rem/1.2 var(--f-texte); margin-bottom: 4px; }
.petit { font-size: .88rem; }
.stats-duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }

/* Histogramme : barres lagon, extrémité arrondie de 4 px, 2 px d'écart, valeur au toucher */
.histo-zone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 14px; padding-bottom: 26px; }
.axe-y { height: var(--haut); display: flex; flex-direction: column; justify-content: space-between; margin: -.45em 0; font-size: .78rem; color: var(--sourdine); text-align: right; }
.histo { height: var(--haut); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; border-bottom: 2px solid var(--encre);
  background: linear-gradient(var(--trait) 1px, transparent 1px) 0 0 / 100% 50%; }
.histo .col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px; cursor: default; }
.histo .bar { width: min(100%, 36px); height: var(--h); background: var(--lagon); border-radius: 4px 4px 0 0; }
.histo .col:focus .bar, .histo .col:active .bar { background: var(--lagon-nuit); }
.histo .col:focus { background: rgba(15, 155, 180, .08); outline: none; }
.histo .bulle { display: none; position: absolute; left: 50%; top: 0; transform: translate(-50%, -105%); z-index: 4; pointer-events: none; background: var(--encre); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: .82rem; line-height: 1.35; white-space: nowrap; text-align: center; }
.histo .bulle b { display: block; font-size: 1.05rem; }
.histo .col.g .bulle { left: 0; transform: translate(0, -105%); }
.histo .col.dr .bulle { left: auto; right: 0; transform: translate(0, -105%); }
.histo .col:focus .bulle { display: block; }
@media (hover: hover) { .histo .col:hover { background: rgba(15, 155, 180, .07); } .histo .col:hover .bar { background: var(--lagon-nuit); } .histo .col:hover .bulle { display: block; } }
.histo .x { position: absolute; top: calc(100% + 6px); font-size: .78rem; color: var(--sourdine); white-space: nowrap; }
.histo .x.vide { visibility: hidden; }
.donnees { margin-top: 4px; font-size: .92rem; }
.donnees summary { cursor: pointer; font-weight: 700; color: var(--lagon-nuit); min-height: 44px; display: inline-flex; align-items: center; }
.donnees table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.donnees th, .donnees td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--trait); }
.donnees td.num, .donnees th:not(:first-child) { text-align: right; }

/* Classements */
.classement { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.classement li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.classement .rang-n { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--encre); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.classement .nom { font-weight: 700; display: grid; gap: 5px; min-width: 0; }
.classement .q { text-align: right; font-weight: 800; font-size: 1.05rem; display: grid; }
.classement .q small { font-weight: 600; font-size: .8rem; color: var(--sourdine); }
.jauge { display: block; height: 8px; border-radius: 4px; background: #e6eeed; overflow: hidden; }
.jauge > span { display: block; height: 100%; border-radius: 4px; background: var(--lagon); }
.grille-ing { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-top: 12px; }
.groupe-ing { border: 2px solid var(--trait); border-radius: 14px; padding: 12px; }
.groupe-ing h4 { font: 800 .95rem/1.2 var(--f-texte); margin-bottom: 8px; }
.groupe-ing ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.groupe-ing li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; font-size: .9rem; }
.groupe-ing li .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.groupe-ing li .q { font-weight: 800; }
.groupe-ing li .jauge { grid-column: 1 / -1; height: 6px; }
.segments { flex-wrap: wrap; max-width: 100%; }
.tableau-stat { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; }
.tableau-stat th, .tableau-stat td { text-align: left; padding: 8px; border-bottom: 1px solid var(--trait); }
.tableau-stat th { font-size: .82rem; color: var(--sourdine); font-weight: 700; }
.tableau-stat td.num, .tableau-stat th:not(:first-child) { text-align: right; }

/* Historique */
.filtres-histo { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0 0 12px; }
.filtres-histo .recherche { flex: 1 1 300px; }
.champ-date { display: grid; gap: 4px; font-weight: 700; font-size: .85rem; color: var(--sourdine); }
.champ-date input { min-height: 48px; padding: 0 12px; border: var(--ligne); border-radius: 12px; background: var(--carte); font: 600 17px var(--f-texte); color: var(--encre); }
.histo-liste { background: var(--carte); border: var(--ligne); border-radius: 18px; overflow-x: auto; }
.histo-liste.attente, .stats-corps.attente { opacity: .55; transition: opacity .2s; }
.tableau-histo { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tableau-histo th { text-align: left; font-size: .82rem; color: var(--sourdine); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--trait); white-space: nowrap; }
.tableau-histo td { padding: 10px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau-histo td:first-child { white-space: nowrap; }
.tableau-histo td:first-child .d, .tableau-histo td:nth-child(2) b { display: block; }
.tableau-histo td.num { white-space: nowrap; }
.tableau-histo td:nth-child(5) { text-align: right; font-weight: 800; }
.tableau-histo .resume { color: var(--sourdine); min-width: 220px; }
.tableau-histo tbody tr { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tableau-histo tbody tr:active { background: var(--surface); }
.tableau-histo td { padding-top: 14px; padding-bottom: 14px; }
.tableau-histo .chevron { width: 1%; padding-left: 0; color: var(--sourdine); font-size: 1.5rem; line-height: 1; vertical-align: middle; }
.histo { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.histo .col { -webkit-tap-highlight-color: transparent; }
.tableau-histo tbody tr:focus { outline: 3px solid var(--lagon); outline-offset: -3px; }
@media (hover: hover) { .tableau-histo tbody tr:hover { background: var(--surface); } }
.tableau-histo tr.rembourse td { color: var(--sourdine); }
.statut-histo { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #e6eeed; font-weight: 700; font-size: .82rem; white-space: nowrap; }
.statut-histo.rembourse { background: #fbe4e2; color: #b3261e; }
.pages-histo { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 14px 0; }
.fiche-histo { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 12px; }
.fiche-histo li { border-bottom: 1px solid var(--trait); padding-bottom: 10px; display: grid; gap: 6px; }
.fiche-histo .compo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; font-size: .9rem; }
.fiche-histo .compo span:nth-child(odd) { color: var(--sourdine); font-weight: 700; }
.total-histo { font-size: 1.1rem; margin-bottom: 14px; }
/* Téléphone : chaque commande en petite carte (date et total, numéro et état, client) */
@media (max-width: 719px) {
  .tableau-histo thead { display: none; }
  .tableau-histo, .tableau-histo tbody { display: block; }
  .tableau-histo tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--trait); }
  .tableau-histo td { padding: 0; border: 0; }
  .tableau-histo td:nth-child(1) { grid-area: 1 / 1; }
  .tableau-histo td:nth-child(1) .d { display: inline; margin-right: 6px; font-weight: 700; }
  .tableau-histo td:nth-child(5) { grid-area: 1 / 2; }
  .tableau-histo td:nth-child(2) { grid-area: 2 / 1; }
  .tableau-histo td:nth-child(2) b, .tableau-histo td:nth-child(2) span { display: inline; margin-right: 6px; }
  .tableau-histo td:nth-child(6) { grid-area: 2 / 2; text-align: right; }
  .tableau-histo td:nth-child(3) { grid-area: 3 / 1 / 4 / 3; }
  .tableau-histo td:nth-child(4) { grid-area: 4 / 1 / 5 / 3; min-width: 0; font-size: .88rem; }
  .tableau-histo td.chevron { display: none; }
}

/* iPad portrait et iPad mini : onglets sur une 2e ligne, pleine largeur */
@media (max-width: 1099px) {
  .barre-equipe { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ident heure" "onglets onglets"; }
  .onglets-equipe { justify-self: stretch; }
  .onglets-equipe button { flex: 1; }
}
@media (max-width: 860px) {
  .grille-ing { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 760px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-duo { grid-template-columns: minmax(0, 1fr); }
}
/* Téléphone et Split View étroit : onglets en bas, une colonne */
@media (max-width: 719px) {
  .titre-app { display: none; }
  .barre-equipe { grid-template-areas: "ident heure"; }
  .barre-equipe .horloge { font-size: 1.6rem; }
  .barre-equipe select { min-width: 0; }
  .onglets-equipe { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; justify-self: auto; border-radius: 0; gap: 4px; background: var(--encre); border-top: var(--ligne); padding: 6px 8px max(6px, env(safe-area-inset-bottom)); }
  .onglets-equipe button { flex-direction: column; gap: 4px; min-height: 58px; padding: 6px 4px; border-radius: 14px; font-size: .8rem; }
  .onglets-equipe .badge { position: absolute; top: 3px; left: calc(50% + 8px); min-width: 22px; height: 22px; font-size: .78rem; }
  .espace-page { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .cuisine .tableau { grid-template-columns: minmax(0, 1fr); }
  .outils-actions, .recherche { width: 100%; }
  .outils .interrupteur { flex: 1 1 auto; }
  body:has(.onglets-equipe) #pk-preprod-badge { bottom: 92px !important; }
}
@media (prefers-reduced-motion: reduce) { .onglets-equipe button, .rupt, .outils .interrupteur .rail::after { transition: none; } .onglets-equipe button:active, .rupt:active { transform: none; } }
.groupe-rupt h2, .carte-stat h3, .outils h1 { margin: 0; }

/* Ruptures sans décalage de mise en page (CLS) : rien ne s'insère au-dessus de la grille,
   les compteurs ont une place réservée, l'état change sur place au toucher. */
.filtre-rupt { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 18px; border: var(--ligne); border-radius: 999px; background: var(--carte); color: var(--encre); font: 700 .98rem/1 var(--f-texte); cursor: pointer; }
.filtre-rupt .compteur-rupt { min-width: 2.2em; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--surface); display: inline-grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.filtre-rupt[aria-pressed="true"] { background: var(--encre); color: #fff; }
.filtre-rupt[aria-pressed="true"] .compteur-rupt { background: var(--bol); color: #fff; }
.filtre-rupt:disabled, .outils .btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.groupe-rupt h2 .compte { margin-left: auto; white-space: nowrap; min-height: 1em; }
.rupt { transition: background-color .12s, color .12s, border-color .12s; }
@media (prefers-reduced-motion: reduce) { .rupt { transition: none; } }

/* Scan qualité du 15/11 : contrastes, cibles tactiles */
.carte-resto h3, .fiche h2 { color: color-mix(in srgb, var(--c) 78%, #000); }
.pastille-formule[aria-pressed="true"] { background: var(--lagon-nuit); }
.confirmation .boite .muet { color: #4a5553; }
.quantite { height: auto; }
.quantite button { width: 44px; height: 44px; }
.fil a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.cases { min-height: 44px; align-items: center; cursor: pointer; }
.cases input { width: 24px; height: 24px; }
.stats-corps { transition: opacity .15s; }
.stats-corps.attente { opacity: .45; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .stats-corps { transition: none; } }
/* Images : place réservée avant chargement (pas de décalage de mise en page) */
.heros-visuel .bol-photo { aspect-ratio: 1; }
.barre-equipe .marque img, .cuisine .marque img { aspect-ratio: 40 / 42; }
/* Cartes-boutons à photo : dans un <button>, aspect-ratio n'est pas appliqué tant que l'image n'a pas
   chargé (photo à 2 px puis 258 px : décalage). Largeur explicite + image positionnée = place réservée. */
.formule .photo, .produit .photo { width: 100%; flex: 0 0 auto; }
.formule .photo img, .produit .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tuile .badge { font-size: .75rem; }
.tuile .badge.ici { background: var(--lagon-nuit); }
/* Compte client */
.commande-c { display: grid; gap: 8px; padding-block: 14px; border-bottom: 2px dashed var(--trait); }
.commande-c:last-child { border-bottom: 0; }
.lignes-c { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: .92rem; }
.lignes-c li { display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-height: 32px; }
.champ select { font: inherit; font-size: 17px; min-height: 48px; padding: 0 14px; border: var(--ligne); border-radius: 14px; background: #fff; color: var(--encre); }
.champ input[readonly] { background: var(--fond, #f6f3ea); color: #4a5553; }
/* Page légale */
.texte-long h2 { font-size: 2.6rem; margin-top: 28px; scroll-margin-top: 96px; }
.texte-long h3 { font: 800 1.08rem/1.35 var(--f-texte); margin-top: 6px; }
.texte-long nav { gap: 8px; }
/* Retouches du 18/11 : doubles, suppléments, tiroir, carrousel, anciens navigateurs */
.tuile-w { position: relative; display: grid; }
.tuile-w .tuile { height: 100%; }
.tuile.x2[aria-pressed="true"]::after { content: "×2"; width: auto; min-width: 34px; padding: 0 6px; border-radius: 999px; font-size: .85rem; }
.tuile[aria-disabled="true"] { cursor: default; }
.moins-tuile { position: absolute; top: -10px; left: -10px; width: 34px; height: 34px; border-radius: 50%; border: var(--ligne); background: #fff; color: var(--encre); font: 800 1.2rem/1 var(--f-texte); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.moins-tuile::before { content: ""; position: absolute; inset: -6px; }
.tuile .supp { position: absolute; top: 8px; right: 8px; font-size: .75rem; font-weight: 800; background: var(--encre); color: #fff; border-radius: 6px; padding: 2px 6px; }
.etape .compteur b { color: var(--bol); }
.pastille-formule small { display: block; font-size: .8rem; font-weight: 600; opacity: .85; margin-top: 2px; }
.voile.cote { justify-content: flex-end; align-items: stretch; }
.tiroir { width: min(420px, 100%); height: 100%; overflow-y: auto; background: var(--riz); border-left: var(--ligne); padding: 20px var(--gouttiere) max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: tiroir .22s ease-out; }
@keyframes tiroir { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tiroir { animation: none; } }
.tete-tiroir { display: flex; justify-content: space-between; align-items: center; }
.tete-tiroir h2 { font-size: 2.4rem; }
.lignes-tiroir { list-style: none; margin: 0; padding: 0; display: grid; }
.lignes-tiroir li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-block: 12px; border-bottom: 2px dashed var(--trait); }
.lignes-tiroir .photo { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 2px solid var(--encre); background: var(--lagon); }
.lignes-tiroir .photo img { width: 100%; height: 100%; object-fit: cover; }
.lignes-tiroir .txt { display: grid; gap: 2px; font-size: .92rem; }
.lignes-tiroir .txt .muet { font-size: .82rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lignes-tiroir .txt .lien { justify-self: start; font-size: .85rem; min-height: 32px; }
.lignes-tiroir .droite-l { display: grid; justify-items: end; gap: 6px; font-weight: 700; }
.pied-tiroir { margin-top: auto; display: grid; gap: 10px; position: sticky; bottom: 0; background: var(--riz); padding-top: 10px; }
.carrousel { overflow-x: auto; overflow-y: hidden; padding: 8px 12px 16px 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--trait) transparent; }
.carrousel > * { scroll-snap-align: start; }
.carrousel::-webkit-scrollbar { height: 6px; }
.carrousel::-webkit-scrollbar-thumb { background: var(--trait); border-radius: 6px; }
.carrousel::-webkit-scrollbar-track { background: transparent; }
.carrousel .produit { overflow: hidden; }
/* Anciens navigateurs (Safari avant 15, sans aspect-ratio) : la place de la photo reste réservée */
@supports not (aspect-ratio: 1) {
  .formule .photo, .produit .photo { height: 0; padding-top: 95%; }
  .carrousel .produit .photo, .favori .photo { height: 0; padding-top: 100%; }
  .formule .photo img, .produit .photo img { top: 0; left: 0; right: 0; bottom: 0; }
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .carte-resto h3, .fiche h2 { color: var(--encre); }
}
.voile.cote.ouvert + .toast { opacity: 0; visibility: hidden; }
.tuile[aria-pressed="true"] .supp { right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
/* Accès de l'équipe (code à 6 chiffres par restaurant) */
.acces-equipe { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px var(--gouttiere); background: var(--lagon) var(--motif); }
.carte-acces { width: 100%; max-width: 520px; min-width: 0; background: var(--riz); border: var(--ligne); border-radius: var(--r-l); box-shadow: var(--ombre-l); padding: 28px clamp(20px, 5vw, 36px) 24px; display: grid; gap: 18px; }
.carte-acces .marque { display: inline-flex; align-items: center; gap: 10px; font: 900 1.5rem/1 var(--f-titre); color: var(--encre); text-decoration: none; justify-self: start; }
.carte-acces h1 { font-size: clamp(2.8rem, 8vw, 3.8rem); }
.carte-acces fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.carte-acces legend { font-weight: 800; margin-bottom: 10px; }
.restos-acces { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.resto-acces { display: grid; gap: 4px; text-align: left; padding: 14px 16px; min-height: 76px; border: var(--ligne); border-radius: var(--r); background: #fff; cursor: pointer; font: inherit; color: var(--encre); }
.resto-acces b { font: 900 1.6rem/1 var(--f-titre); }
.resto-acces span { font-size: .85rem; color: var(--sourdine); }
.resto-acces[aria-pressed="true"] { background: var(--clair); box-shadow: var(--ombre); border-color: var(--encre); }
.resto-acces[aria-pressed="true"] b { color: color-mix(in srgb, var(--c) 70%, #000); }
.code-acces { width: 100%; min-width: 0; font: 800 2rem/1 var(--f-texte); letter-spacing: .5em; text-align: center; padding-left: .5em; min-height: 64px; }
.code-acces:disabled { background: #f1efe8; }
.erreur-acces { margin: 0; min-height: 1.3em; color: #b0102f; font-weight: 700; }
.erreur-acces:empty { min-height: 0; }
.resto-fixe { font-weight: 800; color: #fff; padding: 0 6px; }
.quitter { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: 700 .9rem/1 var(--f-texte); cursor: pointer; }
@media (max-width: 420px) { .restos-acces { grid-template-columns: 1fr; } }

/* Ticket cuisine (entrée 38) : état sur le bon, aperçu, historique */
.bon .etat-ticket { font: inherit; font-size: .84rem; font-weight: 700; background: none; border: 0; padding: 4px 0; min-height: 44px; color: var(--sourdine); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bon .etat-ticket.envoye, .bon .etat-ticket.imprime { color: var(--ok); }
.bon .etat-ticket.echec { color: #fff; background: var(--bol); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.bon.echec-ticket { border-color: var(--bol); box-shadow: 0 0 0 3px var(--bol); }
.etat-ticket-f { font-weight: 700; margin: 4px 0 12px; }
.etat-ticket-f.echec { color: var(--bol); }
.etat-ticket-f.envoye, .etat-ticket-f.imprime { color: var(--ok); }
/* Aperçu du ticket tel qu'il sort de l'imprimante thermique (entrée 41) : papier à l'échelle (80 ou 58 mm),
   colonnes exactes (48 ou 30, police ajustée en JS), double hauteur / largeur, logo, coupes entre les morceaux. */
.apercu-ticket { background: #e7e3da; border-radius: 14px; padding: 22px 12px 26px; margin: 0 0 14px; display: grid; justify-items: center; }
.apercu-ticket .papier { --lh: 1.42em; width: min(100%, calc(var(--mm) * 5.4px)); box-sizing: border-box; padding: 18px calc(var(--mm) * .3px) 22px; background: #fffefb; color: #121212; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 22px rgba(0,0,0,.10); font: 13px/var(--lh) Menlo, "SF Mono", "DejaVu Sans Mono", Consolas, monospace; white-space: pre; overflow: hidden; position: relative; }
.apercu-ticket .tk { height: var(--lh); line-height: var(--lh); }
.apercu-ticket .tk span { display: inline-block; transform: scale(var(--sx, 1), var(--sy, 1)); transform-origin: left top; }
.apercu-ticket .tk.c { text-align: center; }
.apercu-ticket .tk.c span { transform-origin: center top; }
.apercu-ticket .tk.b span { font-weight: 700; }
.apercu-ticket .tk.w span { --sx: 2; }
.apercu-ticket .tk.h { height: calc(2 * var(--lh)); }
.apercu-ticket .tk.h span { --sy: 2; }
.apercu-ticket .tk-img img { display: block; width: 100%; height: auto; image-rendering: pixelated; mix-blend-mode: multiply; margin: 0 0 6px; }
.apercu-ticket .sonde { position: absolute; visibility: hidden; white-space: pre; }
.apercu-ticket .coupe { width: min(100%, calc(var(--mm) * 5.4px + 24px)); display: flex; align-items: center; gap: 8px; margin: 10px 0; color: var(--sourdine); font-size: .8rem; font-weight: 700; }
.apercu-ticket .coupe::before, .apercu-ticket .coupe::after { content: ""; flex: 1; border-top: 2px dashed #a9a59c; }
.journal-ticket { margin: 0 0 14px; font-size: .9rem; }
.journal-ticket summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.journal-ticket ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; color: var(--sourdine); }

/* Étapes automatiques sur les bons (entrée 39) : l'heure fait avancer, seul « Retirée » se touche */
.bon .auto-etape { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 2px dashed var(--ligne, #d8e4e2); padding-top: 10px; margin-top: 4px; font-size: .9rem; font-weight: 700; }
.bon .auto-etape .lien { font-size: .85rem; min-height: 44px; color: var(--sourdine); }

/* Ajout d'un ingrédient par l'équipe (entrée 44) */
.groupe-rupt .ajout-ingr { justify-self: start; min-height: 44px; }
.form-ingr { display: grid; gap: 14px; margin: 6px 0 18px; }
.form-ingr .champ input, .form-ingr .champ select { font-size: 17px; }
.feuille .titre-ajouts, .titre-ajouts { font: 800 1.05rem/1.2 var(--f-texte); letter-spacing: 0; text-transform: none; margin: 10px 0 6px; }
.ajouts-liste { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.ajouts-liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--trait); }
.ajouts-liste .btn { min-height: 44px; }
.aide-ajouts { font-size: .88rem; }

/* Dessin d'un ingrédient ajouté (entrée 46) */
.dessin-ingr { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.apercu-dessin svg { width: 112px; height: 112px; display: block; }
.choix-dessin { display: grid; gap: 8px; }
.lib-dessin { margin: 0; font-weight: 800; font-size: .92rem; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille-c { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--encre); background: radial-gradient(circle at 35% 35%, var(--c1) 55%, var(--c2) 56%); cursor: pointer; padding: 0; }
.pastille-c[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--encre); }
.formes-dessin { display: flex; flex-wrap: wrap; gap: 8px; }
.formes-dessin .forme-d { min-height: 44px; }
.formes-dessin .forme-d[aria-pressed="true"] { background: var(--encre); color: #fff; }
.ajouts-liste .mini-tuile svg { width: 40px; height: 40px; display: block; }
.ajouts-liste li { display: grid; grid-template-columns: 40px 1fr auto auto; }
@media (max-width: 520px) { .dessin-ingr { grid-template-columns: 1fr; } .apercu-dessin { justify-self: center; } }
