/* Polices hébergées sur le QG (licence SIL Open Font License, voir polices/LICENCE-OFL.txt) : aucune dépendance externe. */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/polices/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/polices/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/polices/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/polices/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Stencil Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/polices/big-shoulders-stencil-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Stencil Display'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/polices/big-shoulders-stencil-display-latin-800-normal.woff2') format('woff2'); }

:root {
  /* Palette « Treillis doux » : les teintes du camouflage, délavées. Le seul rose est le tablier du Major (illustrations). */
  --fond: #F2EFE4; --blanc: #FBFAF5; --encre: #33382A; --sourdine: #66695A; --ligne: #DDD9C6; --ligne-douce: #E9E6D8;
  --olive: #D3D7BC; --sable: #EBE1C6; --dore: #EDE2B8; --kaki: #E3E1CC; --olive-fonce: #4A5236; --taupe: #D9CDB6;
  --mousse: #DDE5CF; --mousse-fonce: #3F5233; --brun: #6B5536; --ardoise: #DDE2E4; --alerte: #8C3A2F; --alerte-fond: #F2DCD2;
  --pochoir: 'Big Shoulders Stencil Display', Impact, 'Arial Narrow', sans-serif;
  --texte: Nunito, 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--texte); }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--olive-fonce); outline-offset: 2px; }
h1 { font-family: var(--pochoir); font-weight: 800; font-size: clamp(40px, 7vw, 56px); line-height: 1; margin: 0; letter-spacing: 1px; }
h2 { font-family: var(--pochoir); font-weight: 800; font-size: 26px; margin: 0; }
h3 { font-size: 15px; margin: 18px 0 6px; }
p { margin: 0; }

.enseigne { font-family: var(--pochoir); font-weight: 800; letter-spacing: 3px; color: #6F7356; font-size: 15px; }
.sourdine { color: var(--sourdine); }
.sourdine-chaud { color: var(--brun); font-weight: 700; font-size: 14px; }
.etiquette { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--sourdine); }
.erreur { color: var(--alerte); font-weight: 700; min-height: 1.4em; }
.succes { color: var(--mousse-fonce); font-weight: 700; min-height: 1.4em; }
.alerte { background: var(--alerte-fond); color: var(--alerte); font-weight: 700; border-radius: 14px; padding: 12px 16px; }

.btn { min-height: 48px; border: none; border-radius: 14px; background: var(--encre); color: var(--fond); font-weight: 800; font-size: 15px;
  cursor: pointer; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-contour { background: var(--blanc); color: var(--encre); border: 1.5px solid var(--encre); }
.lien { background: none; border: none; padding: 8px 0; text-decoration: underline; cursor: pointer; font-weight: 700; min-height: 44px; }

.bulle { display: flex; gap: 14px; align-items: center; background: var(--kaki); border-radius: 20px; padding: 14px 16px; }
.bulle p { font-weight: 600; line-height: 1.4; }
.bulle .signature { font-size: 12px; font-weight: 700; color: var(--olive-fonce); margin-top: 4px; }
.major { flex-shrink: 0; width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }

.pastille { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--ligne); }
.mode-prep { background: var(--olive); }
.mode-frais { background: var(--sable); }
.mode-mijote { background: var(--taupe); }

