/* parcours.css — styles des vues de parcours (T13, lot « parcours ») : accueil « Ce soir », Journée, Semaine, Batch,
   Composer, Profil. Chargée après app.css ; n'emploie que ses variables de :root (couleurs, rayons, tailles). */

/* Barre d'action collante en bas d'écran (Semaine, Composer, Profil) : fond papier, filet haut, rien ne passe dessous. */
.bar-bas {
  position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tabbar-h, 0px)); z-index: 6;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-inline: -16px; padding: 10px 16px; background: var(--paper);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 16px -12px var(--shade, rgba(0, 0, 0, .35));
}
.bar-bas .pf-msg { flex-basis: 100%; margin: 0; }
.bar-bas .pf-msg:empty { display: none; }
/* Dès 768 px la barre d'onglets est masquée (app.css) : la barre se cale sur le bas de l'écran, pas à 64 px. */
/* T33-L2 : la barre du bas (5 entrées) vit jusqu'à 1024 px ; au-delà elle devient la colonne de droite. */
@media (min-width: 1024px) { .bar-bas { bottom: env(safe-area-inset-bottom, 0px); } }
.main { padding-bottom: calc(var(--tabbar-h) + 40px); }
.main-cooking { padding-bottom: 24px; }
.selbar { bottom: calc(8px + var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  .main { padding-bottom: 40px; }
  .selbar { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}
/* T33-L2 : aide d'une ligne derrière « ? » (44 px), dépliée sous le terme. */
.aide { display: inline-block; vertical-align: middle; }
.aide > summary { list-style: none; }
.aide > summary::-webkit-details-marker { display: none; }
.aide-q {
  display: inline-grid; place-items: center; min-width: var(--tap, 44px); min-height: var(--tap, 44px); cursor: pointer;
  color: var(--ink-2); font-weight: 700; border-radius: 50%;
}
.aide-q::before {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%;
}
.aide-q { position: relative; }
.aide[open] > .aide-t { display: block; }
.aide-t { display: none; max-width: 36em; font-size: var(--s-sm); color: var(--ink-2); padding: 0 0 8px; }
/* Aujourd'hui : prochaine action et premiers pas. */
.pa-titre { font-family: var(--f-title); font-size: var(--s-lg); font-weight: 700; margin: 0; }
.pp-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pp-l a { display: flex; align-items: center; gap: 10px; min-height: var(--tap, 44px); color: var(--ink); }
.pp-l .is-fait { color: var(--ink-2); text-decoration: line-through; }
.wk-dates { margin: 0; font-weight: 700; }
.wk-jour-d { font-weight: 400; color: var(--ink-2); }

/* Textes de lecture : pas de lignes de 170 caractères à 1440 px. */
.home .hint, .home p, .wk-reg .hint, .wk-res .hint { max-width: 68ch; }

/* Accueil : « Ce soir » en tête ; deux colonnes à partir de 1200 px (contenu à gauche, batch et sélection à droite). */
.soir { display: grid; gap: 10px; }
.soir .ticket-h { margin: 0; }
.soir-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.soir-plat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.soir-t { color: var(--ink); text-decoration: none; font-weight: 700; min-height: var(--tap, 44px); display: flex; align-items: center; }
.soir-plat.is-grand .soir-t { font-family: var(--f-title); font-size: var(--s-xl); line-height: 1.2; }
.soir-m { display: inline-flex; gap: 4px; }
.soir-g { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--s-sm); }
.soir-vide, .soir-demain { margin: 0; }
.soir-trempage { margin: 0; font-weight: 600; } /* « À tremper ce soir » la veille du batch (T26h) */
.soir-demain a { color: var(--ink); display: inline-flex; align-items: center; min-height: var(--tap, 44px); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.home-grid > * { min-width: 0; }
@media (min-width: 1200px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "a c" "b c" "d c"; align-items: start; }
  .home-a { grid-area: a; } .home-b { grid-area: b; } .home-c { grid-area: c; } .home-d { grid-area: d; }
  .home-grid .home-duo { grid-template-columns: minmax(0, 1fr); }
}

/* Journée : cartes en bordure pleine (plus d'emplacements pointillés) ; navigation ‹ date › compacte. */
.jr-rp-aucun, .jr-rp-vide { border-style: solid; border-color: var(--line-soft); }
.jr-nav { flex-wrap: nowrap; align-items: center; }
.jr-nav-f { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; font-size: var(--s-lg); }
.jr-nav-d { flex: 1; text-align: center; font-weight: 700; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; }
.jr-nav-d .linkish { font-weight: 400; display: inline-flex; align-items: center; min-height: var(--tap, 44px); }
.jr-kcal-vide { color: var(--ink-2); font-size: var(--s-md); }
.jr-kcal, .jr-resume-l .num, .cp-bar-k, .jr-macro dd, .jr-rp-k { font-family: var(--f-text); font-variant-numeric: tabular-nums; }
.jr-kcal-n { white-space: nowrap; }

/* Semaine : jours repliés (aujourd'hui ouvert), titres de plat sans soulignement, calcul visible. */
.wk-jour > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0; }
.wk-jour > summary::-webkit-details-marker { display: none; }
.wk-jour > summary::after { content: "›"; color: var(--ink-2); transform: rotate(90deg); transition: transform .15s; }
.wk-jour:not([open]) > summary::after { transform: none; }
.wk-plat-l { color: var(--ink); text-decoration: none; font-weight: 700; }
.wk-plat-l::after { content: " ›"; color: var(--ink-2); }
.wk-acomposer { margin: 6px 0 0; }
.wk-res.is-busy { opacity: .5; transition: opacity .15s; }
.spin {
  display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
@media (min-width: 1200px) { .wk-reg { max-width: 560px; } }

/* Batch : début en 24 h, boutons à côté. */
.bt-start { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.bt-plan:focus { outline: none; }

/* Composer : « Retour » au-dessus du titre (comme la fiche) ; total rappelé dans la barre basse. */
.cp .page-h { flex-direction: column-reverse; align-items: flex-start; }
.cp-bar-k { margin: 0; font-weight: 700; margin-right: auto; }

/* Profil : chaque mode sous son libellé, comme les autres réglages. */
.pf-rp-h { flex-direction: column; align-items: flex-start; }
.pf-modes-aide { margin: 0 0 8px; }

/* ---------- T24a : Composer mon batch, semaine révision 2, aliments exclus du profil ---------- */
.cb { border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--paper); margin: 0 0 12px; min-width: 0; }
.cb > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 12px 40px 12px 14px;
  min-height: var(--tap); position: relative; }
