/* Repas — feuille de styles. Palette sauge / terracotta / crème, mode sombre automatique. */

@font-face { font-family: "Fraunces"; src: url("/static/polices/fraunces.woff2") format("woff2");
  font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/static/polices/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800; font-display: swap; }

:root {
  --fond: #f5efe6; --fond-2: #efe6d8; --surface: #fffcf7; --surface-2: #f6f0e7; --texte: #1d2721;
  --doux: #6c7670; --tres-doux: #9aa29d; --bord: rgba(29, 39, 33, .08);
  --vert: #2e5d45; --vert-2: #3f7a5b; --vert-pale: #e2efe6; --terre: #d0643a; --terre-pale: #fbe6dc;
  --or: #e3a83b; --or-pale: #fcf0d6; --rouge: #b6402f;
  --ombre-1: 0 1px 2px rgba(40, 30, 20, .05), 0 2px 8px rgba(40, 30, 20, .05);
  --ombre-2: 0 6px 24px rgba(40, 30, 20, .10), 0 2px 6px rgba(40, 30, 20, .06);
  --ombre-3: 0 18px 50px rgba(30, 25, 15, .22);
  --verre: rgba(255, 252, 247, .78);
  --r-1: 12px; --r-2: 18px; --r-3: 26px;
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --haut: env(safe-area-inset-top, 0px); --bas: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #101512; --fond-2: #151b17; --surface: #19201c; --surface-2: #212a25; --texte: #ecf1ed;
    --doux: #a2ada6; --tres-doux: #78837c; --bord: rgba(236, 241, 237, .08);
    --vert: #86c9a1; --vert-2: #a5dcb9; --vert-pale: #1f3328; --terre: #ee8a5f; --terre-pale: #3a2419;
    --or: #f0c062; --or-pale: #3a2f17; --rouge: #f08a78;
    --ombre-1: 0 1px 2px rgba(0, 0, 0, .3); --ombre-2: 0 8px 26px rgba(0, 0, 0, .35); --ombre-3: 0 20px 60px rgba(0, 0, 0, .55);
    --verre: rgba(25, 32, 28, .78);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--fond); }
body { margin: 0; font-family: var(--ui); color: var(--texte); background: var(--fond); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--vert) 55%, transparent); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- coquille */
body.appli { padding: 0 0 calc(96px + var(--bas)); min-height: 100vh;
  background: radial-gradient(120% 60% at 100% -10%, var(--or-pale), transparent 60%),
              radial-gradient(90% 50% at -10% 0%, var(--vert-pale), transparent 55%), var(--fond);
  background-attachment: fixed; }
.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--haut)) 20px 10px; transition: background .25s, box-shadow .25s; }
.entete.defile { background: var(--verre); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--bord); }
.marque { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 700; font-size: 1.35rem;
  letter-spacing: -.01em; text-decoration: none; }
.marque img { width: 32px; height: 32px; border-radius: 10px; box-shadow: var(--ombre-1); }
.pastille { font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--terre-pale); color: var(--terre); }
.vue { max-width: 560px; margin: 0 auto; padding: 4px 18px 24px; }
.vue.entree { animation: entree .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------- navigation flottante */
.onglets { position: fixed; z-index: 30; left: 50%; bottom: calc(14px + var(--bas)); transform: translateX(-50%);
  width: min(calc(100% - 28px), 440px); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px;
  border-radius: 24px; background: var(--verre); backdrop-filter: saturate(1.7) blur(20px); -webkit-backdrop-filter: saturate(1.7) blur(20px);
  box-shadow: var(--ombre-2), inset 0 0 0 1px var(--bord); }
.onglets .curseur { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 18px;
  background: var(--vert); box-shadow: 0 6px 16px color-mix(in srgb, var(--vert) 40%, transparent);
  transition: transform .42s cubic-bezier(.3, 1.4, .5, 1); }
.onglets a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px;
  text-decoration: none; color: var(--doux); font-size: .7rem; font-weight: 700; letter-spacing: .01em; transition: color .3s; }