/* ---------- login ---------- */
.garde { max-width: 420px; margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; gap: 20px; }
.garde form { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.garde label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.garde input { min-height: 48px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0 14px; background: var(--fond); font-size: 16px; }
.garde input#code { letter-spacing: 6px; font-weight: 800; font-size: 20px; }

/* ---------- coquille ---------- */
.contenu { max-width: 1120px; margin: 0 auto; padding: 22px 18px 110px; display: flex; flex-direction: column; gap: 16px; outline: none; }
.nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 10; background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: 22px; padding: 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.nav a { min-height: 54px; border-radius: 16px; text-decoration: none; color: var(--encre); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; }
.nav a[aria-current] { background: var(--olive); font-weight: 800; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: var(--encre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-enseigne, .nav-pied { display: none; }

@media (min-width: 1000px) {
  body.appli { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
  .nav { position: sticky; top: 0; left: auto; right: auto; bottom: auto; height: 100vh; border-radius: 0; border: none;
    border-right: 1px solid var(--ligne); display: flex; flex-direction: column; padding: 28px 16px; gap: 6px; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 0 14px; min-height: 48px; }
  .nav-enseigne { display: block; font-size: 22px; padding: 0 12px 20px; }
  .nav-pied { display: block; margin-top: auto; padding: 12px; font-size: 13px; color: var(--sourdine); }
  .contenu { padding: 32px 36px 48px; }
}

/* ---------- aujourd'hui ---------- */
.carte-repas { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.carte-tete { display: flex; justify-content: space-between; align-items: center; }
.titre-plat { font-size: 30px; line-height: 1.05; }
.demain { background: var(--sable); border-radius: 18px; padding: 14px 16px; }
.demain .etiquette { color: var(--brun); }
.demain p { font-weight: 700; margin-top: 2px; }

/* ---------- semaine ---------- */
.tete-semaine { display: flex; flex-direction: column; gap: 12px; }
.compteurs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.compteur { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; padding: 12px 14px; }
.compteur .etiquette { font-size: 11px; }
.compteur .valeur { font-family: var(--pochoir); font-weight: 800; font-size: 30px; line-height: 1.1; }
.compteur .sourdine { font-size: 12px; }
.corps-semaine { display: flex; flex-direction: column; gap: 16px; }
.jourj { background: var(--sable); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ligne-plat { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: var(--blanc);
  border: none; border-radius: 12px; padding: 10px 12px; cursor: pointer; min-height: 56px; }
.ligne-plat strong { display: block; font-size: 15px; }
.ligne-plat small { color: var(--sourdine); font-size: 12px; }
.portions { font-weight: 800; white-space: nowrap; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.legende { display: flex; gap: 6px; }

/* mobile : une ligne par jour ; grand écran : sept colonnes */
.grille-semaine { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); gap: 6px 8px; align-items: stretch; }
.tete-jour, .tete-repas { font-weight: 800; font-size: 13px; color: var(--sourdine); align-self: center; }
.case { border: none; border-radius: 12px; padding: 9px 10px; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; min-height: 48px; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.case.vide { background: var(--blanc); border: 1px dashed var(--ligne); color: var(--sourdine); cursor: default; }
.lancement { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 14px; }
.lancement label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.lancement input { min-height: 48px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0 12px; background: var(--fond); }
.lancement .erreur { flex-basis: 100%; min-height: 0; }
.attente { background: var(--blanc); border: 1px dashed var(--ligne); border-radius: 18px; padding: 24px; text-align: center; font-weight: 700; color: var(--sourdine); }

@media (min-width: 1000px) {
  .tete-semaine { flex-direction: row; align-items: stretch; }
  .tete-semaine .bulle { flex: 1; }
  .tete-semaine .compteurs { flex: 0 0 480px; }
  .corps-semaine { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 20px; }
  .corps-semaine > .plan:only-child { grid-column: 1 / -1; }
  .plan { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 22px; padding: 18px 20px; }
  .grille-semaine { grid-auto-flow: column; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 8px; }
  .tete-jour { text-align: center; color: var(--encre); }
  .case { min-height: 76px; }
}

/* ---------- ravitaillement ---------- */
.magasin { display: flex; flex-direction: column; gap: 10px; }
.magasin-tete { display: flex; justify-content: space-between; align-items: baseline; }
.carte-liste { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 4px 14px 8px; }
.rayon { padding: 12px 0 4px; font-size: 11px; }
.article { min-height: 48px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--ligne-douce); cursor: pointer; }
.article input { width: 22px; height: 22px; accent-color: var(--encre); margin: 0; flex-shrink: 0; }
.article-nom { flex: 1; }
.article-nom small { display: block; color: var(--sourdine); font-size: 12px; }
.article input:checked ~ .article-nom { text-decoration: line-through; color: var(--sourdine); }
.article-prix { font-weight: 700; white-space: nowrap; }
@media (min-width: 1000px) { .contenu > .magasin { max-width: 720px; } }

/* ---------- profil ---------- */
.formulaire { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.formulaire textarea, .formulaire input, .formulaire select { border: 1.5px solid var(--ligne); border-radius: 12px; padding: 10px 12px;
  background: var(--blanc); line-height: 1.5; min-height: 48px; }
.formulaire textarea { resize: vertical; }
.champs-ligne { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .champs-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.formulaire .btn { align-self: flex-start; }

/* ---------- fiche plat ---------- */
.fiche { border: none; border-radius: 22px; padding: 22px; max-width: 640px; width: calc(100% - 24px); max-height: 88vh; overflow-y: auto; color: var(--encre); background: var(--fond); }
.fiche::backdrop { background: rgba(58, 46, 51, .45); }
.fiche h2 { font-size: 32px; margin: 10px 0 6px; line-height: 1.05; }
.fiche ul, .fiche ol { margin: 0; padding-left: 20px; line-height: 1.6; }
.fiche .faits { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.fiche .faits li { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.fiche form { margin-top: 20px; }

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

/* ---------- congélo et remplacement (v0.3) ---------- */
.rappel { background: var(--kaki); border-radius: 18px; padding: 14px 16px; }
.rappel .etiquette { color: var(--olive-fonce); }
.rappel p { font-weight: 700; margin-top: 2px; }
.note-congelo { background: var(--kaki); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-weight: 600; }
.marque-congelo { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--olive-fonce); }
.remplacement { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 10px; }
.remplacement h3 { margin: 0; }
.remplacement label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.remplacement input { min-height: 48px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0 12px; background: var(--blanc); }
.remplacement .btn { align-self: flex-start; }
.remplacement p { min-height: 0; }

/* ---------- favoris, refus, liste éditable (v0.4) ---------- */
.actions-fiche { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions-fiche .btn { min-height: 44px; font-size: 14px; }
.ingredient { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0; }
.ingredient .lien { min-height: 36px; font-size: 13px; color: var(--sourdine); }
.ingredient form { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.ingredient input { min-height: 40px; border: 1.5px solid var(--ligne); border-radius: 10px; padding: 0 10px; background: var(--blanc); flex: 1; min-width: 160px; }
.ingredient .btn { min-height: 40px; font-size: 13px; }
.refuse { font-size: 11px; font-weight: 800; color: var(--alerte); background: var(--alerte-fond); border-radius: 999px; padding: 2px 8px; }
.favoris-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.carte-favori { text-align: left; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.carte-favori strong { font-size: 16px; }
.carte-favori small { color: var(--sourdine); }
.liste-refus { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 4px 16px; }
.ligne-refus { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--ligne-douce); }
.ligne-refus:first-child { border-top: none; }
.choix-favori { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.choix-favori select { min-height: 48px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0 10px; background: var(--blanc); flex: 1; min-width: 180px; }
.barre-liste { display: flex; flex-wrap: wrap; gap: 10px; }
.edition-article { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--ligne-douce); }
.edition-article input, .edition-article select { min-height: 44px; border: 1.5px solid var(--ligne); border-radius: 10px; padding: 0 10px; background: var(--fond); min-width: 0; }
@media (min-width: 700px) { .edition-article { grid-template-columns: 110px 1fr 2fr 1fr 90px auto; align-items: center; } }
.edition-article .lien { color: var(--alerte); }
@media (max-width: 420px) { .nav a { font-size: 10px; } }
.carte-favori .pastille { align-self: flex-start; }
.nav .long { display: none; }
@media (min-width: 1000px) { .nav .long { display: inline; } .nav .court { display: none; } }
.remarques { background: var(--dore); border-radius: 16px; padding: 12px 16px; }
.remarques .etiquette { color: var(--brun); }
.remarques ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.5; font-weight: 600; }

/* ---------- extras, carnet, invités (v0.5) ---------- */
.nav .nav-bureau { display: none; }
@media (min-width: 1000px) { .nav a.nav-bureau { display: flex; } }
.compteur-extras { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.compteur-extras .compteur { flex: 1 1 160px; }
.liste-evenements { display: flex; flex-direction: column; gap: 10px; }
.carte-evenement { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: 18px; padding: 14px 16px; cursor: pointer; text-decoration: none; color: var(--encre); min-height: 64px; }
.carte-evenement strong { display: block; font-size: 16px; }
.carte-evenement small { color: var(--sourdine); }
.formulaire-bloc { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.formulaire-bloc label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.formulaire-bloc input, .formulaire-bloc select, .formulaire-bloc textarea { min-height: 44px; border: 1.5px solid var(--ligne); border-radius: 10px; padding: 8px 10px; background: var(--fond); }
.formulaire-bloc .btn { align-self: flex-start; }
.cases { display: flex; flex-wrap: wrap; gap: 8px; }
.case-choix { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ligne); border-radius: 999px; background: var(--blanc); font-weight: 700; cursor: pointer; }
.case-choix input { width: 18px; height: 18px; accent-color: var(--encre); margin: 0; }
.service { display: flex; flex-direction: column; gap: 8px; }
.element { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 14px; padding: 10px 14px; }
.element small { display: block; color: var(--sourdine); }
.element-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.alerte-douce { background: var(--alerte-fond); color: var(--alerte); border-radius: 14px; padding: 12px 16px; font-weight: 700; }
.alerte-douce ul { margin: 6px 0 0; padding-left: 18px; }
.marque-evenement { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--alerte); }
.carte-invite { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.carte-invite small { display: block; color: var(--sourdine); margin-top: 2px; }
.grille-invites { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.deux-colonnes { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .deux-colonnes { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } }
[hidden] { display: none !important; }
a { color: var(--encre); }
.formulaire-bloc .case-choix { flex-direction: row; display: inline-flex; font-size: 14px; }
.services { display: flex; flex-direction: column; gap: 16px; }

/* ---------- intendance (v0.6) ---------- */
.ligne-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 56px; border-top: 1px solid var(--ligne-douce); padding: 6px 0; }
.ligne-stock:first-child { border-top: none; }
.etats { display: inline-flex; border: 1.5px solid var(--ligne); border-radius: 999px; overflow: hidden; }
.etat { min-height: 40px; min-width: 64px; border: none; background: var(--blanc); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0 10px; }
.etat + .etat { border-left: 1.5px solid var(--ligne); }
.etat-ok[aria-checked="true"] { background: var(--mousse); }
.etat-bientot[aria-checked="true"] { background: var(--dore); }
.etat-manque[aria-checked="true"] { background: var(--alerte-fond); color: var(--alerte); }
.bandeau-hors-ligne { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: var(--dore); color: var(--brun);
  font-weight: 700; font-size: 13px; text-align: center; padding: 8px 12px; }
body.hors-ligne .bandeau-hors-ligne { display: block; }
.deux-colonnes .formulaire-bloc .champs-ligne { grid-template-columns: 1fr 1fr; }
.deux-colonnes .formulaire-bloc .champs-ligne > label:only-child, .deux-colonnes .formulaire-bloc .champs-ligne > label:nth-child(3):last-child { grid-column: 1 / -1; }

/* ---------- camp de base, lexique (v0.7) ---------- */
.terme { background: none; border: none; padding: 0; font: inherit; color: inherit; text-decoration: underline dotted var(--olive-fonce) 2px;
  text-underline-offset: 3px; cursor: help; }
.definition-lexique { display: block; margin: 6px 0 2px; background: var(--kaki); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.definition-lexique[hidden] { display: none; }
.ligne-lexique { padding: 12px 0; border-top: 1px solid var(--ligne-douce); }
.ligne-lexique:first-child { border-top: none; }
.ligne-lexique p { margin-top: 4px; color: var(--sourdine); }
.case-choix.actif { background: var(--olive); border-color: var(--olive); }
.pastilles { display: flex; gap: 6px; flex-wrap: wrap; }
input[type="search"] { min-height: 48px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0 12px; background: var(--blanc); }

.refuse.bloc { display: block; margin-top: 4px; width: fit-content; }

/* ---------- tickets, guide (v0.8) ---------- */
.carte-ticket { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; padding: 4px 14px; }
.carte-ticket summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; }
.carte-ticket summary::-webkit-details-marker { display: none; }
.carte-ticket summary strong { display: block; }
.carte-ticket summary small { color: var(--sourdine); }
.carte-ticket[open] { padding-bottom: 12px; }
.carte-ticket .carte-liste { border: none; padding: 0; margin: 6px 0; }
.ligne-refus.retrait { padding-left: 16px; color: var(--sourdine); min-height: 40px; }
input[type="file"] { min-height: 48px; padding: 10px; border: 1.5px dashed var(--ligne); border-radius: 12px; background: var(--fond); }
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); text-decoration: none; font-weight: 700; font-size: 14px; }
.section-guide { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 16px 20px; max-width: 820px; scroll-margin-top: 16px; }
.section-guide ol, .section-guide ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; }
.section-guide li + li { margin-top: 6px; }

/* ---------- réserve, mode cuisine (v0.9) ---------- */
.mode-reserve { background: var(--ardoise); }
.fait { color: var(--mousse-fonce); font-weight: 700; }
.apres-repas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.apres-repas input, .apres-repas select { min-height: 44px; border: 1.5px solid var(--ligne); border-radius: 10px; padding: 0 10px; background: var(--fond); }
.apres-repas input { width: 72px; }
.ligne-rappel { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; margin-top: 4px; }
.lien-plat { background: none; border: none; padding: 0; text-align: left; cursor: pointer; flex: 1; }
.lien-plat strong { display: block; font-size: 15px; }
.lien-plat small { color: var(--sourdine); font-size: 12px; }
.jourj > .btn { align-self: flex-start; }
.cuisine-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cuisine-corps { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .cuisine-corps { grid-template-columns: minmax(0, 1fr) 340px; } }
.cuisine-principal { display: flex; flex-direction: column; gap: 16px; }
.progression { display: flex; gap: 6px; }
.progression span { flex: 1; height: 10px; border-radius: 999px; background: var(--ligne); }
.progression span.faite { background: var(--encre); }
.etape-geante { margin: 0; padding-left: 0; list-style: none; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; font-weight: 600; }
.etape-geante .definition-lexique { font-size: 16px; }
.cuisine-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.cuisine-nav .btn { min-height: 64px; font-size: 18px; flex: 1; }
.cuisine-cote { display: flex; flex-direction: column; gap: 14px; }
.minuteur { background: var(--sable); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.minuteur .etiquette { color: var(--brun); }
.minuteur .compte { font-family: var(--pochoir); font-weight: 800; font-size: 44px; line-height: 1; text-align: center; }
.minuteur.grand .compte { font-size: 84px; }
.minuteur .compte.fini { color: var(--alerte); }
.pendant { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.contenu > .btn { align-self: flex-start; }
body.mode-cuisine .nav { display: none; }
@media (min-width: 1000px) { body.appli.mode-cuisine { grid-template-columns: minmax(0, 1fr); } }
body.mode-cuisine .contenu { padding-bottom: 32px; max-width: 1280px; }
.ligne-refus strong { white-space: nowrap; }

/* ---------- consommation (1.0) ---------- */
.jauge { height: 10px; border-radius: 999px; background: var(--ligne); overflow: hidden; }
.jauge span { display: block; height: 100%; width: 0; background: var(--mousse); border-radius: 999px; }
.jauge span.jauge-haute { background: var(--alerte); }
.jauge span[data-part="0"] { width: 0%; }
.jauge span[data-part="5"] { width: 5%; }
.jauge span[data-part="10"] { width: 10%; }
.jauge span[data-part="15"] { width: 15%; }
.jauge span[data-part="20"] { width: 20%; }
.jauge span[data-part="25"] { width: 25%; }
.jauge span[data-part="30"] { width: 30%; }
.jauge span[data-part="35"] { width: 35%; }
.jauge span[data-part="40"] { width: 40%; }
.jauge span[data-part="45"] { width: 45%; }
.jauge span[data-part="50"] { width: 50%; }
.jauge span[data-part="55"] { width: 55%; }
.jauge span[data-part="60"] { width: 60%; }
.jauge span[data-part="65"] { width: 65%; }
.jauge span[data-part="70"] { width: 70%; }
.jauge span[data-part="75"] { width: 75%; }
.jauge span[data-part="80"] { width: 80%; }
.jauge span[data-part="85"] { width: 85%; }
.jauge span[data-part="90"] { width: 90%; }
.jauge span[data-part="95"] { width: 95%; }
.jauge span[data-part="100"] { width: 100%; }

/* ---------- stock, idées (1.1) ---------- */
.panneau-idees { display: flex; flex-direction: column; gap: 10px; }
.panneau-idees h3 { margin: 6px 0 0; }
.sauvetage { display: flex; flex-direction: column; gap: 10px; }
.sauvetage > .btn { align-self: flex-start; }
.ligne-stock input[type="date"] { min-height: 40px; border: 1.5px solid var(--ligne); border-radius: 10px; padding: 0 8px; background: var(--fond); }
a.case-choix { text-decoration: none; color: var(--encre); }

/* ---------- entretien 1.1.4 ---------- */
.barre-carnet { display: flex; flex-wrap: wrap; gap: 8px; }
.barre-carnet input[type="search"] { flex: 1; min-width: 200px; }
.barre-carnet select { min-height: 48px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0 10px; background: var(--blanc); }
.ligne-stock { flex-direction: column; align-items: stretch; }
.ligne-stock-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nom-stock { background: none; border: none; padding: 4px 0; text-align: left; cursor: pointer; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: inherit; color: inherit; }
.nom-stock > span { overflow-wrap: anywhere; }
.nom-stock small { color: var(--sourdine); font-size: 12px; }
.btn.petit { min-height: 40px; padding: 0 12px; font-size: 13px; }
.actions-stock { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0 4px; }
.actions-stock select, .date-stock input { min-height: 40px; border: 1.5px solid var(--ligne); border-radius: 10px; padding: 0 8px; background: var(--fond); }
.date-stock { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.retour { align-self: flex-start; }
/* sur téléphone, la liste d'abord : on consulte plus qu'on ne saisit */
@media (max-width: 999px) { .deux-colonnes > .formulaire-bloc:first-child { order: 2; } }

/* ---------- rythme (1.2) ---------- */
.case.vide.site { background: var(--ardoise); color: var(--sourdine); font-style: italic; }
.tete-weekend { background: var(--dore); border-radius: 8px; }
.case.mange { opacity: 0.6; }
.site-lancement { display: flex; flex-direction: column; gap: 6px; }
.site-lancement .case-choix input, .choix-type .case-choix input { margin-right: 6px; }
.case-a-cocher { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 700; }
.case-a-cocher input { width: 20px; height: 20px; }
label.case-choix { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; cursor: pointer; }
label.case-choix input { margin: 0; width: 18px; height: 18px; }
fieldset.choix-type { border: none; padding: 0; margin: 0; }
fieldset.choix-type legend { font-weight: 700; font-size: 13px; margin-bottom: 6px; padding: 0; }
.lancement { flex-wrap: wrap; }
.grille-semaine .case { hyphens: auto; -webkit-hyphens: auto; word-break: normal; overflow-wrap: break-word; }

/* minuteur terminé : la page clignote doucement, au cas où le son serait coupé */
@keyframes clignote { 0%, 100% { background: var(--fond); } 50% { background: var(--olive); } }
body.alerte-minuteur { animation: clignote 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.alerte-minuteur { animation: none; background: var(--olive); } }
/* tablette posée sur le plan de travail : on lit de loin */
@media (min-width: 900px) { body.mode-cuisine .etape-geante { font-size: clamp(30px, 3.6vw, 46px); } }

/* ---------- ingrédients en mode cuisine (1.2.2) ---------- */
.ingredients-etape { background: var(--dore); border-radius: 16px; padding: 12px 16px; }
.ingredients-etape ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: clamp(18px, 2vw, 24px); }
.ingredients-cuisine { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 14px 16px; }
.ingredients-cuisine ul { margin: 8px 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ingredients-cuisine label { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 16px; }
.ingredients-cuisine input { width: 22px; height: 22px; flex: none; }
.ingredients-cuisine label.pret span { text-decoration: line-through; color: var(--sourdine); }
.ingredients-cuisine input, label.case-choix input, .case-a-cocher input { accent-color: var(--encre); }

/* ---------- illustrations (1.3) ---------- */
.bulle.humeur-satisfait { background: var(--mousse); }
.bulle.humeur-alarme { background: var(--alerte-fond); }
.portrait-general { margin: 0; border-radius: 20px; overflow: hidden; background: var(--blanc); border: 1px solid var(--ligne); max-width: 220px; }
.portrait-general img { display: block; width: 100%; height: auto; }
.portrait-general figcaption { font-size: 12px; color: var(--sourdine); padding: 6px 10px; text-align: center; }
.tete-general { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.tete-general .portrait-general { max-width: 150px; }
.journal-vide { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.journal-vide .portrait-general { max-width: 160px; }
.services > .portrait-general { max-width: 200px; }
.garde .major { width: 120px; height: 120px; border-radius: 24px; }