.cb > summary::-webkit-details-marker { display: none; }
.cb > summary::after { content: "›"; position: absolute; right: 16px; top: 12px; color: var(--ink-2); transform: rotate(90deg);
  transition: transform .15s; font-size: 1.2em; }
.cb:not([open]) > summary::after { transform: none; }
.cb-sum-t { font-weight: 700; }
.cb-sum-r { display: flex; flex-direction: column; font-size: var(--s-sm); color: var(--ink-2); }
.cb-body { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.cb-moi { display: flex; flex-direction: column; gap: 12px; }
.cb-box { margin: 0; min-width: 0; border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; display: flex;
  flex-direction: column; gap: 8px; }
.cb-box > legend { float: left; width: 100%; padding: 0; }
.cb-box > legend + * { clear: both; }
.cb-h { font-weight: 700; margin: 0; }
.cb-box .hint { margin: 0; }
.cb-fec { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-fec .field { flex: 1 1 140px; }
.cb-err { margin: 0; color: var(--warn-ink); font-weight: 700; font-size: var(--s-sm); }
.cb-err:empty { display: none; }
.cb-prots, .cb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cb-prot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--tap); }
.cb-prot.is-off .cb-prot-n { color: var(--ink-2); }
/* T35-B3 (D-175) : « Viande cuite à part le soir », sous le compteur, sur toute la largeur */
.cb-prot:has(.cb-apart) { flex-wrap: wrap; }
.cb-apart { flex-basis: 100%; font-size: .95em; }
.cb-step { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.cb-step-b { width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.cb-step-b:disabled { opacity: .35; cursor: default; }
.cb-step-v { min-width: 2ch; text-align: center; font-weight: 700; }
.cb-list li { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.wk-prop { margin: 12px -16px 0; align-items: center; }
.wk-prop .hint { margin: 0; }
.wk-attente p { margin: 0; }
.wk-partage { margin: 4px 0 0; font-weight: 600; }
.wk-bouillon { margin: 4px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn-ink);
  font-size: var(--s-sm); }
.wk-fecs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wk-plat-t.is-texte, .wk-plat-l.is-texte { font-weight: 700; color: var(--ink); text-decoration: none; margin: 0; }
.wk-plat-l.is-texte::after { content: none; }
.pf-ex { position: relative; display: flex; flex-direction: column; gap: 4px; }
.pf-ex input { min-height: var(--tap); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  padding: 0 12px; color: var(--ink); font: inherit; }
.pf-ex input:disabled { opacity: .6; }
#pf-ex-q { scroll-margin-top: 132px; }
.pf-ex .hint { margin: 0; }
.pf-ex-lab { font-size: var(--s-sm); color: var(--ink-2); }
.pf-ex-c { position: relative; display: flex; flex-direction: column; }
.pf-ex-l { list-style: none; margin: 4px 0 0; padding: 4px 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
  scroll-margin-bottom: 96px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-bar);
  max-height: 360px; overflow: auto; }
.pf-ex-l[hidden] { display: none; }
.pf-ex-o { min-height: var(--tap); display: flex; align-items: center; padding: 0 14px; cursor: pointer; }
.pf-ex-o.is-act, .pf-ex-o:hover { background: var(--accent-soft); }
.pf-ex-vide { padding: 10px 14px; color: var(--ink-2); }
.pf-ex-puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-ex-puce { display: inline-flex; align-items: center; gap: 2px; padding-left: 14px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: var(--bg); }
.pf-ex-x { width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink-2); border-radius: 50%; cursor: pointer; }
.pf-ex-x .ico { width: 18px; height: 18px; }
.pf-ex-x:hover { color: var(--ink); background: var(--steel); }
.sel-exclus { margin: 2px 0 0; }
.cb-box .seg { display: flex; flex-wrap: wrap; max-width: 100%; }
.cb-box .seg button { flex: 1 1 auto; }
.cb-box .seg button { padding: 0 10px; }