.onglets a svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.onglets a.actif { color: #fff; }
@media (prefers-color-scheme: dark) { .onglets a.actif { color: #0f1a14; } }

/* ---------------------------------------------------------------- typographie */
.surtitre { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terre); margin: 6px 0 4px; }
h1.grand { font-family: var(--titre); font-weight: 700; font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.02; letter-spacing: -.025em;
  margin: 0; font-variation-settings: "opsz" 144; }
h2.section { font-family: var(--titre); font-size: 1.3rem; font-weight: 700; margin: 26px 0 10px; letter-spacing: -.01em; }
.doux { color: var(--doux); }
.petit { font-size: .85rem; }

/* ---------------------------------------------------------------- en-tête de semaine */
.heros { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.heros .texte { flex: 1; min-width: 0; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.puce { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 99px;
  background: var(--surface); box-shadow: var(--ombre-1); color: var(--doux); }
.anneau { position: relative; width: 84px; height: 84px; flex: none; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.anneau .piste { stroke: color-mix(in srgb, var(--vert) 14%, transparent); }
.anneau .valeur { stroke: url(#degrade-anneau); transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.anneau .chiffre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.anneau .chiffre b { font-family: var(--titre); font-size: 1.5rem; line-height: 1; }
.anneau .chiffre span { font-size: .66rem; font-weight: 700; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }

/* ---------------------------------------------------------------- bandeau d'action */
.bandeau { position: relative; overflow: hidden; border-radius: var(--r-3); padding: 20px; margin: 0 0 18px; color: #fff;
  background: linear-gradient(135deg, #2e5d45, #3f7a5b 55%, #6d9b62); box-shadow: var(--ombre-2); }
.bandeau.chaud { background: linear-gradient(135deg, #c85a33, #d9783d 55%, #e3a83b); }
.bandeau::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); }
.bandeau h3 { font-family: var(--titre); font-size: 1.35rem; margin: 0 0 4px; position: relative; }
.bandeau p { margin: 0 0 14px; opacity: .92; position: relative; }
.bandeau .bouton { background: #fff; color: #23452f; position: relative; }
.bandeau.chaud .bouton { color: #a3471f; }

/* ---------------------------------------------------------------- frise des jours */
.frise { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 8px; padding: 4px 18px 10px;
  scroll-snap-type: x proximity; position: sticky; top: calc(52px + var(--haut)); z-index: 10; }
.frise::-webkit-scrollbar { display: none; }
.jour-puce { flex: none; scroll-snap-align: start; width: 54px; padding: 8px 0 9px; border-radius: 16px; text-align: center;
  background: var(--surface); box-shadow: var(--ombre-1); transition: transform .2s, background .2s; }
.jour-puce:active { transform: scale(.94); }
.jour-puce small { display: block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.jour-puce b { display: block; font-family: var(--titre); font-size: 1.25rem; line-height: 1.2; }
.jour-puce i { display: block; width: 6px; height: 6px; margin: 3px auto 0; border-radius: 3px; background: var(--or); }
.jour-puce.ok i { background: var(--vert-2); }
.jour-puce.vide i { background: var(--tres-doux); opacity: .4; }
.jour-puce.auj { background: var(--vert); color: #fff; }
.jour-puce.auj small { color: rgba(255, 255, 255, .8); }
.jour-puce.auj i { background: #fff; }

/* ---------------------------------------------------------------- jours et repas */
.jour { margin: 14px 0 6px; scroll-margin-top: calc(130px + var(--haut)); }
.jour-titre { display: flex; align-items: baseline; gap: 8px; margin: 0 4px 8px; }
.jour-titre h3 { font-family: var(--titre); font-weight: 700; font-size: 1.12rem; margin: 0; }
.jour-titre .pastille { font-size: .66rem; padding: 3px 8px; }
.repas { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 10px; border-radius: var(--r-2);
  background: var(--surface); box-shadow: var(--ombre-1); transition: transform .25s, box-shadow .25s, opacity .3s; }
.repas.vide { background: transparent; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--doux) 35%, transparent); }
.vignette { position: relative; flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-content: center;
  font-size: 2rem; box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .5); }
.vignette.grande { width: 100%; height: 190px; border-radius: var(--r-3); font-size: 5.5rem; }
.vignette .coche { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-content: center;
  background: var(--vert); color: #fff; font-size: .8rem; font-weight: 900; box-shadow: 0 0 0 3px var(--surface); animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(0); } }
.repas .corps { flex: 1; min-width: 0; }
.moment { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.moment .gens { letter-spacing: 0; text-transform: none; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); }
.nom-plat { font-family: var(--titre); font-weight: 600; font-size: 1.08rem; line-height: 1.22; margin: 3px 0 4px; letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: .78rem; color: var(--doux); }
.repas .gestes { display: flex; gap: 6px; margin-top: 10px; }
.repas.accepte .gestes { margin-top: 6px; }
.icone-btn { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-content: center; background: var(--surface-2); color: var(--texte); }
.icone-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.repas.accepte .gestes { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); margin: 0; }
.repas.accepte .corps { padding-right: 90px; }
.repas.accepte.sans-recette .corps { padding-right: 46px; }

/* ---------------------------------------------------------------- boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 14px;
  font-weight: 800; font-size: .9rem; background: var(--surface-2); color: var(--texte); transition: transform .15s, filter .2s; text-decoration: none; }
.bouton:active, .icone-btn:active, .choix:active { transform: scale(.96); }
.bouton.plein { background: var(--vert); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--vert) 35%, transparent); }
@media (prefers-color-scheme: dark) { .bouton.plein { color: #0f1a14; } }
.bouton.terre { background: var(--terre); color: #fff; }
.bouton.large { width: 100%; height: 52px; font-size: 1rem; border-radius: 16px; }
.bouton.fantome { background: transparent; color: var(--doux); }
.bouton[disabled] { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- panneau du bas */
.voile { position: fixed; inset: 0; z-index: 40; background: rgba(15, 20, 17, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s; }
.voile.ouvert { opacity: 1; }
.feuille { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; margin: 0 auto; max-width: 560px;
  padding: 10px 18px calc(22px + var(--bas)); border-radius: 28px 28px 0 0; background: var(--surface); box-shadow: var(--ombre-3);
  transform: translateY(105%); transition: transform .42s cubic-bezier(.2, .9, .25, 1); overscroll-behavior: contain; }
.feuille.ouvert { transform: none; }
.poignee { width: 42px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--doux) 35%, transparent); margin: 2px auto 14px; }
.feuille h2 { font-family: var(--titre); font-size: 1.35rem; margin: 0 0 4px; letter-spacing: -.01em; }
.feuille .sous-titre { margin: 0 0 16px; color: var(--doux); font-size: .9rem; }
.choix { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px; margin-bottom: 10px; border-radius: var(--r-2);
  background: var(--surface-2); transition: transform .15s; animation: monte .4s both cubic-bezier(.2, .8, .2, 1); }
.choix:nth-child(2) { animation-delay: .05s; } .choix:nth-child(3) { animation-delay: .1s; }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } }
.choix .vignette { width: 54px; height: 54px; font-size: 1.7rem; border-radius: 16px; }
.choix .nom-plat { font-size: 1rem; }
.separateur { display: flex; align-items: center; gap: 10px; color: var(--tres-doux); font-size: .78rem; font-weight: 700; margin: 16px 0 10px;
  text-transform: uppercase; letter-spacing: .08em; }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--bord); }

/* ---------------------------------------------------------------- champs */
.champ { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.champ:focus-within { box-shadow: inset 0 0 0 1.5px var(--vert); }
.champ input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1rem; padding: 8px 0; outline: none; }
.champ .bouton { height: 38px; }
textarea.zone { width: 100%; min-height: 84px; resize: vertical; border: 0; border-radius: 14px; padding: 12px 14px; background: var(--surface-2);
  font-size: .95rem; line-height: 1.45; outline: none; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
textarea.zone:focus { box-shadow: inset 0 0 0 1.5px var(--vert); }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; font-weight: 600; font-size: .92rem; }
.interrupteur input { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 15px; position: relative;
  background: color-mix(in srgb, var(--doux) 30%, transparent); transition: background .25s; margin: 0; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.interrupteur input:checked { background: var(--terre); }
.interrupteur input:checked::after { transform: translateX(20px); }

/* ---------------------------------------------------------------- compteur de personnes */
.compteur { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 10px 0 18px; }
.compteur button { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); font-size: 1.6rem; font-weight: 700; }
.compteur output { min-width: 90px; text-align: center; font-family: var(--titre); font-size: 2.8rem; line-height: 1; }
.compteur output small { display: block; font-family: var(--ui); font-size: .78rem; color: var(--doux); font-weight: 700; margin-top: 6px; }

/* ---------------------------------------------------------------- courses */
.progression { margin: 2px 0 18px; }
.progression .barre { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--vert) 14%, transparent); overflow: hidden; }
.progression .barre i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--vert), #6d9b62, var(--or));
  transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.progression .legende { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--doux); margin-top: 7px; }
.rayon { border-radius: var(--r-2); background: var(--surface); box-shadow: var(--ombre-1); padding: 6px 14px 4px; margin-bottom: 12px; }
.rayon-titre { display: flex; align-items: center; gap: 10px; padding: 8px 0 6px; }
.rayon-titre .emoji { font-size: 1.35rem; }
.rayon-titre h3 { flex: 1; margin: 0; font-size: .95rem; font-weight: 800; }
.rayon-titre span { font-size: .75rem; font-weight: 800; color: var(--doux); }
.article { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--bord); cursor: pointer; transition: opacity .3s; }
.article input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 9px;
  border: 2px solid color-mix(in srgb, var(--doux) 45%, transparent); display: grid; place-content: center; transition: background .2s, border-color .2s; }