/* ---------- T24c : correctifs des relectures T24a / T24b ---------- */
.nowrap { white-space: nowrap; }
/* T35-B3 (D-175) : plat commun du soir, écrit une fois ; pastilles empilées, la protéine à part en dessous */
/* D-201 : un repas en blocs : Commun, puis un bloc par membre, séparés et titrés */
.wk-commun { grid-template-columns: minmax(0, 1fr); }
.wk-mbs > .wk-mb + .wk-mb { padding-top: 8px; border-top: 1px solid var(--line-soft); }
.wk-mb-n { font-size: var(--s-xs); font-weight: 700; color: var(--ink-2); }
.wk-apart-soir { margin: 2px 0 0; font-weight: 600; }
/* T35-D2 (relecture B, I1) : portions sous le plat commun */
.wk-commun-portions { display: block; font-size: var(--s-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* T40-L2a2 : cibles tactiles ≥ 44 px des écrans L2a (visuel.spec) — repli « Partir d'une session type », repli
   « Paramètres » du Menu (triangle gardé) et carte de la liste des batchs (le lien entier est la cible). */
.nb-types > summary, .wk-params > summary { min-height: 44px; box-sizing: border-box; cursor: pointer; }
.wk-params > summary { padding-block: 10px; }
.bl-lien { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; box-sizing: border-box; padding-block: 4px; }

/* T40-L2b : liste des batchs en cartes (carte entière cliquable, état en pastille texte, cible ≥ 44 px), Nouveau batch
   (sélecteur « Pour la semaine du » pleine largeur, repli « Partir d'une session type » habillé comme un bloc), état
   dans l'en-tête du détail, Réalisation (autre batch en cours, aperçu d'un batch à venir, bilan). */
.bl-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bl-carte { position: relative; background: var(--paper); border: 1px solid var(--line-soft); border-left: 4px solid var(--line);
  border-radius: var(--r-card); }
.bl-carte[data-etat="en-cours"] { border-left-color: var(--accent); }
.bl-carte[data-etat="courses"] { border-left-color: var(--label); }
.bl-carte:hover { border-color: var(--line); }
.bl-carte:focus-within { border-color: var(--accent); }
.bl-lien { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; min-height: 64px;
  padding: 10px 12px 10px 14px; color: var(--ink); text-decoration: none; }
.bl-lien:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: -3px; border-radius: var(--r-card); }
.bl-lien::after { content: "›"; grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; color: var(--ink-2); }
.bl-dates { grid-column: 1; font-family: var(--f-title); font-weight: 600; font-size: var(--s-lg, 1.05rem); line-height: 1.25; overflow-wrap: anywhere; }
.bl-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: var(--s-sm); color: var(--ink-2); }
.bl-etat, .bd-etat-p { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--steel); color: var(--ink); font-size: var(--s-xs, .8rem); font-weight: 700; }
[data-etat="en-cours"] > .bd-etat-p, .bl-etat[data-etat="en-cours"] { background: var(--accent); color: var(--accent-ink); }
[data-etat="courses"] > .bd-etat-p, .bl-etat[data-etat="courses"] { background: var(--accent-soft); }
[data-etat="pas-fait"] > .bd-etat-p, .bl-etat[data-etat="pas-fait"] { background: var(--accent-soft); color: var(--ink); }
.bl-groupe { margin-top: 18px; }
.bl-nouveau { margin-bottom: 4px; }
.bd-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; color: var(--ink-2); font-size: var(--s-sm); }
.nb-semaine .select, .nb-semaine select { width: 100%; }
.nb-semaine { margin-bottom: 12px; }
details.nb-types, details.nb-ajuster { margin-top: 16px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 0 14px; }
details.nb-types > summary, details.nb-ajuster > summary { display: flex; align-items: center; gap: 8px; min-height: 56px; padding-block: 10px; list-style: none; }
details.nb-types > summary::-webkit-details-marker, details.nb-ajuster > summary::-webkit-details-marker { display: none; }
details.nb-types > summary::after, details.nb-ajuster > summary::after { content: "›"; margin-left: auto; font-size: 1.4rem; color: var(--ink-2); transition: transform .15s; }
details.nb-types[open] > summary::after, details.nb-ajuster[open] > summary::after { transform: rotate(90deg); }
.nb-types-t, .nb-ajuster-t { margin: 0; font-weight: 700; font-size: var(--s-base, 1rem); text-transform: none; letter-spacing: 0; font-family: inherit; }
details.nb-types[open], details.nb-ajuster[open] { padding-bottom: 14px; }
/* T46 (D-278, L3a) : volet « Ajuster avant de générer », le compte sous le titre. */
details.nb-ajuster > summary { flex-wrap: wrap; }
details.nb-ajuster > summary::after { order: 1; }
.nb-ajuster-n { flex-basis: 100%; margin: 0; order: 2; }
.bt-autre { margin: 12px 0; }
.bt-avance { margin: 6px 0 10px; }
.bt-lecture > .bt-fin { margin-top: 0; }
/* T40-L3 (D-192) : Panier (en-tête des batchs inclus, « pour 2 batchs ») et onglet Courses d'un batch */
.crs-batchs ul { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.crs-batch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 48px; padding: 4px 4px 4px 12px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-card); }
.crs-batch-t { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink);
  overflow-wrap: anywhere; }
.crs-batch-fini { color: var(--ink-2); font-size: var(--s-sm); }
.crs-batch .btn { min-height: 44px; }
.crs-lots { color: var(--ink-2); font-size: var(--s-sm); white-space: nowrap; }
.crs-veille-b { margin: 6px 0 2px; font-weight: 600; }
.crs-envoi p { margin: 0 0 8px; }
.crs-envoi .row-actions + .row-actions { margin-top: 8px; }
.crs-lecture .crs-li { justify-content: space-between; gap: 10px; min-height: 40px; padding: 2px 4px; }
.crs-lecture .crs-n { flex: 1 1 auto; min-width: 0; }
.crs-lecture .is-coche .crs-n { text-decoration: line-through; color: var(--ink-2); }
.crs-lecture .is-deja .crs-q, .crs-lecture .is-coche .crs-q { font-style: italic; }

/* T40-L4 (D-193) : Planning — Aujourd'hui (date, bandeau, Ce soir, prochaine étape en une ligne), Cette semaine,
   À venir, « Ma journée » en une ligne. */
.pl-auj { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pl-date { font-weight: 400; text-transform: none; letter-spacing: 0; }
.pa-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line-soft); border-left: 4px solid var(--accent); border-radius: var(--r); }
.pa-ligne .pa-l { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pa-h { margin: 0; font-family: var(--f-mono); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: var(--s-xs); color: var(--ink-2); }
.pa-ligne .pa-titre { font-size: var(--s-md, 1rem); }
.pa-ligne .pa-d { grid-column: 1 / -1; margin: 0; }
@media (max-width: 479px) { .pa-ligne { grid-template-columns: minmax(0, 1fr); } .pa-ligne .pa-b .btn { width: 100%; } }
.pl-encours .bandeau { margin: 0; }
.pl-semaine:focus { outline: none; }
.pl-semaine:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 4px; }
.pl-periode { margin: 0; }
.pl-jours { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pl-jour { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 2px 10px; padding: 8px 6px; border-bottom: 1px solid var(--line-soft); }
.pl-jour:last-child { border-bottom: 0; }
.pl-jour-h { margin: 0; font-weight: 700; display: flex; flex-direction: column; line-height: 1.25; }
.pl-aujb { font-size: var(--s-xs); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.pl-jour.is-auj { background: var(--accent-soft); border-radius: var(--r); border-bottom-color: transparent; }
.pl-jour.is-passe { opacity: .55; }
.pl-jour-r { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-soir { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-l { min-width: 0; overflow-wrap: anywhere; }
.pl-t { font-weight: 600; }
.pl-c { color: var(--ink-2); font-size: var(--s-sm); }
.pl-m { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.pl-l.is-imprevu { font-size: var(--s-sm); font-style: italic; }
.pl-midi { display: flex; gap: 6px; align-items: baseline; font-size: var(--s-sm); }
.pl-midi-h { color: var(--ink-2); font-weight: 700; }
.pl-repas-soir { display: flex; gap: 6px; align-items: baseline; }
.pl-vide { margin: 0; }
.pl-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pl-carte { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; background: var(--paper);
  border: 1px solid var(--line-soft); border-left: 4px solid var(--line); border-radius: var(--r-card, var(--r)); }
.pl-carte[data-etat="courses"] { border-left-color: var(--label); }
.pl-carte-l { flex: 1 1 14em; min-width: 0; min-height: 44px; display: flex; align-items: center; color: var(--ink); font-weight: 600; }
.pl-journee { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 48px; padding: 8px 14px; color: var(--ink);
  text-decoration: none; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); }
.pl-journee::after { content: "›"; margin-left: auto; font-size: 1.3rem; color: var(--ink-2); }
.pl-journee-n { font-weight: 700; }
.pl-journee-t { color: var(--ink-2); }
.pl-journee:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }
.home-c { display: flex; flex-direction: column; gap: 16px; }

/* T44 (I2, M4, m1) : bande de retour (ui/retour.js) : fixe au-dessus de la barre d'onglets et d'une barre d'action collante,
   sur tous les écrans. Elle ne bloque pas la page : seules ses lignes prennent le doigt. */
.bande {
  position: fixed; z-index: 7; left: 8px; right: 8px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tabbar-h, 0px) + 8px);
  display: grid; gap: 6px; max-width: 560px; margin-inline: auto; pointer-events: none;
}
body:has(.bar-bas) .bande { bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tabbar-h, 0px) + 72px); }
.bande-l {
  pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 6px 16px -8px var(--shade, rgba(0, 0, 0, .35)); font-size: var(--s-sm);
}
.bande-l p { flex: 1 1 12em; margin: 0; }
.bande-l.is-err { border-color: var(--accent); }
.bande-x { flex: none; margin-left: auto; }
@media (min-width: 1024px) {
  .bande { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  body:has(.bar-bas) .bande { bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); }
}
.main-cooking .bande { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }

/* T44 (I2) : le plat arrivé se surligne 2 s, à sa place. */
.wk-plat.is-nouveau { animation: wk-nouveau 2s ease-out; }
@keyframes wk-nouveau { from { background: var(--accent-soft); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .wk-plat.is-nouveau { animation: none; outline: 2px solid var(--accent); } }

/* T44 (M3) : les actions secondaires du Menu en bas de page, hors de la barre collante. */
.wk-actions { margin: 16px 0 12px; }
.mb-decaler { margin: 0 0 12px; }

/* T45-L4 (D-265) : « Supprimer » sur la carte d'un batch, sous le lien ; la question prend la largeur de la carte. */
.bl-actions { display: flex; justify-content: flex-end; padding: 0 8px 6px; margin-top: -6px; }
.bl-question { padding: 0 8px 8px; }
.fav-renommer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
.fav-renommer .field { flex: 1 1 180px; }

/* T45-L5 (D-263) : « Mon frigo » (feuille, puce de Recettes, « Il manque » sur la carte, liste des batchs) */
.fr { display: flex; flex-direction: column; gap: 10px; }
.fr .hint { margin: 0; }
.fr-lab { font-size: var(--s-sm); color: var(--ink-2); }
.fr-q { min-height: var(--tap); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  padding: 0 12px; font: inherit; color: var(--ink); width: 100%; box-sizing: border-box; }
.fr-q:disabled { opacity: .6; }
.fr-res .chip, .fr-choisis .chip { min-height: var(--tap); gap: 4px; white-space: normal; text-align: left; }
.fr-sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.fr-h { margin: 0; font-size: var(--s-md, 1rem); }
.fr-lance { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 100%; }
.fr-lance .hint { margin: 0; }
.feuille-p:has(.fr-lance) { flex-wrap: wrap; align-items: flex-start; }
.cat-frigo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 4px 0 8px; }
.card-manque { margin: 0; font-size: var(--s-sm); color: var(--ink-2); font-style: italic; }