.article input::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg) scale(0);
  margin-top: -3px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.article input:checked { background: var(--vert); border-color: var(--vert); }
.article input:checked::after { transform: rotate(-45deg) scale(1); }
.article .libelle { flex: 1; min-width: 0; }
.article .libelle b { display: block; font-weight: 700; font-size: .95rem; }
.article .libelle small { display: block; font-size: .74rem; color: var(--tres-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article .qte { font-weight: 800; font-size: .85rem; color: var(--vert); white-space: nowrap; }
.article.coche { opacity: .45; }
.article.coche b { text-decoration: line-through; text-decoration-thickness: 2px; }
.article .retirer { color: var(--tres-doux); font-size: 1.1rem; padding: 4px 6px; }
details.rayon summary { list-style: none; cursor: pointer; }
details.rayon summary::-webkit-details-marker { display: none; }
details.rayon summary .fleche { transition: transform .25s; color: var(--doux); }
details.rayon[open] summary .fleche { transform: rotate(90deg); }

/* ---------------------------------------------------------------- recettes */
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.carte-recette { display: block; text-decoration: none; border-radius: var(--r-2); background: var(--surface); box-shadow: var(--ombre-1);
  overflow: hidden; transition: transform .2s; animation: monte .45s both cubic-bezier(.2, .8, .2, 1); }
.carte-recette:active { transform: scale(.97); }
.carte-recette .vignette { width: 100%; height: 108px; border-radius: 0; font-size: 3rem; }
.carte-recette .texte { padding: 10px 12px 12px; }
.carte-recette .nom-plat { font-size: .95rem; -webkit-line-clamp: 2; }
.carte-recette.attente { opacity: .55; }
.retour { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; color: var(--doux); text-decoration: none; margin: 4px 0 12px; }
.recette-heros { position: relative; margin-bottom: 18px; }
.recette-heros .vignette.grande { animation: entree .5s cubic-bezier(.2, .8, .2, 1); }
.portions { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--r-2); background: var(--surface);
  box-shadow: var(--ombre-1); margin-bottom: 12px; font-weight: 700; }
.portions .mini { display: flex; align-items: center; gap: 12px; }
.portions .mini button { width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2); font-weight: 800; font-size: 1.1rem; }
.etape { display: flex; gap: 14px; padding: 14px; border-radius: var(--r-2); background: var(--surface); box-shadow: var(--ombre-1); margin-bottom: 10px; }
.etape b { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-content: center; background: var(--terre-pale);
  color: var(--terre); font-family: var(--titre); }