/* T46-L6 (D-279) : Mon profil replié par repas ; le résumé dit le mode, la cible et sa zone (celles de la Journée). */
.pf-rp { padding: 0; gap: 0; }
details.pf-rp-d > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 52px; padding: 8px 0;
  list-style: none; cursor: pointer; }
details.pf-rp-d > summary::-webkit-details-marker { display: none; }
details.pf-rp-d > summary::after { content: "›"; margin-left: auto; font-size: 1.3rem; color: var(--ink-2); transition: transform .15s; }
details.pf-rp-d[open] > summary::after { transform: rotate(90deg); }
details.pf-rp-d[open] { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.pf-rp-r { margin: 0; }
.pf-rp-z { white-space: nowrap; }
/* T46-L6 (D-284, UX-20) : Journée, la semaine en 7 pastilles. */
.jr-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 399px) { .jr-jours { gap: 2px; margin-inline: -4px; } } /* 360 px : 7 cibles de 44 px au moins */
.jr-jour { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px;
  border: 1px solid var(--line-soft); background: var(--paper); color: var(--ink); text-decoration: none; font-size: var(--s-xs); }
.jr-jour-n { font-weight: 700; font-size: var(--s-base, 1rem); }
.jr-jour.is-auj { border-color: var(--accent); }
.jr-jour[aria-current="date"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jr-jour:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }
/* T46-L6 (D-284, UX-15) : carte Ma journée, une ligne grise pendant le chargement. */
.pl-journee-t.sq-ligne { display: inline-block; width: 9em; height: 1em; border-radius: 6px; background: var(--steel); }
/* T46-L6 (D-284, UX-21) : grand écran, contenu d'au plus 760 px de large (lignes courtes). */
@media (min-width: 1024px) {
  .main > .page, .main > .page.fiche, .main > .page.batch, .main > .page.cat { max-width: 760px; }
}

/* T46-L3b (D-272) : Menu du batch : une ligne résumé, « Alléger » et « Jour par jour » repliés, comme les volets de Nouveau batch. */
.mb-resume { margin: 4px 0 8px; font-weight: 600; color: var(--ink-1, inherit); }
details.wk-alleger, details.wk-jours { margin-top: 12px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 0 14px; }
details.wk-alleger > summary, details.wk-jours > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding-block: 8px; list-style: none; cursor: pointer; }
details.wk-alleger > summary::-webkit-details-marker, details.wk-jours > summary::-webkit-details-marker { display: none; }
details.wk-alleger > summary::after, details.wk-jours > summary::after { content: "›"; margin-left: auto; font-size: 1.4rem; color: var(--ink-2); transition: transform .15s; }
details.wk-alleger[open] > summary::after, details.wk-jours[open] > summary::after { transform: rotate(90deg); }
details.wk-alleger[open], details.wk-jours[open] { padding-bottom: 14px; }
details.wk-jours > summary > .sec-h { margin: 0; }

/* T46-L3b (L5) : en-tête du détail du batch compact à 390 px (plats du Menu et frise de la Réalisation dans le
   premier écran) : retour plus bas, écarts resserrés, état à droite du titre. */