.etape p { margin: 3px 0 0; line-height: 1.5; }

/* mode cuisine : une étape par écran, l'écran reste allumé */
.cuisine { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; padding: calc(18px + var(--haut)) 22px calc(22px + var(--bas));
  background: linear-gradient(160deg, #1e3a2b, #2e5d45 60%, #3f7a5b); color: #fff; animation: entree .35s; }
.cuisine .haut { display: flex; justify-content: space-between; align-items: center; }
.cuisine .points { display: flex; gap: 6px; }
.cuisine .points i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .3); transition: width .3s, background .3s; }
.cuisine .points i.actif { width: 22px; background: #fff; }
.cuisine .numero { font-family: var(--titre); font-size: 5rem; line-height: 1; opacity: .25; margin-top: auto; }
.cuisine .consigne { font-family: var(--titre); font-size: clamp(1.5rem, 6.5vw, 2.1rem); line-height: 1.3; margin: 8px 0 auto; animation: monte .4s; }
.cuisine .bas { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.cuisine .bouton { height: 58px; border-radius: 18px; font-size: 1.05rem; background: rgba(255, 255, 255, .14); color: #fff; }
.cuisine .bouton.plein { background: #fff; color: #23452f; }

/* ---------------------------------------------------------------- réglages */
.carte { border-radius: var(--r-2); background: var(--surface); box-shadow: var(--ombre-1); padding: 16px; margin-bottom: 14px; }
.carte h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1rem; font-weight: 800; }
.carte h3 .emoji { font-size: 1.3rem; }
.carte > p { margin: 0 0 12px; color: var(--doux); font-size: .85rem; }
.carte label.titre-champ { display: block; font-size: .78rem; font-weight: 800; color: var(--doux); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.presences { display: grid; grid-template-columns: 1fr 64px 64px; gap: 6px 8px; align-items: center; }
.presences .tete { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); text-align: center; }
.presences .nom { font-weight: 700; text-transform: capitalize; font-size: .92rem; }
.presences button { height: 38px; border-radius: 12px; background: var(--vert-pale); color: var(--vert); font-weight: 800; transition: transform .15s, background .2s; }
.presences button.zero { background: var(--surface-2); color: var(--tres-doux); }
.presences button:active { transform: scale(.92); }
.curseur-reglage { margin: 14px 0 4px; }
.curseur-reglage .ligne { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.curseur-reglage .ligne b { color: var(--vert); }
input[type=range] { width: 100%; accent-color: var(--vert); }
.liste-simple { margin: 0; padding: 0; list-style: none; }
.liste-simple li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--bord); font-size: .92rem; }
.liste-simple li:first-child { border-top: 0; }
.etat-ligne { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; }
.etat-ligne i { width: 10px; height: 10px; border-radius: 5px; background: var(--tres-doux); }
.etat-ligne i.ok { background: var(--vert-2); box-shadow: 0 0 0 4px var(--vert-pale); }

/* ---------------------------------------------------------------- états vides, silhouettes, toast */
.vide-etat { text-align: center; padding: 38px 10px 10px; }
.vide-etat .illu { font-size: 4.2rem; margin-bottom: 8px; animation: flotte 3s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-8px) rotate(-3deg); } }
.vide-etat h2 { font-family: var(--titre); font-size: 1.6rem; margin: 0 0 6px; }
.vide-etat p { color: var(--doux); margin: 0 0 22px; }
.silhouette { border-radius: var(--r-2); margin-bottom: 10px; height: 88px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: luit 1.3s infinite; }
.silhouette.titre { height: 64px; width: 70%; border-radius: 14px; }
@keyframes luit { to { background-position: -200% 0; } }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + var(--bas)); transform: translate(-50%, 20px); opacity: 0;
  max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 16px; background: #1d2721; color: #fff; font-weight: 700; font-size: .9rem;
  box-shadow: var(--ombre-3); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-color-scheme: dark) { .toast { background: #ecf1ed; color: #101512; } }
.attente-texte { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--doux); font-weight: 700; padding: 14px 0; }
.rond { width: 18px; height: 18px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--vert) 25%, transparent); border-top-color: var(--vert);
  animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