.bd-page { gap: 10px; padding-top: 8px; }
.bd-page .page-h { flex-wrap: nowrap; align-items: center; gap: 8px; }
.bd-page .page-title { font-size: var(--s-xl); }
.bd-page .page-actions { flex: none; }
.bd-page .bd-etat { margin: 0; }
/* T46-L3b : les volets de la Réalisation (Avant de commencer, Sécurité, Plats de la session) : cible tactile de 44 px. */
details.bt-volet > summary { display: flex; align-items: center; min-height: var(--tap, 44px); cursor: pointer; }
/* Étape 3 L3 : écrans batch de BebouBatch (ui/bb/) — accueil, nouveau batch, détail, remplacer, semaine. */
.bb-carte { display: grid; gap: 6px; }
.bb-carte p, .bb-plat p { margin: 0; }
.bb-ce-soir { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.bb-origine { color: var(--ink-2); }
.bb-personnes { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
/* Étape 4 L4 (DP-C15) : bandeau « jour · boîte · lieu » en tête de carte, barre des jours collée sous la barre du haut. */
.bb-bandeau { background: var(--steel); border-radius: 6px; padding: 2px 8px; color: var(--ink-2); font-weight: 600;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bb-carte:focus { outline: none; }
.bb-carte:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bb-jours { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--tb-h, 56px)); z-index: 5;
  background: var(--paper); padding: 6px 0; margin: 8px 0 4px; }
.bb-jours ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
.bb-jour { width: 100%; min-height: var(--tap, 44px); border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--ink); display: grid; justify-items: center; line-height: 1.1; padding: 2px; }
.bb-jour[aria-current="date"] { border-color: var(--accent); }
.bb-jour-d { font-size: .8em; color: var(--ink-2); }
/* Étape 4 L4 (DP-C17, C18) : bandeau d'impossible et avertissement des soirs déjà couverts ; liste faite. */
.bb-impossible, .bb-couverts { margin: 8px 0; }
.bb-lexique { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.bb-liste-faite .tl-check input:disabled { opacity: 1; }
.bb-mes-batchs { list-style: none; padding: 0; display: grid; gap: 10px; }
.bb-mes-batchs .card { display: grid; gap: 4px; }
.bb-mes-batchs p { margin: 0; }
.bb-finition > summary { min-height: var(--tap, 44px); display: flex; align-items: center; cursor: pointer; }
.bb-plats { list-style: none; padding: 0; display: grid; gap: 10px; }
.bb-plat { display: grid; gap: 4px; }
.bb-soirs { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.bb-soir { display: flex; align-items: center; gap: 8px; }
.bb-soir > span { min-width: 8.5em; }
.bb-presence { min-width: var(--tap, 44px); min-height: var(--tap, 44px); border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); opacity: .45; }
.bb-presence[aria-pressed="true"] { opacity: 1; border-color: var(--accent); }
.bb-reglages { display: grid; gap: 10px; }
.bb-alertes { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.bb-choix .bb-element { display: block; }
.bb-choix { list-style: none; padding: 0; display: grid; gap: 8px; }
.bb-grise button { opacity: .5; }
/* L5b (D-383 (7)) : panier d'un batch, une ligne par ingrédient (nom à gauche, quantité du moteur à droite, besoin du
   batch dessous) ; passe à la ligne plutôt que de déborder à 390 px. */
.bb-panier { display: grid; gap: 4px; margin-top: 12px; }
.bb-panier .bb-p-h { margin: 10px 0 2px; font-size: 1em; }
.bb-p-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.bb-p-liste li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding: 6px 0;
  border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.bb-p-q { font-variant-numeric: tabular-nums; text-align: right; }
.bb-p-detail { flex-basis: 100%; font-size: .9em; }
.bb-quitter { margin-bottom: 12px; }
.bb-quitter .bandeau-a { flex-wrap: wrap; }
.bb-accueil .acc-liens { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* D-383 (1) : le segment à 4 parties du détail passe à la ligne à 390 px (débordait à 425 px). */
.bb-detail .seg { flex-wrap: wrap; }
.bb-detail .seg button { flex: 1 1 auto; padding: 0 10px; }
/* D-383 (7) : proposition ou remplacement pas encore enregistré. */
.bb-non-enregistre { color: var(--ink-2); font-size: .9em; align-self: center; }