#confettis { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

/* ---------------------------------------------------------------- page de connexion */
body.connexion { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(24px + var(--haut)) 20px calc(24px + var(--bas));
  background: radial-gradient(100% 70% at 100% 0%, var(--or-pale), transparent 60%), radial-gradient(90% 60% at 0% 100%, var(--vert-pale), transparent 60%), var(--fond); }
.boite { width: 100%; max-width: 400px; text-align: center; animation: entree .6s cubic-bezier(.2, .8, .2, 1); }
.boite .logo { width: 88px; height: 88px; border-radius: 28px; box-shadow: var(--ombre-2); margin-bottom: 18px; }
.boite h1 { font-family: var(--titre); font-size: 2.6rem; margin: 0; letter-spacing: -.02em; }
.boite > p { color: var(--doux); margin: 6px 0 26px; }
.boite form { text-align: left; padding: 20px; border-radius: var(--r-3); background: var(--surface); box-shadow: var(--ombre-2); }
.boite label { display: block; font-size: .76rem; font-weight: 800; color: var(--doux); text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 8px; }
.boite input { width: 100%; border: 0; border-radius: 14px; padding: 14px; background: var(--surface-2); font-size: 1.05rem; outline: none;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; margin-bottom: 14px; }
.boite input:focus { box-shadow: inset 0 0 0 1.5px var(--vert); }
.boite #code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.35rem; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.boite .message { min-height: 1.3rem; margin-top: 12px; color: var(--rouge); font-weight: 700; font-size: .9rem; text-align: center; }
.boite .message.ok { color: var(--vert); }
.secousse { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* corrections après les premières captures */
.bouton svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.retour svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.frise { scroll-padding-inline: 18px; }
.rayon > .article:first-child, .rayon > summary + .article { border-top: 0; }
.frise { background: var(--verre); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  padding-top: 8px; box-shadow: 0 1px 0 var(--bord); }
.entete.defile { box-shadow: none; }
.repas.vide .bouton:not(.plein) { background: var(--surface); box-shadow: var(--ombre-1); }
