/* La Maison Cobalte — design de l'application.
   Direction choisie par le gérant (16/11/2026) : base épurée et moderne sur fond blanc
   + grille de tuiles « bento » et données vivantes. Police : Inter Tight. Accent : bleu cobalt #192ED5.
   L'identité reste présente par le logo, la petite maison et le bleu cobalt. */

:root {
  --bleu: #192ED5;
  --bleu-2: #2f43e6;
  --bleu-fonce: #1022a8;
  --bleu-clair: #eef0ff;
  --bleu-voile: #f5f6ff;
  --encre: #0b0d12;
  --texte-2: #5f6673;
  --texte-3: #9aa1ad;
  --fond: #f5f6f8;
  --carte: #ffffff;
  --ligne: #e9ebef;
  --rouge: #e5484d;
  --rouge-clair: #fff0f0;
  --orange: #f2a20c;
  --orange-clair: #fff6e2;
  --vert: #12a150;
  --vert-clair: #e8f7ee;
  /* Échelle d'arrondis : pas de 4 px. Règle : arrondi intérieur = arrondi extérieur − marge (ex. 22 − 4 = 18, 22 − 8 = 14). */
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-4: 18px; --r-5: 22px; --r-6: 28px;
  --rayon: var(--r-5);
  --rayon-petit: var(--r-3);
  --ombre: 0 1px 2px rgba(11, 13, 18, .04), 0 4px 14px rgba(11, 13, 18, .05);
  --ombre-haute: 0 2px 6px rgba(11, 13, 18, .05), 0 18px 40px rgba(11, 13, 18, .10);
  --ombre-forte: 0 24px 60px rgba(16, 34, 168, .18);
  --ressort: cubic-bezier(.34, 1.56, .64, 1);
  --sortie: cubic-bezier(.16, 1, .3, 1);
  --doux: cubic-bezier(.4, 0, .2, 1);
  --rail: 92px;
  --police: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --gris: var(--ligne);
  --texte: var(--encre);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--police); font-size: 15px; color: var(--encre); background: var(--fond);
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; overscroll-behavior-y: none;
}
h1, h2, h3, .titre { font-weight: 600; letter-spacing: -.025em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--bleu); }

/* ------------------------------------------------------------------ démarrage */
#demarrage { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #fff; transition: opacity .55s var(--doux), visibility .55s; }
#demarrage.fini { opacity: 0; visibility: hidden; }
#demarrage .logo { text-align: center; }
#demarrage .logo .maison { display: block; height: 120px; margin: 0 auto 16px; transform-origin: 50% 100%; animation: pop-entree .8s var(--ressort) both, marche .55s ease-in-out .8s infinite alternate; }
#demarrage .logo .duo { display: block; width: min(220px, 60vw); margin: 0 auto; filter: brightness(0); animation: monte .8s var(--sortie) .15s both; }
#demarrage .logo span { display: block; color: var(--texte-3); font-size: .78rem; margin-top: 14px; animation: monte .8s var(--sortie) .3s both; }
#demarrage .chargement { width: 120px; height: 3px; border-radius: var(--r-2); background: var(--ligne); margin: 22px auto 0; overflow: hidden; }
#demarrage .chargement i { display: block; height: 100%; width: 40%; border-radius: var(--r-2); background: var(--bleu); animation: navette 1s var(--doux) infinite; }

/* ------------------------------------------------------------------ coque */
.app { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.barre { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 16px 10px; background: #fff; border-right: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 2px; scrollbar-width: none; }
.barre::-webkit-scrollbar { display: none; }
.barre .marque { display: grid; place-items: center; padding: 2px 0 14px; }
.barre .marque img.maison { height: 52px; width: auto; transform-origin: 50% 100%; cursor: pointer; }
.barre .marque img.maison:hover { animation: marche .35s ease-in-out 2 alternate; }
.barre .marque img.typo { display: none; }
.barre .groupe { height: 1px; background: var(--ligne); margin: 8px 14px; font-size: 0; overflow: hidden; }
.lien { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; border: 0; background: transparent; color: var(--texte-2); padding: 9px 2px 8px; border-radius: var(--r-4); cursor: pointer; font-size: .62rem; font-weight: 500; line-height: 1.15; text-align: center; position: relative; transition: background .2s var(--doux), color .2s, transform .2s var(--ressort); }
.lien svg { width: 23px; height: 23px; transition: transform .3s var(--ressort); }
.lien:hover { background: var(--fond); color: var(--encre); }
.lien:hover svg { transform: translateY(-1px) scale(1.08); }
.lien:active { transform: scale(.92); }
.lien.actif { color: var(--bleu); background: var(--bleu-clair); }
.lien .badge { position: absolute; top: 4px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; justify-content: center; font-size: .62rem; background: var(--rouge); color: #fff; border: 2px solid #fff; animation: pop-entree .5s var(--ressort) both; }
.barre .pied { margin-top: auto; padding-top: 12px; display: grid; place-items: center; gap: 4px; font-size: .62rem; color: var(--texte-3); text-align: center; }
.barre .pied br, .barre .pied #appareil-nom { display: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--encre); color: #fff; font-weight: 600; font-size: .85rem; }

.principal-zone { min-width: 0; display: flex; flex-direction: column; }
.haut { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 3vw, 36px) 16px; background: rgba(245, 246, 248, .82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
.titre-bloc { display: flex; align-items: center; gap: 12px; }
.picto-mobile { display: none; height: 40px; width: auto; transform-origin: 50% 100%; }
.picto-mobile:active { animation: marche .3s ease-in-out 2 alternate; }
.haut h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.05; letter-spacing: -.035em; }
.haut .sous-titre { color: var(--texte-2); font-size: .85rem; margin-top: 4px; }
.haut .sous-titre::first-letter { text-transform: uppercase; }
.haut .actions-haut { display: flex; gap: 8px; align-items: center; }
#contenu { padding: 4px clamp(16px, 3vw, 36px) 120px; max-width: 1320px; width: 100%; }

.onglets-bas { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .barre { display: none; }
  .picto-mobile { display: block; }
  .onglets-bas { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-radius: var(--r-6); box-shadow: var(--ombre-haute); padding: 6px; animation: monte .6s var(--ressort) .2s both; }
  .onglets-bas button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: var(--r-5); font-size: .62rem; font-weight: 500; color: var(--texte-2); cursor: pointer; transition: color .2s, background .25s, transform .2s var(--ressort); }
  .onglets-bas button svg { width: 22px; height: 22px; }
  .onglets-bas button.actif { color: var(--bleu); background: var(--bleu-clair); }
  .onglets-bas button:active { transform: scale(.9); }
  .haut { padding-top: calc(14px + env(safe-area-inset-top)); }
}

/* ------------------------------------------------------------------ cartes */
.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; transition: transform .35s var(--ressort), box-shadow .3s var(--doux); }
.carte.cliquable, [data-composant].carte, .carte-temp, .tuile[data-aller] { cursor: pointer; }
.carte.cliquable:hover, [data-composant].carte:hover, .tuile[data-aller]:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.carte.cliquable:active, [data-composant].carte:active, .tuile[data-aller]:active { transform: scale(.975); transition-duration: .12s; }
.grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grille-kpi { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 22px; }
.section { margin: 30px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section h2 { font-size: 1.15rem; margin: 0; }
.section .compte-section { color: var(--texte-2); font-size: .82rem; }
h2 { font-size: 1.15rem; margin: 28px 0 12px; }
h3 { font-size: 1rem; margin: 22px 0 10px; }

/* ------------------------------------------------------------------ bento (accueil) */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); grid-auto-flow: dense; }
.tuile { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ressort), box-shadow .3s var(--doux); }
.tuile.l2 { grid-column: span 2; }
.tuile.h2 { grid-row: span 2; }
.tuile .etiquette { font-size: .8rem; color: var(--texte-2); font-weight: 500; display: flex; align-items: center; gap: 8px; padding-right: 36px; }
.tuile .etiquette svg { width: 17px; height: 17px; }
.tuile .grand { font-size: clamp(2.6rem, 4.4vw, 3.4rem); font-weight: 600; letter-spacing: -.055em; line-height: 1; margin-top: 10px; }
.tuile .geant { font-size: clamp(4.2rem, 8vw, 6.4rem); font-weight: 600; letter-spacing: -.065em; line-height: .95; margin-top: 10px; }
.tuile .bas { margin-top: auto; padding-top: 10px; font-size: .82rem; color: var(--texte-2); }
.tuile .fleche { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fond); color: var(--texte-2); transition: transform .35s var(--ressort), background .2s, color .2s; }
.tuile .fleche svg { width: 15px; height: 15px; }
.tuile[data-aller]:hover .fleche { transform: rotate(-45deg); background: var(--bleu); color: #fff; }
.tuile.heros { background: var(--bleu); color: #fff; }
.tuile.heros .etiquette, .tuile.heros .bas { color: rgba(255,255,255,.8); }
.tuile.heros .fleche { background: rgba(255,255,255,.16); color: #fff; }
.tuile.heros[data-aller]:hover .fleche { background: #fff; color: var(--bleu); }
.tuile.heros::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; background: rgba(255,255,255,.07); animation: flotte 9s ease-in-out infinite alternate; }
.tuile.ok .grand { color: var(--vert); }
.tuile.attention .grand { color: var(--rouge); }
.barres-vivantes { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: auto; padding-top: 16px; position: relative; }
.barres-vivantes .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.barres-vivantes .col i { display: block; width: 100%; border-radius: var(--r-2); background: rgba(255,255,255,.4); transform-origin: bottom; animation: pousse 1s var(--ressort) both, respire 2.8s ease-in-out infinite alternate; }
.barres-vivantes .col:first-child i { background: #fff; }
.barres-vivantes .col span { font-size: .66rem; color: rgba(255,255,255,.75); }
.barres-vivantes .col b { font-size: .72rem; font-weight: 600; }
.liste-prio { display: grid; gap: 6px; margin-top: 10px; }
.ligne-prio { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: .86rem; cursor: pointer; padding: 8px; margin: 0 -8px; border-radius: var(--r-3); transition: background .2s; }
.ligne-prio:hover { background: var(--fond); }
.ligne-prio b { font-weight: 600; color: var(--rouge); font-size: .82rem; }
.ligne-prio .piste { grid-column: 1 / -1; height: 6px; border-radius: var(--r-2); background: var(--ligne); overflow: hidden; }
.ligne-prio .piste i { display: block; height: 100%; border-radius: var(--r-2); background: var(--bleu); transform-origin: left; animation: etire 1.1s var(--sortie) both; }
.puces-temp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.puce { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--fond); font-size: .8rem; cursor: pointer; transition: transform .25s var(--ressort), background .2s; }
.puce:hover { transform: translateY(-2px); background: var(--bleu-voile); }
.puce b { font-weight: 600; }
.point-vivant { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); position: relative; flex: none; }
.point-vivant::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: inherit; opacity: .35; animation: onde 1.8s var(--doux) infinite; }
.point-vivant.rouge { background: var(--rouge); }
.point-vivant.gris { background: var(--texte-3); }
.point-vivant.gris::after { display: none; }
.cercle-vivant { position: relative; width: 92px; height: 92px; flex: none; }
.cercle-vivant svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cercle-vivant .fond-anneau { stroke: var(--ligne); }
.cercle-vivant .trait { stroke: var(--orange); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--sortie) .3s; }
.cercle-vivant.complet .trait { stroke: var(--vert); }
.cercle-vivant b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 1.15rem; letter-spacing: -.03em; }
.cercle-vivant .orbite { position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed var(--ligne); animation: tourne 16s linear infinite; }
.rangee { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.rangee .texte-rangee { display: grid; gap: 4px; font-size: .86rem; }
.rangee .texte-rangee b { font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; }
@media (max-width: 1100px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tuile.l2 { grid-column: auto; } .tuile.h2 { grid-row: auto; } }

/* ------------------------------------------------------------------ indicateurs, pastilles */
.kpi { position: relative; overflow: hidden; }
.kpi .etiquette { padding-right: 46px; font-size: .8rem; color: var(--texte-2); font-weight: 500; }
.kpi .nombre { font-size: 2.6rem; font-weight: 600; letter-spacing: -.05em; line-height: 1.05; margin-top: 8px; }
.kpi .detail { font-size: .8rem; color: var(--texte-2); margin-top: 4px; }
.kpi .icone-kpi { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: var(--r-3); display: grid; place-items: center; background: var(--fond); color: var(--texte-2); }
.kpi .icone-kpi svg { width: 19px; height: 19px; }
.kpi.bleu { background: var(--bleu); color: #fff; }
.kpi.bleu .etiquette, .kpi.bleu .detail { color: rgba(255,255,255,.8); }
.kpi.bleu .icone-kpi { background: rgba(255,255,255,.16); color: #fff; }
.kpi.attention .nombre { color: var(--rouge); }
.kpi.ok .nombre { color: var(--vert); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 500; background: var(--fond); color: var(--encre); white-space: nowrap; }
.badge[hidden] { display: none; }
.badge.rouge { background: var(--rouge-clair); color: var(--rouge); }
.badge.orange { background: var(--orange-clair); color: #a66a00; }
.badge.vert { background: var(--vert-clair); color: var(--vert); }
.badge.bleu { background: var(--bleu-clair); color: var(--bleu); }
.etat { font-size: .72rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--fond); white-space: nowrap; }
.etat-prod { background: var(--rouge-clair); color: var(--rouge); }
.etat-mep, .etat-EC { background: var(--orange-clair); color: #a66a00; }
.etat-Ok { background: var(--vert-clair); color: var(--vert); }
.etat-cong { background: var(--bleu-clair); color: var(--bleu); }

/* carte composant (production) */
.composant { display: flex; flex-direction: column; gap: 14px; }
.composant .tete { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.composant .nom { font-weight: 600; font-size: .98rem; letter-spacing: -.015em; line-height: 1.25; }
.composant .milieu { display: flex; align-items: center; gap: 16px; }
.composant .zones { flex: 1; display: grid; gap: 6px; font-size: .78rem; color: var(--texte-2); }
.composant .zones div { display: flex; justify-content: space-between; }
.composant .zones b { color: var(--encre); font-weight: 600; }
.composant .pied { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.composant .a-produire { font-weight: 600; font-size: .9rem; }
.composant .a-produire.ok { color: var(--vert); }
.composant .a-produire.manque { color: var(--rouge); }
.barre-stock { height: 6px; border-radius: 999px; background: var(--ligne); overflow: hidden; display: flex; }
.barre-stock i { display: block; height: 100%; transform-origin: left; animation: etire 1s var(--sortie) both; }
.barre-stock .p { background: var(--bleu); }
.barre-stock .r { background: #7d8bff; }
.barre-stock .c { background: #c3caff; }
.anneau { position: relative; width: 64px; height: 64px; flex: none; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau .fond-anneau { stroke: var(--ligne); }
.anneau .trait { stroke: var(--bleu); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--sortie); }
.anneau.plein .trait { stroke: var(--vert); }
.anneau.bas .trait { stroke: var(--rouge); }
.anneau b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: .85rem; letter-spacing: -.03em; }

/* tableaux */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
th { text-align: left; font-weight: 500; font-size: .75rem; color: var(--texte-2); background: #fafbfc; border-bottom: 1px solid var(--ligne); }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--ligne); font-size: .88rem; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.cliquable { cursor: pointer; transition: background .15s; }
tr.cliquable:hover td { background: var(--bleu-voile); }
tr.cliquable:active td { background: var(--bleu-clair); }

/* formulaires et boutons */
input, select, textarea { padding: 10px 14px; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); min-height: 46px; background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(25, 46, 213, .12); }
input[type=checkbox], input[type=radio] { min-height: auto; width: 22px; height: 22px; accent-color: var(--bleu); }
.grille-form, .ligne-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--carte); padding: 18px; border-radius: var(--rayon); box-shadow: var(--ombre); }
.grille-form label, .ligne-form label { display: flex; flex-direction: column; gap: 6px; font-size: .76rem; font-weight: 500; color: var(--texte-2); }
.grille-form label.case { flex-direction: row; align-items: center; gap: 8px; color: var(--encre); }
.grille-form > button, .ligne-form > button, button.principal { background: var(--bleu); color: #fff; border: 0; border-radius: var(--r-3); padding: 12px 22px; min-height: 46px; cursor: pointer; font-weight: 600; box-shadow: 0 6px 18px rgba(25, 46, 213, .28); transition: transform .2s var(--ressort), box-shadow .2s, background .2s; }
.grille-form > button:hover, .ligne-form > button:hover, button.principal:hover { background: var(--bleu-2); transform: translateY(-1px); }
.grille-form > button:active, .ligne-form > button:active, button.principal:active { transform: scale(.95); box-shadow: 0 2px 8px rgba(25, 46, 213, .3); }
button.petit { border: 1px solid var(--ligne); background: #fff; color: var(--encre); border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 38px; font-weight: 500; transition: transform .2s var(--ressort), background .2s, color .2s, border-color .2s; }
button.petit:hover { border-color: var(--bleu); color: var(--bleu); }
button.petit:active { transform: scale(.93); }
button.petit.choisi { background: var(--bleu); border-color: var(--bleu); color: #fff; }
button.petit.confirmer { background: var(--rouge); border-color: var(--rouge); color: #fff; animation: secoue .35s; }
button.fantome { border: 0; background: var(--carte); box-shadow: var(--ombre); border-radius: 999px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--texte-2); transition: transform .3s var(--ressort), color .2s; }
button.fantome svg { width: 19px; height: 19px; }
button.fantome:hover { color: var(--bleu); }
button.fantome:active svg { animation: tourne .6s var(--sortie); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.dlc-depassee { color: var(--rouge); font-weight: 600; }
.dlc-du-jour { color: #b07400; font-weight: 600; }
.dlc-ok { color: var(--vert); }
.vide { color: var(--texte-2); padding: 20px; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); }
.infos { color: var(--texte-2); font-size: .82rem; margin: 6px 0; line-height: 1.5; }
.message { min-height: 1.2em; }
pre { background: #fff; padding: 14px; border-radius: var(--rayon-petit); overflow-x: auto; font-size: .78rem; box-shadow: var(--ombre); }
pre.consigne { white-space: pre-wrap; font-family: inherit; box-shadow: none; background: var(--fond); }

/* ------------------------------------------------------------------ fiche */
#panneau { position: fixed; inset: 0; z-index: 30; display: flex; justify-content: flex-end; background: rgba(11, 13, 18, .28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fondu .3s var(--doux) both; }
#panneau[hidden] { display: none; }
#panneau.ferme { animation: fondu-sortie .25s var(--doux) both; }
.fiche { background: var(--fond); width: min(760px, 100%); height: 100%; overflow-y: auto; padding: 22px 24px 60px; box-shadow: var(--ombre-forte); border-radius: var(--r-6) 0 0 var(--r-6); animation: glisse .5s var(--sortie) both; }
.fiche.depuis-carte { animation: fondu .25s var(--doux) both; }
#panneau.ferme .fiche { animation: glisse-sortie .25s var(--doux) both; }
.fiche-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: sticky; top: -22px; padding: 22px 0 10px; margin-top: -22px; background: var(--fond); z-index: 2; }
.fiche-tete h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.035em; }
.fiche-tete button { border: 0; background: var(--carte); box-shadow: var(--ombre); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; font-size: 1rem; transition: transform .3s var(--ressort); }
.fiche-tete button:hover { transform: rotate(90deg); }
.compteurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.compteurs div { background: var(--carte); border-radius: var(--r-4); padding: 14px 8px; text-align: center; box-shadow: var(--ombre); animation: pop-entree .55s var(--ressort) both; }
.compteurs div:nth-child(2) { animation-delay: .05s; } .compteurs div:nth-child(3) { animation-delay: .1s; } .compteurs div:nth-child(4) { animation-delay: .15s; }
.compteurs b { display: block; font-weight: 600; font-size: 1.9rem; letter-spacing: -.04em; }
.compteurs span { font-size: .72rem; color: var(--texte-2); }
.compteurs .fort { background: var(--bleu); color: #fff; }
.compteurs .fort span { color: rgba(255,255,255,.8); }
.etats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.etapes { counter-reset: etape; list-style: none; padding: 0; }
.etapes li { counter-increment: etape; position: relative; padding: 13px 14px 13px 54px; margin: 8px 0; background: var(--carte); border-radius: var(--r-4); box-shadow: var(--ombre); font-size: .9rem; line-height: 1.5; cursor: pointer; transition: opacity .25s, transform .3s var(--ressort); }
.etapes li:active { transform: scale(.98); }
.etapes li::before { content: counter(etape); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--bleu-clair); color: var(--bleu); display: grid; place-items: center; font-weight: 600; font-size: .82rem; }
.etapes li.faite { opacity: .5; text-decoration: line-through; }
.etapes li.faite::before { content: "✓"; background: var(--vert); color: #fff; animation: pop-entree .4s var(--ressort); }
#fantome-carte { position: fixed; z-index: 31; background: var(--fond); border-radius: var(--rayon); box-shadow: var(--ombre-forte); pointer-events: none; }
@media (max-width: 900px) {
  #panneau { align-items: flex-end; }
  .fiche { width: 100%; height: 92vh; border-radius: var(--r-6) var(--r-6) 0 0; animation-name: monte-feuille; }
  #panneau.ferme .fiche { animation-name: descend-feuille; }
  .compteurs { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------------ graphiques */
.graphique { display: flex; align-items: flex-end; gap: clamp(6px, 2vw, 18px); height: 220px; padding: 26px 18px 10px; }
.graphique .colonne { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.graphique .valeur { font-weight: 600; font-size: .95rem; letter-spacing: -.02em; }
.graphique .baton { width: 100%; max-width: 60px; border-radius: var(--r-3) var(--r-3) var(--r-1) var(--r-1); background: var(--bleu); transform-origin: bottom; animation: pousse 1s var(--ressort) both; position: relative; }
.graphique .colonne:nth-child(2) .baton { animation-delay: .05s; } .graphique .colonne:nth-child(3) .baton { animation-delay: .1s; } .graphique .colonne:nth-child(4) .baton { animation-delay: .15s; }
.graphique .colonne:nth-child(5) .baton { animation-delay: .2s; } .graphique .colonne:nth-child(6) .baton { animation-delay: .25s; } .graphique .colonne:nth-child(7) .baton { animation-delay: .3s; }
.graphique .baton .fourchette { position: absolute; left: 50%; width: 2px; background: rgba(11,13,18,.22); transform: translateX(-50%); }
.graphique .baton.evt { background: var(--orange); }
.graphique .baton.vac { background: #7d8bff; }
.graphique .jour { font-size: .72rem; color: var(--texte-2); text-align: center; }
.graphique .jour b { display: block; color: var(--encre); font-size: .8rem; font-weight: 600; }
svg.courbe { width: 100%; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); }
svg.courbe polyline { stroke: var(--bleu) !important; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.8s var(--sortie) forwards; }
svg.courbe .bande { fill: var(--bleu); fill-opacity: .13; animation: fondu .9s var(--sortie) both; }
svg.courbe .grille { stroke: rgba(11,13,18,.06); }
svg.courbe .axe { fill: var(--texte-2); }
#courbe { transition: opacity .25s; }
#courbe.charge { opacity: .45; }
.tete-courbe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; }
.tete-courbe h3 { margin: 0; font-weight: 600; }
.tete-courbe h3 .sous { font-weight: 400; }
.periodes button { min-height: 36px; }
.resume-courbe { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 4px 0; font-size: .85rem; color: var(--texte-2); }
.resume-courbe b { color: var(--encre); font-weight: 600; }
.resume-courbe .dlc-depassee b { color: var(--rouge); }
.carte-temp.choisie { box-shadow: 0 0 0 2px var(--bleu), var(--ombre-haute); }

/* températures */
.cartes-temp { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 14px 0; }
.carte-temp { background: var(--carte); border-radius: var(--rayon); padding: 16px; box-shadow: var(--ombre); position: relative; overflow: visible; transition: transform .3s var(--ressort), box-shadow .3s; }
.carte-temp::after { content: ""; position: absolute; top: 18px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); animation: halo 2s infinite; }
.carte-temp:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.carte-temp:active { transform: scale(.97); }
.carte-temp.t-alerte { background: var(--rouge-clair); }
.carte-temp.t-alerte::after { background: var(--rouge); animation-name: halo-rouge; }
.carte-temp.t-vide::after { background: var(--texte-3); animation: none; }
.carte-temp .nom { font-size: .8rem; color: var(--texte-2); padding-right: 16px; }
.carte-temp .valeur { font-size: 2.3rem; font-weight: 600; letter-spacing: -.05em; margin: 6px 0 2px; }
.alerte { box-shadow: inset 4px 0 0 var(--rouge), var(--ombre); }
.alerte-titre { width: 100%; }
.bloc-nettoyage { background: var(--carte); border-radius: var(--r-4); margin: 8px 0; padding: 14px 16px; box-shadow: inset 4px 0 0 var(--vert), var(--ombre); }
.bloc-nettoyage.a-faire { box-shadow: inset 4px 0 0 var(--rouge), var(--ombre); }
.bloc-nettoyage summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; }
.bloc-nettoyage summary::-webkit-details-marker { display: none; }
.bloc-nettoyage ul { margin: 10px 0 0; padding-left: 18px; }
.bloc-nettoyage li { margin: 8px 0; }

/* notifications et chargement */
#toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); }
.toast { background: var(--encre); color: #fff; padding: 14px 18px; border-radius: var(--r-4); box-shadow: var(--ombre-forte); display: flex; gap: 10px; align-items: center; animation: toast-entree .5s var(--ressort) both; font-size: .88rem; font-weight: 500; }
.toast.ok::before { content: "✓"; color: #5ce19b; font-weight: 700; }
.toast.erreur { background: var(--rouge); }
.toast.sortie { animation: toast-sortie .3s var(--doux) both; }
.toast.alerte-froid { background: var(--rouge); align-items: flex-start; animation: toast-entree .5s var(--ressort) both, secoue .4s .5s 2; }
.toast.alerte-froid::before { content: "⚠"; font-size: 1.1rem; line-height: 1.2; }
.toast.alerte-froid > div { flex: 1; }
.toast.alerte-froid .sous-toast { font-weight: 400; opacity: .9; font-size: .8rem; margin-top: 2px; }
.toast.alerte-froid button.petit { background: #fff; color: var(--rouge); border: 0; }
.toast .fermer-toast { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; }
@media (max-width: 900px) { #toasts { bottom: calc(100px + env(safe-area-inset-bottom)); } }
.squelette { border-radius: var(--rayon); background: linear-gradient(90deg, #eceef2 0%, #f7f8fa 50%, #eceef2 100%); background-size: 200% 100%; animation: brille 1.2s infinite linear; }

/* ------------------------------------------------------------------ mouvement */
.entree > * { animation: monte .55s var(--sortie) both; animation-delay: calc(var(--i, 0) * 50ms); }
.apparait { animation: pop-entree .6s var(--ressort) both; animation-delay: calc(var(--i, 0) * 55ms); }
.pop { animation: pop-ouverture .8s var(--ressort) both; animation-delay: calc(var(--i, 0) * 85ms + var(--base, 0ms)); }

@keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop-entree { 0% { opacity: 0; transform: scale(.86) translateY(14px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes pop-ouverture { 0% { opacity: 0; transform: translateY(56px) scale(.7) rotate(-2.5deg); filter: blur(8px); } 50% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes fondu-sortie { to { opacity: 0; } }
@keyframes glisse { from { transform: translateX(100%); } to { transform: none; } }
@keyframes glisse-sortie { to { transform: translateX(100%); } }
@keyframes monte-feuille { from { transform: translateY(100%); } to { transform: none; } }
@keyframes descend-feuille { to { transform: translateY(100%); } }
@keyframes pousse { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes respire { 0% { transform: scaleY(1); } 100% { transform: scaleY(.88); } }
@keyframes etire { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes brille { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes toast-entree { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes toast-sortie { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes secoue { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes marche { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(5deg) translateY(-5px); } }
@keyframes onde { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(18,161,80,.45); } 100% { box-shadow: 0 0 0 10px rgba(18,161,80,0); } }
@keyframes halo-rouge { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 100% { box-shadow: 0 0 0 12px rgba(229,72,77,0); } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes navette { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes flotte { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.15); } }

::view-transition-old(root) { animation: fondu-sortie .16s var(--doux) both; }
::view-transition-new(root) { animation: monte .4s var(--sortie) both; }

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

/* ------------------------------------------------------------------ écrans en tuiles (tous les écrans) */
.tuile.l3 { grid-column: span 3; }
.tuile.l4 { grid-column: 1 / -1; }
.tuile.compacte { min-height: 0; }
.bento.serre { grid-auto-rows: minmax(110px, auto); }
.tuile h3 { margin: 0 0 10px; font-size: 1rem; }
.tuile .grille-form, .tuile .ligne-form { box-shadow: none; padding: 0; background: none; border-radius: 0; }
.tuile table { box-shadow: none; border-radius: var(--r-3); border: 1px solid var(--ligne); }
.tuile .petit-nombre { font-size: 1.6rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; margin-top: 6px; }
.tuile .sous { font-size: .8rem; color: var(--texte-2); }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.puces .badge { font-size: .7rem; }
.lignes { display: grid; margin-top: 6px; }
.lignes .ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--ligne); font-size: .86rem; }
.lignes .ligne:last-child { border-bottom: 0; }
.lignes .ligne .sous { font-size: .74rem; }
.lignes .ligne.cliquable { cursor: pointer; border-radius: var(--r-3); padding: 11px 8px; margin: 0 -8px; transition: background .2s; }
.lignes .ligne.cliquable:hover { background: var(--fond); }
.champ-recherche { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.champ-recherche input { flex: 1; min-width: 220px; border-radius: 999px; padding-left: 18px; background: #fff; box-shadow: var(--ombre); border-color: transparent; }
.filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.filtres button { border: 0; background: #fff; box-shadow: var(--ombre); border-radius: 999px; padding: 8px 14px; font-size: .78rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ressort); }
.filtres button.actif { background: var(--encre); color: #fff; }
.filtres button:active { transform: scale(.94); }
.etiquette-apercu { border: 1.5px dashed var(--texte-3); border-radius: var(--r-4); padding: 14px; background: #fff; display: grid; gap: 4px; margin-top: 6px; }
.etiquette-apercu b { font-size: 1.05rem; letter-spacing: -.02em; }
.etiquette-apercu .dlc-grande { font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; }
.calendrier { display: grid; grid-template-columns: 70px repeat(30, minmax(0, 1fr)); gap: 4px; align-items: center; margin-top: 12px; font-size: .72rem; color: var(--texte-2); }
.calendrier .case { aspect-ratio: 1; border-radius: var(--r-1); background: var(--vert); animation: pop-entree .4s var(--ressort) both; }
.calendrier .case.non { background: #ffd2d3; }
.calendrier .case.aujourdhui { outline: 2px solid var(--encre); outline-offset: 1px; }
.barres-h { display: grid; gap: 10px; margin-top: 10px; }
.barres-h .bh { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .8rem; }
.barres-h .bh .piste { height: 10px; border-radius: var(--r-2); background: var(--ligne); overflow: hidden; }
.barres-h .bh .piste i { display: block; height: 100%; border-radius: var(--r-2); background: var(--bleu); transform-origin: left; animation: etire 1.1s var(--sortie) both; }
.barres-h .bh .piste i.rouge { background: var(--rouge); }
.barres-h .bh .piste i.orange { background: var(--orange); }
.paires { display: flex; align-items: flex-end; gap: 14px; height: 200px; margin-top: 14px; }
.paires .p { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.paires .duo-barres { display: flex; align-items: flex-end; gap: 3px; width: 100%; height: 100%; justify-content: center; }
.paires .duo-barres i { width: 42%; max-width: 22px; border-radius: var(--r-1) var(--r-1) var(--r-1) var(--r-1); background: var(--bleu); transform-origin: bottom; animation: pousse .9s var(--ressort) both; }
.paires .duo-barres i.n1 { background: #d3d8ff; }
.paires .p span { font-size: .68rem; color: var(--texte-2); white-space: nowrap; }
.legende { display: flex; gap: 14px; font-size: .74rem; color: var(--texte-2); margin-top: 10px; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: var(--r-1); margin-right: 6px; vertical-align: -1px; }
.jour-tuile .jour-nom { font-weight: 600; font-size: .95rem; letter-spacing: -.02em; }
.jour-tuile .meteo { font-size: .8rem; color: var(--texte-2); }
.evolution { font-size: .8rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.evolution.hausse { background: var(--vert-clair); color: var(--vert); }
.evolution.baisse { background: var(--rouge-clair); color: var(--rouge); }
@media (max-width: 1100px) { .tuile.l3 { grid-column: span 2; } }
@media (max-width: 560px) { .tuile.l3, .tuile.l4 { grid-column: auto; } .calendrier { grid-template-columns: 54px repeat(30, minmax(0, 1fr)); gap: 2px; } }

/* ------------------------------------------------------------------ messages (chat d'équipe) */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fils button { position: relative; min-height: 38px; }
.point-nouveau { position: absolute; top: 4px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu); }
.choix-auteur { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.puce.inactif { opacity: .5; text-decoration: line-through; }
.choix-auteur b { font-weight: 600; }
.puce.grande { padding: 11px 18px; font-size: .95rem; background: var(--bleu-voile); color: var(--bleu); font-weight: 600; }
#tuile-prenoms .ligne.inactif b { text-decoration: line-through; opacity: .6; }
.epingle { display: flex; align-items: center; gap: 14px; background: var(--bleu); color: #fff; border-radius: var(--rayon); padding: 14px 16px; box-shadow: var(--ombre); animation: pop-entree .5s var(--ressort) both; }
.epingle > div { flex: 1; }
.epingle .meta { font-size: .75rem; opacity: .85; }
.epingle p { margin: 4px 0 0; font-weight: 500; white-space: pre-wrap; }
.epingle button { background: #fff; color: var(--bleu); border: 0; }
.fil-messages { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px; height: min(58vh, 620px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.fil-messages .vide { margin: auto; }
.jour-sep { text-align: center; margin: 10px 0 4px; font-size: .72rem; color: var(--texte-2); text-transform: capitalize; }
.jour-sep span { background: var(--fond); padding: 4px 10px; border-radius: 999px; }
.msg.bulle { align-self: flex-start; max-width: min(78%, 560px); background: var(--fond); border-radius: var(--r-4) var(--r-4) var(--r-4) var(--r-1); padding: 9px 13px; animation: monte .35s var(--sortie) both; }
.msg.bulle.moi { align-self: flex-end; background: var(--bleu); color: #fff; border-radius: var(--r-4) var(--r-4) var(--r-1) var(--r-4); }
.msg.bulle.moi .meta { color: rgba(255,255,255,.8); }
.msg.bulle.exceptionnel { box-shadow: inset 3px 0 0 var(--bleu); }
.msg.bulle.moi.exceptionnel { box-shadow: inset 3px 0 0 #fff; }
.msg p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .meta { font-size: .72rem; color: var(--texte-2); display: flex; align-items: center; gap: 4px; }
.msg .meta b { font-weight: 600; color: inherit; }
.msg .lu { font-size: .7rem; opacity: .75; margin-top: 4px; }
.msg .suppr { margin-left: auto; background: none; border: 0; color: inherit; opacity: .45; cursor: pointer; font-size: 1rem; padding: 0 2px; }
.msg .suppr:hover { opacity: 1; }
.passation-carte { align-self: stretch; border: 1px solid rgba(25,46,213,.18); background: var(--bleu-voile); border-radius: var(--r-4); padding: 12px 14px; animation: monte .35s var(--sortie) both; }
.titre-passation { font-weight: 600; margin: 2px 0 6px; }
.rubrique { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(11,13,18,.06); }
.rubrique span { font-size: .78rem; color: var(--texte-2); font-weight: 500; }
.rubrique p { margin: 0; }
@media (max-width: 600px) { .rubrique { grid-template-columns: 1fr; gap: 2px; } }
.composeur { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 12px; display: grid; gap: 10px; }
.composeur .types { display: flex; gap: 6px; flex-wrap: wrap; }
.composeur .types button { border: 0; background: var(--fond); border-radius: 999px; padding: 7px 13px; font-size: .78rem; font-weight: 500; cursor: pointer; }
.composeur .types button.actif { background: var(--encre); color: #fff; }
.composeur .types button.exceptionnel.actif { background: var(--bleu); }
.composeur .saisie { display: flex; gap: 10px; align-items: flex-end; }
.composeur .saisie.passation { flex-direction: column; align-items: stretch; }
.composeur textarea { flex: 1; resize: vertical; min-height: 44px; border: 1px solid rgba(11,13,18,.1); border-radius: var(--r-3); padding: 10px 12px; font: inherit; background: var(--fond); }
.composeur .saisie.exceptionnel textarea { border-color: var(--bleu); background: var(--bleu-voile); }
.composeur .rubriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.composeur .rubriques label { display: grid; gap: 4px; font-size: .78rem; font-weight: 500; color: var(--texte-2); }
.composeur button.principal:disabled { opacity: .4; cursor: not-allowed; }
.toast.message-urgent { background: var(--bleu); align-items: flex-start; animation: toast-entree .5s var(--ressort) both; }
.toast.message-urgent::before { content: "✉"; font-size: 1.1rem; line-height: 1.2; }
.toast.message-urgent > div { flex: 1; }
.toast.message-urgent .sous-toast { font-weight: 400; opacity: .9; font-size: .8rem; margin-top: 2px; }
.toast.message-urgent button.petit { background: #fff; color: var(--bleu); border: 0; }
@media (max-width: 900px) { .fil-messages { height: 46vh; } }

/* ------------------------------------------------------------------ tableau de bord du gérant */
svg.graph { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
svg.graph .grille { stroke: rgba(11,13,18,.07); }
svg.graph .axe { fill: var(--texte-2); font-size: 11px; font-family: inherit; }
.jauge-objectif { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); margin: 14px 0 8px; }
.jauge-objectif div { height: 100%; border-radius: 999px; background: #fff; transform-origin: left; animation: etire 1.2s var(--sortie) both; }
.jauge-objectif i { position: absolute; top: -4px; width: 3px; height: 18px; border-radius: 2px; background: #ffd27a; }
.mini-pl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin-top: 12px; }
.mini-pl div { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: var(--texte-2); }
.mini-pl b { font-size: 1.05rem; color: var(--encre); font-weight: 600; }
.mini-pl .evolution { align-self: flex-start; font-size: .68rem; }
.tuile.ratio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.tuile.ratio .etiquette { align-self: stretch; justify-content: center; }
.tuile.ratio .anneau b { font-size: .95rem; }
.tuile.ratio .bas { font-size: .72rem; }
.table-ratios { overflow-x: auto; margin-top: 10px; }
.table-ratios table { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .78rem; }
.table-ratios th { font-weight: 500; color: var(--texte-2); text-align: left; white-space: nowrap; padding: 4px 2px; }
.table-ratios td { text-align: center; padding: 7px 4px; border-radius: var(--r-2); background: var(--fond); font-weight: 600; min-width: 46px; }
.table-ratios td.ok { background: var(--vert-clair); color: var(--vert); }
.table-ratios td.moyen { background: #fff3d6; color: #b77800; }
.table-ratios td.haut { background: var(--rouge-clair); color: var(--rouge); }
.table-ratios td.provisoire { opacity: .5; font-style: italic; }
.barres-h { display: grid; gap: 7px; margin-top: 12px; }
.barres-h div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: .8rem; }
.barres-h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--texte-2); }
.barres-h i { display: block; height: 10px; border-radius: 999px; background: var(--bleu); transform-origin: left; animation: etire 1s var(--sortie) both; }
.barres-h b { font-weight: 600; min-width: 52px; text-align: right; }
.fraicheur { text-align: center; margin: 22px 0 8px; }
@media (max-width: 600px) { .barres-h div { grid-template-columns: 1fr auto; } .barres-h i { grid-column: 1 / -1; grid-row: 2; } }

/* graphiques interactifs : animation à l'arrivée à l'écran, infobulle, séries à afficher / masquer */
.graph-boite { position: relative; touch-action: pan-y; }
svg.graph .zero { stroke: rgba(11,13,18,.25); }
svg.graph rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: opacity .25s, filter .25s; }
svg.graph .point { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: r .2s; }
svg.graph polyline { stroke-dasharray: 1; stroke-dashoffset: 1; }
svg.graph polyline.pointille { stroke-dasharray: 5 4; stroke-dashoffset: 0; opacity: 0; }
.graph-boite.visible svg.graph rect { animation: pousse .9s var(--ressort) both; animation-delay: calc(var(--i) * 18ms + 80ms); }
.graph-boite.visible svg.graph polyline { animation: trace 1.6s var(--sortie) .15s forwards; }
.graph-boite.visible svg.graph polyline.pointille { animation: fondu .8s .9s both; }
.graph-boite.visible svg.graph .point { animation: pop-point .45s var(--ressort) both; animation-delay: calc(var(--i) * 22ms + 500ms); }
@keyframes pop-point { from { transform: scale(0); } to { transform: scale(1); } }
svg.graph .serie { transition: opacity .35s var(--sortie); }
svg.graph .serie.cache { opacity: 0; pointer-events: none; }
svg.graph .repere { stroke: rgba(11,13,18,.28); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .15s; pointer-events: none; }
svg.graph .repere.on { opacity: 1; }
svg.graph:hover rect:not(.actif) { opacity: .55; }
svg.graph rect.actif { filter: brightness(1.08) drop-shadow(0 4px 8px rgba(25,46,213,.25)); }
svg.graph circle.actif { r: 5; }
.infobulle { position: absolute; top: 4px; z-index: 5; min-width: 150px; background: rgba(11,13,18,.92); color: #fff; border-radius: var(--r-3); padding: 9px 11px; font-size: .74rem; pointer-events: none; box-shadow: 0 10px 30px rgba(11,13,18,.25); backdrop-filter: blur(6px); animation: fondu .15s both; }
.infobulle strong { display: block; font-weight: 600; margin-bottom: 4px; font-size: .78rem; }
.infobulle div { display: flex; align-items: center; gap: 7px; padding: 1px 0; }
.infobulle i { width: 8px; height: 8px; border-radius: var(--r-1); flex: none; }
.infobulle b { margin-left: auto; padding-left: 12px; font-weight: 600; }
.legende.basculable { flex-wrap: wrap; gap: 8px; }
.puce-serie { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--fond); border-radius: 999px; padding: 6px 11px 6px 9px; font: inherit; font-size: .74rem; font-weight: 500; color: var(--encre); cursor: pointer; transition: transform .2s var(--ressort), opacity .2s, background .2s; }
.puce-serie i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); transition: transform .3s var(--ressort); }
.puce-serie:hover { transform: translateY(-1px); }
.puce-serie:active { transform: scale(.95); }
.puce-serie.eteinte { opacity: .45; }
.puce-serie.eteinte i { transform: scale(.5); background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.astuce { margin-left: auto; font-size: .68rem; color: var(--texte-3); font-weight: 400; }
.annees { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.annee { position: relative; overflow: hidden; border-radius: var(--r-4); background: var(--fond); padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 3px; }
.annee span:first-child { font-size: .78rem; color: var(--texte-2); font-weight: 500; }
.annee b { font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.annee em { font-style: normal; font-size: .7rem; color: var(--texte-2); }
.annee .sous { font-size: .72rem; margin-top: 4px; }
.annee .sous .evolution { font-size: .66rem; }
.annee > i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--c); border-radius: 0 var(--r-1) var(--r-1) 0; transform-origin: left; transform: scaleX(0); }
.revele.vu .annee > i { animation: etire 1.2s var(--sortie) .3s both; }
/* tuiles qui apparaissent au défilement */
.tuile.revele { opacity: 0; transform: translateY(26px) scale(.985); animation: none !important; transition: opacity .6s var(--sortie), transform .8s var(--ressort), box-shadow .3s; transition-delay: calc(min(var(--i, 0), 3) * 60ms); }
.tuile.revele.vu { opacity: 1; transform: none; }
.revele .barres-h i { transform: scaleX(0); animation: none; }
.revele.vu .barres-h i { animation: etire 1s var(--sortie) both; }
.revele.vu .barres-h div:nth-child(2) i { animation-delay: .05s; } .revele.vu .barres-h div:nth-child(3) i { animation-delay: .1s; }
.revele.vu .barres-h div:nth-child(4) i { animation-delay: .15s; } .revele.vu .barres-h div:nth-child(5) i { animation-delay: .2s; }
.revele.vu .barres-h div:nth-child(n+6) i { animation-delay: .25s; }
.table-ratios td { transition: transform .2s var(--ressort); }
.table-ratios td:hover { transform: scale(1.08); }
.revele .table-ratios td { opacity: 0; }
.revele.vu .table-ratios td { animation: pop-entree .5s var(--ressort) both; }
@media (prefers-reduced-motion: reduce) {
  svg.graph rect, svg.graph .point { transform: none; } svg.graph polyline { stroke-dashoffset: 0; } svg.graph polyline.pointille { opacity: 1; }
  .tuile.revele { opacity: 1; transform: none; transition: none; } .revele .barres-h i, .annee > i { transform: none; } .revele .table-ratios td { opacity: 1; }
}

/* ------------------------------------------------------------------ tableau de bord v2 : sommaire, messages clés, jauges */
.sommaire { position: sticky; top: calc(env(safe-area-inset-top) + 74px); z-index: 20; display: flex; gap: 4px; padding: 5px; margin: 0 0 16px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 999px; box-shadow: 0 6px 24px rgba(11,13,18,.08), inset 0 0 0 1px rgba(255,255,255,.6); overflow-x: auto; scrollbar-width: none; isolation: isolate; }
.sommaire::-webkit-scrollbar { display: none; }
.sommaire button { position: relative; z-index: 1; flex: none; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 500; color: var(--texte-2);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: color .3s; white-space: nowrap; }
.sommaire button.actif { color: #fff; }
.sommaire .curseur { position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--encre);
  transition: transform .5s var(--ressort), width .5s var(--ressort); box-shadow: 0 4px 14px rgba(11,13,18,.25); }

.retenir { margin-bottom: 22px; }
.titre-retenir { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--texte-2); margin: 0 2px 10px; }
.titre-retenir svg { width: 16px; height: 16px; }
.cartes-retenir { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 14px; scrollbar-width: thin; }
.carte-retenir { scroll-snap-align: start; position: relative; overflow: hidden; background: var(--carte); border-radius: var(--r-5); padding: 16px 16px 14px;
  box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 6px; animation: monte .7s var(--ressort) both; animation-delay: calc(var(--i) * 70ms + 200ms);
  transition: transform .35s var(--ressort), box-shadow .35s; }
.carte-retenir:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: var(--ombre-haute); }
.carte-retenir::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; opacity: .14; background: var(--teinte, var(--bleu)); }
.carte-retenir.zone-ok { --teinte: var(--vert); } .carte-retenir.zone-moyen { --teinte: var(--orange); } .carte-retenir.zone-hors { --teinte: var(--rouge); }
.carte-retenir .pastille-ic { width: 32px; height: 32px; border-radius: var(--r-2); display: grid; place-items: center; color: #fff; background: var(--teinte, var(--bleu)); }
.carte-retenir .pastille-ic svg { width: 17px; height: 17px; }
.carte-retenir b { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.carte-retenir p { margin: 0; font-size: .78rem; color: var(--texte-2); line-height: 1.45; }

/* tuiles de ratios */
.tuile.ratio { align-items: stretch; text-align: left; gap: 6px; }
.tuile.ratio .etiquette { justify-content: flex-start; }
.jauge { position: relative; width: 100%; max-width: 190px; margin: 2px auto 0; }
.jauge svg { width: 100%; display: block; overflow: visible; }
.jauge .zones path { opacity: .9; }
.jauge .aiguille { transform-origin: 60px 58px; transform: rotate(-90deg); transition: transform 1.4s cubic-bezier(.34,1.56,.64,1) .2s; }
.revele.vu .jauge .aiguille, .tuile:not(.revele) .jauge .aiguille { transform: rotate(var(--angle)); }
.jauge .aiguille line { stroke: var(--encre); stroke-width: 3; stroke-linecap: round; }
.jauge .aiguille circle { fill: var(--encre); }
.jauge b { display: block; margin-top: 2px; text-align: center; font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; }
.jauge b.zone-ok { color: var(--vert); } .jauge b.zone-moyen { color: #c98500; } .jauge b.zone-hors { color: var(--rouge); }
.statut { align-self: center; font-size: .7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fond); color: var(--texte-2); margin-top: 6px; }
.statut.zone-ok { background: var(--vert-clair); color: var(--vert); } .statut.zone-moyen { background: #fff3d6; color: #b77800; } .statut.zone-hors { background: var(--rouge-clair); color: var(--rouge); }
.tuile.ratio .cible { text-align: center; font-size: .76rem; color: var(--texte-2); line-height: 1.5; }
.tuile.ratio .cible b { color: var(--encre); font-weight: 600; }
.tuile.ratio .cible span { font-size: .68rem; color: var(--texte-3); }
.tuile.ratio .bas { text-align: center; font-size: .68rem; color: var(--texte-3); }
.tuile.ratio.zone-hors { box-shadow: inset 0 0 0 1.5px rgba(229,72,77,.25), var(--ombre); }

/* tableaux de ratios (un mois par ligne : tient sur téléphone) */
.table-ratios table { table-layout: fixed; }
.table-ratios th:first-child { width: 64px; }
.table-ratios thead th { font-size: .68rem; text-align: center; }
.table-ratios tbody th { font-size: .74rem; }
.table-ratios tr.provisoire td { opacity: .45; font-style: italic; }
.table-ratios.annuel th:first-child { width: 42%; }
.table-ratios.annuel small { display: block; font-size: .6rem; color: var(--texte-3); font-weight: 400; }
.table-ratios td.repere { background: transparent; color: var(--texte-2); font-weight: 500; font-size: .7rem; }
.revele.vu .table-ratios tr td { animation-delay: calc(var(--i, 0) * 35ms); }

/* mini-courbes */
.sparkline { display: block; width: 100%; height: 34px; margin-top: 10px; overflow: visible; }
.sparkline polyline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.6s var(--sortie) .5s forwards; }
.revele .sparkline polyline { animation: none; }
.revele.vu .sparkline polyline { animation: trace 1.6s var(--sortie) .3s forwards; }
.legende-spark { font-size: .64rem; color: var(--texte-3); margin-top: 2px; }

/* carte principale : halo coloré qui respire */
.tuile.heros::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143,155,255,.55), rgba(25,46,213,0) 65%); filter: blur(10px); animation: flotte 11s ease-in-out infinite alternate-reverse; pointer-events: none; }
.tuile.heros > * { position: relative; z-index: 1; }
.geant { background: linear-gradient(180deg, #fff 30%, #dfe3ff); -webkit-background-clip: text; background-clip: text; }
.tuile.heros .geant { color: transparent; }

@media (max-width: 600px) {
  .sommaire { top: calc(env(safe-area-inset-top) + 64px); margin-left: -4px; margin-right: -4px; }
  .cartes-retenir { grid-auto-columns: 82%; }
  .table-ratios table { border-spacing: 2px; font-size: .7rem; }
  .table-ratios td { min-width: 0; padding: 6px 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .jauge .aiguille { transition: none; transform: rotate(var(--angle)); } .carte-retenir { animation: none; } .sparkline polyline { stroke-dashoffset: 0; animation: none; }
}

#contenu .section[id] { scroll-margin-top: 150px; }
@media (max-width: 600px) { #contenu .section[id] { scroll-margin-top: 130px; } }

.table-ratios td.zone-ok { background: var(--vert-clair); color: var(--vert); }
.table-ratios td.zone-moyen { background: #fff3d6; color: #b77800; }
.table-ratios td.zone-hors { background: var(--rouge-clair); color: var(--rouge); }

/* Tableau des ratios sur téléphone : en-têtes sur deux lignes, sans le signe % dans les cases */
@media (max-width: 560px) {
  .table-ratios:not(.annuel) th:first-child { width: 46px; }
  .table-ratios:not(.annuel) thead th { white-space: normal; font-size: .56rem; line-height: 1.1; padding: 2px 0; vertical-align: bottom; word-break: break-word; }
  .table-ratios:not(.annuel) tbody th { font-size: .66rem; padding: 2px; }
  .table-ratios:not(.annuel) td small { display: none; }
  .table-ratios:not(.annuel) td { padding: 6px 0; font-size: .72rem; border-radius: var(--r-1); }
}
.table-ratios td small { font-size: .75em; font-weight: 500; opacity: .8; }

/* Leviers d'action sous chaque jauge */
.leviers { margin-top: 4px; border-top: 1px solid var(--ligne, #eceef2); padding-top: 8px; font-size: .74rem; }
.leviers summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; color: var(--encre); padding: 4px 0; border-radius: 999px; transition: background .2s; }
.leviers summary::-webkit-details-marker { display: none; }
.leviers summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ressort); }
.leviers[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.leviers summary:hover { background: var(--fond); }
.leviers.zone-hors summary { color: var(--rouge); } .leviers.zone-moyen summary { color: #b77800; }
.leviers ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; text-align: left; }
.leviers li { position: relative; padding-left: 16px; color: var(--texte-2); line-height: 1.4; animation: pop-entree .4s var(--ressort) both; }
.leviers li:nth-child(2) { animation-delay: .05s; } .leviers li:nth-child(3) { animation-delay: .1s; } .leviers li:nth-child(4) { animation-delay: .15s; }
.leviers li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }

/* Conclusion : sur quoi travailler */
.plan-action { background: linear-gradient(160deg, #0b0d12 0%, #1a1f3a 100%); color: #fff; overflow: hidden; position: relative; }
.plan-action::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(25,46,213,.55), transparent 70%); pointer-events: none; }
.plan-action .etiquette { color: rgba(255,255,255,.7); }
.plan-action .chapeau { font-size: 1.05rem; line-height: 1.5; margin: 6px 0 16px; max-width: 720px; position: relative; }
.plan-action .chapeau b { color: #fff; } .plan-action .chapeau b.zone-ok { color: #5fe3a1; } .plan-action .chapeau b.zone-moyen { color: #ffcf5c; } .plan-action .chapeau b.zone-hors { color: #ff8a8d; }
.plan-action .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; position: relative; }
.plan-action .action { display: flex; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-4); padding: 14px; animation: pop-entree .6s var(--ressort) both; animation-delay: calc(var(--i, 0) * 90ms); transition: transform .25s var(--ressort), background .25s; }
.plan-action .action:hover { transform: translateY(-3px); background: rgba(255,255,255,.09); }
.plan-action .rang { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: #fff; color: #0b0d12; }
.plan-action .action.zone-hors .rang { background: #ff8a8d; } .plan-action .action.zone-moyen .rang { background: #ffcf5c; }
.plan-action .corps { flex: 1; min-width: 0; }
.plan-action .titre-action { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-action .de-a { font-size: .8rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; } .plan-action .de-a i { font-style: normal; opacity: .6; }
.plan-action .gain { font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; margin: 6px 0 4px; color: #5fe3a1; }
.plan-action .gain small { display: block; font-size: .68rem; font-weight: 400; color: rgba(255,255,255,.6); letter-spacing: 0; }
.plan-action .etape { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; background: rgba(255,255,255,.07); border-radius: var(--r-2); padding: 6px 10px; margin: 6px 0; color: rgba(255,255,255,.8); }
.plan-action .autre-voie { font-size: .76rem; line-height: 1.45; color: rgba(255,255,255,.75); margin: 8px 0; }
.plan-action .autre-voie b { color: #fff; }
.plan-action ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.plan-action li { font-size: .76rem; line-height: 1.4; color: rgba(255,255,255,.85); padding-left: 16px; position: relative; }
.plan-action li::before { content: "→"; position: absolute; left: 0; color: rgba(255,255,255,.45); }
.plan-action .ca-va { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .74rem; position: relative; }
.plan-action .ca-va span { color: rgba(255,255,255,.6); margin-right: 4px; }
.plan-action .ca-va em { font-style: normal; background: rgba(95,227,161,.15); color: #5fe3a1; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.plan-action .infos { color: rgba(255,255,255,.45); position: relative; }
@media (prefers-reduced-motion: reduce) { .plan-action .action, .leviers li { animation: none; } }
.plan-action .chapeau small { display: block; font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 4px; }
.plan-action .voies { display: grid; gap: 5px; font-size: .75rem; line-height: 1.4; color: rgba(255,255,255,.8); background: rgba(255,255,255,.05); border-radius: var(--r-3); padding: 10px; margin: 8px 0; }
.plan-action .voies > span { color: rgba(255,255,255,.55); }
.plan-action .voies b { color: #fff; }
.plan-action .ca-va em.zone-moyen { background: rgba(255,207,92,.15); color: #ffcf5c; }
.plan-action .ca-va.surveiller { margin-top: 14px; }
.plan-action .ca-va + .ca-va { margin-top: 8px; }
.tuile.ratio .leviers { margin-top: auto; }

/* Nouveaux services (ouverture 7 jours sur 7) */
.nouveaux-services .ns-haut { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 18px; }
.nouveaux-services .ns-label { font-size: .74rem; color: var(--texte-3); margin-bottom: 2px; }
.nouveaux-services .grand small { font-size: .9rem; color: var(--texte-3); font-weight: 500; }
.nouveaux-services .ns-projection { border-left: 1px solid var(--ligne, #eceef2); padding-left: 16px; }
.nouveaux-services .ns-projection .grand { color: var(--vert); }
.ns-jauge { position: relative; height: 12px; border-radius: 999px; background: var(--fond); margin: 8px 0 46px; }
.ns-jauge .ns-rempli { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8f9bff, var(--cobalt, #192ED5)); transform-origin: left; animation: etire 1.2s var(--sortie) both; min-width: 4px; }
.ns-jauge span { position: absolute; top: 18px; transform: translateX(-50%); font-size: .66rem; color: var(--texte-3); white-space: nowrap; }
.ns-jauge span i { position: absolute; left: 50%; top: -22px; width: 2px; height: 16px; border-radius: 2px; background: var(--texte-3); opacity: .5; }
.ns-jauge span.c { color: var(--vert); font-weight: 600; top: 30px; } .ns-jauge span.c i { background: var(--vert); opacity: 1; top: -34px; height: 28px; }
.ns-lignes { display: grid; gap: 12px; }
.ns-ligne { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr minmax(90px, auto); gap: 14px; align-items: center; animation: pop-entree .5s var(--ressort) both; animation-delay: calc(var(--i, 0) * 60ms); }
.ns-nom { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; } .ns-nom b { font-size: .86rem; font-weight: 600; }
.ns-nom .statut { font-size: .62rem; }
.statut.a-venir { background: var(--fond); color: var(--texte-3); }
.ns-barre { position: relative; height: 10px; border-radius: 999px; background: var(--fond); }
.ns-barre .ns-reel { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--cobalt, #192ED5); transform-origin: left; animation: etire 1s var(--sortie) both; }
.ns-ligne.zone-ok .ns-reel { background: var(--vert); } .ns-ligne.zone-moyen .ns-reel { background: var(--orange); } .ns-ligne.zone-hors .ns-reel { background: var(--rouge); }
.ns-barre em { position: absolute; top: -3px; width: 2px; height: 16px; border-radius: 2px; background: var(--texte-3); opacity: .35; transform: translateX(-1px); }
.ns-barre em.c { background: var(--vert); opacity: 1; }
.ns-val { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; } .ns-val small { display: block; font-size: .64rem; font-weight: 400; color: var(--texte-3); }
.ns-graph { margin-top: 16px; }
@media (max-width: 560px) {
  .nouveaux-services .ns-haut { grid-template-columns: 1fr; }
  .nouveaux-services .ns-projection { border-left: 0; padding-left: 0; border-top: 1px solid var(--ligne, #eceef2); padding-top: 12px; }
  .ns-ligne { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .ns-barre { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .ns-ligne, .ns-jauge .ns-rempli, .ns-barre .ns-reel { animation: none; } }
.ns-nom .statut { align-self: flex-start; margin: 0; }

/* ================================================================ volet des catégories (menu de gauche) */
.lien.categorie { overflow: visible; }
.lien.categorie .fleche-cat { position: absolute; right: -11px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: #2236e6; transform: rotate(45deg) scale(0); border-radius: 2px; transition: transform .35s var(--ressort); z-index: 31; pointer-events: none; }
.lien.categorie.ouvert { background: var(--bleu); color: #fff; box-shadow: 0 10px 24px -8px rgba(25,46,213,.6); }
.lien.categorie.ouvert svg { transform: scale(1.12) rotate(-6deg); }
.lien.categorie.ouvert .fleche-cat { transform: rotate(45deg) scale(1); }
.lien.categorie.actif:not(.ouvert) { color: var(--bleu); background: var(--bleu-clair); }
.lien.categorie.actif:not(.ouvert)::after { content: ""; position: absolute; left: -10px; top: 26%; bottom: 26%; width: 4px; border-radius: 0 var(--r-1) var(--r-1) 0; background: var(--bleu); animation: pop-entree .4s var(--ressort) both; }

#volet-voile { position: fixed; inset: 0 0 0 var(--rail); z-index: 29; background: rgba(12, 16, 48, .16); backdrop-filter: blur(3px) saturate(1.1); -webkit-backdrop-filter: blur(3px) saturate(1.1); opacity: 0; pointer-events: none; transition: opacity .4s var(--doux); }
body.volet-actif #volet-voile { opacity: 1; pointer-events: auto; }

#volet { position: fixed; z-index: 30; left: var(--rail); top: 10px; bottom: 10px; width: min(360px, calc(100vw - var(--rail) - 20px)); padding: 26px 18px 22px; border-radius: 0 var(--r-6) var(--r-6) 0;
  color: #fff; overflow: hidden; display: flex; flex-direction: column; gap: 18px; isolation: isolate;
  background: radial-gradient(120% 60% at 0% 0%, #3b52ff 0%, transparent 60%), radial-gradient(90% 70% at 100% 100%, #0a1477 0%, transparent 65%), linear-gradient(165deg, #2338ee 0%, #192ED5 45%, #0f1ea6 100%);
  box-shadow: 30px 0 60px -20px rgba(15, 25, 120, .55), inset 0 1px 0 rgba(255,255,255,.18);
  clip-path: circle(0px at 0px var(--oy, 50%)); }
#volet.ouvert { clip-path: circle(170% at 0px var(--oy, 50%)); transition: clip-path .8s cubic-bezier(.16, 1, .3, 1); }
#volet.change { transition: none; }
#volet.ferme { clip-path: circle(0px at 0px var(--oy, 50%)); transition: clip-path .4s cubic-bezier(.7, 0, .84, 0); }
#volet::before, #volet::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; }
#volet::before { width: 260px; height: 260px; left: -60px; top: 30%; background: #6f7dff; animation: aurore 9s ease-in-out infinite alternate; }
#volet::after { width: 220px; height: 220px; right: -70px; top: -40px; background: #00c2ff; opacity: .25; animation: aurore 11s ease-in-out infinite alternate-reverse; }
@keyframes aurore { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.15); } 100% { transform: translate(-20px, 40px) scale(.9); } }
.volet-lumiere { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.16), transparent 60%); transition: background .1s; }
.volet-fond { position: absolute; z-index: -1; right: -70px; bottom: -60px; width: 300px; height: 300px; opacity: 0; color: #fff; transform: rotate(-24deg) scale(.7); pointer-events: none; }
.volet-fond svg { width: 100%; height: 100%; stroke-width: .7; }
#volet.ouvert .volet-fond { opacity: .09; transform: rotate(-8deg) scale(1); transition: opacity 1.2s var(--doux) .15s, transform 1.4s var(--sortie) .1s; }

.volet-tete { display: flex; align-items: center; gap: 14px; padding: 0 6px; }
.volet-pastille { flex: none; width: 46px; height: 46px; border-radius: var(--r-4); display: grid; place-items: center; background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px -8px rgba(0,0,0,.35); }
.volet-pastille svg { width: 24px; height: 24px; }
.volet-tete h2 { margin: 0; font-size: 1.7rem; font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.volet-tete p { margin: 5px 0 0; font-size: .78rem; color: rgba(255,255,255,.72); line-height: 1.35; }
#volet.ouvert .volet-pastille { animation: volet-pop .7s var(--ressort) .08s both; }
#volet.ouvert .volet-tete h2 { animation: volet-monte .7s var(--sortie) .12s both; }
#volet.ouvert .volet-tete p { animation: volet-monte .7s var(--sortie) .18s both; }
@keyframes volet-pop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes volet-monte { from { transform: translateY(14px); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }

.volet-liste { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.volet-lien { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; cursor: pointer; color: #fff; font: inherit;
  padding: 10px 12px; border-radius: var(--r-4); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: background .25s var(--doux), transform .35s var(--ressort), border-color .25s, box-shadow .25s; opacity: 0; }
#volet.ouvert .volet-lien { animation: volet-entree .65s var(--ressort) both; animation-delay: calc(.14s + var(--i, 0) * 50ms); }
@keyframes volet-entree { from { opacity: 0; transform: translateX(-28px) scale(.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.volet-lien:hover, .volet-lien:focus-visible { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); transform: translateX(5px); outline: none; box-shadow: 0 12px 30px -14px rgba(0,0,0,.45); }
.volet-lien:active { transform: translateX(3px) scale(.98); }
.volet-ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-3); display: grid; place-items: center; background: rgba(255,255,255,.12); transition: transform .4s var(--ressort), background .25s; }
.volet-ic svg { width: 21px; height: 21px; }
.volet-lien:hover .volet-ic { transform: rotate(-8deg) scale(1.08); background: rgba(255,255,255,.22); }
.volet-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.volet-txt b { font-size: .92rem; font-weight: 600; letter-spacing: -.01em; }
.volet-txt small { font-size: .7rem; color: rgba(255,255,255,.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.volet-chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateX(-6px) rotate(45deg); opacity: 0; transition: transform .3s var(--ressort), opacity .2s; }
.volet-lien:hover .volet-chevron { opacity: .8; transform: translateX(0) rotate(45deg); }
.volet-lien .badge { background: #fff; color: var(--bleu); font-weight: 700; }
.volet-lien.actif { background: #fff; color: var(--bleu); border-color: #fff; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.volet-lien.actif .volet-ic { background: var(--bleu-clair); }
.volet-lien.actif small { color: var(--texte-2); }

/* Menu « Plus » du téléphone, rangé par catégories */
.menu-plus .plus-groupe { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.menu-plus .plus-cat { margin-top: 18px; }
.plus-cat-tete { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--r-5); color: #fff;
  background: radial-gradient(100% 120% at 0% 0%, #3b52ff, transparent 60%), linear-gradient(150deg, #2338ee, #192ED5 55%, #0f1ea6); box-shadow: 0 12px 26px -14px rgba(25,46,213,.7); }
.plus-cat-tete .volet-pastille { width: 38px; height: 38px; border-radius: var(--r-3); } .plus-cat-tete .volet-pastille svg { width: 20px; height: 20px; }
.plus-cat-tete b { display: block; font-size: 1.05rem; letter-spacing: -.02em; } .plus-cat-tete small { color: rgba(255,255,255,.75); font-size: .72rem; }
.plus-lien { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--ligne); background: #fff; border-radius: var(--r-4); padding: 10px; cursor: pointer; font: inherit; color: var(--encre); animation: pop-entree .5s var(--ressort) both; animation-delay: calc(var(--i, 0) * 25ms); }
.plus-lien .volet-ic { width: 34px; height: 34px; border-radius: var(--r-2); background: var(--bleu-clair); color: var(--bleu); } .plus-lien .volet-ic svg { width: 18px; height: 18px; }
.plus-lien b { display: block; font-size: .82rem; font-weight: 600; } .plus-lien small { display: block; font-size: .66rem; color: var(--texte-3); line-height: 1.3; }

@media (max-width: 900px) { #volet, #volet-voile { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #volet.ouvert, #volet.ferme { transition: none; } #volet::before, #volet::after { animation: none; }
  #volet.ouvert .volet-lien, #volet.ouvert .volet-pastille, #volet.ouvert .volet-tete h2, #volet.ouvert .volet-tete p { animation: none; opacity: 1; }
}

/* ================================================================ to-do process */
.todo-entete { display: flex; align-items: center; gap: 22px; background: linear-gradient(135deg, #fff 0%, #f3f5ff 100%); }
.todo-anneau { position: relative; flex: none; display: grid; place-items: center; }
.todo-anneau b { position: absolute; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; color: var(--bleu); }
.anneau-todo .fond { stroke: var(--bleu-clair); } .anneau-todo .plein { stroke: var(--bleu); transition: stroke-dashoffset .8s var(--sortie); }
.todo-liste.complet .anneau-todo .plein { stroke: var(--vert); }
.todo-entete .grand small { font-size: .85rem; color: var(--texte-3); font-weight: 500; }
.todo-moments { margin-top: 10px; } .puce.actif { background: var(--encre); color: #fff; }
.point-direct { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(18,161,80,.5); animation: pulse-direct 1.6s infinite; }
@keyframes pulse-direct { 0% { box-shadow: 0 0 0 0 rgba(18,161,80,.5); } 70% { box-shadow: 0 0 0 7px rgba(18,161,80,0); } 100% { box-shadow: 0 0 0 0 rgba(18,161,80,0); } }
.todo-titre { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.todo-titre b { display: block; font-size: 1.02rem; font-weight: 650; letter-spacing: -.015em; } .todo-titre .sous { font-size: .74rem; }
.todo-actions { display: flex; align-items: center; gap: 6px; }
.todo-barre { height: 4px; border-radius: var(--r-2); background: var(--fond); margin: 10px 0 6px; overflow: hidden; }
.todo-barre i { display: block; height: 100%; border-radius: var(--r-2); background: linear-gradient(90deg, #8f9bff, var(--bleu)); transition: width .6s var(--sortie); }
.todo-liste.complet .todo-barre i { background: var(--vert); }
.todo-liste.complet { box-shadow: 0 0 0 2px rgba(18,161,80,.35), var(--ombre, 0 1px 2px rgba(0,0,0,.04)); }
.todo-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.todo-section { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bleu); padding: 12px 4px 4px; }
.todo-case { width: 100%; display: flex; align-items: flex-start; gap: 12px; border: 0; background: transparent; text-align: left; font: inherit; color: var(--encre); padding: 10px 8px; border-radius: var(--r-3); cursor: pointer; transition: background .2s; }
.todo-case:hover { background: var(--fond); }
.todo-case .coche { flex: none; width: 26px; height: 26px; border-radius: var(--r-2); border: 2px solid #c9cedb; display: grid; place-items: center; transition: background .25s var(--doux), border-color .25s, transform .35s var(--ressort); margin-top: 1px; }
.todo-case .coche svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--sortie) .05s; }
.todo-case.fait .coche { background: var(--vert); border-color: var(--vert); transform: scale(1.08); }
.todo-case.fait .coche svg { stroke-dashoffset: 0; }
.todo-case:active .coche { transform: scale(.85); }
.todo-texte { flex: 1; font-size: .86rem; line-height: 1.45; position: relative; transition: color .3s; }
.todo-case.fait .todo-texte { color: var(--texte-3); }
.todo-texte::after { content: ""; position: absolute; left: 0; top: .75em; height: 1.5px; width: 0; background: var(--texte-3); transition: width .4s var(--sortie); }
.todo-case.fait .todo-texte::after { width: 0; }
.todo-heure { flex: none; font-size: .68rem; color: var(--vert); font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 4px; }
.todo-regle summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.todo-regle summary::-webkit-details-marker { display: none; }
.todo-regle summary .volet-ic { background: var(--bleu-clair); color: var(--bleu); width: 36px; height: 36px; }
.todo-regle summary b { flex: 1; } .todo-regle .volet-chevron { opacity: .5; transform: rotate(135deg); color: var(--texte-3); }
.todo-regle[open] .volet-chevron { transform: rotate(-45deg); }
.todo-regle ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: .84rem; line-height: 1.5; color: var(--texte-2); }
.todo-regle li.todo-section { list-style: none; margin-left: -18px; }
.confetti { position: fixed; z-index: 100; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: confetti 1.2s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes confetti { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--r)); opacity: 0; } }

/* ================================================================ ratio boissons */
.rb-outils, .fv-outils { display: grid; gap: 12px; }
.rb-outils input, .fv-outils input { width: 100%; font: inherit; font-size: .95rem; padding: 12px 16px; border-radius: var(--r-3); border: 1px solid var(--ligne); background: var(--fond); }
.rb-outils .puce small, .fv-outils .puce small { opacity: .6; font-size: .7rem; }
.rb-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.rb-tete b { display: block; font-size: 1rem; font-weight: 650; } .rb-tete .sous { font-size: .72rem; }
.rb-lignes { display: grid; gap: 2px; }
.rb-ligne { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) 58px; align-items: center; gap: 12px; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; padding: 9px 8px; border-radius: var(--r-3); cursor: pointer; transition: background .2s, transform .25s var(--ressort); }
.rb-ligne:hover { background: var(--fond); transform: translateX(3px); }
.rb-nom { font-size: .84rem; font-weight: 550; min-width: 0; } .rb-nom small { display: block; font-size: .68rem; color: var(--texte-3); font-weight: 400; }
.rb-barre { position: relative; height: 8px; border-radius: var(--r-2); background: var(--fond); }
.rb-barre i { position: absolute; inset: 0 auto 0 0; border-radius: var(--r-2); background: var(--vert); transform-origin: left; animation: etire .9s var(--sortie) both; }
.rb-barre i.zone-moyen { background: var(--orange); } .rb-barre i.zone-hors { background: var(--rouge); }
.rb-barre em { position: absolute; top: -4px; width: 2px; height: 16px; border-radius: 2px; background: var(--encre); opacity: .45; }
.rb-pct { text-align: right; font-size: .84rem; font-variant-numeric: tabular-nums; }
.rb-ligne.zone-hors .rb-pct { color: var(--rouge); } .rb-ligne.zone-moyen .rb-pct { color: #b77800; } .rb-ligne.zone-ok .rb-pct { color: var(--vert); }

/* ================================================================ fiches de vente */
.fiches-vente { display: grid; gap: 14px; }
.fv-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fv-carte { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: var(--encre); border: 1px solid var(--ligne); background: #fff; border-radius: var(--r-5); padding: 18px 18px 16px; cursor: pointer; min-height: 170px;
  animation: pop-entree .5s var(--ressort) both; animation-delay: calc(var(--i, 0) * 35ms); transition: transform .35s var(--ressort), box-shadow .3s; --t: var(--bleu); --t2: var(--bleu-clair); }
.fv-carte:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 18px 40px -20px rgba(16,24,64,.35); }
.fv-bandeau { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--t); }
.fv-carte::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--t2); opacity: .7; transition: transform .5s var(--sortie); z-index: 0; }
.fv-carte:hover::after { transform: scale(1.4); }
.fv-carte > * { position: relative; z-index: 1; }
.fv-sous { font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--t); }
.fv-carte b { font-size: 1.08rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.fv-extrait { font-size: .76rem; color: var(--texte-2); line-height: 1.45; }
.t-blanc { --t: #c9a227; --t2: #fbf3d5; } .t-rouge { --t: #8e1b3a; --t2: #f7e1e7; } .t-rose { --t: #e0648a; --t2: #fde6ee; } .t-orange { --t: #e07a1f; --t2: #fdebd8; }
.t-petillant { --t: #b38b00; --t2: #fff6cc; } .t-fromage { --t: #d89b00; --t2: #fff3d1; } .t-fournisseur { --t: #12a150; --t2: #e3f6eb; } .t-bar { --t: var(--bleu); --t2: var(--bleu-clair); }
.fiche-vente .fiche-tete { align-items: flex-start; } .fiche-vente .fiche-tete h2 { margin-top: 4px; }
.fv-champs { display: grid; gap: 10px; margin-top: 10px; }
.fv-champ { background: var(--fond); border-radius: var(--r-4); padding: 12px 14px; border-left: 4px solid var(--t); animation: pop-entree .45s var(--ressort) both; animation-delay: calc(var(--i, 0) * 40ms); }
.fv-champ span { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); }
.fv-champ p { margin: 4px 0 0; font-size: .9rem; line-height: 1.55; }

/* ================================================================ réception */
.rec-form form { margin-top: 12px; }
.choix-oui-non { display: inline-flex; gap: 6px; } .choix-oui-non input { display: none; }
.choix-oui-non label { padding: 8px 18px; border-radius: 999px; background: var(--fond); cursor: pointer; font-weight: 600; transition: background .2s, color .2s; }
.choix-oui-non input:checked + label { background: var(--encre); color: #fff; }
#c-non:checked + label { background: var(--rouge); }
.photo-zone { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 110px; border: 2px dashed #c9cedb; border-radius: var(--r-4); cursor: pointer; color: var(--texte-2); text-align: center; background: var(--fond) var(--apercu, none) center / cover no-repeat; transition: border-color .2s, background-color .2s; overflow: hidden; }
.photo-zone:hover { border-color: var(--bleu); color: var(--bleu); }
.photo-zone svg { width: 28px; height: 28px; } .photo-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-zone em { font-size: .7rem; font-style: normal; color: var(--bleu); }
.photo-zone.rempli { border-style: solid; border-color: var(--vert); color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.rec-familles .puce { cursor: pointer; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rec-seuil { display: block; margin-top: 6px; font-size: .74rem; color: var(--texte-3); }
.rec-seuil.zone-ok { color: var(--vert); font-weight: 600; } .rec-seuil.zone-hors { color: var(--rouge); font-weight: 600; }
.rec-jour { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ligne); }
.rec-jour:first-of-type { border-top: 0; }
.rec-date { font-size: .78rem; font-weight: 650; color: var(--texte-2); text-transform: capitalize; padding-top: 6px; }
.rec-items { display: grid; gap: 8px; }
.rec-item { display: flex; gap: 12px; align-items: center; } .rec-item.nc b { color: var(--rouge); }
.rec-vignette { flex: none; width: 52px; height: 52px; border-radius: var(--r-3); overflow: hidden; background: var(--fond); display: grid; place-items: center; color: var(--texte-3); font-size: .7rem; font-weight: 700; }
.rec-vignette img { width: 100%; height: 100%; object-fit: cover; } .rec-vignette svg { width: 22px; height: 22px; }
.rec-item.trac .rec-vignette.vide { color: var(--orange); }
@media (max-width: 560px) { .rb-ligne { grid-template-columns: minmax(0, 1fr) 54px; } .rb-barre { grid-column: 1 / -1; grid-row: 2; } .rec-jour { grid-template-columns: 1fr; gap: 6px; } .todo-entete { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .fv-carte, .fv-champ, .rb-barre i { animation: none; } }
.tuile.todo-entete { flex-direction: row; align-items: center; }
.todo-entete .grand small { display: inline; line-height: 1.2; }
.todo-liste, .todo-regle, .rb-cat { animation: pop-entree .55s var(--ressort) both; animation-delay: calc(var(--i, 0) * 45ms); }
.todo-liste[hidden], .rb-cat[hidden], .rb-ligne[hidden], .fv-carte[hidden] { display: none !important; }
.grand small, .geant small { letter-spacing: 0; }
.todo-liste, .todo-regle { align-self: start; }
.rec-form .grille-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; align-items: end; }
.rec-form .grille-form > label { display: flex; flex-direction: column; gap: 6px; font-size: .76rem; color: var(--texte-2); min-width: 0; }
.rec-form .grille-form input:not([type=radio]):not([type=file]), .rec-form .grille-form select { width: 100%; box-sizing: border-box; }
.rec-form .photo-zone, .rec-form .rec-familles, .rec-form button, .rec-form .deux { grid-column: 1 / -1; }
.rec-form .photo-zone { flex-direction: column !important; font-size: .82rem; }
.rec-form button { justify-self: stretch; padding: 14px; }
.rec-form .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rec-form .deux label { display: flex; flex-direction: column; gap: 6px; font-size: .76rem; color: var(--texte-2); }
.rec-form label:has(.rec-seuil) { grid-column: 1 / -1; }
@media (max-width: 560px) { .rec-form .grille-form { grid-template-columns: 1fr; } }

/* ================================================================ icônes riches des catégories (v2) */
.ic-riche .aplat { fill: currentColor; stroke: none; opacity: .2; }
.ic-riche .a2 { opacity: .3; } .ic-riche .a3 { opacity: .42; }
.ic-riche .reflet { stroke-width: 1.4; opacity: .55; }
.ic-riche .vapeur { opacity: 0; stroke-width: 1.4; transform: translateY(2px); transition: opacity .3s, transform .5s var(--sortie); }
.ic-riche .etincelle { stroke-width: 1.5; transform-origin: 19.2px 3px; transform: scale(.6); opacity: .6; transition: transform .4s var(--ressort), opacity .3s; }
.ic-riche .pointe { stroke-width: 1.7; }
.ic-riche .ic-toque { transform-origin: 12px 20px; transition: transform .5s var(--ressort); }
.ic-riche .ic-cloche-dome { transform-origin: 4px 16.6px; transition: transform .55s var(--ressort); }
.lien.categorie svg.ic-riche { width: 26px; height: 26px; }
/* survol / volet ouvert : chaque icône a son petit geste */
.lien.categorie:hover .ic-toque, .lien.categorie.ouvert .ic-toque { animation: toque-danse .7s var(--ressort); }
@keyframes toque-danse { 0% { transform: none; } 30% { transform: rotate(-10deg) translateY(-1px); } 60% { transform: rotate(7deg); } 100% { transform: none; } }
.lien.categorie:hover .ic-cloche-dome, .lien.categorie.ouvert .ic-cloche-dome, .volet-pastille .ic-cloche-dome { transform: translateY(-1.6px) rotate(-9deg); }
.lien.categorie:hover .vapeur, .lien.categorie.ouvert .vapeur, .volet-pastille .vapeur { opacity: .9; transform: none; animation: vapeur 1.6s ease-in-out infinite; }
@keyframes vapeur { 0%, 100% { stroke-dashoffset: 0; transform: translateY(0); opacity: .9; } 50% { transform: translateY(-1.2px); opacity: .5; } }
.lien.categorie:hover .etincelle, .lien.categorie.ouvert .etincelle, .volet-pastille .etincelle { opacity: 1; animation: etincelle 1.4s var(--ressort) infinite; }
@keyframes etincelle { 0%, 100% { transform: scale(.7) rotate(0); } 50% { transform: scale(1.25) rotate(45deg); } }
.lien.categorie:hover .ic-bouclier .coche-ic, .lien.categorie.ouvert .ic-bouclier .coche-ic, .volet-pastille .coche-ic { stroke-dasharray: 1; animation: trace-ic .6s var(--sortie) both; }
.lien.categorie:hover .ic-graphe .courbe, .lien.categorie.ouvert .ic-graphe .courbe, .volet-pastille .courbe { stroke-dasharray: 1; animation: trace-ic .9s var(--sortie) both; }
.lien.categorie:hover .ic-graphe .aplat, .lien.categorie.ouvert .ic-graphe .aplat, .volet-pastille .ic-graphe .aplat { transform-box: fill-box; transform-origin: bottom; animation: barre-ic .6s var(--ressort) both; }
.ic-graphe .a2 { animation-delay: .06s !important; } .ic-graphe .a3 { animation-delay: .12s !important; }
@keyframes trace-ic { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes barre-ic { from { transform: scaleY(.2); } to { transform: none; } }
.lien.categorie.ouvert .ic-riche .aplat { opacity: .35; }

/* ================================================================ ouverture du volet (v2) */
/* rideaux de lumière qui balaient le volet juste après l'ouverture en cercle */
#volet .rideau { position: absolute; inset: 0; z-index: 5; pointer-events: none; transform-origin: right; transform: scaleX(1); }
#volet .rideau.r1 { background: linear-gradient(100deg, #c9d0ff, #8f9bff); }
#volet .rideau.r2 { background: linear-gradient(100deg, #5b6dff, #2b40f0); }
#volet.ouvert .rideau.r1 { animation: rideau .7s cubic-bezier(.7, 0, .2, 1) .05s both; }
#volet.ouvert .rideau.r2 { animation: rideau .75s cubic-bezier(.7, 0, .2, 1) .16s both; }
#volet.change .rideau { animation: rideau .55s cubic-bezier(.7, 0, .2, 1) both !important; }
#volet.change .rideau.r2 { animation-delay: .08s !important; }
#volet:not(.ouvert) .rideau { transform: scaleX(1); }
@keyframes rideau { 0% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
#volet.ouvert { transition: clip-path .75s cubic-bezier(.76, 0, .24, 1); }

/* grande icône de fond qui se dessine */
.volet-fond svg { stroke-width: .5; }
.volet-fond svg [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
#volet.ouvert .volet-fond svg [pathLength] { animation: trace-ic 1.8s cubic-bezier(.65, 0, .35, 1) .45s forwards; }
#volet.ouvert .volet-fond { opacity: .14; transform: rotate(-8deg) scale(1); transition: opacity .6s var(--doux) .4s, transform 1.6s var(--sortie) .3s; }
.volet-fond .aplat { opacity: .12; }

/* pastille : rebond + onde qui s'élargit */
.volet-pastille { position: relative; }
.volet-pastille svg.ic-riche { width: 28px; height: 28px; }
.volet-pastille .onde { position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255,255,255,.6); opacity: 0; pointer-events: none; }
#volet.ouvert .volet-pastille .onde { animation: onde 1.1s var(--sortie) .55s; }
@keyframes onde { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
#volet.ouvert .volet-pastille { animation: volet-pop .8s var(--ressort) .42s both; }

/* titre lettre par lettre */
.volet-tete h2 { display: flex; overflow: hidden; padding-bottom: 2px; }
.volet-tete h2 span { display: inline-block; white-space: pre; }
#volet.ouvert .volet-tete h2 { animation: none; }
#volet.ouvert .volet-tete h2 span { animation: lettre .8s cubic-bezier(.2, .9, .2, 1.1) both; animation-delay: calc(.48s + var(--c) * 38ms); }
@keyframes lettre { from { transform: translateY(110%) rotate(12deg); opacity: 0; } to { transform: none; opacity: 1; } }
#volet.ouvert .volet-tete p { animation: volet-monte .7s var(--sortie) .7s both; }

/* écrans qui basculent en 3D, en cascade */
.volet-liste { perspective: 900px; }
#volet.ouvert .volet-lien { animation: volet-entree3d .8s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(.55s + var(--i, 0) * 60ms); transform-origin: 50% 0; }
#volet.change .volet-lien { animation-delay: calc(.32s + var(--i, 0) * 50ms); }
#volet.change .volet-tete h2 span { animation-delay: calc(.25s + var(--c) * 30ms); }
#volet.change .volet-pastille { animation-delay: .2s; }
@keyframes volet-entree3d { from { opacity: 0; transform: rotateX(-75deg) translateY(18px) translateZ(-60px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.volet-lien { transform-style: preserve-3d; }
.volet-lien:hover, .volet-lien:focus-visible { transform: perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateX(4px) translateZ(8px); }
.volet-lien::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 66%); background-size: 250% 100%; background-position: 120% 0; }
.volet-lien:hover::after { opacity: 1; animation: brillance 1s var(--doux); }
@keyframes brillance { from { background-position: 120% 0; } to { background-position: -40% 0; } }

/* bouton de la catégorie : onde au moment de l'ouverture */
.lien.categorie::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--bleu); opacity: 0; pointer-events: none; }
.lien.categorie.ouvert::before { animation: onde .9s var(--sortie); }

@media (prefers-reduced-motion: reduce) {
  #volet .rideau { display: none; }
  #volet.ouvert .volet-lien, #volet.ouvert .volet-tete h2 span, #volet.ouvert .volet-pastille { animation: none; opacity: 1; }
  .volet-fond svg [pathLength] { stroke-dashoffset: 0; animation: none !important; }
}

/* ================================================================ scanner et appareil photo */
.scanner { position: fixed; inset: 0; z-index: 200; background: #05081e; color: #fff; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transform: scale(1.04); transition: opacity .3s var(--doux), transform .4s var(--sortie); }
.scanner.ouvert { opacity: 1; transform: none; } .scanner.ferme { opacity: 0; transform: scale(.98); pointer-events: none; }
.sc-camera { position: absolute; inset: 0; overflow: hidden; }
.sc-camera video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.scanner.camera-ok video { opacity: 1; }
.sc-cadre { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sc-flash.go { animation: sc-flash .45s ease-out; }
@keyframes sc-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.sc-message { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: rgba(255,255,255,.8); font-size: .95rem; padding: 0 30px; }
.sc-haut, .sc-bas { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 18px 16px; background: linear-gradient(180deg, rgba(5,8,30,.75), transparent); }
.sc-bas { grid-row: 3; padding: 20px 22px max(22px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(5,8,30,.8), transparent); }
.sc-titre { text-align: center; display: flex; flex-direction: column; gap: 2px; } .sc-titre b { font-size: 1rem; letter-spacing: -.01em; } .sc-titre span { font-size: .74rem; color: rgba(255,255,255,.7); }
.sc-rond { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s, transform .25s var(--ressort); }
.sc-rond:hover { background: rgba(255,255,255,.24); } .sc-rond:active { transform: scale(.9); } .sc-rond svg { width: 22px; height: 22px; }
.sc-mode-doc.actif { background: #fff; color: var(--bleu); }
.sc-declencheur { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px; cursor: pointer; transition: transform .2s var(--ressort); }
.sc-declencheur i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .2s var(--ressort), background .2s; }
.sc-declencheur:active i { transform: scale(.82); background: #c9d0ff; }
.scanner.mode-scan.feuille-vue .sc-declencheur { border-color: #7d8cff; box-shadow: 0 0 0 6px rgba(125,140,255,.25); }
.sc-terminer { min-width: 120px; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 8px; border-radius: 999px; border: 0; cursor: pointer; background: var(--bleu); color: #fff; font: inherit; font-weight: 600; transition: opacity .2s, transform .3s var(--ressort); }
.sc-terminer:disabled { opacity: .35; cursor: default; background: rgba(255,255,255,.18); }
.sc-terminer small { min-width: 22px; height: 22px; border-radius: var(--r-2); background: #fff; color: var(--bleu); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.sc-terminer.pop { animation: pop-entree .5s var(--ressort); }
.sc-terminer.calcul { opacity: .8; pointer-events: none; }
.sc-vignettes { display: flex; } .sc-vignettes i { width: 34px; height: 42px; border-radius: var(--r-1); background: #fff center / cover; border: 2px solid #fff; margin-left: -18px; box-shadow: 0 4px 10px rgba(0,0,0,.35); animation: sc-vignette .5s var(--ressort) both; }
.sc-vignettes i:first-child { margin-left: 0; } .sc-vignettes i:nth-last-child(n+4) { display: none; }
@keyframes sc-vignette { from { transform: translateY(-60px) scale(1.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-ajuster { position: absolute; inset: 0; z-index: 5; background: #05081e; display: grid; grid-template-rows: 1fr auto; animation: pop-entree .35s var(--sortie); }
.sc-zone { position: relative; display: grid; place-items: center; padding: 70px 24px 12px; touch-action: none; overflow: hidden; }
.sc-zone img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-1); user-select: none; -webkit-user-drag: none; }
.sc-poly { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sc-coin { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255,255,255,.18); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: grab; touch-action: none; transition: transform .15s; }
.sc-coin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #7d8cff; }
.sc-coin.saisi { transform: scale(1.35); cursor: grabbing; }
.sc-ajuster-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px max(20px, env(safe-area-inset-bottom)); }
.sc-ajuster-bas span { font-size: .78rem; color: rgba(255,255,255,.6); text-align: center; }
.sc-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); }
.sc-btn svg { width: 18px; height: 18px; } .sc-btn.principal { background: #fff; color: var(--bleu); }
.sc-ajuster.calcul .sc-btn.principal { opacity: .6; pointer-events: none; }
.sc-ajuster.calcul .sc-btn.principal::after { content: "…"; }
.sc-toast { position: absolute; z-index: 9; left: 50%; top: 90px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--encre); font-size: .8rem; font-weight: 600; opacity: 0; pointer-events: none; }
.sc-toast.go { animation: sc-toast 1.8s ease both; }
@keyframes sc-toast { 0% { opacity: 0; transform: translate(-50%, -8px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (max-width: 560px) { .sc-ajuster-bas span { display: none; } .sc-terminer { min-width: 0; } .sc-terminer b { display: none; } }

/* ================================================================ réception v2 (scan + photos) */
.reception2 { display: grid; gap: 22px; }
.rec-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rec-action { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; gap: 14px 16px; padding: 22px; border-radius: var(--r-6); color: #fff; min-height: 230px; isolation: isolate;
  background: radial-gradient(120% 90% at 0% 0%, #3b52ff, transparent 60%), linear-gradient(150deg, #2338ee, #192ED5 55%, #0f1ea6); box-shadow: 0 24px 50px -28px rgba(25,46,213,.75); animation: pop-entree .6s var(--ressort) both; }
.rec-action.trac { background: radial-gradient(120% 90% at 100% 0%, #2a3150, transparent 60%), linear-gradient(150deg, #1b2033, #0b0d12); box-shadow: 0 24px 50px -28px rgba(10,12,20,.8); animation-delay: .08s; }
.rec-action::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.07); }
.rec-action-ic { width: 52px; height: 52px; border-radius: var(--r-4); display: grid; place-items: center; background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.rec-action-ic svg { width: 26px; height: 26px; }
.rec-action-txt h3 { margin: 2px 0 4px; font-size: 1.3rem; letter-spacing: -.025em; } .rec-action-txt p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.72); line-height: 1.45; }
.rec-gros { grid-column: 1 / -1; align-self: end; display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; border: 0; border-radius: var(--r-5); cursor: pointer; font: inherit; font-size: 1.05rem; font-weight: 650; color: var(--bleu); background: #fff; box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); transition: transform .3s var(--ressort), box-shadow .3s; }
.rec-action.trac .rec-gros { color: var(--encre); }
.rec-gros:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 18px 36px -14px rgba(0,0,0,.55); } .rec-gros:active { transform: scale(.97); }
.rec-gros svg { width: 22px; height: 22px; }
.rec-compteur { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.14); }
.rec-familles2 { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: var(--r-4); background: rgba(255,255,255,.08); }
.rec-familles2 button { position: relative; z-index: 1; height: 40px; border: 0; background: none; color: rgba(255,255,255,.7); font: inherit; font-weight: 600; cursor: pointer; transition: color .25s; }
.rec-familles2 button.actif { color: #fff; }
.rec-glisseur { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: var(--r-3); background: #e5484d; transition: transform .45s var(--ressort), width .3s, background .3s; }
.rec-glisseur.f-poisson { background: #2b7fff; } .rec-glisseur.f-bof { background: #e3a008; }
.rec-historique { display: grid; gap: 20px; }
.rec-jour2 h4 { margin: 0 0 10px; font-size: 1rem; letter-spacing: -.01em; text-transform: capitalize; } .rec-jour2 h4 small { font-weight: 500; color: var(--texte-3); font-size: .76rem; text-transform: none; margin-left: 6px; }
.rec-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rec-carte { display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border: 1px solid var(--ligne); border-radius: var(--r-5); background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--encre); animation: pop-entree .5s var(--ressort) both; animation-delay: calc(var(--i, 0) * 35ms); transition: transform .3s var(--ressort), box-shadow .3s; }
.rec-carte:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(16,24,64,.35); }
.rec-image { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-3); overflow: hidden; background: var(--fond); }
.rec-carte.bl .rec-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rec-image.pile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-3); transform: translate(calc(var(--k) * 6px), calc(var(--k) * -6px)) rotate(calc(var(--k) * 3deg)); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.rec-image.pile img:nth-child(1) { z-index: 3; transform: none; } .rec-image.pile img:nth-child(2) { z-index: 2; } .rec-image.pile img:nth-child(3) { z-index: 1; }
.rec-pdf { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--texte-3); letter-spacing: .1em; }
.rec-legende b { display: block; font-size: .86rem; } .rec-legende small { font-size: .7rem; color: var(--texte-3); }
.rec-carte.trac .rec-legende b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--texte-3); vertical-align: 1px; }
.rec-carte.f-viande .rec-legende b::before { background: #e5484d; } .rec-carte.f-poisson .rec-legende b::before { background: #2b7fff; } .rec-carte.f-bof .rec-legende b::before { background: #e3a008; }
.rec-envoi { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-4); background: var(--bleu-clair); color: var(--bleu); font-weight: 600; font-size: .88rem; }
.rec-envoi i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.rec-vide { display: grid; justify-items: center; gap: 6px; padding: 40px; border: 2px dashed var(--ligne); border-radius: var(--r-5); color: var(--texte-3); text-align: center; } .rec-vide svg { width: 32px; height: 32px; } .rec-vide b { color: var(--encre); }
.rec-archives { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .78rem; color: var(--texte-3); }
.rec-archives a { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne); color: var(--encre); text-decoration: none; font-weight: 550; }
.rec-archives a:hover { border-color: var(--bleu); color: var(--bleu); }
.rec-pdf-vue { width: 100%; height: min(70vh, 900px); border: 0; border-radius: var(--r-4); background: var(--fond); margin: 10px 0; }
.rec-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.rec-photos a { animation: pop-entree .5s var(--ressort) both; animation-delay: calc(var(--i) * 60ms); } .rec-photos img { width: 100%; border-radius: var(--r-4); display: block; }
.lien-reception { text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
@media (max-width: 760px) { .rec-actions { grid-template-columns: 1fr; } .rec-action { min-height: 0; } }

/* ================================================================ chat v2 : salons séparés */
.s-cuisine, .chat2.salon-cuisine { --s: #f2660c; --s2: #fff1e7; --s3: #ffd9bf; }
.s-salle, .chat2.salon-salle { --s: #192ED5; --s2: #eef0ff; --s3: #cfd5ff; }
.s-tous, .chat2.salon-tous { --s: #12a150; --s2: #e7f7ee; --s3: #bfe9cf; }
.chat2 { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; height: calc(100vh - 130px); min-height: 520px; }
.salons { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.salon { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid transparent; border-radius: var(--r-5); background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--encre);
  box-shadow: 0 1px 2px rgba(16,24,40,.04); animation: pop-entree .5s var(--ressort) both; animation-delay: calc(var(--i, 0) * 60ms); transition: transform .3s var(--ressort), box-shadow .3s, border-color .3s, background .3s; }
.salon:hover { transform: translateX(3px); box-shadow: 0 12px 26px -16px rgba(16,24,64,.3); }
.salon.actif { border-color: var(--s3); background: linear-gradient(135deg, #fff 30%, var(--s2)); box-shadow: 0 16px 32px -18px var(--s); }
.salon.actif::before { content: ""; position: absolute; left: -1px; top: 18%; bottom: 18%; width: 4px; border-radius: 0 var(--r-1) var(--r-1) 0; background: var(--s); animation: pop-entree .4s var(--ressort); }
.salon-ic { flex: none; width: 46px; height: 46px; border-radius: var(--r-4); display: grid; place-items: center; color: var(--s); background: var(--s2); transition: transform .4s var(--ressort), background .3s, color .3s; }
.salon-ic svg { width: 24px; height: 24px; }
.salon.actif .salon-ic { background: var(--s); color: #fff; transform: rotate(-6deg); }
.salon.actif .salon-ic .aplat { opacity: .35; }
.salon-txt { min-width: 0; } .salon-txt b { display: block; font-size: .95rem; font-weight: 650; letter-spacing: -.01em; }
.salon-txt small { display: block; font-size: .74rem; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.salon.non-lu .salon-txt small { color: var(--encre); font-weight: 600; }
.salon-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .68rem; color: var(--texte-3); }
.salon .point-nouveau { width: 10px; height: 10px; border-radius: 50%; background: var(--s); transform: scale(0); transition: transform .3s var(--ressort); }
.salon.non-lu .point-nouveau { transform: scale(1); animation: pulse-salon 1.8s infinite; }
@keyframes pulse-salon { 0% { box-shadow: 0 0 0 0 var(--s3); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.salons-pied { margin-top: auto; }
.qui-ecrit { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--ligne); border-radius: var(--r-4); background: transparent; cursor: pointer; font: inherit; color: var(--encre); text-align: left; }
.qui-ecrit span { flex: 1; } .qui-ecrit small { display: block; font-size: .66rem; color: var(--texte-3); } .qui-ecrit b { font-size: .88rem; } .qui-ecrit em { font-style: normal; font-size: .72rem; color: var(--bleu); }
.avatar-chat { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; background: var(--c, var(--bleu)); box-shadow: inset 0 -6px 12px rgba(0,0,0,.12); }
.avatar-chat.petit { width: 26px; height: 26px; font-size: .66rem; border: 2px solid #fff; margin-left: -8px; } .avatar-chat.plus { background: var(--fond); color: var(--texte-2); }
.avatar-vide { width: 34px; flex: none; }

.conversation { min-height: 0; display: grid; grid-template-rows: auto auto 1fr auto; background: #fff; border-radius: var(--r-6); overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 20px 50px -34px rgba(16,24,64,.35); position: relative; }
.conversation::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: radial-gradient(80% 100% at 50% 0%, var(--s2), transparent 70%); pointer-events: none; transition: background .5s; }
.chat2.change .fil2 { animation: fil-change .45s var(--sortie); }
@keyframes fil-change { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.conv-tete { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--ligne); flex-wrap: wrap; }
.salon-ic.grand { width: 50px; height: 50px; border-radius: var(--r-4); background: var(--s); color: #fff; box-shadow: 0 12px 24px -12px var(--s); }
.conv-titre { flex: 1; min-width: 140px; } .conv-titre h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; } .conv-titre span { font-size: .76rem; color: var(--texte-3); }
.conv-avatars { display: flex; padding-left: 8px; }
.pastille-passation { font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff3d6; color: #a46a00; }
.pastille-passation.faite { background: #e3f6eb; color: var(--vert); }
.epingles2 { position: relative; display: grid; gap: 8px; padding: 0 16px; }
.epingles2:not(:empty) { padding-top: 12px; }
.epingle2 { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-4); background: linear-gradient(135deg, #fff0f0, #ffe1e2); border: 1px solid #ffc9cb; animation: pop-entree .5s var(--ressort) both; }
.epingle-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--rouge); color: #fff; font-weight: 800; animation: pulse-direct 1.6s infinite; }
.epingle2 > div { flex: 1; } .epingle2 .meta { font-size: .7rem; color: var(--rouge); } .epingle2 p { margin: 2px 0 0; font-size: .9rem; }
.fil2 { position: relative; overflow-y: auto; padding: 16px 18px 10px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; }
.fil2 .jour-sep { text-align: center; margin: 14px 0 8px; } .fil2 .jour-sep span { font-size: .7rem; font-weight: 600; color: var(--texte-3); background: var(--fond); padding: 4px 12px; border-radius: 999px; text-transform: capitalize; }
.fil-vide { margin: auto; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--texte-3); } .fil-vide b { color: var(--encre); font-size: 1.05rem; }
.msg2 { position: relative; display: flex; align-items: flex-end; gap: 8px; max-width: min(78%, 620px); }
.msg2.debut { margin-top: 10px; }
.msg2.moi { align-self: flex-end; flex-direction: row-reverse; }
.msg-corps { display: flex; flex-direction: column; min-width: 0; }
.msg2.moi .msg-corps { align-items: flex-end; }
.msg-auteur { font-size: .72rem; font-weight: 650; margin: 0 0 3px 12px; }
.bulle2 { position: relative; padding: 9px 14px 8px; border-radius: var(--r-5); background: var(--fond); line-height: 1.45; font-size: .92rem; word-break: break-word; }
.bulle2 p { margin: 0; display: inline; } .bulle2 time { float: right; margin: 6px 0 -2px 10px; font-size: .62rem; color: var(--texte-3); }
.msg2.autre .bulle2 { border-bottom-left-radius: var(--r-1); } .msg2.autre:not(.fin) .bulle2 { border-bottom-left-radius: var(--r-1); } .msg2.autre:not(.debut) .bulle2 { border-top-left-radius: var(--r-1); }
.msg2.moi .bulle2 { background: var(--s); color: #fff; border-bottom-right-radius: var(--r-1); } .msg2.moi:not(.debut) .bulle2 { border-top-right-radius: var(--r-1); }
.msg2.moi .bulle2 time { color: rgba(255,255,255,.7); }
.msg2.exceptionnel .bulle2 { background: #fff0f0; color: var(--encre); box-shadow: inset 0 0 0 1.5px #ffb3b6; }
.tag-exc { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rouge); margin-bottom: 2px; }
.msg2 .lu { font-size: .66rem; color: var(--texte-3); margin: 3px 10px 0; }
.msg2.arrive { animation: arrive .5s var(--ressort) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
.outils-msg { position: absolute; z-index: 3; bottom: calc(100% + 4px); right: 0; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 10px 26px -10px rgba(16,24,64,.35), 0 0 0 1px var(--ligne); opacity: 0; transform: translateY(6px) scale(.9); pointer-events: none; transition: opacity .2s, transform .25s var(--ressort); }
.msg2.autre .outils-msg { right: auto; left: 0; }
.msg2:hover .outils-msg, .msg2.outils-ouverts .outils-msg { opacity: 1; transform: none; pointer-events: auto; }
.outils-msg button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 1rem; cursor: pointer; transition: transform .2s var(--ressort), background .2s; color: var(--texte-2); }
.outils-msg button:hover { transform: scale(1.25); background: var(--fond); }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 6px 0; }
.reactions button { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--ligne); background: #fff; cursor: pointer; font-size: .8rem; transition: transform .2s var(--ressort); }
.reactions button b { font-size: .7rem; font-weight: 650; color: var(--texte-2); } .reactions button.moi { border-color: var(--s); background: var(--s2); }
.reactions button:hover, [data-reagir].pop { transform: scale(1.15); }
.passation2 { align-self: stretch; max-width: 100%; flex-direction: column; align-items: stretch; margin: 12px 0 6px; border-radius: var(--r-5); border: 1px solid var(--s3); background: linear-gradient(180deg, var(--s2), #fff 70%); overflow: visible; }
.passation-tete { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--s3); }
.passation-tete b { display: block; font-size: .92rem; } .passation-tete small { font-size: .7rem; color: var(--texte-3); }
.passation-corps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; padding: 12px 14px; }
.rubrique2 { background: #fff; border-radius: var(--r-3); padding: 10px 12px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.rubrique2 span { font-size: .64rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--s); } .rubrique2 p { margin: 4px 0 0; font-size: .86rem; line-height: 1.45; }
.passation2 .reactions { margin: 0 14px 12px; }

.composeur2 { position: relative; padding: 10px 14px 14px; border-top: 1px solid var(--ligne); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.types2 { display: flex; gap: 6px; margin-bottom: 8px; }
.types2 button { height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--fond); font: inherit; font-size: .76rem; font-weight: 600; color: var(--texte-2); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ressort); }
.types2 button.actif { background: var(--s); color: #fff; } .types2 button.t-exceptionnel.actif { background: var(--rouge); }
.types2 button:active { transform: scale(.94); }
.bulle-saisie { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px; border-radius: var(--r-6); background: var(--fond); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.bulle-saisie:focus-within { border-color: var(--s); background: #fff; box-shadow: 0 0 0 4px var(--s2); }
.bulle-saisie.exceptionnel:focus-within { border-color: var(--rouge); box-shadow: 0 0 0 4px #ffe1e2; }
.bulle-saisie textarea, .rubriques2 textarea { flex: 1; border: 0; background: transparent; resize: none; font: inherit; font-size: .95rem; line-height: 1.4; padding: 8px 0; max-height: 160px; outline: none; }
.envoyer { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: #c9cedb; cursor: pointer; transition: background .25s, transform .3s var(--ressort); }
.envoyer svg { width: 20px; height: 20px; }
.composeur2.rempli .envoyer { background: var(--s); transform: rotate(0) scale(1.05); } .composeur2.type-exceptionnel.rempli .envoyer { background: var(--rouge); }
.composeur2.envoi .envoyer { animation: envol .5s var(--sortie); }
@keyframes envol { 50% { transform: translateY(-10px) scale(.8); opacity: .5; } }
.rubriques2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 42vh; overflow-y: auto; }
.rubriques2 label { display: flex; flex-direction: column; padding: 8px 12px 4px; border-radius: var(--r-4); background: var(--fond); border: 1.5px solid transparent; animation: pop-entree .45s var(--ressort) both; animation-delay: calc(var(--i) * 40ms); }
.rubriques2 label:focus-within { border-color: var(--s); background: #fff; }
.rubriques2 label span { font-size: .64rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--s); }
.ligne-envoi { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.choix-auteur2 { padding: 4px 2px; } .choix-auteur2 > b { display: block; font-size: .9rem; margin-bottom: 8px; }
.choix-auteur2 > div { display: flex; flex-wrap: wrap; gap: 8px; }
.prenom-choix { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--ligne); background: #fff; cursor: pointer; font: inherit; font-weight: 600; animation: pop-entree .4s var(--ressort) both; animation-delay: calc(var(--i) * 30ms); transition: transform .25s var(--ressort), border-color .2s; }
.prenom-choix:hover { transform: translateY(-2px); border-color: var(--s); } .prenom-choix .avatar-chat { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .chat2 { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .salons { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 8px; margin: 0 -4px; padding: 2px 4px 4px; }
  .salon { flex: 0 0 auto; grid-template-columns: auto auto; padding: 8px 14px 8px 8px; border-radius: 999px; }
  .salon .salon-txt small, .salon .salon-meta time { display: none; } .salon-ic { width: 36px; height: 36px; border-radius: 50%; }
  .salon .salon-meta { position: absolute; top: 4px; right: 4px; }
  .salons-pied { display: none; }
  .conversation { height: calc(100vh - 250px - env(safe-area-inset-bottom)); min-height: 420px; }
  .conv-avatars, .conv-titre span { display: none; } .pastille-passation { order: 3; width: 100%; text-align: center; }
  .msg2 { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { .salon, .msg2.arrive, .epingle2, .rubriques2 label, .prenom-choix { animation: none; } }
@media (max-width: 900px) {
  .salons { flex-wrap: wrap; overflow: visible; }
  .salon { flex: 1 1 0; min-width: 0; padding: 6px 10px 6px 6px; gap: 8px; } .salon-txt b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
  .salons-pied { display: block; flex-basis: 100%; margin-top: 0; } .qui-ecrit { padding: 6px 10px; }
}
.fil2 > * { flex-shrink: 0; }
.qui-ecrit .avatar-chat { flex: none; }
@media (max-width: 900px) { .conversation { height: calc(100dvh - 330px - env(safe-area-inset-bottom)); min-height: 380px; } .epingle2 p { font-size: .82rem; } .epingles2 { max-height: 30%; overflow-y: auto; } }

/* le panneau d'ajustement ne doit pas masquer la caméra quand il est fermé */
.sc-ajuster[hidden], .sc-message[hidden] { display: none !important; }
.sc-camera video { opacity: 1; background: #05081e; display: block; }

/* ================================================================ Ma journée (salle, cuisine) */
.journee { --s: #192ED5; --s2: #eef0ff; --s3: #cfd5ff; display: grid; gap: 16px; }
.journee.j-cuisine { --s: #f2660c; --s2: #fff1e7; --s3: #ffd9bf; }
.jhero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; border-radius: var(--r-6); color: #fff; isolation: isolate;
  background: radial-gradient(110% 120% at 0% 0%, color-mix(in srgb, var(--s) 70%, #fff), transparent 55%), linear-gradient(140deg, var(--s), color-mix(in srgb, var(--s) 60%, #000)); box-shadow: 0 26px 50px -30px var(--s); animation: pop-entree .6s var(--ressort) both; }
.jhero::after { content: ""; position: absolute; z-index: -1; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); }
.jhero-g { min-width: 0; display: grid; gap: 6px; }
.jnav { display: flex; align-items: center; gap: 10px; font-size: .9rem; } .jnav b { text-transform: capitalize; }
.sc-rond.petit { width: 32px; height: 32px; font-size: 1.1rem; line-height: 1; }
.jnav .puce { background: rgba(255,255,255,.16); color: #fff; padding: 5px 10px; font-size: .74rem; }
.jhero-date { font-size: .78rem; color: rgba(255,255,255,.75); text-transform: capitalize; }
.jhero h2 { margin: 4px 0 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.04em; line-height: 1.05; }
.jhero p { margin: 0; color: rgba(255,255,255,.8); font-size: .9rem; }
.jprochaine { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px; border-radius: var(--r-4); background: rgba(255,255,255,.14); font-size: .86rem; backdrop-filter: blur(8px); }
.jprochaine svg { width: 18px; height: 18px; flex: none; } .jprochaine em { font-style: normal; color: rgba(255,255,255,.75); }
.jretard { justify-self: start; font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--rouge); animation: pulse-direct 1.8s infinite; }
.jhero-d { flex: none; display: grid; justify-items: center; gap: 8px; font-size: .74rem; color: rgba(255,255,255,.8); }
.jhero .todo-anneau b { color: #fff; font-size: 1.4rem; } .jhero .anneau-todo .fond { stroke: rgba(255,255,255,.2); } .jhero .anneau-todo .plein { stroke: #fff; }
.jsemaine { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.jsemaine button { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: var(--r-4); border: 1px solid var(--ligne); background: #fff; cursor: pointer; font: inherit; color: var(--texte-2); transition: transform .25s var(--ressort), background .2s; }
.jsemaine button small { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; } .jsemaine button b { font-size: 1.05rem; color: var(--encre); }
.jsemaine button:hover { transform: translateY(-2px); } .jsemaine button.auj { border-color: var(--s3); }
.jsemaine button.actif { background: var(--s); border-color: var(--s); color: rgba(255,255,255,.8); } .jsemaine button.actif b { color: #fff; }
.jpassation { padding: 14px 16px; border-radius: var(--r-5); background: #fff; border: 1.5px dashed var(--s3); animation: pop-entree .5s var(--ressort) .05s both; }
.jpassation.faite { border-style: solid; background: linear-gradient(135deg, #fff 40%, var(--s2)); }
.jp-tete { display: flex; align-items: center; gap: 12px; } .jp-tete > div { flex: 1; } .jp-tete b { display: block; } .jp-tete small { font-size: .76rem; color: var(--texte-3); }
.jp-tete .salon-ic { background: var(--s2); color: var(--s); } .jpassation.faite .jp-tete .salon-ic { background: var(--s); color: #fff; }
.jp-tete .principal { background: var(--s); border-color: var(--s); }
.jp-derniere { margin-top: 10px; } .jp-derniere summary { cursor: pointer; font-size: .8rem; color: var(--s); font-weight: 600; }
.jp-derniere .passation-corps { padding: 10px 0 0; } .jp-derniere .rubrique2 span { color: var(--s); }
.jfrise { position: relative; display: grid; gap: 10px; padding-left: 4px; }
.jfrise::before { content: ""; position: absolute; left: 62px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--s3), var(--ligne)); border-radius: 2px; }
.jshift { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; animation: pop-entree .5s var(--ressort) both; animation-delay: calc(var(--i, 0) * 50ms); }
.jshift-temps { display: grid; align-content: start; justify-items: end; padding-top: 16px; font-variant-numeric: tabular-nums; }
.jshift-temps b { font-size: .92rem; } .jshift-temps span { font-size: .72rem; color: var(--texte-3); }
.jshift::before { content: ""; position: absolute; left: 54px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid var(--s3); z-index: 1; }
.jshift.encours::before { background: var(--s); border-color: var(--s); box-shadow: 0 0 0 6px var(--s2); animation: pulse-salon 1.8s infinite; }
.jshift.passe::before { background: var(--s3); }
.jshift-corps { padding: 14px 16px; border-radius: var(--r-5); background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); border: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.jshift.encours .jshift-corps { border-color: var(--s3); box-shadow: 0 18px 40px -24px var(--s); }
.jshift.passe .jshift-corps { opacity: .62; } .jshift.passe .jshift-corps:hover { opacity: 1; }
.jshift.hors .jshift-corps { background: transparent; border: 1px dashed var(--ligne); box-shadow: none; }
.jshift-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .jshift-tete h3 { margin: 0; font-size: 1.02rem; letter-spacing: -.015em; }
.jshift-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 650; color: var(--s); }
.jshift-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--s); animation: pulse-salon 1.4s infinite; }
.jshift-fini { font-size: .7rem; color: var(--texte-3); }
.jshift-barre { height: 4px; border-radius: var(--r-1); background: var(--s2); margin: 10px 0 2px; overflow: hidden; } .jshift-barre i { display: block; height: 100%; background: var(--s); border-radius: var(--r-1); transition: width 1s var(--sortie); }
.jshift-feuilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.feuille { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-3); border: 1px solid var(--s3); background: var(--s2); color: var(--encre); cursor: pointer; font: inherit; font-size: .8rem; transition: transform .25s var(--ressort); }
.feuille svg { width: 16px; height: 16px; color: var(--s); } .feuille b { font-size: .74rem; color: var(--s); }
.feuille i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 100%); background: var(--s); }
.feuille:hover { transform: translateY(-2px); } .feuille.complete { background: #e3f6eb; border-color: #bfe9cf; } .feuille.complete b, .feuille.complete svg { color: var(--vert); } .feuille.complete i { background: var(--vert); }
.jtaches { margin-top: 8px; }
.jt { align-items: center; } .jt-heure { flex: none; width: 44px; font-size: .74rem; font-weight: 650; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.jt.retard .jt-heure { color: var(--rouge); } .jt.retard .coche { border-color: var(--rouge); }
.jt.fait .coche { background: var(--vert); border-color: var(--vert); }
.jt:disabled { cursor: default; opacity: .85; }
.jreglages { display: flex; justify-content: center; }
.fiche-passation .qui-ecrit { margin: 6px 0 12px; } .fiche-passation .rubriques2 { max-height: none; }
.fiche-passation .pass-envoyer { width: 100%; margin-top: 12px; padding: 14px; background: var(--s); border-color: var(--s); }
.fiche-reglages h3 { margin: 18px 0 8px; } .reg-heures { display: flex; align-items: center; gap: 6px; } .reg-heures input { width: 96px; }
.reg-ajout { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; padding: 12px; border-radius: var(--r-4); background: var(--fond); }
.reg-ajout .reg-jours, .reg-ajout button { grid-column: 1 / -1; }
.reg-jours { display: flex; flex-wrap: wrap; gap: 6px; } .reg-jours input { display: none; }
.reg-jours span { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne); font-size: .78rem; cursor: pointer; }
.reg-jours input:checked + span { background: var(--encre); color: #fff; border-color: var(--encre); }
@media (max-width: 560px) {
  .jhero { flex-direction: column; align-items: flex-start; padding: 20px; } .jhero-d { flex-direction: row; align-self: stretch; justify-content: flex-start; }
  .jhero .todo-anneau svg { width: 64px; height: 64px; } .jhero .todo-anneau b { font-size: 1rem; }
  .jfrise::before { left: 46px; } .jshift { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; } .jshift::before { left: 38px; }
  .jt-heure { width: 38px; }
}
@media (prefers-reduced-motion: reduce) { .jhero, .jshift, .jpassation { animation: none; } }
.jfrise::before { left: 70px; } .jshift::before { left: 64px; } .jshift-temps { padding-right: 2px; }
@media (max-width: 560px) { .jfrise::before { left: 54px; } .jshift::before { left: 48px; } }

/* ================================================================ tableau de bord salle */
.tdb-salle { --s: #192ED5; --s2: #eef0ff; --s3: #cfd5ff; }
.tdb-service { background: radial-gradient(120% 120% at 0% 0%, #3b52ff, transparent 55%), linear-gradient(140deg, #2338ee, #192ED5 50%, #0f1ea6); color: #fff; }
.tdb-service .etiquette, .tdb-service .sous { color: rgba(255,255,255,.75); }
.tdb-service h2 { margin: 8px 0 2px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.tdb-service .feuille { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); color: #fff; } .tdb-service .feuille svg, .tdb-service .feuille b { color: #fff; } .tdb-service .feuille i { background: #fff; }
.tdb-lignes { display: grid; gap: 6px; margin: 14px 0 10px; }
.tdb-ligne { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-3); background: rgba(255,255,255,.12); font-size: .86rem; }
.tdb-ligne svg { width: 18px; height: 18px; flex: none; } .tdb-ligne span { flex: 1; } .tdb-ligne em { font-style: normal; font-weight: 700; }
.tdb-ligne.alerte { background: #fff; color: var(--rouge); } .tdb-ligne.attention { background: rgba(255,207,92,.22); }
.tdb-service .fantome { color: #fff; border-color: rgba(255,255,255,.3); }
.tdb-meteo .grand small, .tdb-couverts .grand small { font-size: .9rem; color: var(--texte-3); font-weight: 500; }
.tdb-meteo .statut { margin-top: 8px; display: inline-block; }
.tdb-meteo.t-oui { background: linear-gradient(160deg, #fff, #fff7e0); } .tdb-meteo.t-non { background: linear-gradient(160deg, #fff, #eef2f8); }
.jauge-objectif.clair { background: var(--fond); height: 8px; } .jauge-objectif.clair div { background: var(--bleu); }
.tdb-chat { display: flex; flex-direction: column; gap: 10px; }
.epingle2.mini { padding: 8px 10px; } .epingle2.mini .epingle-ic { width: 24px; height: 24px; font-size: .8rem; }
.tdb-fil { flex: 1; display: grid; align-content: start; gap: 10px; overflow-y: auto; max-height: 340px; }
.tdb-msg { display: flex; gap: 10px; align-items: flex-start; animation: pop-entree .4s var(--ressort) both; }
.tdb-msg .avatar-chat.petit { margin-left: 0; width: 28px; height: 28px; }
.tdb-msg b { font-size: .84rem; } .tdb-msg time { font-size: .68rem; color: var(--texte-3); margin-left: 4px; } .tdb-msg p { margin: 2px 0 0; font-size: .88rem; line-height: 1.4; }
.tdb-msg.exceptionnel p { color: var(--rouge); font-weight: 600; } .tdb-msg.pass > div { font-size: .84rem; color: var(--texte-2); }
.tdb-envoi { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 999px; background: var(--fond); }
.tdb-envoi input { flex: 1; min-width: 120px; border: 0; background: transparent; font: inherit; outline: none; padding: 8px 4px; }
.tdb-envoi .envoyer { background: var(--s); } .tdb-envoi .avatar-chat.petit { margin-left: 0; }
.tdb-envoi:has(.prenom-choix) { border-radius: var(--r-5); padding: 10px; }
.tdb-bientot { display: grid; gap: 6px; margin-top: 12px; padding: 18px; border-radius: var(--r-4); border: 1.5px dashed var(--ligne); background: var(--fond); }
.tdb-bientot b { font-size: .92rem; } .tdb-bientot span { font-size: .8rem; color: var(--texte-2); line-height: 1.45; }
.tdb-plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 10px; }
.tdb-plat { display: grid; gap: 4px; padding: 12px; border-radius: var(--r-4); background: var(--fond); }
.tdb-plat .badge { justify-self: start; text-transform: capitalize; } .tdb-plat b { font-size: .9rem; } .tdb-plat small { font-size: .7rem; color: var(--texte-3); }
.tdb-lien { align-self: flex-start; border: 0; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-weight: 600; font-size: .82rem; padding: 9px 14px; border-radius: 999px; cursor: pointer; } .tdb-lien:hover { background: rgba(255,255,255,.26); }
.mail-libelles { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; } .mail-libelles .puce { padding: 6px 10px; font-size: .74rem; } .mail-libelles small { opacity: .7; }
.mail-liste { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.mail-fil { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 8px; border: 0; border-radius: var(--r-3); background: transparent; text-align: left; font: inherit; color: var(--encre); cursor: pointer; animation: pop-entree .4s var(--ressort) both; animation-delay: calc(var(--i) * 25ms); transition: background .2s; }
.mail-fil:hover { background: var(--fond); } .mail-fil .avatar-chat.petit { margin-left: 0; width: 30px; height: 30px; }
.mail-txt { min-width: 0; display: grid; } .mail-txt b { font-size: .84rem; font-weight: 550; } .mail-sujet { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.mail-txt small { font-size: .72rem; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.mail-fil.non-lu b, .mail-fil.non-lu .mail-sujet { font-weight: 750; } .mail-fil.non-lu { background: var(--bleu-clair); }
.mail-meta { display: grid; justify-items: end; gap: 3px; font-size: .68rem; color: var(--texte-3); } .mail-meta em { font-style: normal; padding: 1px 6px; border-radius: var(--r-1); background: var(--fond); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; } .mail-actions select { font: inherit; font-size: .8rem; padding: 6px 8px; border-radius: var(--r-2); }
.mail-messages { display: grid; gap: 10px; } .mail-msg { padding: 12px 14px; border-radius: var(--r-4); background: var(--fond); animation: pop-entree .4s var(--ressort) both; animation-delay: calc(var(--i) * 50ms); }
.mail-msg header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .mail-msg header small { display: block; font-size: .7rem; color: var(--texte-3); } .mail-msg .avatar-chat.petit { margin-left: 0; }
.mail-corps { font-size: .88rem; line-height: 1.55; white-space: normal; word-break: break-word; max-height: 50vh; overflow-y: auto; }
.mail-reponse { display: grid; gap: 8px; margin-top: 14px; } .mail-reponse textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border-radius: var(--r-3); border: 1px solid var(--ligne); }

/* ================================================================ réservations en direct */
.resa-direct { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: .66rem; font-weight: 700; color: var(--vert); text-transform: uppercase; letter-spacing: .05em; }
.resa-direct i { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); animation: pulse-direct 1.6s infinite; }
.resa-jours { display: inline-flex; gap: 4px; } .resa-jours .puce { padding: 5px 10px; font-size: .72rem; }
.resa-resume { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.resa-resume > div { padding: 10px 12px; border-radius: var(--r-4); background: var(--fond); display: grid; } .resa-resume b { font-size: 1.5rem; letter-spacing: -.03em; } .resa-resume span { font-size: .7rem; color: var(--texte-3); }
.resa-resume .attente { background: #fff3d6; } .resa-resume .attente b { color: #b77800; } .resa-resume .attente span { color: #a46a00; font-weight: 600; }
.resa-liste { display: grid; gap: 12px; max-height: 420px; overflow-y: auto; }
.resa-service-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; } .resa-service-tete b { font-size: .9rem; } .resa-service-tete span { font-size: .72rem; color: var(--texte-3); }
.resa { display: grid; grid-template-columns: 48px 34px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-3); background: #fff; border: 1px solid var(--ligne); margin-bottom: 6px; animation: pop-entree .4s var(--ressort) both; animation-delay: calc(var(--i) * 30ms); }
.resa time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; }
.resa-couverts { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-2); background: var(--bleu-clair); color: var(--bleu); font-weight: 750; font-size: .86rem; }
.resa-txt { min-width: 0; display: grid; } .resa-txt b { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.resa-note { font-size: .72rem; color: #a46a00; background: #fff3d6; border-radius: var(--r-2); padding: 2px 6px; margin-top: 3px; justify-self: start; white-space: normal; }
.resa-statut { font-size: .68rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: #e3f6eb; color: var(--vert); white-space: nowrap; }
.resa-src { font-size: .6rem; font-weight: 700; text-transform: uppercase; color: var(--texte-3); border: 1px solid var(--ligne); border-radius: var(--r-1); padding: 2px 5px; }
.resa.s-attente, .resa.s-contactee { border-color: #ffd98a; background: #fffbef; } .resa.s-attente .resa-statut, .resa.s-contactee .resa-statut { background: #fff3d6; color: #b77800; animation: pulse-direct 2s infinite; }
.resa.s-refusee, .resa.s-annulee, .resa.s-noshow { opacity: .55; } .resa.s-refusee .resa-statut, .resa.s-annulee .resa-statut, .resa.s-noshow .resa-statut { background: var(--rouge-clair); color: var(--rouge); }
.resa.s-refusee time, .resa.s-annulee time { text-decoration: line-through; }
.resa.s-arrivee .resa-statut, .resa.s-placee .resa-statut { background: var(--bleu-clair); color: var(--bleu); } .resa.s-terminee { opacity: .6; }
.resa.nouvelle { box-shadow: 0 0 0 2px var(--bleu), 0 12px 24px -16px var(--bleu); }
.resa-new { font-style: normal; font-size: .6rem; font-weight: 800; text-transform: uppercase; color: #fff; background: var(--bleu); padding: 2px 6px; border-radius: var(--r-1); margin-left: 4px; vertical-align: 2px; }
.toast.resa-toast { border-left: 4px solid var(--bleu); } .toast.resa-toast.attente { border-left-color: var(--orange); }
@media (max-width: 560px) { .resa { grid-template-columns: 44px 30px minmax(0, 1fr) auto; } .resa-src { display: none; } }
.ligne-limite { filter: drop-shadow(0 1px 2px rgba(229,72,77,.35)); }

/* calendrier des réservations */
.cal-tete { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; } .cal-tete b { text-transform: capitalize; font-size: .9rem; min-width: 120px; text-align: center; }
.cal-tete .sc-rond { background: var(--fond); color: var(--encre); } .cal-tete .puce { margin-left: auto; padding: 5px 10px; font-size: .72rem; }
.cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-jsem { text-align: center; font-size: .62rem; font-weight: 700; color: var(--texte-3); padding-bottom: 2px; }
.cal-jour { position: relative; display: grid; justify-items: center; gap: 0; padding: 5px 0 4px; border: 0; border-radius: var(--r-2); cursor: pointer; font: inherit; color: var(--encre);
  background: color-mix(in srgb, var(--bleu) calc(var(--n) * 22%), #f5f6f8); transition: transform .2s var(--ressort), background .2s; }
.cal-jour b { font-size: .78rem; font-weight: 600; } .cal-jour small { font-size: .6rem; color: var(--texte-2); min-height: .7rem; }
.cal-jour:hover { transform: translateY(-2px); } .cal-jour.passe { opacity: .55; } .cal-jour.auj { box-shadow: inset 0 0 0 1.5px var(--bleu); }
.cal-jour.actif { background: var(--bleu); color: #fff; } .cal-jour.actif small { color: rgba(255,255,255,.8); } .cal-jour.actif { opacity: 1; }
.cal-attente { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.resa-jour-titre { margin: 14px 0 0; font-size: .95rem; text-transform: capitalize; }

/* météo heure par heure */
.meteo-haut { display: flex; align-items: center; gap: 12px; margin-top: 6px; } .meteo-haut b { display: block; font-size: .9rem; } .meteo-haut span { font-size: .72rem; color: var(--texte-3); }
.meteo-phrase { margin: 8px 0; font-size: .82rem; font-weight: 600; color: var(--vert); } .meteo-phrase.pluie { color: #2b7fff; }
.meteo-heures { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; align-items: end; height: 54px; margin-bottom: 8px; }
.mh { display: grid; grid-template-rows: 1fr auto; height: 100%; justify-items: center; }
.mh i { align-self: end; width: 70%; min-height: 3px; height: calc(var(--p) * 100%); border-radius: var(--r-1) var(--r-1) 2px 2px; background: #dfe3ea; }
.mh.humide i { background: #2b7fff; } .mh span { font-size: .55rem; color: var(--texte-3); margin-top: 2px; }
.mh.maintenant span { color: var(--encre); font-weight: 800; } .mh.maintenant i { box-shadow: 0 0 0 1.5px var(--encre); }

/* stocks en place */
.stocks-place { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.stock-plat { display: grid; gap: 4px; padding: 12px; border-radius: var(--r-4); background: var(--fond); border-top: 4px solid var(--vert); animation: pop-entree .45s var(--ressort) both; animation-delay: calc(var(--i) * 40ms); }
.stock-plat.t-orange { border-top-color: var(--orange); } .stock-plat.t-rouge { border-top-color: var(--rouge); background: #fff5f5; }
.stock-plat .badge { justify-self: start; } .stock-plat > b { font-size: .88rem; }
.stock-n span { font-size: 1.8rem; font-weight: 700; letter-spacing: -.04em; } .stock-n small { display: block; font-size: .66rem; color: var(--texte-3); margin-top: -2px; }
.stock-plat.t-rouge .stock-n span { color: var(--rouge); } .stock-plat.t-orange .stock-n span { color: #b77800; }
.stock-juste { font-size: .66rem; color: var(--texte-2); }
.stock-comps { display: flex; gap: 3px; margin-top: 4px; } .stock-comps span { flex: 1; height: 5px; border-radius: var(--r-1); background: linear-gradient(90deg, var(--vert) calc(var(--p) * 100%), #dfe3ea 0); }

/* tableau de bord salle v2 : tâches précises en dalles blanches */
.tdb-taches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 14px 0 12px; }
.tdb-tache { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: var(--r-4); background: #fff; color: var(--encre); text-align: left; font: inherit; cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); animation: pop-entree .45s var(--ressort) both; animation-delay: calc(var(--i) * 35ms); transition: transform .25s var(--ressort), opacity .3s; }
.tdb-tache:hover { transform: translateY(-2px); } .tdb-tache:active { transform: scale(.97); }
.tdb-tache .coche { flex: none; width: 26px; height: 26px; border-radius: var(--r-2); border: 2px solid #c9cedb; display: grid; place-items: center; transition: background .25s, border-color .25s, transform .35s var(--ressort); }
.tdb-tache .coche svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--sortie); }
.tdb-tache-txt { min-width: 0; display: grid; } .tdb-tache-txt b { font-size: .86rem; font-weight: 650; line-height: 1.25; } .tdb-tache-txt small { font-size: .7rem; color: var(--texte-3); margin-top: 2px; }
.tdb-tache.fait { background: rgba(255,255,255,.55); box-shadow: none; } .tdb-tache.fait .coche { background: var(--vert); border-color: var(--vert); transform: scale(1.05); } .tdb-tache.fait .coche svg { stroke-dashoffset: 0; }
.tdb-tache.fait b { text-decoration: line-through; color: var(--texte-2); }
.tdb-tache.retard { box-shadow: inset 0 0 0 2px var(--rouge), 0 10px 24px -14px rgba(0,0,0,.45); } .tdb-tache.retard .coche { border-color: var(--rouge); } .tdb-tache.retard small { color: var(--rouge); font-weight: 650; }
.tdb-tache.prochaine { box-shadow: inset 0 0 0 2px #ffd27a, 0 10px 24px -14px rgba(0,0,0,.45); } .tdb-tache.prochaine small { color: #a46a00; font-weight: 650; }
.tdb-passation { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-4); background: #fff3d6; color: #8a5a00; font-size: .84rem; }
.tdb-passation svg { width: 18px; height: 18px; flex: none; } .tdb-passation span { flex: 1; } .tdb-passation.faite { background: #e3f6eb; color: #0d7a3c; }
.tdb-passation .petit { background: var(--bleu); color: #fff; border-color: var(--bleu); }
/* réservations : chiffres du jour en bleu */
.resa-resume > div { background: linear-gradient(150deg, #2338ee, #192ED5 60%, #0f1ea6); color: #fff; box-shadow: 0 12px 24px -16px var(--bleu); }
.resa-resume > div span { color: rgba(255,255,255,.8); } .resa-resume > div b { color: #fff; }
.resa-resume .attente { background: linear-gradient(150deg, #f7a823, #e08a00); } .resa-resume .attente b, .resa-resume .attente span { color: #fff; }
/* froid salle : voyant connecté */
.froid-ligne { align-items: center; gap: 10px; } .froid-nom { flex: 1; display: grid; } .froid-nom small { font-size: .68rem; color: var(--texte-3); }
.avatar-logo { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--ligne); overflow: hidden; }
.avatar-logo img { width: 70%; height: 70%; object-fit: contain; }
.mail-html { width: 100%; min-height: 120px; border: 0; background: #fff; border-radius: var(--r-3); display: block; }
.mail-msg { background: #fff; border: 1px solid var(--ligne); }
.mail-maj { font-size: .66rem; color: var(--texte-3); text-align: right; margin: 0 0 2px; }
/* couverts du jour : midi et soir */
.cv-blocs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 8px; }
.cv-bloc { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--r-4); background: var(--fond); }
.cv-tete { display: flex; align-items: center; justify-content: space-between; gap: 4px; } .cv-tete b { font-size: .8rem; } .cv-tete em { font-style: normal; font-size: .56rem; font-weight: 700; text-transform: uppercase; color: var(--bleu); }
.cv-est span { font-size: 2.3rem; font-weight: 750; letter-spacing: -.05em; line-height: 1; color: var(--bleu); } .cv-est small { display: block; font-size: .66rem; color: var(--texte-3); }
.cv-detail { display: grid; gap: 1px; font-size: .7rem; color: var(--texte-2); } .cv-detail b { color: var(--encre); }
.cv-barre { height: 5px; border-radius: var(--r-1); background: #dfe3ea; overflow: hidden; } .cv-barre i { display: block; height: 100%; background: var(--bleu); border-radius: var(--r-1); }

/* Tableau de bord salle, v3 : météo et couverts en bandeaux compacts à côté du service, réservations remontées */
#tdb-meteo-corps { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.meteo-gauche { display: grid; gap: 6px; justify-items: start; } .meteo-gauche .statut { margin-top: 0; }
.meteo-droite .meteo-phrase { margin: 4px 0 6px; } .meteo-droite .meteo-heures { height: 44px; margin-bottom: 0; }
.tdb-meteo .grand { font-size: 2.4rem; }
.tdb-couverts .cv-blocs { margin: 8px 0 6px; }
.tdb-couverts .cv-bloc { grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 8px 12px; }
.tdb-couverts .cv-tete { grid-column: 1 / -1; }
.tdb-couverts .cv-est span { font-size: 2rem; }
.tdb-couverts .cv-barre { grid-column: 1 / -1; }
@media (min-width: 1101px) {
  .tdb-salle { grid-template-areas: "service service meteo meteo" "service service couv couv" "resa resa chat chat" "resa resa chat chat" "mail mail froid froid" "stocks stocks stocks stocks"; grid-auto-rows: auto; }
  .tdb-salle > .tdb-service { grid-area: service; } .tdb-salle > .tdb-meteo { grid-area: meteo; } .tdb-salle > .tdb-couverts { grid-area: couv; }
  .tdb-salle > .tdb-resa { grid-area: resa; } .tdb-salle > .tdb-chat { grid-area: chat; } .tdb-salle > .tdb-mail { grid-area: mail; }
  .tdb-salle > .tdb-froid { grid-area: froid; } .tdb-salle > .tdb-stocks { grid-area: stocks; }
}
@media (max-width: 560px) { #tdb-meteo-corps { grid-template-columns: 1fr; } }

/* logos des services branchés (L'Addition, Gmail) */
.marque-tete { align-items: center; }
.logo-marque { width: 26px; height: 26px; border-radius: var(--r-2); padding: 3px; background: #fff; box-shadow: 0 0 0 1px var(--ligne); flex: none; }
.marque-nom { display: grid; line-height: 1.15; } .marque-nom small { font-size: .62rem; font-weight: 500; color: var(--texte-3); text-transform: none; letter-spacing: 0; }
.tdb-qui { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--texte-2); padding: 0 4px; }
.tdb-qui .avatar-chat.petit { margin-left: 0; width: 24px; height: 24px; } .tdb-qui b { color: var(--encre); }
.tdb-changer { margin-left: auto; border: 0; background: none; font: inherit; font-size: .74rem; color: var(--s); font-weight: 600; cursor: pointer; }
.tdb-ajout-prenom { display: flex; gap: 6px; flex: 1 1 100%; } .tdb-ajout-prenom input { flex: 1; border: 1px solid var(--ligne); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .82rem; background: #fff; }

/* Tableau de bord cuisine */
@media (min-width: 1101px) {
  .tdb-salle.tdb-cuisine { grid-template-areas: "service service couv couv" "service service notes notes" "prod prod chat chat" "prod prod chat chat" "dlc recep froid froid" "stocks stocks stocks stocks"; }
  .tdb-cuisine > .tdb-notes { grid-area: notes; } .tdb-cuisine > .tdb-produire { grid-area: prod; }
  .tdb-cuisine > .tdb-dlc { grid-area: dlc; } .tdb-cuisine > .tdb-recep { grid-area: recep; }
}
.tdb-shifts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.tdb-shifts span { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .74rem; color: rgba(255,255,255,.85); }
.tdb-shifts span b { font-weight: 700; color: #fff; } .tdb-shifts .passe { opacity: .45; } .tdb-shifts .en-cours { background: #fff; color: var(--s); } .tdb-shifts .en-cours b { color: var(--s); }
.tdb-vide-blanc { margin: 4px 0 14px; padding: 12px 14px; border-radius: var(--r-3); background: rgba(255,255,255,.1); font-size: .82rem; color: rgba(255,255,255,.8); }
.note-resa { gap: 10px; font-size: .84rem; } .note-resa time { font-weight: 700; font-variant-numeric: tabular-nums; }
.pastille-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--s); color: #fff; font-size: .66rem; font-weight: 700; }
.prod-liste { display: grid; gap: 8px; margin-top: 10px; }
.prod-l { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-4); background: var(--fond); animation: pop-entree .4s var(--ressort) both; animation-delay: calc(min(var(--i), 6) * 40ms); }
.prod-l b { font-size: .86rem; } .prod-l small { display: block; font-size: .68rem; color: var(--texte-3); }
.prod-l em { font-style: normal; font-size: 1.3rem; font-weight: 750; letter-spacing: -.03em; color: var(--encre); text-align: right; line-height: 1; } .prod-l em small { font-size: .6rem; font-weight: 500; }
.prod-l .cv-barre { grid-column: 1 / -1; } .prod-l.urgent .cv-barre i { background: var(--rouge); } .prod-l.bientot .cv-barre i { background: var(--orange); }
.prod-l.urgent em { color: var(--rouge); }
.tdb-bravo { margin-top: 14px; padding: 22px; border-radius: var(--r-4); background: #e9f8ef; color: var(--vert); font-weight: 700; text-align: center; }
.tdb-dlc, .tdb-recep { display: flex; flex-direction: column; gap: 8px; }
.tdb-dlc.alerte { box-shadow: inset 0 0 0 2px #ffd4d4; }
.dlc-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.dlc-chiffres > div { padding: 10px 12px; border-radius: var(--r-3); background: var(--fond); } .dlc-chiffres b { display: block; font-size: 1.7rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; } .dlc-chiffres small { font-size: .66rem; color: var(--texte-3); }
.dlc-chiffres .rouge b { color: var(--rouge); } .dlc-chiffres .orange b { color: var(--orange); }
.dlc-noms { display: flex; flex-wrap: wrap; gap: 4px; } .dlc-noms span { font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--fond); color: var(--texte-2); }
.dlc-noms .rouge { background: #ffecec; color: var(--rouge); } .dlc-noms .ok { background: #e9f8ef; color: var(--vert); }
.froid-alerte { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: var(--r-3); background: #ffecec; color: var(--rouge); font-size: .8rem; font-weight: 600; }
.tdb-recep .principal { display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .tdb-recep .principal svg { width: 18px; height: 18px; flex: none; }
.lien.categorie:hover .ic-equipe-2, .lien.categorie.ouvert .ic-equipe-2, .volet-pastille .ic-equipe-2 { animation: equipe-ic .6s var(--ressort) both; }
@keyframes equipe-ic { from { transform: translateX(-3px); opacity: 0; } to { transform: none; opacity: 1; } }

/* RH : l'équipe */
.rh-ajouter { display: flex; flex-direction: column; gap: 8px; } .rh-ajouter .principal { margin-top: auto; align-self: flex-start; }
.rh-total { margin-left: auto; font-size: .7rem; font-weight: 600; color: var(--texte-3); text-transform: none; letter-spacing: 0; }
.rh-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px; margin-top: 12px; }
.rh-carte { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-4); background: var(--fond); font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: transform .25s var(--ressort), box-shadow .25s; animation: pop-entree .4s var(--ressort) both; animation-delay: calc(min(var(--i), 6) * 40ms); }
.rh-carte:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25,46,213,.10); }
.rh-carte .avatar-chat { margin: 0; flex: none; }
.rh-id { flex: 1; min-width: 0; display: grid; } .rh-id b { font-size: .92rem; } .rh-id small { font-size: .72rem; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.rh-droite { display: grid; justify-items: end; gap: 4px; } .rh-droite em { font-style: normal; font-weight: 750; font-size: 1.05rem; letter-spacing: -.02em; } .rh-droite em small { font-size: .62rem; font-weight: 500; color: var(--texte-3); margin-left: 2px; }
.rh-contrat { font-size: .6rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef0ff; color: var(--bleu); }
.rh-contrat.c-cdd { background: #fff4e0; color: #b86b00; } .rh-contrat.c-extra { background: #f1f2f5; color: var(--texte-2); } .rh-contrat.c-apprentissage, .rh-contrat.c-stage { background: #e9f8ef; color: var(--vert); }
.rh-carte.ancien { opacity: .55; }
.rh-form { display: grid; gap: 14px; margin-top: 16px; }
.rh-form > label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--texte-2); } .rh-form label small { font-weight: 500; color: var(--texte-3); font-size: .7rem; }
.rh-form input:not([type=radio]) { padding: 11px 14px; border: 1px solid var(--ligne); border-radius: var(--r-3); font: inherit; font-size: .95rem; background: #fff; color: var(--encre); }
.rh-choix { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; } .rh-choix legend { font-size: .8rem; font-weight: 600; color: var(--texte-2); margin-bottom: 6px; padding: 0; }
.rh-choix input { position: absolute; opacity: 0; pointer-events: none; }
.rh-choix span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--ligne); font-size: .84rem; cursor: pointer; transition: background .2s, color .2s; }
.rh-choix input:checked + span { background: var(--bleu); color: #fff; box-shadow: none; } .rh-choix input:focus-visible + span { outline: 2px solid var(--bleu); outline-offset: 2px; }
.rh-actions { display: flex; gap: 8px; }
.rh-danger { display: grid; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.rh-danger > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-4); background: #fff; }
.rh-danger b { font-size: .86rem; } .rh-danger span { grid-column: 1; font-size: .74rem; color: var(--texte-3); } .rh-danger button { grid-row: 1 / 3; grid-column: 2; }
.rh-danger .danger { background: #ffecec; color: var(--rouge); border-color: transparent; }
.rh-renvoi { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-height: 0; } .rh-renvoi > svg { width: 28px; height: 28px; color: var(--bleu); flex: none; }
.rh-renvoi span { flex: 1; display: grid; } .rh-renvoi small { font-size: .76rem; color: var(--texte-3); }
.rh-aide { flex-basis: 100%; font-size: .7rem; color: var(--texte-3); margin-top: 2px; }

/* ===================== Pointage (vestiaire) ===================== */
.pt { display: grid; gap: 18px; }
.pt-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--r-6); color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #3b52ff, transparent 55%), linear-gradient(140deg, #2338ee, #192ED5 50%, #0f1ea6); }
.pt-heure { font-size: clamp(3.2rem, 9vw, 5rem); font-weight: 750; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.pt-date { margin-top: 6px; font-size: .9rem; color: rgba(255,255,255,.8); text-transform: capitalize; }
.pt-compte { text-align: right; } .pt-compte b { display: block; font-size: 2.2rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; } .pt-compte span { font-size: .74rem; color: rgba(255,255,255,.75); }
.pt-consigne { margin: 0; font-size: .84rem; color: var(--texte-3); }
.pt-groupe h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); } .pt-groupe h3 svg { width: 18px; height: 18px; }
.pt-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 46%), 1fr)); gap: 10px; }
.pt-carte { position: relative; display: grid; justify-items: center; gap: 6px; padding: 20px 12px 16px; border: 0; border-radius: var(--r-5); background: #fff; box-shadow: 0 1px 0 var(--ligne), 0 6px 18px rgba(11,13,18,.05);
  font: inherit; color: inherit; cursor: pointer; transition: transform .3s var(--ressort), box-shadow .3s; animation: pop-entree .45s var(--ressort) both; animation-delay: calc(min(var(--i), 8) * 35ms); }
.pt-carte:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(25,46,213,.14); } .pt-carte:active { transform: scale(.97); }
.pt-carte .avatar-chat { width: 58px; height: 58px; font-size: 1.4rem; margin: 0; }
.pt-av { position: relative; } .pt-pastille { position: absolute; right: -1px; bottom: 1px; width: 15px; height: 15px; border-radius: 50%; background: var(--vert); border: 3px solid #fff; animation: pulse-direct 1.6s infinite; }
.e-pause .pt-pastille { background: var(--orange); }
.pt-carte b { font-size: 1rem; } .pt-carte small { font-size: .7rem; color: var(--texte-3); text-align: center; }
.pt-carte.e-service { box-shadow: inset 0 0 0 2px #bfe9cf, 0 6px 18px rgba(11,13,18,.05); } .pt-carte.e-service small { color: var(--vert); font-weight: 600; }
.pt-carte.e-pause { box-shadow: inset 0 0 0 2px #ffe0b0; } .pt-carte.e-pause small { color: #b86b00; font-weight: 600; }
.pt-carte.e-termine { opacity: .62; }
.pt-nouveau { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: .58rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #eef0ff; color: var(--bleu); }
.fiche-pt { width: min(520px, 100%); }
.pt-qui { display: flex; align-items: center; gap: 12px; } .pt-qui .avatar-chat { width: 46px; height: 46px; margin: 0; font-size: 1.1rem; }
.pt-prevu { display: flex; gap: 10px; margin: 16px 0; } .pt-prevu > div { flex: 1; padding: 12px 14px; border-radius: var(--r-4); background: #fff; } .pt-prevu small { display: block; font-size: .68rem; color: var(--texte-3); } .pt-prevu b { font-size: 1.05rem; }
.pt-pause-prevue { background: #fff7e8 !important; }
.pt-actions { display: grid; gap: 10px; }
.pt-action { display: flex; align-items: center; gap: 14px; padding: 22px 22px; border: 0; border-radius: var(--r-5); color: #fff; font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; transition: transform .25s var(--ressort), filter .2s; }
.pt-action svg { width: 28px; height: 28px; } .pt-action:active { transform: scale(.97); } .pt-action:hover { filter: brightness(1.06); }
.pt-action.t-vert { background: linear-gradient(135deg, #1fb866, #12924f); } .pt-action.t-orange { background: linear-gradient(135deg, #ffad33, #f08a00); } .pt-action.t-bleu { background: linear-gradient(135deg, #2338ee, #192ED5); }
.pt-rappel { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-3); background: #fff7e8; color: #8a5300; font-size: .78rem; }
.pt-lien { margin-top: 14px; border: 0; background: none; font: inherit; font-size: .84rem; font-weight: 600; color: var(--bleu); cursor: pointer; padding: 6px 0; }
.pt-premiere { display: grid; gap: 8px; padding: 18px; border-radius: var(--r-5); background: #fff; } .pt-premiere span { font-size: .84rem; color: var(--texte-2); line-height: 1.45; } .pt-premiere .principal { justify-self: start; margin-top: 6px; }
/* pavé numérique */
.pave { display: grid; justify-items: center; gap: 10px; padding: 8px 0; }
.pave-titre { font-size: 1.15rem; } .pave > small { color: var(--texte-3); font-size: .8rem; margin-top: -6px; }
.pave-points { display: flex; gap: 14px; margin: 8px 0 2px; } .pave-points i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--texte-3); transition: background .15s, transform .2s var(--ressort), box-shadow .15s; }
.pave-points i.plein { background: var(--bleu); box-shadow: none; transform: scale(1.12); }
.pave-err { margin: 0; color: var(--rouge); font-size: .82rem; font-weight: 600; text-align: center; }
.pave.secoue .pave-points { animation: secoue .4s; } @keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pave-touches { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; margin-top: 8px; }
.pave-touches button { height: 76px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 0 var(--ligne), 0 4px 12px rgba(11,13,18,.06); font: inherit; font-size: 1.6rem; font-weight: 600; color: var(--encre); cursor: pointer; transition: transform .15s, background .15s; }
.pave-touches button:active { transform: scale(.92); background: #eef0ff; }
/* réussite */
.pt-ok { display: grid; justify-items: center; gap: 8px; padding: 18px 0; text-align: center; }
.pt-ok-rond { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; color: #fff; background: var(--vert); animation: pop-entree .5s var(--ressort) both; box-shadow: 0 12px 30px rgba(18,146,79,.35); }
.pt-ok.t-orange .pt-ok-rond { background: var(--orange); box-shadow: 0 12px 30px rgba(240,138,0,.35); } .pt-ok.t-bleu .pt-ok-rond { background: var(--bleu); box-shadow: 0 12px 30px rgba(25,46,213,.35); }
.pt-ok-rond svg { width: 50px; height: 50px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: trace-coche .5s .25s var(--sortie) forwards; } @keyframes trace-coche { to { stroke-dashoffset: 0; } }
.pt-ok > b { font-size: 1.35rem; margin-top: 8px; } .pt-ok > span { color: var(--texte-2); } .pt-ok strong { color: var(--encre); font-size: 1.1rem; }
.pt-ok-bilan { display: flex; gap: 8px; margin-top: 8px; } .pt-ok-bilan div { padding: 10px 14px; border-radius: var(--r-3); background: #fff; } .pt-ok-bilan small { display: block; font-size: .64rem; color: var(--texte-3); } .pt-ok-bilan b { font-size: 1.05rem; }
.pt-preuve { margin-top: 6px; font-size: .66rem; color: var(--texte-3); }
/* mon mois */
.mm { display: grid; gap: 12px; }
.mm-tete { display: flex; align-items: center; gap: 10px; } .mm-tete b { min-width: 150px; text-align: center; text-transform: capitalize; } .mm-tete .sc-rond { background: #fff; color: var(--encre); } .mm-tete .sc-rond[disabled] { opacity: .3; }
.mm-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .mm-chiffres div { padding: 10px; border-radius: var(--r-3); background: #fff; } .mm-chiffres small { display: block; font-size: .62rem; color: var(--texte-3); } .mm-chiffres b { font-size: 1.05rem; }
.mm-chiffres .neg b, .neg { color: var(--rouge); } .pos { color: var(--vert); }
.mm-jours { display: grid; gap: 3px; max-height: 260px; overflow-y: auto; }
.mm-j { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; padding: 7px 10px; border-radius: var(--r-2); background: #fff; font-size: .8rem; } .mm-j span:first-child { color: var(--texte-3); text-transform: capitalize; }
.mm-j.s-manquant { background: #ffecec; color: var(--rouge); } .mm-j.s-corrige span:nth-child(2)::after { content: " ✎"; color: var(--texte-3); }
.mm-signe { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-3); background: #e9f8ef; color: var(--vert); font-weight: 600; font-size: .84rem; } .mm-signe svg { width: 20px; height: 20px; }
.mm-signer { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-4); background: #fff; } .mm-signer small { color: var(--texte-3); font-size: .74rem; }
.sig { width: 100%; height: 150px; border-radius: var(--r-3); background: repeating-linear-gradient(transparent 0 118px, var(--ligne) 118px 119px, transparent 119px 150px), #fbfbfd; box-shadow: inset 0 0 0 1.5px var(--ligne); touch-action: none; cursor: crosshair; }
.mm-sig-actions { display: flex; justify-content: space-between; gap: 8px; }

/* ===================== Temps de travail (gérant) ===================== */
.tt { display: grid; gap: 16px; }
.tt-barre { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tt-boutons { display: flex; gap: 8px; flex-wrap: wrap; } .tt-boutons button { display: inline-flex; align-items: center; gap: 6px; } .tt-boutons svg { width: 16px; height: 16px; }
.tt .grand small { font-size: .9rem; color: var(--texte-3); font-weight: 500; }
.tt-alerte { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-5); background: #fff3f3; box-shadow: inset 0 0 0 1.5px #ffd4d4; } .tt-alerte > b { display: flex; align-items: center; gap: 6px; color: var(--rouge); font-size: .86rem; } .tt-alerte svg { width: 18px; height: 18px; }
.tt-alerte > div { display: flex; flex-wrap: wrap; gap: 6px; } .tt-alerte .puce { background: #fff; text-transform: capitalize; }
.tt-liste { display: grid; gap: 10px; }
.tt-sal { border-radius: var(--r-5); background: #fff; box-shadow: 0 1px 0 var(--ligne), 0 6px 18px rgba(11,13,18,.04); overflow: hidden; animation: pop-entree .4s var(--ressort) both; animation-delay: calc(min(var(--i), 6) * 40ms); }
.tt-sal-tete { display: grid; grid-template-columns: auto minmax(140px, 1.3fr) minmax(120px, 1fr) auto minmax(0, 1.2fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tt-sal-tete .avatar-chat { margin: 0; }
.tt-id { display: grid; min-width: 0; } .tt-id b { font-size: .95rem; } .tt-id small { font-size: .72rem; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.tt-jauge { display: grid; gap: 4px; font-size: .74rem; color: var(--texte-3); } .tt-jauge b { color: var(--encre); font-size: .9rem; } .tt-jauge i { display: block; height: 6px; border-radius: var(--r-1); background: #eceef3; overflow: hidden; } .tt-jauge em { display: block; height: 100%; border-radius: var(--r-1); background: var(--bleu); }
.tt-solde { display: grid; text-align: right; font-weight: 750; font-size: 1.05rem; } .tt-solde small { font-size: .6rem; font-weight: 500; color: var(--texte-3); }
.tt-etats { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.et { font-style: normal; font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #f1f2f5; color: var(--texte-2); white-space: nowrap; }
.et.vert { background: #e9f8ef; color: var(--vert); } .et.rouge { background: #ffecec; color: var(--rouge); } .et.bleu { background: #eef0ff; color: var(--bleu); } .et.orange { background: #fff4e0; color: #b86b00; } .et.gris { background: #f1f2f5; color: var(--texte-3); }
.tt-chevron { width: 20px; height: 20px; color: var(--texte-3); transition: transform .3s var(--ressort); } .tt-sal.ouvert .tt-chevron { transform: rotate(180deg); }
.tt-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; padding: 0 18px 18px; animation: fondu .3s both; }
.tt-table-zone { overflow-x: auto; border-radius: var(--r-4); background: var(--fond); }
.tt-table { width: 100%; border-collapse: collapse; font-size: .76rem; font-variant-numeric: tabular-nums; }
.tt-table th { position: sticky; top: 0; padding: 8px 6px; background: var(--fond); text-align: left; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texte-3); font-weight: 700; }
.tt-table td { padding: 6px; border-top: 1px solid rgba(0,0,0,.04); white-space: nowrap; } .tt-table tbody tr { cursor: pointer; transition: background .15s; } .tt-table tbody tr:hover { background: #fff; }
.tt-table td:first-child { text-transform: capitalize; color: var(--texte-2); } .tt-table .gris { color: var(--texte-3); } .tt-table .tsem { font-weight: 700; color: var(--bleu); }
.tt-table tr.fin-sem td { border-bottom: 2px solid #dfe3ea; } .tt-table tr.s-prevu td { color: var(--texte-3); } .tt-table tr.s-repos td { color: #b9bdc7; }
.tt-table tr.s-manquant { background: #fff3f3; } .tt-table tr.s-corrige td:nth-child(2) .crayon { font-style: normal; color: var(--bleu); }
.tt-table sup { color: #b86b00; font-weight: 700; margin-left: 1px; } .tt-table .en-cours { font-style: normal; color: var(--vert); font-weight: 700; }
.code { display: inline-block; font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: var(--r-1); background: #eef0ff; color: var(--bleu); }
.code.c-Repos { background: transparent; color: #b9bdc7; } .code.c-CP, .code.c-JF { background: #e9f8ef; color: var(--vert); } .code.c-AM { background: #ffecec; color: var(--rouge); } .code.c-JR, .code.c-CSS, .code.c-JE, .code.c-Ecole { background: #fff4e0; color: #b86b00; }
.s-manquant .code { background: var(--rouge); color: #fff; } .s-prevu .code { background: transparent; color: var(--texte-3); }
.tt-recap { display: grid; gap: 10px; align-content: start; }
.tt-bloc { padding: 14px 16px; border-radius: var(--r-4); background: var(--fond); } .tt-bloc h4 { margin: 0 0 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-3); } .tt-bloc h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tt-l { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: .8rem; } .tt-l span { color: var(--texte-2); } .tt-l.fort { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--ligne); } .tt-l.fort b { font-size: 1.1rem; }
.tt-solde-prec { width: 76px; padding: 5px 8px; border: 1px solid var(--ligne); border-radius: var(--r-2); font: inherit; font-weight: 700; text-align: right; background: #fff; }
.tt-sig { display: grid; gap: 6px; } .tt-sig img { width: 100%; max-height: 90px; object-fit: contain; border-radius: var(--r-3); background: #fff; } .tt-sig small { font-size: .72rem; color: var(--texte-3); line-height: 1.4; }
.tt-obs { display: grid; gap: 4px; margin: 10px 0; font-size: .74rem; font-weight: 600; color: var(--texte-2); } .tt-obs textarea { padding: 8px 10px; border: 1px solid var(--ligne); border-radius: var(--r-3); font: inherit; font-size: .82rem; resize: vertical; }
.tt-valide { display: flex; align-items: center; gap: 8px; color: var(--bleu); font-weight: 700; font-size: .84rem; } .tt-valide svg { width: 20px; height: 20px; } .tt-valide button { margin-left: auto; }
.tt-bloc .principal[disabled] { opacity: .45; cursor: not-allowed; }
.tt-avant { display: grid; gap: 4px; margin: 14px 0 4px; padding: 12px 14px; border-radius: var(--r-4); background: #fff; font-size: .8rem; color: var(--texte-2); }
.tt-heures { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; } .tt-heures[hidden] { display: none !important; }
.tt-heures label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--texte-2); }
.tt-heures input { padding: 11px 12px; border: 1px solid var(--ligne); border-radius: var(--r-3); font: inherit; background: #fff; }
@media (max-width: 1000px) { .tt-detail { grid-template-columns: 1fr; } .tt-sal-tete { grid-template-columns: auto 1fr auto auto; } .tt-jauge, .tt-etats { grid-column: 2 / -1; } .tt-etats { justify-content: flex-start; } .tt-chevron { grid-row: 1; grid-column: 4; } }

/* ===================== Fiche RH : semaine type et code ===================== */
.rh-section { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ligne); } .rh-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .95rem; } .rh-section h3 svg { width: 18px; height: 18px; color: var(--bleu); }
.sem { display: grid; gap: 6px; margin: 10px 0 12px; }
.sem-l { display: grid; grid-template-columns: 96px repeat(5, minmax(0, 1fr)) 52px; align-items: end; gap: 6px; padding: 8px; border-radius: var(--r-3); background: #fff; }
.sem-l.repos { grid-template-columns: 96px 1fr; align-items: center; background: transparent; box-shadow: inset 0 0 0 1px var(--ligne); }
.sem-jour { display: grid; text-align: left; border: 0; background: none; font: inherit; cursor: pointer; padding: 4px; border-radius: var(--r-2); } .sem-jour b { font-size: .82rem; } .sem-jour small { font-size: .64rem; color: var(--bleu); } .sem-l.repos .sem-jour small { color: var(--texte-3); } .sem-jour:hover { background: var(--fond); }
.sem-l label { display: grid; gap: 2px; } .sem-l label small { font-size: .58rem; color: var(--texte-3); } .sem-l input { width: 100%; min-width: 0; padding: 6px; border: 1px solid var(--ligne); border-radius: var(--r-2); font: inherit; font-size: .78rem; }
.sem-tot { font-size: .86rem; text-align: right; padding-bottom: 6px; } .sem-repos { font-size: .78rem; color: var(--texte-3); }
@media (max-width: 560px) { .sem-l { grid-template-columns: repeat(3, 1fr); } .sem-l .sem-jour { grid-column: 1 / -1; } .sem-l.repos { grid-template-columns: 1fr auto; } }
.rh-code { display: grid; gap: 6px; justify-items: start; margin-top: 8px; } .rh-code .sous { font-size: .78rem; }
.rh-activation { display: grid; gap: 4px; margin-top: 12px; padding: 18px; border-radius: var(--r-5); color: #fff; background: linear-gradient(140deg, #2338ee, #192ED5 50%, #0f1ea6); animation: pop-entree .45s var(--ressort) both; }
.rh-activation small, .rh-activation span { color: rgba(255,255,255,.8); font-size: .76rem; } .rh-activation b { font-size: 2.4rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

/* ===================== Impression : fiche navette et feuilles de temps ===================== */
#impression { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: #e9ebf0; }
.imp-barre { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ligne); }
.imp-barre span { display: flex; gap: 8px; }
.imp-feuilles { display: grid; gap: 20px; justify-items: center; padding: 24px 12px 60px; }
.feuille { width: min(1060px, 100%); padding: 28px 30px; background: #fff; border-radius: var(--r-1); box-shadow: 0 10px 30px rgba(11,13,18,.12); color: #111; font-size: 11px; }
.feuille header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #192ED5; }
.feuille h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; } .feuille header p { margin: 2px 0 0; color: #555; } .imp-mois { font-size: 16px; font-weight: 700; color: #192ED5; text-transform: capitalize; }
.nav-table, .imp-table { width: 100%; border-collapse: collapse; } .nav-table th, .nav-table td, .imp-table th, .imp-table td { border: 1px solid #d9dce3; padding: 5px 6px; text-align: left; vertical-align: top; }
.nav-table thead th { background: #192ED5; color: #fff; } .nav-table tbody th { width: 24%; background: #f6f7fa; font-weight: 600; } .nav-sec td { background: #eef0ff; font-weight: 700; color: #192ED5; text-transform: uppercase; font-size: 10px; letter-spacing: .05em; }
.imp-table th { background: #f6f7fa; font-size: 9.5px; text-transform: uppercase; } .imp-table td { font-variant-numeric: tabular-nums; } .imp-table tr.fin-sem td { border-bottom: 2px solid #9aa0ad; } .imp-table td:first-child { text-transform: capitalize; }
.imp-note { margin: 10px 0 0; color: #666; font-size: 10px; }
.imp-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; } .imp-totaux { display: grid; gap: 3px; } .imp-totaux b { margin-left: 4px; }
.imp-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .imp-sigs > div { display: grid; align-content: start; gap: 4px; min-height: 90px; padding: 8px; border: 1px solid #d9dce3; border-radius: var(--r-1); } .imp-sigs img { max-height: 60px; max-width: 100%; object-fit: contain; } .imp-sigs small { color: #666; font-size: 9px; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body.mode-impression > *:not(#impression) { display: none !important; }
  body.mode-impression { background: #fff; }
  #impression { position: static; overflow: visible; background: #fff; } .imp-barre { display: none; } .imp-feuilles { display: block; padding: 0; }
  .feuille { width: auto; box-shadow: none; border-radius: 0; padding: 0; page-break-after: always; } .feuille:last-child { page-break-after: auto; }
}
.tt-table tr.s-avant td { color: #b9bdc7; } .s-avant .code { background: transparent; color: #b9bdc7; font-weight: 500; }
.rh-code-boutons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; } .rh-code-boutons a.principal { text-decoration: none; display: inline-flex; align-items: center; }
.rh-envoye { display: grid; gap: 8px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-4); background: #e9f8ef; } .rh-envoye > svg { width: 22px; height: 22px; color: var(--vert); }
.rh-envoye:not(.attente) { grid-template-columns: auto 1fr; align-items: center; } .rh-envoye span { display: grid; gap: 2px; } .rh-envoye b { font-size: .88rem; } .rh-envoye small { font-size: .76rem; color: var(--texte-2); }
.rh-envoye.attente { background: #fff7e8; }
.rh-acte { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; margin-top: 8px; padding: 12px; border-radius: var(--r-4); background: #fff; box-shadow: inset 0 0 0 1px var(--ligne); }
.rh-acte img { width: 120px; height: 60px; object-fit: contain; border-radius: var(--r-2); background: var(--fond); } .rh-acte b { font-size: .84rem; } .rh-acte small { display: block; font-size: .7rem; color: var(--texte-3); margin-top: 2px; }
.rh-acte details { margin-top: 6px; font-size: .74rem; color: var(--texte-2); } .rh-acte summary { cursor: pointer; color: var(--bleu); font-weight: 600; } .rh-acte details p { margin: 6px 0 0; line-height: 1.45; }
.pt-declaration { padding: 12px 14px; border-radius: var(--r-3); background: var(--fond); font-size: .8rem; color: var(--texte-2); line-height: 1.5; }
.pt-coche { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; font-weight: 600; margin: 6px 0; } .pt-coche input { width: 20px; height: 20px; accent-color: var(--bleu); flex: none; }

/* ===== Fiche navette et feuilles de temps v2 (impression A4 paysage) ===== */
.feuille { width: min(1120px, 100%); padding: 26px 30px 22px; font: 10.5px/1.35 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #12141a; }
.imp-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: -26px -30px 16px; padding: 22px 30px 16px; color: #fff; border-bottom: 0;
  background: linear-gradient(120deg, #2338ee, #192ED5 55%, #0f1ea6); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.imp-tete h1 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.02em; color: #fff; } .imp-tete p { margin: 3px 0 0; color: rgba(255,255,255,.82); font-size: 11px; }
.imp-marque { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.imp-tete .imp-mois { display: grid; justify-items: end; color: #fff; } .imp-tete .imp-mois b { font-size: 17px; text-transform: capitalize; } .imp-tete .imp-mois small { font-size: 9.5px; color: rgba(255,255,255,.75); }
.feuille table { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.nav-table { table-layout: fixed; } .nav-table th, .nav-table td { padding: 5px 7px; border-color: #dfe2ea; }
.nav-table thead th { background: #0f1ea6; color: #fff; font-size: 10.5px; text-align: center; } .nav-table thead th:first-child { text-align: left; }
.nav-table tbody th { width: auto; background: #f6f7fa; font-weight: 600; color: #3a3f4b; } .nav-table th.nav-g { width: 92px; background: #eef0ff; color: #192ED5; font-weight: 700; font-size: 10px; vertical-align: middle; }
.nav-table th.nav-g small { font-weight: 500; color: #5b63c9; } .nav-table tbody tr > th:not(.nav-g) { width: 210px; }
.nav-table td { text-align: center; } .nav-table td.num { font-variant-numeric: tabular-nums; } .nav-table td b { color: #0b0d12; }
.nav-sec td { padding: 6px 8px !important; background: #192ED5 !important; color: #fff !important; text-align: left !important; font-size: 9.5px; letter-spacing: .1em; }
.ft-grille { display: grid; grid-template-columns: 284px 1fr; gap: 16px; align-items: start; }
.ft-gauche { display: grid; gap: 10px; }
.ft-synthese, .ft-codes { width: 100%; border-collapse: collapse; } .ft-synthese th, .ft-synthese td, .ft-codes th, .ft-codes td { border: 1px solid #dfe2ea; padding: 4px 6px; text-align: left; }
.ft-synthese th { background: #f6f7fa; font-weight: 600; color: #3a3f4b; } .ft-synthese td { text-align: right; font-variant-numeric: tabular-nums; width: 70px; }
.ft-synthese tr.fort th, .ft-synthese tr.fort td { background: #eef0ff; color: #192ED5; font-weight: 800; }
.ft-codes thead th { background: #192ED5; color: #fff; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; } .ft-codes th, .ft-codes td { white-space: nowrap; } .ft-codes td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.ft-semaine td:nth-child(n+2) { text-align: center !important; }
.ft .imp-table { font-size: 9.6px; } .ft .imp-table th { background: #192ED5; color: #fff; font-size: 8.6px; letter-spacing: .02em; text-align: center; } .ft .imp-table td { padding: 3px 5px; text-align: center; } .ft .imp-table td:first-child { text-align: left; }
.ft .imp-table td.tsem { font-weight: 800; color: #192ED5; } .ft .imp-table td.obs { text-align: left; color: #555; font-size: 8.8px; max-width: 170px; }
.ft .imp-table tr.absence td:nth-child(2) { background: #fff1f1; color: #b4231f; font-weight: 700; } .ft .imp-table tr.manquant td { background: #fff7e8; }
.ft .imp-table tr:nth-child(even) td { background-color: #fbfbfd; }
.feuille .imp-sigs { margin-top: 12px; } .feuille .imp-sigs > div { min-height: 78px; }
.tt-vars { display: grid; gap: 6px; } .tt-vars label { display: grid; gap: 2px; font-size: .7rem; color: var(--texte-3); font-weight: 600; }
.tt-vars input { padding: 7px 10px; border: 1px solid var(--ligne); border-radius: var(--r-2); font: inherit; font-size: .8rem; background: #fff; color: var(--encre); }
@media print { .imp-tete { margin: 0 0 12px; border-radius: 0; } .feuille { padding: 0; font-size: 9.6px; } .ft-grille { grid-template-columns: 250px 1fr; } }
#impression .imp-feuilles > .feuille { display: block; gap: 0; align-items: initial; border: 0; cursor: default; text-align: left; }
@media print {
  @page { size: A4 landscape; margin: 7mm; }
  .navette { font-size: 8.6px; } .navette .imp-tete { padding: 8px 12px; margin-bottom: 6px; } .navette .imp-tete h1 { font-size: 16px; } .navette .imp-tete p { font-size: 9px; }
  .navette .nav-table th, .navette .nav-table td { padding: 1.6px 5px; line-height: 1.2; } .navette .nav-sec td { padding: 2.5px 6px !important; font-size: 8px; }
  .navette .imp-note { margin-top: 4px; font-size: 8px; }
  .ft { font-size: 8.6px; } .ft .imp-tete { padding: 8px 12px; margin-bottom: 8px; } .ft .imp-tete h1 { font-size: 16px; }
  .ft .imp-table td, .ft .imp-table th { padding: 1.4px 4px; } .ft-synthese th, .ft-synthese td, .ft-codes th, .ft-codes td { padding: 2px 5px; }
  .feuille .imp-sigs > div { min-height: 56px; } .imp-sigs img { max-height: 44px; }
}
/* les pages imprimées n'héritent pas du style des tableaux de l'app */
#impression .feuille table { border-collapse: collapse; border-spacing: 0; border-radius: 0; box-shadow: none; background: transparent; width: 100%; }
#impression .feuille th, #impression .feuille td { font-size: inherit; letter-spacing: normal; text-transform: none; height: auto; }
#impression .feuille .nav-sec td, #impression .feuille .ft-codes thead th { text-transform: uppercase; }
#impression .imp-tete .imp-mois small { text-transform: none; } #impression .imp-tete p { color: rgba(255,255,255,.88); }
#impression .feuille b { font-size: inherit; } #impression .ft-codes td b { font-size: 1.05em; }

/* ===================== Bulletins de paie ===================== */
.bp { display: grid; gap: 16px; }
.bp-depot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-6); background: #fff; box-shadow: inset 0 0 0 2px #dfe3ff; transition: box-shadow .2s, transform .25s var(--ressort), background .2s; }
.bp-depot.survol { box-shadow: inset 0 0 0 3px var(--bleu); background: #f4f6ff; transform: scale(1.01); }
.bp-depot-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--r-4); background: #eef0ff; color: var(--bleu); } .bp-depot-ic svg { width: 28px; height: 28px; }
.bp-depot b { display: block; font-size: 1rem; } .bp-depot span { font-size: .8rem; color: var(--texte-3); line-height: 1.45; }
.bp-choisir { cursor: pointer; white-space: nowrap; }
.bp-verif-tete { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
#bp-verif { display: grid; gap: 12px; } #bp-verif:empty { display: none; }
.bp-carte { display: grid; grid-template-columns: minmax(260px, 0.9fr) 1.4fr; gap: 16px; padding: 16px; border-radius: var(--r-5); background: #fff; box-shadow: 0 6px 18px rgba(11,13,18,.05); animation: pop-entree .4s var(--ressort) both; }
.bp-carte.lecture { grid-template-columns: 1fr; }
.bp-apercu { width: 100%; height: 440px; border: 0; border-radius: var(--r-3); background: var(--fond); }
.bp-form { display: grid; gap: 12px; align-content: start; } .bp-form-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bp-grille label { display: grid; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--texte-2); } .bp-grille label small { color: var(--texte-3); font-weight: 500; }
.bp-grille input, .bp-grille select { padding: 8px 10px; border: 1px solid var(--ligne); border-radius: var(--r-2); font: inherit; font-size: .84rem; background: #fff; color: var(--encre); min-width: 0; }
.bp-grille label.cp input { background: #f4f6ff; } .bp-grille label.vide input { border-style: dashed; }
.bp-sal .grand small { font-size: .9rem; color: var(--texte-3); font-weight: 500; } .bp-sal .grand.gris { color: #c3c7d0; }
.bp-sal .etiquette .avatar-chat { margin: 0; width: 22px; height: 22px; font-size: .7rem; }
.bp-der { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--ligne); font-size: .78rem; color: var(--texte-2); }
.bp-table td { cursor: default; } .bp-act { display: flex; gap: 6px; } .bp-act a { text-decoration: none; }
@media (max-width: 800px) { .bp-carte { grid-template-columns: 1fr; } .bp-apercu { height: 300px; } .bp-depot { grid-template-columns: 1fr; } }

/* ===================== Centre de notifications (gérant) ===================== */
.lien-notif.active-notif svg { color: var(--bleu); animation: cloche-notif 2.6s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes cloche-notif { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(14deg); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
.fiche-notifs { width: min(560px, 100%); }
.notifs { display: grid; gap: 8px; margin-top: 16px; }
.notif { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-5); background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 1px 0 var(--ligne); transition: transform .25s var(--ressort), box-shadow .25s; animation: pop-entree .4s var(--ressort) both; animation-delay: calc(var(--i) * 50ms); }
.notif:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25,46,213,.12); }
.notif-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-3); background: #eef0ff; color: var(--bleu); } .notif-ic svg { width: 22px; height: 22px; }
.notif.urgent .notif-ic { background: #ffecec; color: var(--rouge); } .notif.action .notif-ic { background: #fff4e0; color: #b86b00; }
.notif-txt { display: grid; gap: 2px; } .notif-txt b { font-size: .92rem; } .notif-txt small { font-size: .76rem; color: var(--texte-3); line-height: 1.4; }
.notif-fleche { width: 18px; height: 18px; color: var(--texte-3); }
.notifs-vide { display: grid; justify-items: center; gap: 6px; margin: 30px 0 10px; padding: 30px 20px; border-radius: var(--r-5); background: #fff; text-align: center; }
.notifs-vide svg { width: 36px; height: 36px; color: var(--vert); } .notifs-vide span { font-size: .82rem; color: var(--texte-3); max-width: 340px; }
.notif-toast { border-left: 4px solid #f08a00; }
.bp-rappel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-5); background: #fff7e8; box-shadow: inset 0 0 0 1.5px #ffe0b0; }
.bp-rappel > svg { width: 26px; height: 26px; color: #b86b00; } .bp-rappel b { display: block; } .bp-rappel span { font-size: .8rem; color: #8a5300; } .bp-rappel a { text-decoration: none; white-space: nowrap; }
.notif-bloc { display: grid; gap: 0; border-radius: var(--r-5); background: #fff; box-shadow: 0 1px 0 var(--ligne); overflow: hidden; animation: pop-entree .4s var(--ressort) both; animation-delay: calc(var(--i) * 50ms); }
.notif-bloc .notif { box-shadow: none; animation: none; border-radius: 0; }
.notif-details { padding: 0 16px 12px 72px; } .notif-details summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--bleu); list-style: none; padding: 2px 0 6px; }
.notif-details summary::-webkit-details-marker { display: none; } .notif-details summary::after { content: " ›"; display: inline-block; transition: transform .2s; } .notif-details[open] summary::after { transform: rotate(90deg); }
.notif-etapes { margin: 4px 0 10px; padding-left: 18px; display: grid; gap: 6px; font-size: .82rem; color: var(--texte-2); line-height: 1.45; } .notif-etapes li::marker { color: var(--bleu); font-weight: 800; }
.notif-actions { display: flex; flex-wrap: wrap; gap: 8px; } .notif-actions a { text-decoration: none; }
.bp-rappel-bloc { display: grid; border-radius: var(--r-5); background: #fff7e8; box-shadow: inset 0 0 0 1.5px #ffe0b0; } .bp-rappel-bloc .bp-rappel { box-shadow: none; background: transparent; }
.bp-details { padding: 0 18px 14px 58px; }
@media (max-width: 560px) { .notif-details, .bp-details { padding-left: 16px; } }
.badge.source-claude { margin-left: 6px; background: #eef0ff; color: var(--bleu); } .note-allergene { margin: 8px 0 0; font-size: .74rem; color: #8a5300; line-height: 1.4; }

/* ===================== Salle › Commandes ===================== */
.cmd { display: grid; gap: 16px; }
.cmd-tete { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; padding: 20px 22px; border-radius: var(--r-6); color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #3b52ff, transparent 55%), linear-gradient(140deg, #2338ee, #192ED5 50%, #0f1ea6); }
.cmd-tete .fv-sous { color: rgba(255,255,255,.75); text-transform: capitalize; } .cmd-tete h2 { margin: 4px 0 10px; font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -.03em; }
.cmd-puces { display: flex; flex-wrap: wrap; gap: 6px; } .cmd-puces .puce { background: #fff; color: var(--bleu); font-weight: 700; }
.cmd-copie { display: flex; align-items: center; gap: 8px; max-width: 280px; padding: 10px 12px; border-radius: var(--r-4); background: rgba(255,255,255,.12); font-size: .76rem; color: rgba(255,255,255,.9); } .cmd-copie svg { width: 20px; height: 20px; flex: none; }
.cmd-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.cmd-carte { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 0; border-radius: var(--r-5); background: #fff; box-shadow: 0 1px 0 var(--ligne), 0 6px 18px rgba(11,13,18,.04); font: inherit; color: inherit; text-align: left;
  animation: pop-entree .4s var(--ressort) both; animation-delay: calc(min(var(--i), 8) * 35ms); }
.cmd-carte.auj { box-shadow: inset 0 0 0 2px #c9d0ff, 0 6px 18px rgba(25,46,213,.08); }
.cmd-cat { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); } .cmd-nom { font-size: 1.08rem; letter-spacing: -.02em; }
.cmd-carte .et { align-self: flex-start; }
.cmd-infos { display: grid; gap: 4px; margin-top: 2px; } .cmd-infos div { display: grid; grid-template-columns: 70px 1fr; gap: 6px; font-size: .78rem; } .cmd-infos small { color: var(--texte-3); }
.cmd-notes { margin: 0; padding: 8px 10px 8px 24px; border-radius: var(--r-3); background: #fff7e8; color: #8a5300; font-size: .74rem; line-height: 1.45; }
.cmd-bas { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; } .cmd-bas small { flex: 1; font-size: .7rem; color: var(--texte-3); } .cmd-bas a { text-decoration: none; }
.cmd-ajout { align-items: center; justify-content: center; min-height: 140px; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 2px dashed var(--ligne); border: 2px dashed var(--ligne); color: var(--texte-3); } .cmd-ajout svg { width: 26px; height: 26px; }
.cmd-l .sous { font-size: .74rem; } .cmd-statuts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; } .cmd-statuts button { border: 0; cursor: pointer; font: inherit; } .cmd-statuts em { font-style: normal; font-size: .66rem; margin-left: 4px; }
.fiche-cmd { width: min(640px, 100%); }
.cmd-rappel { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; } .cmd-rappel span { display: grid; padding: 8px 12px; border-radius: var(--r-3); background: #fff; font-size: .82rem; } .cmd-rappel small { font-size: .64rem; color: var(--texte-3); }
.cmd-attention { margin-bottom: 8px; padding: 10px 12px; border-radius: var(--r-3); background: #fff7e8; color: #8a5300; font-size: .8rem; line-height: 1.45; }
.cmd-form { display: grid; gap: 12px; margin-top: 8px; }
.cmd-form > label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--texte-2); } .cmd-form label small { font-weight: 500; color: var(--texte-3); }
.cmd-form input, .cmd-form select, .cmd-form textarea { padding: 10px 12px; border: 1px solid var(--ligne); border-radius: var(--r-3); font: inherit; font-size: .9rem; background: #fff; color: var(--encre); }
.cmd-form textarea { font-size: .84rem; line-height: 1.5; resize: vertical; }
.cmd-lignes-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .cmd-lignes-tete b { font-size: .84rem; }
#cmd-lignes { display: grid; gap: 6px; } .cmd-ligne { display: grid; grid-template-columns: 80px 1fr auto; gap: 6px; }
.cmd-entete-mail { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--r-3); background: #fff; font-size: .82rem; } .cmd-entete-mail small { display: inline-block; width: 56px; color: var(--texte-3); }
.cmd-envoi { display: flex; flex-wrap: wrap; gap: 8px; }
.cmd-echanges { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--ligne); } .cmd-echanges h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .9rem; } .cmd-echanges h3 svg { width: 18px; height: 18px; color: var(--bleu); }
@media (max-width: 700px) { .cmd-tete { grid-template-columns: 1fr; } .cmd-copie { max-width: none; } }

/* Pastilles des fournisseurs (site vitrine) */
.pastille { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 6px 16px rgba(11,13,18,.12); transition: transform .4s var(--ressort); }
.pastille.grande { width: 72px; height: 72px; }
.pastille-vide { display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.cmd-carte-tete { display: flex; align-items: center; gap: 14px; } .cmd-carte-tete > div { display: grid; gap: 3px; justify-items: start; }
.cmd-carte:hover .pastille { transform: rotate(-8deg) scale(1.06); }
.cmd-fiche-titre { display: flex; align-items: center; gap: 14px; }
.cmd-choix-pastille { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.cmd-choix-pastille legend { font-size: .8rem; font-weight: 600; color: var(--texte-2); margin-bottom: 6px; padding: 0; } .cmd-choix-pastille legend small { font-weight: 500; color: var(--texte-3); }
.cmd-choix-pastille label { display: grid; justify-items: center; gap: 4px; padding: 6px; border-radius: var(--r-3); cursor: pointer; text-align: center; }
.cmd-choix-pastille input { position: absolute; opacity: 0; pointer-events: none; }
.cmd-choix-pastille .pastille { width: 52px; height: 52px; box-shadow: none; } .cmd-choix-pastille small { font-size: .66rem; color: var(--texte-3); line-height: 1.2; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cmd-choix-pastille label:has(input:checked) { background: #eef0ff; box-shadow: inset 0 0 0 2px var(--bleu); }

/* ===================== Production : vue d'ensemble (tient sur un iPad) ===================== */
.prod-bascule { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 999px; background: #fff; box-shadow: 0 1px 0 var(--ligne); }
.prod-bascule button { border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 600; color: var(--texte-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.prod-bascule button.actif { background: var(--bleu); color: #fff; }
.pv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pv-plat { display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 10px; border-radius: var(--r-5); background: #fff; box-shadow: 0 1px 0 var(--ligne), 0 6px 16px rgba(11,13,18,.04);
  animation: pop-entree .4s var(--ressort) both; animation-delay: calc(var(--i) * 35ms); }
.pv-plat header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pv-type { font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); }
.pv-plat h3 { margin: 1px 0 0; font-size: .95rem; letter-spacing: -.02em; line-height: 1.15; }
.pv-serv { display: grid; justify-items: end; line-height: 1; } .pv-serv b { font-size: 1.55rem; font-weight: 800; letter-spacing: -.04em; } .pv-serv small { font-size: .56rem; color: var(--texte-3); margin-top: 2px; }
.pv-serv.t-rouge b { color: var(--rouge); } .pv-serv.t-orange b { color: #e07b00; } .pv-serv.t-vert b { color: var(--vert); }
.pv-sous { margin: 4px 0 6px; font-size: .64rem; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pv-sous b { color: var(--texte-2); }
.pv-lignes { display: grid; gap: 2px; }
.pv-l { display: grid; grid-template-columns: minmax(0, 1fr) 54px 46px; align-items: center; gap: 6px; width: 100%; padding: 4px 6px; border: 0; border-radius: var(--r-2); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pv-l:hover { background: var(--fond); }
.pv-nom { min-width: 0; font-size: .7rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.pv-etat { font-style: normal; font-size: .52rem; font-weight: 700; margin-left: 4px; padding: 1px 5px; border-radius: 999px; background: #f1f2f5; color: var(--texte-2); vertical-align: 1px; }
.pv-etat.orange { background: #fff4e0; color: #b86b00; } .pv-etat.bleu { background: #eef0ff; color: var(--bleu); } .pv-etat.vert { background: #e9f8ef; color: var(--vert); }
.pv-dlc { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; } .pv-dlc.rouge { background: var(--rouge); } .pv-dlc.orange { background: var(--orange); }
.pv-barre { position: relative; display: flex; height: 7px; border-radius: var(--r-1); background: #eceef3; overflow: visible; }
.pv-barre i { display: block; height: 100%; } .pv-barre i:first-child { border-radius: var(--r-1) 0 0 var(--r-1); }
.pv-barre .p, .pv-legende .p { background: var(--bleu); } .pv-barre .r, .pv-legende .r { background: #7d8bff; } .pv-barre .c, .pv-legende .c { background: #c9d0ff; }
.pv-barre .obj, .pv-legende .obj { position: absolute; top: -3px; width: 2px; height: 13px; border-radius: 2px; background: var(--encre); transform: translateX(-1px); }
.pv-l.t-rouge .pv-barre { box-shadow: 0 0 0 1.5px #ffcfcf; } .pv-l.t-rouge .pv-chiffres b { color: var(--rouge); } .pv-l.t-orange .pv-chiffres b { color: #e07b00; }
.pv-l.t-neutre .pv-barre { opacity: .35; }
.pv-chiffres { display: flex; align-items: baseline; justify-content: flex-end; gap: 3px; font-variant-numeric: tabular-nums; } .pv-chiffres b { font-size: .78rem; } .pv-chiffres small { font-size: .6rem; font-weight: 700; color: #b86b00; } .pv-chiffres small.ok { color: var(--vert); }
.pv-synthese { background: linear-gradient(160deg, #fff, #f4f6ff); }
.pv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 4px; } .pv-kpis div { padding: 8px; border-radius: var(--r-3); background: #fff; text-align: center; }
.pv-kpis b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; } .pv-kpis small { font-size: .56rem; color: var(--texte-3); }
.pv-kpis .rouge b { color: var(--rouge); } .pv-kpis .orange b { color: #e07b00; }
.pv-prio { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border: 0; border-radius: var(--r-2); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.pv-prio span { min-width: 0; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pv-prio small { display: block; font-size: .58rem; color: var(--texte-3); } .pv-prio b { font-size: .78rem; color: #b86b00; }
.pv-legende { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; font-size: .58rem; color: var(--texte-3); } .pv-legende span { display: inline-flex; align-items: center; gap: 4px; }
.pv-legende i { display: inline-block; width: 12px; height: 6px; border-radius: var(--r-1); } .pv-legende .obj { position: static; transform: none; height: 10px; }
@media (max-width: 1100px) { .pv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pv { grid-template-columns: 1fr; } }
.pv-synthese .prod-bascule { margin: 0; padding: 3px; box-shadow: inset 0 0 0 1px var(--ligne); } .pv-synthese .prod-bascule button { padding: 4px 8px; font-size: .6rem; }
.pv-l { grid-template-columns: minmax(0, 1fr) 44px 42px; gap: 5px; padding: 3px 5px; }
.pv-nom { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .68rem; line-height: 1.15; }
@media (min-width: 980px) { .pv { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 979px) and (min-width: 601px) { .pv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) and (max-width: 1100px) {
  .pv { gap: 8px; } .pv-plat { padding: 9px 9px 8px; border-radius: var(--r-4); }
  .pv-plat h3 { font-size: .84rem; } .pv-serv b { font-size: 1.3rem; } .pv-sous { margin: 2px 0 4px; }
  .pv-l { grid-template-columns: minmax(0, 1fr) 36px 38px; gap: 4px; padding: 2px 3px; } .pv-nom { font-size: .62rem; } .pv-chiffres b { font-size: .72rem; }
  .pv-kpis b { font-size: 1.1rem; } .pv-prio { padding: 4px 6px; }
}
@media (min-width: 601px) and (max-width: 979px) {
  .pv { gap: 8px; } .pv-plat { padding: 9px 10px 8px; border-radius: var(--r-4); }
  .pv-plat h3 { font-size: .86rem; } .pv-serv b { font-size: 1.3rem; } .pv-sous { margin: 2px 0 3px; }
  .pv-l { padding: 2px 4px; } .pv-nom { font-size: .66rem; } .pv-kpis { margin: 6px 0 2px; } .pv-kpis div { padding: 6px; } .pv-prio { padding: 4px 6px; }
}
.pv-chiffres { white-space: nowrap; } .pv-vue { font-style: normal; font-size: .58rem; color: var(--texte-3); }

/* ===================== Production : vue Priorités ===================== */
.pr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(220px, .6fr); gap: 12px; align-items: start; }
.pr-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border-radius: var(--r-5); background: #fff; box-shadow: 0 1px 0 var(--ligne), 0 6px 16px rgba(11,13,18,.04); }
.pr-col header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; } .pr-col h3 { margin: 0; font-size: 1rem; letter-spacing: -.02em; } .pr-col header small { font-size: .7rem; color: var(--texte-3); }
.pr-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rouge); color: #fff; font-weight: 800; flex: none; } .pr-num.gris { background: var(--bleu); }
.pr-urgent { box-shadow: inset 0 0 0 2px #ffd9d9, 0 6px 16px rgba(214,50,47,.06); }
.pr-col h4 { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); } .pr-col h4 span { padding: 1px 7px; border-radius: 999px; background: var(--fond); color: var(--texte-2); }
.pr-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nom action" "calc action"; gap: 2px 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-3); background: var(--fond); font: inherit; color: inherit; text-align: left; cursor: pointer;
  animation: pop-entree .35s var(--ressort) both; animation-delay: calc(min(var(--i), 8) * 30ms); }
.pr-l:hover { box-shadow: inset 0 0 0 1.5px var(--ligne); }
.pr-l.rouge { background: #fff3f3; } .pr-l.bleu { background: #f1f3ff; }
.pr-nom { grid-area: nom; min-width: 0; } .pr-nom b { display: block; font-size: .84rem; line-height: 1.2; } .pr-nom small { font-size: .64rem; color: var(--texte-3); }
.pr-calc { grid-area: calc; font-size: .66rem; color: var(--texte-2); } .pr-calc b { color: var(--encre); }
.pr-action { grid-area: action; display: grid; justify-items: end; line-height: 1; } .pr-action em { font-style: normal; font-size: .56rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-3); }
.pr-action b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; } .pr-action small { font-size: .56rem; color: var(--texte-3); margin-top: 2px; }
.pr-l.rouge .pr-action b { color: var(--rouge); } .pr-l.bleu .pr-action b { color: var(--bleu); }
.pr-tag { font-weight: 700; } .pr-tag.vert { color: var(--vert); } .pr-tag.bleu { color: var(--bleu); } .pr-tag.orange { color: #b86b00; }
.pr-defile { display: grid; gap: 6px; max-height: calc(100vh - 230px); overflow-y: auto; }
.pr-ok { margin: 2px 0; padding: 8px 10px; border-radius: var(--r-3); background: #e9f8ef; color: var(--vert); font-size: .76rem; font-weight: 600; }
.pr-dlc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; width: 100%; padding: 7px 9px; border: 0; border-radius: var(--r-3); background: var(--fond); font: inherit; text-align: left; cursor: pointer; } .pr-dlc span { flex: 1 1 100%; font-size: .74rem; font-weight: 600; }
.pr-aide { display: grid; gap: 5px; margin-top: 8px; padding: 10px; border-radius: var(--r-3); background: #f6f7fa; font-size: .66rem; color: var(--texte-2); line-height: 1.4; } .pr-aide > b { font-size: .7rem; color: var(--encre); }
@media (max-width: 1100px) { .pr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pr-cote { grid-column: 1 / -1; } }
@media (max-width: 700px) { .pr { grid-template-columns: 1fr; } .pr-defile { max-height: none; } }

/* ===================== Fiche composant compacte (bacs d'un coup d'œil) ===================== */
.fc-titre { font-size: 1.3rem; margin: 0; letter-spacing: -.02em; } .fc-meta { margin: 3px 0 0; font-size: .74rem; color: var(--texte-3); }
.fc-etats { margin: 10px 0 8px; gap: 4px; } .fc-etats .petit { padding: 5px 10px; font-size: .72rem; }
.fc-compteurs { grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 12px; }
.fc-compteurs div { padding: 8px 4px; border-radius: var(--r-3); } .fc-compteurs b { font-size: 1.25rem; font-weight: 700; } .fc-compteurs span { font-size: .62rem; }
.fc-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fc-zone { display: grid; gap: 5px; align-content: start; padding: 8px; border-radius: var(--r-4); background: #fff; box-shadow: 0 1px 0 var(--ligne); }
.fc-zone h4 { display: flex; justify-content: space-between; margin: 0 0 2px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-2); } .fc-zone h4 span { font-weight: 500; color: var(--texte-3); text-transform: none; letter-spacing: 0; }
.fc-bac { display: grid; gap: 2px; padding: 6px 8px; border-radius: var(--r-2); background: var(--fond); border-left: 3px solid #c9d0ff; }
.fc-bac.dlc-depassee { border-left-color: var(--rouge); background: #fff3f3; } .fc-bac.dlc-du-jour { border-left-color: var(--orange); background: #fff7e8; }
.fc-bac-l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; } .fc-bac-l1 b { font-size: .86rem; } .fc-bac-l1 span { font-size: .66rem; color: var(--texte-3); }
.fc-bac-l2 { display: flex; justify-content: space-between; gap: 6px; font-size: .62rem; color: var(--texte-3); } .fc-bac-l2 em { font-style: normal; font-weight: 700; color: var(--texte-2); }
.fc-bac.dlc-depassee .fc-bac-l2 em { color: var(--rouge); } .fc-bac.dlc-du-jour .fc-bac-l2 em { color: #b86b00; }
.fc-bac-act { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; } .fc-bac-act .petit { padding: 3px 7px; font-size: .62rem; }
.fc-vide { margin: 0; font-size: .7rem; color: var(--texte-3); }
.fc-pli { margin-top: 10px; padding: 8px 12px; border-radius: var(--r-3); background: #fff; box-shadow: 0 1px 0 var(--ligne); } .fc-pli summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--bleu); }
.fc-pli[open] summary { margin-bottom: 8px; } .fc-form { gap: 8px; }
@media (max-width: 640px) { .fc-zones { grid-template-columns: 1fr; } .fc-compteurs { grid-template-columns: repeat(3, 1fr); } }

/* ===================== Journée : vue de la semaine ===================== */
.sem-vue { display: grid; gap: 12px; }
.sem-barre { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .sem-barre .mm-tete b { min-width: 200px; }
.sem-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sem-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
.sem-jour-col { display: grid; gap: 6px; min-width: 0; padding: 8px; border-radius: var(--r-4); background: #fff; box-shadow: 0 1px 0 var(--ligne); }
.sem-jour-col.auj { box-shadow: inset 0 0 0 2px var(--bleu), 0 8px 20px rgba(25,46,213,.10); } .sem-jour-col.passe { opacity: .78; }
.sem-entete { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; padding: 4px 6px; border: 0; border-radius: var(--r-2); background: var(--fond); font: inherit; cursor: pointer; text-align: left; }
.sem-entete b { font-size: .78rem; text-transform: capitalize; } .sem-entete span { font-size: 1.1rem; font-weight: 800; letter-spacing: -.03em; } .sem-entete em { font-style: normal; font-size: .54rem; font-weight: 700; color: #fff; background: var(--bleu); padding: 1px 6px; border-radius: 999px; }
.sem-shifts { display: grid; gap: 2px; }
.sem-shift { display: grid; padding: 3px 6px; border-radius: var(--r-2); background: #f1f3ff; border-left: 3px solid #c9d0ff; } .sem-shift small { font-size: .56rem; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.sem-shift span { font-size: .62rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sem-shift.encours { border-left-color: var(--bleu); background: #e3e7ff; }
.sem-taches { display: grid; gap: 3px; padding-top: 4px; border-top: 1px dashed var(--ligne); }
.sem-tache { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 5px; align-items: start; width: 100%; padding: 4px 5px; border: 0; border-radius: var(--r-2); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sem-tache:disabled { cursor: default; } .sem-tache:not(:disabled):hover { background: var(--fond); }
.sem-tache i { display: grid; place-items: center; width: 15px; height: 15px; margin-top: 1px; border-radius: var(--r-1); box-shadow: inset 0 0 0 1.5px var(--texte-3); font-style: normal; font-size: .58rem; color: #fff; }
.sem-tache span { font-size: .62rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .sem-tache small { display: block; font-size: .54rem; color: var(--texte-3); }
.sem-tache.fait i { background: var(--vert); box-shadow: none; } .sem-tache.fait span { color: var(--texte-3); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.sem-tache.retard i { box-shadow: inset 0 0 0 1.5px var(--rouge); } .sem-tache.retard small { color: var(--rouge); font-weight: 700; }
.sem-vide { margin: 0; font-size: .6rem; color: var(--texte-3); }
@media (max-width: 900px) { .sem-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sem-grille { grid-template-columns: 1fr 1fr; } }

/* Production v3 : code couleur du cloud (vert = en place, orange = refill, bleu clair = congél.), familles, menu en haut */
.pv-barre .p, .pv-legende .p, .barre-stock .p { background: #1fae5b !important; }
.pv-barre .r, .pv-legende .r, .barre-stock .r { background: #f5a524 !important; }
.pv-barre .c, .pv-legende .c, .barre-stock .c { background: #8fcdf7 !important; }
.pv-haut { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.pv-haut .prod-bascule { margin: 0; }
.pv-kpis-l { display: flex; gap: 10px; font-size: .72rem; color: var(--texte-3); } .pv-kpis-l b { font-size: .95rem; color: var(--encre); margin-right: 2px; }
.pv-kpis-l .rouge b { color: var(--rouge); } .pv-kpis-l .orange b { color: #e07b00; }
.pv-prio-l { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow: hidden; } .pv-prio-l small { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-3); margin-right: 2px; }
.pv-prio-l .puce { white-space: nowrap; font-size: .66rem; padding: 4px 8px; } .pv-prio-l .puce b { color: #b86b00; }
.pv-haut .pv-legende { margin: 0; padding: 0; }
.pv.pv-familles { grid-template-areas: "e1 p1 p2 d1" "e2 p3 p3 d2"; }
.pv-plat.large .pv-lignes { grid-template-columns: 1fr 1fr; column-gap: 10px; }
.pv-plat.f-e { background: linear-gradient(180deg, #fff, #fbfffc); } .pv-plat.f-d { background: linear-gradient(180deg, #fff, #fffaf3); }
.pv-plat.f-e .pv-type { color: var(--vert); } .pv-plat.f-d .pv-type { color: #c06a00; }
.fc-zone:nth-child(1) { box-shadow: inset 0 3px 0 #1fae5b, 0 1px 0 var(--ligne); } .fc-zone:nth-child(2) { box-shadow: inset 0 3px 0 #f5a524, 0 1px 0 var(--ligne); } .fc-zone:nth-child(3) { box-shadow: inset 0 3px 0 #8fcdf7, 0 1px 0 var(--ligne); }
.fc-zone:nth-child(1) .fc-bac { border-left-color: #1fae5b; } .fc-zone:nth-child(2) .fc-bac { border-left-color: #f5a524; } .fc-zone:nth-child(3) .fc-bac { border-left-color: #8fcdf7; }
.fc-repesee { display: grid; gap: 6px; margin-top: 4px; padding: 8px; border-radius: var(--r-2); background: #fff; box-shadow: inset 0 0 0 1.5px #c9d0ff; } .fc-repesee[hidden] { display: none !important; }
.fc-repesee label { display: grid; gap: 4px; font-size: .64rem; font-weight: 600; color: var(--texte-2); } .fc-repesee input { padding: 8px 10px; border: 1px solid var(--ligne); border-radius: var(--r-2); font: inherit; font-size: 1rem; font-weight: 700; }
.fc-repesee-act { display: flex; flex-wrap: wrap; gap: 4px; } .fc-repesee-act .petit { font-size: .66rem; padding: 6px 9px; }
.principal-doux { background: #eef0ff !important; color: var(--bleu) !important; border-color: transparent !important; font-weight: 700; }
@media (max-width: 979px) { .pv.pv-familles { grid-template-areas: "e1 e2" "p1 p2" "p3 p3" "d1 d2"; } .pv-prio-l { flex-basis: 100%; } }
@media (max-width: 600px) { .pv.pv-familles { grid-template-areas: none; } .pv-plat { grid-area: auto !important; } .pv-plat.large .pv-lignes { grid-template-columns: 1fr; } }

/* Production v4 : couleurs plus franches, deux priorités, colonnes par famille */
.pv-barre .p, .pv-legende .p, .barre-stock .p { background: #0f9d4f !important; }
.pv-barre .r, .pv-legende .r, .barre-stock .r { background: #f28c00 !important; }
.pv-barre .c, .pv-legende .c, .barre-stock .c { background: #2b9ff0 !important; }
.composant .pied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.composant .a-produire.avance { color: var(--bleu); }
.t-serv { color: var(--rouge) !important; } .t-av { color: var(--bleu) !important; }
.pv-haut { display: grid; gap: 8px; margin-bottom: 12px; }
.pv-haut-1, .pv-ligne { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.pv-haut-1 { margin-bottom: 8px; }
.pv-prios { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pv-pbloc { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 10px; border-radius: var(--r-3); background: #fff; box-shadow: 0 1px 0 var(--ligne); }
.pv-pbloc.serv { box-shadow: inset 0 0 0 1.5px #ffd2d2; }
.pv-pbloc .t { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.pv-pbloc .t i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: .66rem; color: #fff; background: var(--rouge); }
.pv-pbloc.av .t i { background: var(--bleu); }
.pv-pbloc .t em { font-style: normal; font-size: .62rem; padding: 1px 6px; border-radius: 999px; background: var(--fond); color: var(--texte-2); }
.pv-puces { display: flex; gap: 4px; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.pv-puces .puce { flex: none; white-space: nowrap; font-size: .66rem; padding: 4px 8px; }
.pv-puces .puce.serv b { color: var(--rouge); } .pv-puces .puce.av b { color: var(--bleu); }
.pv-puces .sous { font-size: .68rem; color: var(--vert); font-weight: 600; }
.pv-fam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.pv-col h2 { margin: 0 0 6px 4px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; }
.pv-col.c-e h2 { color: var(--vert); } .pv-col.c-d h2 { color: #c06a00; } .pv-col.c-p h2 { color: var(--bleu); }
.pv-pile { display: grid; gap: 10px; }
.pv-pile.pv-plats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pv-pile.pv-plats > :nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
.pv-plat header { align-items: center; }
.pv-plat h3 { font-size: 1.05rem; }
.pv-chiffres small.serv { color: var(--rouge); } .pv-chiffres small.av { color: var(--bleu); }
.pr-kpis { margin-bottom: 12px; }
@media (max-width: 979px) {
  .pv-fam { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pv-col.c-p { grid-column: 1 / -1; order: -1; }
  .pv-prios { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .pv-fam, .pv-pile.pv-plats { grid-template-columns: 1fr; } .pv-pile.pv-plats > :nth-child(3):last-child { width: auto; justify-self: stretch; } }
.pv-puces .puce { border: 0 !important; background: var(--fond) !important; color: var(--encre); }
.pv-pbloc.serv .pv-puces .puce { background: #fff1f1 !important; } .pv-pbloc.av .pv-puces .puce { background: #f0f2ff !important; }

/* Production v5 : une seule page */
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; position: relative; z-index: 20; }
.pv-cases { display: flex; gap: 6px; }
.pv-case { display: flex; align-items: baseline; gap: 5px; padding: 7px 11px; border-radius: var(--r-3); background: #fff; box-shadow: 0 1px 0 var(--ligne); white-space: nowrap; }
.pv-case b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; } .pv-case small { font-size: .62rem; color: var(--texte-3); }
.pv-case.rouge b { color: var(--rouge); } .pv-case.orange b { color: #e07b00; }
.pv-deps { display: flex; gap: 6px; }
.pv-dep { position: relative; }
.pv-dep summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: var(--r-3); background: #fff; box-shadow: 0 1px 0 var(--ligne); font-size: .72rem; font-weight: 700; cursor: pointer; white-space: nowrap; user-select: none; }
.pv-dep summary::-webkit-details-marker { display: none; }
.pv-dep summary i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: .62rem; color: #fff; background: var(--rouge); }
.pv-dep.av summary i { background: var(--bleu); }
.pv-dep summary em { font-style: normal; font-size: .62rem; padding: 1px 6px; border-radius: 999px; background: var(--fond); color: var(--texte-2); }
.pv-dep.serv summary { box-shadow: inset 0 0 0 1.5px #ffd2d2; } .pv-dep.dlc summary em { background: #fff4e0; color: #b86b00; }
.pv-dep .chev { font-size: .6rem; color: var(--texte-3); transition: transform .2s; } .pv-dep[open] .chev { transform: rotate(180deg); }
.pv-dep[open] summary { background: var(--encre); color: #fff; } .pv-dep[open] summary em { background: rgba(255,255,255,.18); color: #fff; }
.pv-dep-corps { position: absolute; right: 0; top: calc(100% + 6px); width: min(440px, 86vw); max-height: 62vh; overflow-y: auto; display: grid; gap: 6px; padding: 12px; border-radius: var(--r-4); background: #fff; box-shadow: 0 18px 50px rgba(11,13,18,.18), 0 0 0 1px var(--ligne); animation: pop-entree .25s var(--ressort) both; }
.pv-dep.serv .pv-dep-corps { left: 0; right: auto; }
.pv-dep-corps h4 { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); } .pv-dep-corps h4 span { padding: 1px 7px; border-radius: 999px; background: var(--fond); color: var(--texte-2); }
.pv-dep-sous { margin: 0; font-size: .68rem; color: var(--texte-3); }
.pv-col h2 { margin: 0 0 6px; padding: 4px 0; border-radius: var(--r-2); text-align: center; color: #fff !important; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pv-col.c-e h2 { background: #0f9d4f; } .pv-col.c-p h2 { background: var(--bleu); } .pv-col.c-d h2 { background: #d77800; }
.pv-fam { gap: 10px; } .pv-pile { gap: 8px; }
.pv-plat { padding: 8px 10px 6px; border-radius: var(--r-4); }
.pv-plat header { align-items: flex-start; } .pv-plat h3 { font-size: .9rem; margin: 0; }
.pv-plat .pv-sous { margin: 1px 0 3px; font-size: .6rem; }
.pv-serv b { font-size: 1.25rem; } .pv-serv small { font-size: .52rem; }
.pv-lignes { gap: 0; } .pv-l { padding: 2px 4px; } .pv-nom { font-size: .64rem; }
.pv-legende { justify-content: center; margin-top: 8px; padding: 0; } .pv-legende small { font-weight: 800; font-size: .7rem; } .pv-legende small.serv { color: var(--rouge); } .pv-legende small.av { color: var(--bleu); }
@media (min-width: 980px) { .pv-top { margin-top: -76px; margin-left: 200px; margin-right: 56px; min-height: 52px; } }
@media (max-width: 1240px) and (min-width: 980px) { .pv-case small { display: none; } .pv-case { padding: 7px 9px; } }
@media (max-width: 979px) { .pv-cases, .pv-deps { flex-wrap: wrap; } }
.pv-deps { position: relative; z-index: 20; flex-wrap: wrap; margin-bottom: 10px; }
.pv-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pv-case { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: var(--r-3); }
.pv-case b { font-size: 1.5rem; } .pv-case small { display: inline !important; font-size: .72rem; }
@media (min-width: 980px) { .pv-deps { width: fit-content; margin: -74px 60px 34px auto; min-height: 40px; } }
.pv-plat h3 { font-size: .98rem; } .pv-plat .pv-sous { font-size: .64rem; }
.pv-l { padding: 3px 5px; } .pv-nom { font-size: .7rem; } .pv-chiffres b { font-size: .8rem; }
.pv-col h2 { padding: 6px 0; font-size: .86rem; }
@media (max-width: 979px) {
  .pv-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-case { flex-direction: column; gap: 2px; padding: 8px 12px; }
  .pv-dep { position: static; } .pv-deps { position: relative; }
  .pv-dep-corps, .pv-dep.serv .pv-dep-corps { left: 0; right: 0; width: auto; }
}
/* Production : plus lisible en paysage */
@media (min-width: 980px) {
  .pv-nom { font-size: .8rem; line-height: 1.15; }
  .pv-chiffres b { font-size: .92rem; } .pv-chiffres small { font-size: .7rem; }
  .pv-l { grid-template-columns: minmax(0, 1fr) 46px 62px; padding: 3px 5px; }
  .pv-plat h3 { font-size: 1.1rem; } .pv-plat .pv-sous { font-size: .7rem; }
  .pv-serv b { font-size: 1.45rem; } .pv-serv small { font-size: .6rem; }
  .pv-etat { font-size: .58rem; }
  .pv-legende { font-size: .7rem; }
  .pv-dep summary { font-size: .82rem; padding: 8px 12px; }
  .pv-case small { font-size: .8rem; } .pv-case b { font-size: 1.6rem; }
  .pv-dep-corps .pr-nom b { font-size: .92rem; } .pv-dep-corps .pr-calc { font-size: .74rem; }
}
/* Production : cases et dépliants dans le haut, à droite du titre */
@media (min-width: 980px) {
  .pv-top2 { position: relative; z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: fit-content; margin: -80px 60px 12px auto; }
  .pv-top2 .pv-deps { margin: 0; width: auto; min-height: 0; }
  .pv-top2 .pv-cases { display: flex; gap: 6px; margin: 0; }
  .pv-top2 .pv-case { padding: 4px 10px; border-radius: var(--r-2); gap: 5px; }
  .pv-top2 .pv-case b { font-size: 1.05rem; } .pv-top2 .pv-case small { font-size: .7rem; }
  .pv-top2 .pv-dep summary { padding: 6px 11px; font-size: .78rem; }
  .pv-nom { font-size: .86rem; } .pv-chiffres b { font-size: .98rem; } .pv-chiffres small { font-size: .74rem; }
  .pv-plat h3 { font-size: 1.18rem; } .pv-plat .pv-sous { font-size: .74rem; } .pv-serv b { font-size: 1.55rem; }
  .pv-l { grid-template-columns: minmax(0, 1fr) 44px 66px; padding: 3px 5px; }
  .pv-col h2 { font-size: .92rem; padding: 6px 0; }
}
.pv-dep.dlc-dep summary { background: var(--rouge); color: #fff; } .pv-dep.dlc-dep summary em { background: rgba(255,255,255,.22); color: #fff; } .pv-dep.dlc-dep .chev { color: #fff; }
.pv-dep.dlc summary { box-shadow: inset 0 0 0 1.5px #ffd8a8; }
.pv-dep-vide { display: flex; align-items: center; padding: 6px 11px; border-radius: var(--r-3); background: #e9f8ef; color: var(--vert); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pv-dep-corps .pr-dlc em.et { font-style: normal; font-size: .66rem; color: var(--texte-2); background: #fff; padding: 1px 7px; border-radius: 999px; }
@media (min-width: 980px) { .pv-top2 { margin: -70px 60px 36px auto; } }
/* Production : bandeaux de famille neutres (une seule couleur), dalles sans teinte */
.pv-col.c-e h2, .pv-col.c-p h2, .pv-col.c-d h2 { background: #2a2f3a !important; color: #fff !important; }
.pv-plat.f-e, .pv-plat.f-d, .pv-plat.f-p { background: #fff !important; }
/* Production : sans animation. Bandeaux gris clair qui passent en bleu (comme le menu) quand on touche la colonne,
   cartes mieux détachées du fond, « prise d'avance » en gris foncé (le bleu ne sert plus qu'au survol) */
.pv-col.c-e h2, .pv-col.c-p h2, .pv-col.c-d h2 { background: #e3e6ec !important; color: var(--encre) !important; box-shadow: none; transition: background .2s, color .2s; }
.pv-col.c-e:hover h2, .pv-col.c-p:hover h2, .pv-col.c-d:hover h2 { background: var(--bleu-clair) !important; color: var(--bleu) !important; }
.pv-plat { background: #fff !important; border: 1px solid #dde1e8; box-shadow: 0 1px 2px rgba(11,13,18,.05), 0 6px 18px rgba(11,13,18,.07); transition: border-color .2s, box-shadow .2s; }
.pv-col:hover .pv-plat { border-color: #c9d0ff; }
.pv-plat:hover { box-shadow: 0 0 0 2px var(--bleu-clair), 0 8px 22px rgba(25,46,213,.10); border-color: #aab4ff; }
.pv-plat header { padding-bottom: 3px; margin-bottom: 1px; border-bottom: 1px solid var(--ligne); }
.t-av, .pv-chiffres small.av, .pv-legende small.av, .pv-puces .puce.av b, .composant .a-produire.avance { color: #4b5361 !important; }
.pv-dep.av summary i { background: #4b5361; }
.pv-col h2 { margin-bottom: 5px; } .pv-legende { margin-top: 4px; }

/* Production v6 : dalles lisibles sans légende (chiffres en colonnes), bandeaux informatifs, aucun effet de survol */
.pv-col h2.pc-bande { display: flex; align-items: baseline; justify-content: center; gap: 8px; background: #2a2f3a !important; color: #fff !important; transition: none; }
.pv-col:hover h2.pc-bande { background: #2a2f3a !important; color: #fff !important; }
.pc-bande small { font-size: .66rem; font-weight: 600; letter-spacing: .02em; text-transform: none; color: rgba(255,255,255,.65); }
.pc { display: flex; flex-direction: column; min-width: 0; padding: 9px 10px 6px; border-radius: var(--r-4); background: #fff; border: 1px solid #dde1e8; box-shadow: 0 1px 2px rgba(11,13,18,.05), 0 6px 18px rgba(11,13,18,.07); }
.pc-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pc-titre { min-width: 0; } .pc-titre h3 { margin: 0; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.1; }
.pc-statut { display: block; margin-top: 2px; font-size: .68rem; font-weight: 700; } .pc-statut.rouge { color: var(--rouge); } .pc-statut.vert { color: var(--vert); }
.pc-serv { display: grid; justify-items: end; line-height: 1; text-align: right; } .pc-serv b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.pc-serv small { margin-top: 2px; font-size: .58rem; color: var(--texte-3); white-space: nowrap; }
.pc-serv.t-rouge b { color: var(--rouge); } .pc-serv.t-orange b { color: #e07b00; } .pc-serv.t-vert b { color: var(--vert); }
.pc-cols, .pc-l { display: grid; grid-template-columns: minmax(0, 1fr) 36px 38px 40px; gap: 4px; align-items: center; }
.pc-cols { margin: 6px 0 2px; padding: 0 6px 3px; border-bottom: 1px solid var(--ligne); font-size: .54rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-3); }
.pc-cols span { text-align: right; white-space: nowrap; } .pc-cols i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 2px; vertical-align: 1px; }
.pc-cols .p { background: #0f9d4f; } .pc-cols .r { background: #f28c00; } .pc-cols .c { background: #2b9ff0; }
.pc-lignes { display: grid; }
.pc-l { width: 100%; padding: 3px 6px 3px 4px; border: 0; border-left: 3px solid transparent; border-radius: 0 var(--r-2) var(--r-2) 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pc-l + .pc-l { box-shadow: 0 -1px 0 #f1f2f5; }
.pc-l.s-serv { border-left-color: var(--rouge); background: #fff6f6; } .pc-l.s-dlc { border-left-color: var(--rouge); }
.pc-nom { min-width: 0; font-size: .82rem; line-height: 1.18; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-tag { font-style: normal; font-size: .54rem; font-weight: 700; margin-left: 4px; padding: 1px 5px; border-radius: 999px; background: #f1f2f5; color: var(--texte-2); vertical-align: 1px; white-space: nowrap; }
.pc-tag.orange { background: #fff4e0; color: #b86b00; } .pc-tag.rouge { background: #ffe9e9; color: var(--rouge); } .pc-tag.bleu { background: #eef0ff; color: var(--bleu); } .pc-tag.vert { background: #e9f8ef; color: var(--vert); }
.pc-place, .pc-res, .pc-faire { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-place { font-size: .95rem; font-weight: 800; }
.pc-res { display: grid; justify-items: end; line-height: 1.05; font-size: .74rem; } .pc-res .r { color: #d27800; } .pc-res .c { color: #1b86d6; } .pc-res .vide { font-style: normal; color: #c3c7cf; }
.pc-faire b { font-size: .8rem; } .pc-faire .serv { display: inline-block; padding: 1px 6px; border-radius: 999px; background: var(--rouge); color: #fff; } .pc-faire .av { color: #4b5361; } .pc-faire .ok { font-style: normal; color: var(--vert); font-weight: 800; }
.pc-vue { grid-column: 2 / -1; text-align: right; font-size: .62rem; color: var(--texte-3); }
.pv-pile.pv-plats > .pc:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
.pc-res .nul { font-style: normal; color: #c3c7cf; }
.pc-cols, .pc-l { grid-template-columns: minmax(0, 1fr) 38px 44px 42px; }
.pc-cols { text-transform: none; letter-spacing: 0; font-size: .6rem; font-weight: 600; }
.pc-cols i { width: 5px; height: 5px; margin-right: 1px; }
.pc-tete { align-items: center; }
.pc-titre { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.pc-prevu { font-size: .64rem; font-weight: 600; color: var(--texte-3); white-space: nowrap; }
.pc-statut { flex-basis: 100%; margin-top: 1px; }
.pc-serv { display: flex; align-items: baseline; gap: 3px; } .pc-serv small { margin: 0; font-size: .6rem; }
.pc-serv b { font-size: 1.35rem; }
.pc-l { padding-top: 1px; padding-bottom: 1px; } .pc-nom { line-height: 1.12; }
.pv-pile { gap: 7px; }

/* Production v7 : portion unitaire, état à gauche du nom, DLC à droite, réserve R / C, plein écran sans défilement */
.pc-cols, .pc-l { grid-template-columns: minmax(0, 1fr) 40px 36px 42px 36px; gap: 3px; }
.pc-cols span { text-align: right; } .pc-cols span:first-child { text-align: left; }
.pc-nom { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: .84rem; line-height: 1.15; }
.pc-nom .n { overflow-wrap: anywhere; }
.pc-etat { font-style: normal; display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: var(--r-1); font-size: .56rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; background: #f1f2f5; color: var(--texte-2); }
.pc-etat.orange { background: #fff1db; color: #b25f00; } .pc-etat.bleu { background: #eef0ff; color: var(--bleu); } .pc-etat.vert { background: #e6f6ec; color: #0b7f3f; } .pc-etat.gris { background: #eef6fd; color: #1b6fb0; }
.pc-dlc { font-style: normal; display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: var(--r-1); font-size: .56rem; font-weight: 800; vertical-align: 1px; white-space: nowrap; }
.pc-dlc.orange { background: #fff1db; color: #b25f00; } .pc-dlc.rouge { background: var(--rouge); color: #fff; }
.pc-port { text-align: right; font-size: .76rem; font-weight: 700; color: #3a4150; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-res { display: grid; justify-items: end; gap: 1px; line-height: 1.05; font-size: .76rem; font-weight: 700; }
.pc-res span { display: inline-flex; align-items: center; gap: 2px; } .pc-res i { font-style: normal; font-size: .5rem; font-weight: 800; padding: 0 3px; border-radius: var(--r-1); color: #fff; }
.pc-res .r { color: #c46f00; } .pc-res .r i { background: #f28c00; } .pc-res .c { color: #1b7fcc; } .pc-res .c i { background: #2b9ff0; }
.pc-vue { grid-column: 3 / -1; }
@media (min-width: 980px) {
  #contenu:has(.pv-fam) { padding-bottom: 12px; }
  .pv-fam { height: calc(100vh - 106px); align-items: stretch; }
  .pv-col { display: flex; flex-direction: column; min-height: 0; }
  .pv-col .pv-pile { flex: 1; min-height: 0; display: grid; }
  .pc { min-height: 0; }
  .pc-lignes { flex: 1; min-height: 0; grid-auto-rows: 1fr; }
  .pc-l { padding-top: 0; padding-bottom: 0; }
}
.pc-cols, .pc-l { grid-template-columns: minmax(0, 1fr) 36px 52px 34px; gap: 4px; }
.pc-stock { display: grid; justify-items: end; line-height: 1.05; }
.pc-stock .pc-place { font-size: .95rem; font-weight: 800; }
.pc-stock .pc-res { display: flex; gap: 3px; font-size: .64rem; margin-top: 1px; }
.pc-res i { font-size: .46rem; padding: 0 2px; }
.pc { padding: 8px 8px 4px; }
.pc-nom { font-size: .82rem; }
.pc-vue { grid-column: 3 / -1; }
.pc-stock .pc-res { font-size: .7rem; gap: 4px; }
.pc-res i { font-size: .56rem; padding: 0 3px; border-radius: var(--r-1); line-height: 1.3; }
.pc-nom .n { display: -webkit-inline-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 980px) { .pv-fam { height: calc(100dvh - 106px); } }
.pc-nom .n { display: inline; -webkit-line-clamp: unset; overflow: visible; }
.pc-nom { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-stock .pc-res { flex-wrap: wrap; justify-content: flex-end; row-gap: 1px; }
/* stock détaillé : P / R / C l'un sous l'autre quand il y a de la réserve */
.pc-stock.detail { gap: 1px; }
.pc-stock .pc-place i, .pc-cle i { font-style: normal; display: inline-block; font-size: .56rem; font-weight: 800; padding: 0 3px; border-radius: var(--r-1); line-height: 1.3; color: #fff; vertical-align: 2px; }
.pc-stock .pc-place i { margin-right: 2px; background: #0f9d4f; }
.pc-stock.detail .pc-place { font-size: .9rem; }
.pc-stock .pc-res { display: grid; justify-items: end; gap: 1px; }
.pc-cols span:nth-child(2) { font-weight: 800; letter-spacing: .03em; }
.pc-bande { position: relative; }
.pc-cle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; font-size: .62rem !important; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.75) !important; }
.pc-cle i { margin-left: 6px; } .pc-cle i.p { background: #0f9d4f; } .pc-cle i.r { background: #f28c00; } .pc-cle i.c { background: #2b9ff0; }
/* stock en 3 colonnes : EP (en place) · R (refill) · C (congél.) */
.pc-l { grid-template-columns: minmax(0, 1fr) 34px 34px 28px 30px 32px; gap: 3px; }
.pc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 34px 34px 28px 30px 32px; grid-template-rows: auto auto; column-gap: 3px; row-gap: 0; align-items: end; }
.pc-cols .pu { grid-column: 2; grid-row: 1 / 3; align-self: end; }
.pc-cols .st { grid-column: 3 / 6; grid-row: 1; text-align: center; border-bottom: 1px solid #d5d9e0; padding-bottom: 1px; margin-bottom: 1px; }
.pc-cols .faire { grid-column: 6; grid-row: 1 / 3; align-self: end; }
.pc-cols .ss { grid-row: 2; font-weight: 800; }
.pc-cols .ep { grid-column: 3; color: #0b7f3f; } .pc-cols .r { grid-column: 4; color: #c46f00; } .pc-cols .c { grid-column: 5; color: #1b7fcc; }
.pc-ep, .pc-r, .pc-c { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-ep { font-size: .92rem; font-weight: 800; }
.pc-r, .pc-c { font-size: .8rem; font-weight: 700; } .pc-r { color: #c46f00; } .pc-c { color: #1b7fcc; }
.pc-r .nul, .pc-c .nul { font-style: normal; color: #cdd1d8; font-weight: 400; }
.pc-port { font-size: .72rem; }
.pc-vue { grid-column: 3 / -1; }
/* trois colonnes de même largeur, plats empilés (végé en bas) */
@media (min-width: 980px) {
  #contenu:has(.pv-fam) { padding-left: 18px; padding-right: 18px; max-width: none; }
  .pv-fam { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pv-col .pv-pile { gap: 6px; }
}
.pc-cols .r, .pc-cols .c { background: none !important; }
.pc-l, .pc-cols { grid-template-columns: minmax(0, 1fr) 38px 40px 32px 34px 38px; }
.pc-nom .n { overflow-wrap: normal; }
.pc-l { padding-top: 0; padding-bottom: 0; }
.pc-tete h3 { font-size: 1.05rem; } .pc-serv b { font-size: 1.25rem; }
.pc-cols { margin-top: 2px; }
/* en-tête de dalle sur une ligne : nom + prêtes à gauche, titres de colonnes à droite */
.pc-tete2 { margin: 0 0 2px; padding: 0 6px 3px 4px; }
.pc-titre2 { grid-column: 1; grid-row: 1 / 3; align-self: end; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-width: 0; text-transform: none; letter-spacing: 0; text-align: left; }
.pc-titre2 h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--encre); letter-spacing: -.02em; white-space: nowrap; }
.pc-titre2 .pc-serv { display: inline; font-size: .7rem; font-weight: 600; color: var(--texte-3); white-space: nowrap; }
.pc-titre2 .pc-serv b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.pc-titre2 .pc-statut { flex-basis: 100%; font-size: .66rem; }
.pc-cols .pc-titre2 { text-align: left; }
.pc-lignes { display: flex !important; flex-direction: column; }
.pc-l { flex: 1 1 auto; min-height: 0; }
.pc-nom { -webkit-line-clamp: 2; font-size: .8rem; line-height: 1.12; }
@media (min-width: 980px) {
  .pv-col .pv-pile { display: flex; flex-direction: column; }
  .pv-col .pv-pile > .pc { flex: var(--n) 1 auto; }
}
.pc-titre2 { flex-wrap: nowrap; column-gap: 6px; }
.pc-titre2 h3 { font-size: 1rem; }
.pc-titre2 .pc-serv { font-size: .64rem; } .pc-titre2 .pc-serv b { font-size: 1rem; }
.pc-titre2 .pc-statut { position: absolute; }
.pc-l + .pc-l { box-shadow: 0 -1px 0 #eef0f3; }
/* dépliants : sans numéro, flèche bien visible dans une pastille, alignés sur le bouton d'actualisation */
.pv-dep summary { gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; }
.pv-dep summary i { display: none; }
.pv-dep .chev { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fond); color: var(--encre); font-size: 0; transition: transform .2s, background .2s; }
.pv-dep.serv .chev { background: #ffe9e9; color: var(--rouge); }
.pv-dep.dlc .chev { background: #fff1db; color: #b25f00; }
.pv-dep.dlc-dep .chev { background: rgba(255,255,255,.25); color: #fff; }
.pv-dep[open] .chev { transform: rotate(180deg); background: rgba(255,255,255,.2); color: #fff; }
.pv-dep-vide { border-radius: 999px; padding: 8px 12px; }
@media (min-width: 980px) { .pv-top2 { margin: -64px 72px 30px auto !important; } }
@media (min-width: 980px) { .pv-fam { height: calc(100vh - 112px); height: calc(100dvh - 112px); } }
/* colonnes chiffrées centrées (PU, EP, R, C, à faire), nom à gauche */
.pc-port, .pc-ep, .pc-r, .pc-c, .pc-faire, .pc-vue { text-align: center !important; justify-self: stretch; }
.pc-cols > span { text-align: center !important; }
.pc-cols .pc-titre2 { text-align: left !important; }
.pc-titre2 { flex-wrap: wrap !important; overflow: hidden; padding-right: 4px; }
/* PU en gras, EP normal ; traits verticaux qui encadrent le bloc stock (avant EP, après C) sur toute la hauteur */
.pc-port { font-weight: 800 !important; font-size: .82rem !important; color: var(--encre) !important; }
.pc-ep { font-weight: 500 !important; font-size: .9rem !important; }
.pc-ep, .pc-c { align-self: stretch; display: flex; align-items: center; justify-content: center; }
.pc-ep { border-left: 1px solid #d5d9e0; } .pc-c { border-right: 1px solid #d5d9e0; }
.pc-cols .st { border-left: 1px solid #d5d9e0; border-right: 1px solid #d5d9e0; }
.pc-cols .ep { border-left: 1px solid #d5d9e0; align-self: stretch; } .pc-cols .c { border-right: 1px solid #d5d9e0; align-self: stretch; }
.pc-cols .pu { font-weight: 800 !important; color: var(--encre); }
.pc-vue { border-left: 0; }
.pc-cols .ss { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.pc-l .pc-vue { grid-column: 3 / 6; align-self: stretch; display: flex; align-items: center; justify-content: center; border-left: 1px solid #d5d9e0; border-right: 1px solid #d5d9e0; }
/* chiffres plus petits pour tenir jusqu'à 5 chiffres ; prise d'avance discrète ; assiettes prêtes dans un cercle bleu fixe */
.pc-l, .pc-cols { grid-template-columns: minmax(0, 1fr) 38px 42px 38px 38px 38px !important; gap: 2px !important; }
.pc-ep { font-size: .8rem !important; }
.pc-r, .pc-c { font-size: .74rem !important; }
.pc-port { font-size: .76rem !important; }
.pc-faire b { font-size: .74rem; }
.pc-faire .serv { padding: 1px 5px; }
.pc-faire .av { font-size: .68rem; font-weight: 500; color: #9aa0ab !important; }
.pc-pretes { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: .74rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pc-titre2 { align-items: center !important; flex-wrap: nowrap !important; }
/* en-tête de page resserré sur Production : « Production — mardi 17 novembre » sur une ligne */
@media (min-width: 980px) {
  .principal-zone:has(.pv-fam) .haut { padding-top: 12px; padding-bottom: 10px; }
  .principal-zone:has(.pv-fam) .titre-bloc > div { display: flex; align-items: baseline; gap: 10px; }
  .principal-zone:has(.pv-fam) .haut h1 { font-size: 1.55rem; }
  .principal-zone:has(.pv-fam) .haut .sous-titre { margin: 0; font-size: .9rem; }
  .principal-zone:has(.pv-fam) .haut .sous-titre::before { content: "— "; color: var(--texte-3); }
  .principal-zone:has(.pv-fam) .haut .actions-haut button { width: 38px; height: 38px; }
}
@media (min-width: 980px) {
  .principal-zone:has(.pv-fam) .pv-top2 { margin: -50px 64px 10px auto !important; }
  .principal-zone:has(.pv-fam) .pv-fam { height: calc(100vh - 72px); height: calc(100dvh - 72px); }
}
.pc-ep.moyen { font-size: .74rem !important; } .pc-ep.long { font-size: .66rem !important; letter-spacing: -.02em; }
.pc-r.moyen, .pc-c.moyen { font-size: .68rem !important; } .pc-r.long, .pc-c.long { font-size: .6rem !important; letter-spacing: -.03em; }
.pc-faire .long, .pc-faire .moyen { font-size: .62rem !important; letter-spacing: -.02em; }
.pc-titre2 { column-gap: 5px !important; } .pc-titre2 h3 { font-size: .95rem !important; }
/* assiettes prêtes : chiffre noir dans un cercle bleu (contour seulement) ; bandeaux de famille en bleu */
.pc-pretes { background: transparent !important; color: var(--encre) !important; box-shadow: inset 0 0 0 1.5px var(--bleu); }
.pv-col.c-e h2.pc-bande, .pv-col.c-p h2.pc-bande, .pv-col.c-d h2.pc-bande, .pv-col:hover h2.pc-bande { background: var(--bleu) !important; color: #fff !important; }
/* EP en vert (comme « en place »), chiffres de stock un peu plus petits, titres de colonnes plus grands, stock et à faire en noir */
.pc-ep { color: #0b8a45 !important; font-size: .74rem !important; font-weight: 600 !important; }
.pc-r, .pc-c { font-size: .7rem !important; }
.pc-port { font-size: .72rem !important; }
.pc-faire b { font-size: .7rem; } .pc-faire .av { font-size: .64rem !important; }
.pc-ep.moyen { font-size: .7rem !important; } .pc-ep.long { font-size: .62rem !important; }
.pc-r.moyen, .pc-c.moyen { font-size: .66rem !important; } .pc-r.long, .pc-c.long { font-size: .58rem !important; }
.pc-cols > span { font-size: .68rem !important; }
.pc-cols .st, .pc-cols .faire, .pc-cols .pu { color: var(--encre) !important; font-weight: 700 !important; }
.pc-cols .ss { font-size: .7rem !important; }
.pc-pretes { background: var(--bleu) !important; color: #fff !important; box-shadow: none !important; }
/* bordure « bande grise » : le bloc stock (EP · R · C) sur un fond gris clair continu, sans traits verticaux */
.pc-ep, .pc-c, .pc-cols .st, .pc-cols .ep, .pc-cols .c, .pc-l .pc-vue { border-left: 0 !important; border-right: 0 !important; }
.pc-ep, .pc-r, .pc-c { align-self: stretch; display: flex; align-items: center; justify-content: center; background: #f1f3f6; }
.pc-l, .pc-cols { column-gap: 0 !important; }
.pc-cols .st { background: #f1f3f6; border-radius: var(--r-2) var(--r-2) 0 0; border-bottom: 0 !important; margin-bottom: 0 !important; padding: 2px 0 0 !important; }
.pc-cols .ss { background: #f1f3f6; padding-bottom: 2px; }
.pc-l .pc-vue { background: #f1f3f6; }
.pc-lignes .pc-l:last-child .pc-ep, .pc-lignes .pc-l:last-child .pc-vue { border-bottom-left-radius: var(--r-2); }
.pc-lignes .pc-l:last-child .pc-c, .pc-lignes .pc-l:last-child .pc-vue { border-bottom-right-radius: var(--r-2); }
.pc-tete2 { padding-bottom: 0 !important; margin-bottom: 0 !important; border-bottom: 0 !important; }
.pc-port, .pc-faire { padding: 0 2px; }
.pc-cols .ss.r, .pc-cols .ss.c, .pc-cols .ss.ep { background: #f1f3f6 !important; }
.pc-l + .pc-l { box-shadow: 0 -1px 0 #eceef2; }
.pc-cols { row-gap: 0 !important; }
.pc-cols .ss { padding-top: 3px; }
/* noms des composants sur une seule ligne, « … » si trop long (nom complet au survol et dans la fiche) */
.pc-nom { display: flex !important; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; -webkit-line-clamp: unset !important; }
.pc-nom .n { display: block !important; flex: 1 1 auto; min-width: 0; overflow: hidden !important; text-overflow: ellipsis; white-space: nowrap; }
.pc-nom .pc-etat, .pc-nom .pc-dlc { flex: none; }
.pc-nom .pc-dlc { margin-right: 4px; }

/* ------------------------------------------------------------------ fiche composant : grande fenêtre en verre, 3 colonnes */
#panneau.pan-composant { justify-content: center; align-items: center; background: rgba(20, 26, 48, .22); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.fiche.fiche-comp { width: min(1120px, 94vw); height: min(800px, 90vh); border-radius: var(--r-6); padding: 18px 20px 14px; display: flex; flex-direction: column; overflow: hidden;
  background: rgba(245, 246, 248, .78); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 30px 80px rgba(11, 13, 18, .25), inset 0 1px 0 rgba(255,255,255,.8); animation: pop-entree .35s var(--ressort) both; }
.fiche.fiche-comp.depuis-carte { animation: fondu .2s var(--doux) both; }
#panneau.pan-composant.ferme .fiche { animation: fondu-sortie .2s var(--doux) both; }
.fiche-comp .fiche-tete { position: static; margin: 0 0 12px; padding: 0 2px; background: none; }
.fiche-comp .fiche-tete h2 { font-size: 1.5rem; }
.fiche-comp .fc-meta { margin: 3px 0 0; font-size: .82rem; color: var(--texte-2); } .fiche-comp .fc-meta b { color: var(--encre); }
.fcx { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.fcx-col { min-height: 0; overflow-y: auto; padding: 14px; border-radius: var(--r-4); background: #fff; border: 1px solid #dde1e8; box-shadow: 0 1px 2px rgba(11,13,18,.05), 0 6px 18px rgba(11,13,18,.07); }
.fcx-col h3 { margin: 0 0 10px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); }
.fcx-col h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--texte-3); margin-left: 4px; }
.fcx-etats { display: grid; gap: 8px; }
.fcx-e { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 12px; border: 1px solid var(--ligne); border-radius: var(--r-3); background: var(--fond); font: inherit; font-size: .92rem; font-weight: 600; color: var(--encre); text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.fcx-e i { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #c3c7cf; }
.fcx-e.e-orange i { background: #f28c00; } .fcx-e.e-bleu i { background: var(--bleu); } .fcx-e.e-vert i { background: #0f9d4f; } .fcx-e.e-ok i { background: #0b7f3f; } .fcx-e.e-glace i { background: #2b9ff0; }
.fcx-e.choisi { background: var(--encre); border-color: var(--encre); color: #fff; }
.fcx-e.choisi i { box-shadow: 0 0 0 2px #fff; }
.fcx-cpt, .fcx-objectif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.fcx-objectif { grid-template-columns: 1fr 1fr; }
.fcx-cpt div, .fcx-objectif div { padding: 10px 6px; border-radius: var(--r-3); background: #f1f3f6; text-align: center; }
.fcx-cpt b, .fcx-objectif b { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.fcx-cpt span, .fcx-objectif span { font-size: .7rem; color: var(--texte-2); }
.fcx-cpt .ep b { color: #0b8a45; } .fcx-cpt .r b { color: #c46f00; } .fcx-cpt .c b { color: #1b7fcc; }
.fcx-objectif .fort { background: var(--bleu); } .fcx-objectif .fort b, .fcx-objectif .fort span { color: #fff; }
.fcx-jauge { height: 8px; border-radius: 999px; background: #eceef3; overflow: hidden; } .fcx-jauge i { display: block; height: 100%; background: var(--bleu); border-radius: 999px; }
.fcx-jauge-txt { margin: 6px 0 12px; font-size: .74rem; color: var(--texte-2); }
.fcx-form-obj { margin-bottom: 18px; }
.fcx-h3-recette { margin-top: 6px !important; padding-top: 14px; border-top: 1px solid var(--ligne); }
.fcx-stock .fc-zones { display: grid; gap: 10px; }
.fcx-stock .fc-zone h4 { display: flex; align-items: center; gap: 6px; }
.fcx-stock .fc-zone.z-ep h4::before, .fcx-stock .fc-zone.z-r h4::before, .fcx-stock .fc-zone.z-c h4::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.fcx-stock .fc-zone.z-ep h4::before { background: #0f9d4f; } .fcx-stock .fc-zone.z-r h4::before { background: #f28c00; } .fcx-stock .fc-zone.z-c h4::before { background: #2b9ff0; }
.fiche-comp #message-fiche { margin: 8px 0 0; }
@media (max-width: 900px) {
  #panneau.pan-composant { align-items: flex-end; }
  .fiche.fiche-comp { width: 100%; height: 92vh; border-radius: var(--r-6) var(--r-6) 0 0; overflow-y: auto; }
  .fcx { display: block; } .fcx-col { overflow: visible; margin-bottom: 12px; }
  .fcx-etats { grid-template-columns: repeat(3, 1fr); }
}
.fcx-stock .fc-zones { grid-template-columns: 1fr !important; }
.fcx-stock .fc-zone { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; align-content: start; }
.fcx-stock .fc-zone h4 { grid-column: 1 / -1; margin: 4px 0 0; }
.fcx-stock .fc-bac { margin: 0; }
.fcx-stock .fc-bac-l1 b { white-space: nowrap; }
.fcx-stock .fc-bac-act { display: flex; flex-wrap: wrap; gap: 4px; }
.fcx-stock .fc-vide { grid-column: 1 / -1; margin: 0; }
/* surlignage de la ligne survolée (souris) ou touchée (iPad), pour voir où l'on va */
.pc-l { transition: background .12s; }
.pc-l:hover, .pc-l:active, .pc-l:focus-visible { background: var(--bleu-clair) !important; outline: none; }
.pc-l:hover .pc-ep, .pc-l:hover .pc-r, .pc-l:hover .pc-c, .pc-l:hover .pc-vue,
.pc-l:active .pc-ep, .pc-l:active .pc-r, .pc-l:active .pc-c { background: #e2e6ff; }
.pc-l:hover .pc-nom .n { color: var(--bleu); }
.fcx-e:hover:not(.choisi), .pv-dep summary:hover { border-color: #aab4ff; background: var(--bleu-clair); }
/* fiche : états en abrégé (colonne étroite), fond un peu moins flou, stock en 3 colonnes En place | Refill | Congél. */
#panneau.pan-composant { -webkit-backdrop-filter: blur(7px) saturate(140%); backdrop-filter: blur(7px) saturate(140%); background: rgba(20, 26, 48, .18); }
.fcx { grid-template-columns: 128px minmax(0, 1.7fr) minmax(0, 1fr); }
.fcx-e { padding: 12px 10px; font-size: .78rem; font-weight: 800; letter-spacing: .03em; gap: 8px; }
.fcx-stock .fc-zones { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; align-items: start; }
.fcx-stock .fc-zone { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px; border-radius: var(--r-3); background: #f6f7f9; }
.fcx-stock .fc-zone h4 { font-size: .74rem; justify-content: flex-start; }
.fcx-stock .fc-zone h4 span { margin-left: auto; }
.fcx-stock .fc-bac { padding: 8px; }
.fcx-stock .fc-bac-l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.fcx-stock .fc-bac-l1 span, .fcx-stock .fc-bac-l2 { font-size: .64rem; }
.fcx-stock .fc-bac-l2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; }
.fcx-stock .fc-bac-act .petit { padding: 4px 8px; font-size: .66rem; }
.fcx-e { white-space: nowrap; font-size: .74rem; }

/* fiche v3 : colonne Production repliable, objectif compact, recette en tableau à cocher, + dans chaque zone */
.fc-tete-act { display: flex; align-items: center; gap: 10px; }
.fcx-bt-prod { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 16px; border: 1px solid #c9d0ff; border-radius: 999px; background: #fff; color: var(--bleu); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.fcx-bt-prod .chev { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bleu-clair); transition: transform .2s; }
.fcx-bt-prod.actif { background: var(--bleu); color: #fff; border-color: var(--bleu); } .fcx-bt-prod.actif .chev { background: rgba(255,255,255,.2); transform: rotate(180deg); }
.fcx { grid-template-columns: 128px minmax(0, 1fr) !important; }
.fcx .fcx-obj { display: none; }
.fcx.prod-ouverte { grid-template-columns: 128px minmax(0, 1.45fr) minmax(0, 1fr) !important; }
.fcx.prod-ouverte .fcx-obj { display: block; animation: pop-entree .25s var(--ressort) both; }
.fcx-cpt1 { padding: 8px 6px; border-radius: var(--r-3); background: #fff; text-align: center; }
.fcx-cpt1 b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; } .fcx-cpt1 span { font-size: .68rem; color: var(--texte-2); }
.fcx-cpt1.ep b { color: #0b8a45; } .fcx-cpt1.r b { color: #c46f00; } .fcx-cpt1.c b { color: #1b7fcc; }
.fcx-stock .fc-zone h4 { font-size: .68rem; color: var(--texte-3); margin: 2px 0 0; }
.fcx-stock .fc-zone h4::before { display: none; }
.fcx-stock .fc-zone.z-ep { box-shadow: inset 0 3px 0 #0f9d4f; } .fcx-stock .fc-zone.z-r { box-shadow: inset 0 3px 0 #f28c00; } .fcx-stock .fc-zone.z-c { box-shadow: inset 0 3px 0 #2b9ff0; }
.fc-plus { width: 100%; padding: 9px; border: 1.5px dashed #c3c9d4; border-radius: var(--r-3); background: none; color: var(--texte-2); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.fc-plus:hover { border-color: var(--bleu); color: var(--bleu); background: var(--bleu-clair); }
.fc-ajout { display: grid; gap: 6px; padding: 8px; border-radius: var(--r-3); background: #fff; border: 1px solid #c9d0ff; }
.fc-ajout label { display: grid; gap: 2px; font-size: .68rem; color: var(--texte-2); } .fc-ajout label.case { display: flex; align-items: center; gap: 6px; }
.fc-ajout select, .fc-ajout input[type=number], .fc-ajout input[type=date] { width: 100%; min-width: 0; padding: 6px 8px; font-size: .8rem; }
.fc-ajout-act { display: flex; gap: 6px; flex-wrap: wrap; }
.fcx-form-obj { display: grid !important; grid-template-columns: auto 72px auto; align-items: center; gap: 8px; margin: 0 0 14px; }
.fcx-form-obj label { font-size: .74rem; color: var(--texte-2); }
.fcx-form-obj input { width: 72px; padding: 8px; text-align: center; font-weight: 700; }
.fcx-form-obj button { padding: 9px 14px; }
.fcx-objectif { margin-bottom: 10px; } .fcx-objectif b { font-size: 1.4rem; }
.fcx-recette-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ligne); margin-bottom: 6px; }
.fcx-recette-tete h3 { margin: 0 !important; } #rec-pour { font-size: .74rem; color: var(--texte-2); } #rec-pour b { color: var(--encre); }
.fcx-recette { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fcx-recette thead th { padding: 6px 8px; background: #2a2f3a; color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: left; }
.fcx-recette thead th:first-child { border-radius: var(--r-2) 0 0 var(--r-2); } .fcx-recette thead th:last-child { border-radius: 0 var(--r-2) var(--r-2) 0; text-align: right; }
.fcx-recette td { padding: 7px 8px; border-bottom: 1px solid #eef0f3; } .fcx-recette td.q { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fcx-ing { cursor: pointer; transition: opacity .2s; } .fcx-ing:hover { background: var(--bleu-clair); }
.fcx-ing .coche { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 8px; border: 1.5px solid #c3c9d4; border-radius: var(--r-1); vertical-align: -3px; font-style: normal; }
.fcx-ing.faite { opacity: .5; } .fcx-ing.faite td:first-child { text-decoration: line-through; }
.fcx-ing.faite .coche { background: var(--vert); border-color: var(--vert); } .fcx-ing.faite .coche::after { content: "✓"; color: #fff; font-size: .62rem; font-weight: 800; }
.fcx-h3-etapes { margin-top: 16px !important; }
@media (max-width: 900px) { .fcx .fcx-obj { display: block; } .fcx-bt-prod { display: none; } }
.fc-ajout[hidden], .fc-plus[hidden] { display: none !important; }
.fiche-tete .fcx-bt-prod { width: auto; height: 44px; border-radius: 999px; box-shadow: none; font-size: .9rem; }
.fiche-tete .fcx-bt-prod:hover { transform: none; }

/* fiche v4 : poids des bacs à la couleur de la zone, boutons sobres et réguliers, Production plus large */
.fcx-stock .z-ep .fc-bac-l1 b { color: #0b8a45 !important; } .fcx-stock .z-r .fc-bac-l1 b { color: #c46f00 !important; } .fcx-stock .z-c .fc-bac-l1 b { color: #1b7fcc !important; }
.fcx-stock .z-ep .fc-bac { border-left-color: #0f9d4f !important; } .fcx-stock .z-r .fc-bac { border-left-color: #f28c00 !important; } .fcx-stock .z-c .fc-bac { border-left-color: #2b9ff0 !important; }
.fc-bac-act { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px !important; margin-top: 6px; }
button.fc-b { min-height: 30px; padding: 0 8px; border: 1px solid #e1e4ea; border-radius: var(--r-2); background: #fff; color: var(--encre); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; box-shadow: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
button.fc-b:hover { border-color: #aab4ff; background: var(--bleu-clair); color: var(--bleu); }
button.fc-b-bleu { background: var(--bleu-clair); border-color: transparent; color: var(--bleu); }
button.fc-b-danger { color: var(--rouge); } button.fc-b-danger:hover { background: #fff1f1; border-color: #ffc9c9; color: var(--rouge); }
button.fc-b.confirmer { background: var(--rouge); border-color: var(--rouge); color: #fff; }
button.fc-b-plein { background: var(--bleu); border-color: var(--bleu); color: #fff; } button.fc-b-plein:hover { background: var(--bleu-fonce); color: #fff; }
.fc-repesee-act, .fc-ajout-act { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; }
.fc-repesee-act button, .fc-ajout-act button { min-height: 34px; }
.fc-plus { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 1px solid #e1e4ea !important; border-radius: var(--r-2); background: #fff !important; color: var(--encre) !important; font-size: .74rem; }
.fc-plus i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: .9rem; font-weight: 700; color: #fff; background: #8a919e; }
.z-ep .fc-plus i { background: #0f9d4f; } .z-r .fc-plus i { background: #f28c00; } .z-c .fc-plus i { background: #2b9ff0; }
.fc-plus:hover { border-color: #aab4ff !important; background: var(--bleu-clair) !important; }
.fc-ajout { border-color: #e1e4ea; }
.fcx.prod-ouverte { grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1.2fr) !important; }
.fcx-stock .fc-zone, .fcx-stock .fc-bac, .fc-ajout { min-width: 0; overflow: hidden; }
.fcx-stock .fc-bac-l1 { flex-wrap: wrap; }
.prod-ouverte .fc-bac-act { grid-template-columns: 1fr; }
.prod-ouverte .fc-plus { font-size: .7rem; padding: 7px 4px; }
.fc-ajout input, .fc-ajout select, .fc-repesee input { min-width: 0 !important; max-width: 100%; width: 100% !important; box-sizing: border-box; }
.prod-ouverte .fc-ajout-act, .prod-ouverte .fc-repesee-act { grid-template-columns: 1fr; }
.prod-ouverte button.fc-b { font-size: .68rem; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; }
.fc-ajout input[type=checkbox] { width: 18px !important; height: 18px; flex: none; }
.fc-ajout label.case { display: flex !important; justify-content: flex-start; font-size: .74rem; }
.fc-bac-act { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)) !important; }
.prod-ouverte .fc-bac-act { grid-template-columns: 1fr !important; }

/* fiche v5 : interrupteur Stock / Production au centre ; en mode Production, le stock n'est plus qu'un récapitulatif */
.fiche-comp .fiche-tete { position: relative; align-items: center; }
.fc-switch { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid #dde1e8; box-shadow: 0 2px 10px rgba(11,13,18,.06); }
.fc-switch button { position: relative; z-index: 1; min-width: 130px; height: 40px; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 700; color: var(--texte-2); cursor: pointer; border-radius: 999px; transition: color .25s; }
.fc-switch button[aria-selected="true"] { color: #fff; }
.fc-switch-pastille { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--bleu); box-shadow: 0 4px 12px rgba(25,46,213,.3); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.fc-switch.prod .fc-switch-pastille { transform: translateX(100%); }
.fiche-tete .fc-switch button { width: auto; box-shadow: none; } .fiche-tete .fc-switch button:hover { transform: none; }
.fcx.prod-ouverte { grid-template-columns: 128px 150px minmax(0, 1fr) !important; }
.prod-ouverte .fcx-stock .fc-zones { grid-template-columns: 1fr !important; gap: 8px; }
.prod-ouverte .fcx-stock .fc-zone { background: none; padding: 0; box-shadow: none !important; }
.prod-ouverte .fcx-stock .fc-zone > :not(.fcx-cpt1) { display: none !important; }
.prod-ouverte .fcx-cpt1 { padding: 12px 6px; background: #f6f7f9; border-top: 3px solid; }
.prod-ouverte .fcx-cpt1.ep { border-color: #0f9d4f; } .prod-ouverte .fcx-cpt1.r { border-color: #f28c00; } .prod-ouverte .fcx-cpt1.c { border-color: #2b9ff0; }
.prod-ouverte .fcx-stock h3::after { content: " · récap"; font-weight: 500; color: var(--texte-3); text-transform: none; letter-spacing: 0; }
.fcx.prod-ouverte .fcx-obj { animation: glisse-prod .35s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes glisse-prod { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .fc-switch { position: static; transform: none; margin: 8px 0; } .fiche-comp .fiche-tete { flex-wrap: wrap; } }
.fiche-comp .fiche-tete { min-height: 64px; padding-top: 6px; }
.fcx-form-obj { grid-template-columns: auto 72px auto !important; justify-content: start; }
.fcx-form-obj button { padding: 9px 18px; }
/* interrupteur glissable au doigt */
.fc-switch { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.fc-switch:active { cursor: grabbing; }
/* objectif sur une seule ligne : Objectif · À produire · Modifier [  ] OK */
.fcx-ligne-obj { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.fcx-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: var(--r-2); background: #f1f3f6; font-size: .74rem; color: var(--texte-2); white-space: nowrap; }
.fcx-chip b { font-size: 1rem; color: var(--encre); }
.fcx-chip.fort { background: var(--bleu); color: rgba(255,255,255,.85); } .fcx-chip.fort b { color: #fff; }
.fcx-mod { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .74rem; color: var(--texte-2); }
.fcx-mod input { width: 64px; padding: 6px 8px; text-align: center; font-weight: 700; }
.fcx-ligne-obj button { min-height: 34px; padding: 0 14px; }
.fcx-obj > h3:first-child { margin-bottom: 8px; }

/* production n°1 : bandeau, recette éditable, validation */
.fcx-p1 { display: grid; gap: 3px; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--r-3); background: #fff6e6; border: 1px solid #ffd99a; }
.fcx-p1 b { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #a85a00; } .fcx-p1 span { font-size: .76rem; color: #6b4a1a; line-height: 1.4; }
.fcx-rec-edit .fcx-recette thead th:nth-child(2) { text-align: right; } .fcx-rec-edit .fcx-recette thead th:last-child { width: 30px; }
.fcx-ligne-edit td { padding: 4px 4px; }
.fcx-ligne-edit select { width: 100%; min-width: 0; padding: 7px 8px; font-size: .82rem; }
.fcx-ligne-edit input { width: 90px; padding: 7px 8px; text-align: right; font-weight: 700; margin-left: auto; display: block; }
button.fc-x { width: 28px; height: 28px; border: 0; border-radius: var(--r-2); background: none; color: var(--texte-3); cursor: pointer; } button.fc-x:hover { background: #fff1f1; color: var(--rouge); }
.fcx-rec-act { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 14px; } .fcx-rec-act button { min-height: 36px; padding: 0 14px; }
.fcx-rec-act i { font-style: normal; font-weight: 800; }
.fcx-p1-fin { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; padding: 12px; border-radius: var(--r-3); background: #f1f3f6; }
.fcx-p1-fin div { display: grid; } .fcx-p1-fin span { font-size: .7rem; color: var(--texte-2); } .fcx-p1-fin b { font-size: 1.3rem; } .fcx-p1-fin small { font-size: .72rem; color: var(--texte-2); }
button.fcx-p1-bt { min-height: 44px; padding: 0 18px; font-size: .86rem; } button.fcx-p1-bt:disabled { opacity: .45; cursor: not-allowed; }
button.fcx-p1-bt.confirmer { background: #0f9d4f; border-color: #0f9d4f; }
.fcx-p1-note { margin: 4px 0 12px; font-size: .72rem; color: var(--texte-3); }
.fcx-p1-ok { margin: 8px 0 14px; font-size: .74rem; color: var(--texte-2); } .fcx-p1-ok b { color: var(--encre); }
button.fc-lien { border: 0; background: none; padding: 0; color: var(--bleu); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* titre « Stock & production · carte [molette] » */
.principal-zone:has(.pv-fam) .haut .sous-titre { display: none !important; }
#titre-page { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tp-sep { color: var(--texte-3); font-weight: 400; } .tp-carte { font-weight: 400; color: var(--texte-2); }
.molette { position: relative; display: inline-block; height: 58px; min-width: 150px; overflow: hidden; cursor: ns-resize; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; margin: -12px 0;
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); }
.molette::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 32px; transform: translateY(-50%); border-radius: var(--r-2); background: var(--bleu-clair); z-index: 0; }
.molette-piste { position: relative; z-index: 1; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.molette-it { display: flex; align-items: baseline; gap: 5px; height: 32px; line-height: 32px; padding: 0 4px; color: var(--texte-3); transform: scale(calc(1 - var(--d, 0) * .12)); transform-origin: left center; transition: color .25s, transform .25s; }
.molette-it small { font-size: .5em; font-weight: 500; color: inherit; opacity: .7; }
.molette-it.choisi { color: var(--bleu); }
.molette-it.creer { font-size: .7em; font-weight: 700; color: var(--bleu); opacity: .8; }
.molette:focus-visible::before { box-shadow: 0 0 0 2px var(--bleu); }
.molette-statut { font-style: normal; font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: 0; background: #f1f2f5; color: var(--texte-2); }
.molette-statut.vert { background: #e6f6ec; color: #0b7f3f; } .molette-statut.orange { background: #fff1db; color: #b25f00; } .molette-statut.bleu { background: var(--bleu-clair); color: var(--bleu); }
/* dalle vide et ajout d'un élément */
.pc-vide .pc-lignes { flex: 0 0 auto !important; }
.pc-ajout-el { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; padding: 6px; border: 1px dashed #c3c9d4; border-radius: var(--r-2); background: none; color: var(--texte-2); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; }
.pc-ajout-el i { font-style: normal; font-weight: 800; color: var(--bleu); }
.pc-ajout-el:hover { border-color: var(--bleu); color: var(--bleu); background: var(--bleu-clair); }
.pc-ajout-el[hidden], .pc-form-el[hidden] { display: none !important; }
.pc-form-el { display: grid; grid-template-columns: minmax(0, 1fr) 62px 62px auto; gap: 4px; margin-top: auto; padding-top: 4px; }
.pc-form-el input { min-width: 0; padding: 6px 7px; font-size: .74rem; }
.pc:not(.pc-vide) .pc-ajout-el { opacity: .55; padding: 3px; font-size: .64rem; } .pc:not(.pc-vide) .pc-ajout-el:hover { opacity: 1; }
@media (min-width: 980px) {
  .principal-zone:has(.pv-fam) .haut h1 { font-size: 1.35rem; }
  .principal-zone:has(.pv-fam) .pv-top2 .pv-dep summary { padding: 5px 5px 5px 10px; gap: 6px; font-size: .74rem; }
  .principal-zone:has(.pv-fam) .pv-top2 .pv-dep .chev { width: 20px; height: 20px; }
  .principal-zone:has(.pv-fam) .pv-top2 .pv-dep-vide { padding: 6px 10px; font-size: .74rem; }
  .principal-zone:has(.pv-fam) .pv-top2 .pv-deps { gap: 5px; }
  .molette { min-width: 128px; }
}
.pc-l { max-height: 54px; } .pc-lignes { justify-content: flex-start; }
/* choix de la carte : bouton ovale bleu et menu déroulant (remplace la molette) */
.carte-choix { position: relative; display: inline-flex; }
.carte-bt { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 16px; border: 1.5px solid #c9d0ff; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu); font: inherit; font-size: 1em; font-weight: 700; letter-spacing: -.02em; cursor: pointer; transition: background .15s, border-color .15s; }
.carte-bt:hover, .carte-bt[aria-expanded="true"] { border-color: var(--bleu); background: #e3e7ff; }
.carte-bt svg { transition: transform .2s; } .carte-bt[aria-expanded="true"] svg { transform: rotate(180deg); }
.carte-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 260px; display: grid; gap: 2px; padding: 6px; border-radius: var(--r-4); background: #fff; border: 1px solid #e1e4ea; box-shadow: 0 18px 50px rgba(11,13,18,.18); font-size: .9rem; letter-spacing: 0; animation: pop-entree .2s var(--ressort) both; }
.carte-menu[hidden] { display: none; }
.carte-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; border-radius: var(--r-2); background: none; font: inherit; font-weight: 600; color: var(--encre); text-align: left; cursor: pointer; }
.carte-opt:hover { background: var(--bleu-clair); color: var(--bleu); }
.carte-opt.choisi { background: var(--bleu); color: #fff; } .carte-opt.choisi .carte-statut { background: rgba(255,255,255,.2); color: #fff; }
.carte-creer { margin-top: 4px; border-top: 1px solid var(--ligne); border-radius: 0 0 var(--r-2) var(--r-2); color: var(--bleu); }
.carte-statut { font-style: normal; font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: 0; background: #f1f2f5; color: var(--texte-2); white-space: nowrap; }
.carte-statut.vert { background: #e6f6ec; color: #0b7f3f; } .carte-statut.orange { background: #fff1db; color: #b25f00; }
.carte-bt { font-size: .82em; height: 34px; }
.carte-pt { width: 9px; height: 9px; border-radius: 50%; background: #9aa0ab; flex: none; }
.carte-pt.vert { background: #0f9d4f; } .carte-pt.orange { background: #f28c00; }
/* modifier nom / PU / DLC d'un élément depuis sa fiche */
.fc-modif { margin-left: 6px; font-size: .78rem; }
.fc-modif[hidden], .fc-form-element[hidden] { display: none !important; }
.fc-form-element { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 8px; }
.fc-form-element label { display: grid; gap: 2px; font-size: .68rem; color: var(--texte-2); }
.fc-form-element input { padding: 7px 9px; font-size: .86rem; } .fc-form-element input[name=nom] { width: 260px; }
.fc-form-element input[type=number] { width: 84px; text-align: center; font-weight: 700; }
.fc-form-element button { min-height: 36px; padding: 0 14px; }
@media (min-width: 901px) { .fiche-comp .fiche-tete > div:first-child { max-width: calc(50% - 170px); min-width: 0; } }
.fc-form-element { display: grid !important; grid-template-columns: 80px 80px 1fr 1fr; gap: 6px; }
.fc-form-element label:first-child { grid-column: 1 / -1; } .fc-form-element input[name=nom] { width: 100%; box-sizing: border-box; }
.fc-form-element input[type=number] { width: 100%; box-sizing: border-box; }
.fc-form-element[hidden] { display: none !important; }
.fc-form-element { grid-template-columns: 1fr 1fr !important; max-width: 300px; } .fc-form-element button { width: 100%; }
.fcx-etapes-edit textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #dde1e8; border-radius: var(--r-3); font: inherit; font-size: .84rem; line-height: 1.5; resize: vertical; }
.fcx-h3-etapes small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--texte-3); margin-left: 4px; }
/* menu des cartes par année, statut coloré à droite du mois */
.carte-pt { display: none; }
.carte-statut.grand { font-size: .62rem; padding: 4px 10px; margin-left: 2px; }
.carte-statut.gris { background: #eceef2; color: #6b7280; }
.carte-menu { max-height: 70vh; overflow-y: auto; min-width: 240px; }
.carte-annee-bt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--r-2); background: none; font: inherit; font-weight: 800; color: var(--encre); cursor: pointer; }
.carte-annee-bt small { font-weight: 500; font-size: .72rem; color: var(--texte-3); margin-right: auto; }
.carte-annee-bt svg { transition: transform .2s; color: var(--texte-3); }
.carte-annee-bt:hover { background: var(--fond); }
.carte-annee.ouverte .carte-annee-bt svg { transform: rotate(90deg); }
.carte-mois { display: none; padding: 0 0 4px 10px; } .carte-annee.ouverte .carte-mois { display: grid; gap: 2px; }
/* déplacer un élément (carte en préparation) */
.pc-grip { font-style: normal; flex: none; margin-right: 6px; padding: 2px 3px; border-radius: var(--r-1); color: #9aa0ab; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; font-size: .9rem; line-height: 1; }
.pc-grip:hover { background: var(--bleu-clair); color: var(--bleu); }
.pc-fantome { position: fixed; z-index: 60; pointer-events: none; background: #fff !important; border-radius: var(--r-2); box-shadow: 0 12px 30px rgba(11,13,18,.22), 0 0 0 2px var(--bleu); opacity: .95; }
.pc-en-glisse { opacity: .35; }
.pc-l.cible-avant { box-shadow: inset 0 3px 0 var(--bleu) !important; }
.pc.cible-fin { box-shadow: 0 0 0 2px var(--bleu), 0 6px 18px rgba(25,46,213,.15) !important; }
@media (min-width: 980px) {
  .principal-zone:has(.pv-fam) .haut h1 { font-size: 1.18rem; }
  #titre-page { gap: 6px; }
  .carte-bt { font-size: .9em; height: 32px; padding: 0 10px 0 13px; }
}
/* fiche d'un élément archivé : seulement la recette, avec calcul des quantités */
.fc-switch[hidden] { display: none !important; }
.fc-archive { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 7px 16px; border-radius: 999px; background: #eceef2; color: #4b5361; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.fcx.archive { grid-template-columns: minmax(0, 1fr) !important; }
.fcx.archive .fcx-etat, .fcx.archive .fcx-stock { display: none !important; }
.fcx.archive .fcx-obj { display: block !important; max-width: 760px; width: 100%; justify-self: center; }
.fcx-calcul { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--r-3); background: var(--bleu-clair); }
.fcx-calcul label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--bleu); font-size: .86rem; }
.fcx-calcul input { width: 90px; padding: 7px 8px; text-align: center; font-weight: 800; font-size: .95rem; }
.fcx-calcul small { font-size: .74rem; color: var(--texte-2); }

/* ===== Règle des arrondis (18/11/2026) =====
   Échelle --r-1 à --r-6 (pas de 4 px). Un cadre dans un autre : arrondi intérieur = arrondi extérieur − marge.
   Deux blocs empilés gardent le même arrondi. Aucun cadre ne passe sous un autre. */

/* Stock & production : les bandeaux ne passent plus sous la barre de titre, et ont l'arrondi des cartes */
.principal-zone:has(.pv-fam) .pv-fam { margin-top: 12px; }
@media (min-width: 980px) { .principal-zone:has(.pv-fam) .pv-fam { height: calc(100vh - 84px); height: calc(100dvh - 84px); } }
.pv-col h2.pc-bande { border-radius: var(--r-4); margin-bottom: 6px; }
/* lignes d'une carte : 18 (carte) − 8 (marge) = 10 */
.pc-l { border-radius: var(--r-2); }
/* iPad paysage : le titre et les pastilles du haut tiennent côte à côte sans se recouvrir */
@media (min-width: 980px) and (max-width: 1279px) {
  .principal-zone:has(.pv-fam) .haut h1 { font-size: 1.22rem; }
  .principal-zone:has(.pv-fam) .haut h1 .tp-carte { display: none; }
  .principal-zone:has(.pv-fam) .pv-top2 .pv-dep summary { padding: 5px 4px 5px 9px; gap: 5px; }
  .principal-zone:has(.pv-fam) .pv-top2 .pv-deps { gap: 4px; }
}
.principal-zone:has(.pv-fam) .pv-fam { margin-top: 22px; }
@media (min-width: 980px) and (max-width: 1279px) {
  .principal-zone:has(.pv-fam) .pv-top2 { margin-right: 58px !important; }
  .principal-zone:has(.pv-fam) .pv-top2 .pv-dep summary { font-size: .7rem !important; padding: 4px 3px 4px 8px !important; gap: 4px !important; }
  .principal-zone:has(.pv-fam) .pv-top2 .pv-dep .chev { width: 18px; height: 18px; }
}
/* Messages : icône du salon calée sur l'arrondi de la ligne (22 − 11 = 11) */
.salon .salon-ic { border-radius: var(--r-2); }

/* ===== Animations d'interaction (18/11/2026) =====
   Utiles seulement : retour au toucher, confirmation à maintenir, cases et interrupteurs vivants.
   Rien ne bouge tout seul, et tout s'arrête si l'appareil demande moins d'animations. */

/* 1. Tout bouton s'enfonce légèrement au toucher (les règles plus précises gardent la main) */
:where(button, .bouton, [role="button"], summary) { transition: transform .18s var(--ressort); -webkit-tap-highlight-color: transparent; }
:where(button, .bouton, [role="button"], summary):active:not(:disabled) { transform: scale(.96); transition-duration: .08s; }

/* 2. Maintenir pour confirmer : le bouton s'arme, se remplit sous le doigt, puis valide */
.maintien { position: relative; overflow: hidden; isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none;
  background: var(--rouge-clair) !important; color: var(--rouge) !important; border-color: var(--rouge) !important; box-shadow: none !important;
  animation: maintien-arme .45s var(--ressort); }
.maintien.maintien-bleu { background: var(--bleu-clair) !important; color: var(--bleu) !important; border-color: var(--bleu) !important; }
.maintien-texte { display: block; white-space: nowrap; pointer-events: none; }
.maintien-rempli { position: absolute; inset: 0; display: grid; place-items: center; padding: inherit; border-radius: inherit; pointer-events: none;
  background: var(--rouge); color: #fff; clip-path: inset(0 100% 0 0); transition: clip-path .3s var(--sortie); }
.maintien-bleu .maintien-rempli { background: var(--bleu); }
.maintien.appui .maintien-rempli, .maintien.valide .maintien-rempli { clip-path: inset(0 0 0 0); }
.maintien.appui .maintien-rempli { transition: clip-path var(--duree, .9s) linear; }
.maintien.appui { transform: scale(.97) !important; transition: transform .2s var(--doux); }
.maintien.valide { animation: maintien-valide .26s var(--ressort); }
@keyframes maintien-arme { 0% { transform: scale(.94); } 55% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes maintien-valide { 0% { transform: scale(.97); } 50% { transform: scale(1.06); } 100% { transform: none; } }

/* 3. Cases à cocher et boutons radio : coche qui se dessine, petit rebond
   (priorité d'un simple « input » : les règles propres à un écran, ex. cases cachées, gardent la main) */
input:where([type=checkbox], [type=radio]) { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-items: center; margin: 0; padding: 0;
  width: 22px; height: 22px; min-height: 0; border: 2px solid #c9cedb; border-radius: var(--r-1); background: #fff; cursor: pointer; vertical-align: middle; box-shadow: none;
  transition: background .2s var(--doux), border-color .2s, transform .3s var(--ressort); }
input:where([type=radio]) { border-radius: 50%; }
input:where([type=checkbox])::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform .28s var(--ressort) .04s; }
input:where([type=radio])::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .28s var(--ressort); }
input:where([type=checkbox], [type=radio]):checked { background: var(--bleu); border-color: var(--bleu); animation: case-pop .32s var(--ressort); }
input:where([type=checkbox]):checked::after { transform: rotate(-45deg) scale(1); }
input:where([type=radio]):checked::after { transform: scale(1); }
input:where([type=checkbox], [type=radio]):active { transform: scale(.85); }
input:where([type=checkbox], [type=radio]):focus-visible { outline: 3px solid rgba(25,46,213,.25); outline-offset: 2px; }
@keyframes case-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: none; } }

/* 4. Interrupteur Production / Stock : la pastille s'étire sous le doigt, puis glisse avec un léger ressort */
.fc-switch-pastille { transition: transform .45s var(--ressort), width .2s var(--doux), left .2s var(--doux); }
.fc-switch:active .fc-switch-pastille { width: calc(50% + 6px); }
.fc-switch.prod:active .fc-switch-pastille { left: -6px; }

/* 5. Zone de dépôt des bulletins : elle s'ouvre quand un fichier arrive, l'icône saute */
.bp-depot-ic { transition: transform .35s var(--ressort), background .2s, color .2s; }
.bp-depot.survol { border-radius: var(--r-6); }
.bp-depot.survol .bp-depot-ic { transform: translateY(-4px) scale(1.12); background: var(--bleu); color: #fff; animation: depot-saut .9s var(--ressort) infinite alternate; }
@keyframes depot-saut { from { transform: translateY(-4px) scale(1.12); } to { transform: translateY(2px) scale(1.04); } }

@media (prefers-reduced-motion: reduce) {
  :where(button, .bouton, [role="button"], summary):active:not(:disabled) { transform: none; }
  .maintien, .maintien.valide, input:checked, .bp-depot.survol .bp-depot-ic { animation: none; }
}
/* Stock & production : les lignes ne rétrécissent pas au toucher (le surlignage suffit) */
.pc-l:active, .pv-fam :where(button):active { transform: none; }
/* Fiche d'un élément : colonnes de stock 18 px, marge 8 → compteur, bacs et « Ajouter un bac » à 10 px */
.fcx-stock .fc-zone { border-radius: var(--r-4); }
.fcx-cpt1, .fc-plus, .fcx-stock .fc-bac { border-radius: var(--r-2); }
/* Dépliants Priorités : cadre 18 px, marge 8 → lignes à 10 px */
.pv-dep-corps { padding: 8px; }
.pr-ok, .pr-dlc { border-radius: var(--r-2); }
/* Tableau posé dans une tuile : 22 (tuile) − 18 (marge) = 4 → 6 px */
.tuile table { border-radius: var(--r-1); }

/* ===== Stock & production : trois zones de sélection par ligne (18/11/2026) =====
   nom + PU → Fiche · stock EP R C → Stock · à faire → Production. Chaque zone s'allume seule. */
.pc-l .pc-z { display: grid; grid-template-columns: subgrid; align-items: center; align-self: stretch; min-width: 0; border-radius: var(--r-2); transition: background .14s var(--doux), box-shadow .14s; }
.pc-l .pc-za { grid-column: 1 / 3; }
.pc-l .pc-zb { grid-column: 3 / 6; overflow: hidden; }
.pc-l .pc-zc { grid-column: 6 / 7; }
.pc-l .pc-zb .pc-vue { grid-column: 1 / -1 !important; }
.pc-l .pc-zb > span { align-self: stretch; }
/* la ligne entière ne s'allume plus : seulement la zone sous le doigt ou la souris */
.pc-l:hover, .pc-l:active, .pc-l:focus-visible { background: none !important; }
.pc-l:hover .pc-ep, .pc-l:hover .pc-r, .pc-l:hover .pc-c, .pc-l:hover .pc-vue,
.pc-l:active .pc-ep, .pc-l:active .pc-r, .pc-l:active .pc-c { background: #f1f3f6; }
.pc-l:hover .pc-nom .n { color: inherit; }
.pc-l .pc-za:hover, .pc-l .pc-zc:hover, .pc-l .pc-za:active, .pc-l .pc-zc:active { background: #e2e6ff; box-shadow: inset 0 0 0 1.5px #b8c2ff; }
.pc-l .pc-za:hover .n { color: var(--bleu); }
.pc-l .pc-zb:hover > span, .pc-l .pc-zb:active > span { background: #e2e6ff !important; }
.pc-l .pc-zb:hover, .pc-l .pc-zb:active { box-shadow: inset 0 0 0 1.5px #b8c2ff; }
.pc-l .pc-z:active { transform: scale(.97); transition-duration: .08s; }

/* ===== Fiche d'un élément : 4 pages qui défilent (Fiche · État · Stock · Production) ===== */
.fc-onglets { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.88); border: 1px solid #dde1e8; box-shadow: 0 2px 10px rgba(11,13,18,.06); }
.fc-onglets button { position: relative; z-index: 1; min-width: 108px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .9rem; font-weight: 700; color: var(--texte-2); cursor: pointer; transition: color .2s, transform .18s var(--ressort); }
.fc-onglets button[aria-selected="true"] { color: #fff; }
.fc-onglets button:not([aria-selected="true"]):hover { color: var(--bleu); }
.fc-onglets-pastille { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 4)); border-radius: 999px; background: var(--bleu); box-shadow: 0 4px 12px rgba(25,46,213,.3); will-change: transform; }
.fc-onglets:active .fc-onglets-pastille { box-shadow: 0 2px 6px rgba(25,46,213,.3); }
@media (min-width: 901px) { .fiche-comp .fiche-tete > div:first-child { max-width: calc(50% - 250px); } }
@media (max-width: 900px) { .fc-onglets { position: static; transform: none; width: 100%; margin: 8px 0 0; } .fc-onglets button { min-width: 0; padding: 0 6px; } }

.fcp { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--r-4); scroll-behavior: smooth; }
.fcp::-webkit-scrollbar { display: none; }
.fcp-page.fcx-col { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; box-shadow: none; }
.fcp-page > h3:first-child { margin-top: 0; }
/* page Fiche : trois blocs Élément · Conservation · Envoi (colonnes de l'onglet Estimation du cloud) */
.fcp .fcx-fiche { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; padding: 8px; }
.fcf-bloc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-content: start; padding: 14px; border-radius: var(--r-2); background: #f6f7f9; }
.fcf-bloc h3 { grid-column: 1 / -1; margin: 0 0 2px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); }
.fcf-info { display: grid; gap: 3px; min-width: 0; }
.fcf-info.large { grid-column: 1 / -1; }
.fcf-info span { font-size: .7rem; font-weight: 600; color: var(--texte-2); }
.fcf-info b { font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.fcf-info.note b { font-size: .86rem; font-weight: 500; line-height: 1.45; }
.fcf-vide { font-style: normal; color: var(--texte-3); font-weight: 500; }
.fcf-cons { display: inline-block; padding: 3px 10px; border-radius: 999px; font-style: normal; font-size: .82rem; background: var(--fond); }
.fcf-cons.cong { background: #e3f1fd; color: #1677c9; } .fcf-cons.frais { background: var(--vert-clair); color: var(--vert); }
.fcf-modif { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.fcf-form { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px; border-radius: var(--r-2); background: var(--bleu-voile); }
.fcf-form[hidden] { display: none !important; }
.fcf-form label { display: grid; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--texte-2); }
.fcf-form .large { grid-column: span 2; }
.fcf-form-act { display: flex; justify-content: flex-end; align-items: end; gap: 8px; }
/* page État : six grandes dalles */
.fcp .fcx-etat .fcx-etats { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 760px; }
.fcp .fcx-etat .fcx-e { justify-content: center; padding: 26px 16px; font-size: 1rem; border-radius: var(--r-3); }
/* page Production : lecture confortable, colonne centrée */
.fcp .fcx-obj > * { max-width: 860px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .fcp .fcx-fiche, .fcf-form { grid-template-columns: 1fr; } .fcf-form .large { grid-column: auto; } .fcp .fcx-etat .fcx-etats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .fcp { scroll-behavior: auto; } }
/* les onglets n'héritent pas du style des boutons ronds de l'en-tête */
.fiche-tete .fc-onglets button { width: auto; height: 40px; background: none; box-shadow: none; border: 0; }
.fiche-tete .fc-onglets button:hover { transform: none; background: none; }
.fiche-tete .fc-onglets button:active { transform: scale(.95); }
.fcf-info { align-content: start; }
/* formulaire de la page Fiche : pleine largeur, trois colonnes (les anciennes règles visaient l'en-tête) */
.fcp .fcf-form.fc-form-element { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: none; margin-top: 0; gap: 10px 12px; }
.fcp .fcf-form label:first-child { grid-column: span 2; }
.fcp .fcf-form input, .fcp .fcf-form select { width: 100% !important; box-sizing: border-box; text-align: left; font-weight: 600; }
.fcp .fcf-form button { width: auto; }
@media (max-width: 900px) { .fcp .fcf-form.fc-form-element { grid-template-columns: 1fr !important; } .fcp .fcf-form label:first-child { grid-column: auto; } }
.fcp .fcf-form-act { grid-column: 1 / -1 !important; }

/* ===== Retours du 18/11 (2) ===== */
/* traits de couleur à gauche des lignes : bien droits (la ligne n'est arrondie qu'à droite) */
.pc-l { border-radius: 0 var(--r-2) var(--r-2) 0 !important; }
/* sélection du nom : même respiration à gauche qu'à droite */
.pc-l .pc-za { padding-left: 7px; margin-left: -3px; }

/* ===== Fiche : page ouverte en grand, les autres en colonnes réduites (remplace le défilement) ===== */
.fcp { display: flex; gap: 8px; overflow: hidden; scroll-snap-type: none; border-radius: 0; }
.fcp-page.fcx-col { flex: 0 0 116px; min-width: 0; overflow: hidden; padding: 0; cursor: pointer;
  transition: flex-grow .5s cubic-bezier(.16, 1, .3, 1), background .2s, border-color .2s; }
.fcp-page.fcx-col.actif { flex-grow: 1; overflow-y: auto; cursor: auto; padding: 14px; }
.fcp.sans-anim .fcp-page, .fcp.sans-anim .fcp-plein, .fcp.sans-anim .fcp-mini { transition: none !important; animation: none !important; }
.fcp-page:not(.actif) .fcp-plein { display: none; }
.fcp-page.actif .fcp-mini { display: none; }
.fcp-page.actif .fcp-plein { animation: plein-entre .4s cubic-bezier(.16, 1, .3, 1) .08s both; }
@keyframes plein-entre { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fcp-page:not(.actif):hover { background: var(--bleu-voile); border-color: #c9d0ff; }
.fcp-page:not(.actif):active { background: var(--bleu-clair); }
/* colonne réduite : le minimum utile, lisible d'un coup d'œil */
.fcp-mini { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 10px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; animation: fondu .3s both; }
.fcp-mini > b { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); }
.fcp-page:not(.actif):hover .fcp-mini > b { color: var(--bleu); }
.fcp-l { display: grid; gap: 1px; font-size: .86rem; font-weight: 700; overflow-wrap: anywhere; }
.fcp-l small, .fcp-cpt small { font-size: .62rem; font-weight: 600; color: var(--texte-2); }
.fcp-cpt { display: grid; padding: 8px 8px 7px; border-radius: var(--r-2); background: #f6f7f9; border-top: 3px solid var(--ligne); }
.fcp-cpt b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fcp-cpt.ep { border-top-color: #0f9d4f; } .fcp-cpt.ep b { color: #0f9d4f; }
.fcp-cpt.r { border-top-color: #f28c00; } .fcp-cpt.r b { color: #d97a00; }
.fcp-cpt.c { border-top-color: #2b9ff0; } .fcp-cpt.c b { color: #1677c9; }
.fcp-cpt.fort { background: var(--bleu-clair); border-top-color: var(--bleu); } .fcp-cpt.fort b { color: var(--bleu); }
.fcp-etat { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: var(--r-2); background: #f6f7f9; font-size: .82rem; font-weight: 800; letter-spacing: .03em; }
.fcp-etat i { width: 10px; height: 10px; border-radius: 50%; background: #9aa1ad; flex: none; }
.fcp-etat.e-orange i { background: #f28c00; } .fcp-etat.e-bleu i { background: var(--bleu); } .fcp-etat.e-vert i { background: #0f9d4f; }
.fcp-etat.e-ok { background: var(--encre); color: #fff; } .fcp-etat.e-ok i { background: #3ddc84; } .fcp-etat.e-glace i { background: #2b9ff0; }
/* page Fiche : la grille passe dans le contenu complet */
.fcp .fcx-fiche { display: block; padding: 0; }
.fcp .fcx-fiche.actif { padding: 8px; }
.fcx-fiche .fcp-plein { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.fcp-page:not(.actif) .fcp-plein { display: none !important; }
@media (max-width: 900px) { .fcx-fiche .fcp-plein { grid-template-columns: 1fr; } .fcp-page.fcx-col { flex-basis: 64px; } .fcp-mini > :not(b) { display: none; } .fcp-mini > b { writing-mode: vertical-rl; } }

/* en-tête : PU à côté du nom, sur une ligne */
.fc-titre { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.fc-titre > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-pu { flex: none; font-style: normal; font-size: .82rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu); letter-spacing: 0; }
.fiche-comp .fiche-tete { min-height: 52px; margin-bottom: 8px; }

/* ===== Stock : bacs à glisser d'une zone à l'autre, trois boutons ===== */
.fc-astuce { margin-left: 8px; font-size: .66rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--texte-3); }
.fcx-stock .fc-bac { border-right: 3px solid #c9d0ff; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .2s var(--ressort), box-shadow .2s, opacity .2s; }
.fcx-stock .z-ep .fc-bac { border-right-color: #0f9d4f !important; } .fcx-stock .z-r .fc-bac { border-right-color: #f28c00 !important; } .fcx-stock .z-c .fc-bac { border-right-color: #2b9ff0 !important; }
.fcx-stock .fc-bac:hover { box-shadow: 0 4px 14px rgba(11,13,18,.08); }
.fcx-stock .fc-bac:active { cursor: grabbing; }
.fc-bac.fc-bac-parti { opacity: .3; transform: scale(.97); }
.fc-bac-vol { position: fixed !important; z-index: 1000; margin: 0; pointer-events: none; cursor: grabbing; background: #fff !important;
  box-shadow: 0 18px 40px rgba(16,34,168,.22), 0 4px 10px rgba(11,13,18,.08); transform: rotate(-1.5deg) scale(1.04); animation: bac-souleve .2s var(--ressort); }
@keyframes bac-souleve { from { transform: none; box-shadow: none; } }
.fcx-stock.en-glisse .fc-zone { transition: background .2s, box-shadow .2s, transform .25s var(--ressort); }
.fcx-stock.en-glisse .fc-zone:not(.cible) { opacity: .92; }
.fcx-stock .fc-zone.cible { background: var(--bleu-clair) !important; box-shadow: inset 0 0 0 2px var(--bleu); transform: scale(1.015); }
.fcx-stock .fc-zone.z-r.cible { background: #fff4e3 !important; box-shadow: inset 0 0 0 2px #f28c00; }
.fcx-stock .fc-zone.z-c.cible { background: #e8f4fe !important; box-shadow: inset 0 0 0 2px #2b9ff0; }
.fcx-stock .fc-zone.z-ep.cible { background: #e7f7ee !important; box-shadow: inset 0 0 0 2px #0f9d4f; }
/* les trois boutons : icône au-dessus, mot en dessous */
.fcx-stock .fc-bac-act { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 4px !important; margin-top: 6px; }
button.fc-b.fc-b-ic { display: grid; place-items: center; gap: 1px; min-height: 44px; padding: 5px 2px; font-size: .62rem; transition: transform .18s var(--ressort), background .15s, color .15s, border-color .15s; }
button.fc-b.fc-b-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ressort); }
button.fc-b.fc-b-ic:hover svg { transform: translateY(-1px) scale(1.08); }
button.fc-b.fc-b-ic:active { transform: scale(.92); }
button.fc-b.fc-b-ic.maintien { min-height: 44px; font-size: .58rem; }
button.fc-b.fc-b-ic.maintien .maintien-texte { white-space: normal; line-height: 1.15; }
button.fc-b.en-cours svg { animation: imprime 0.9s ease-in-out infinite; }
@keyframes imprime { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
button.fc-b.reussi { background: var(--vert-clair); border-color: transparent; color: var(--vert); }
button.fc-b.reussi svg { stroke-dasharray: 24; stroke-dashoffset: 24; animation: trace .4s var(--sortie) forwards; }
button.fc-b.echec { animation: secoue .35s; color: var(--rouge); }
@media (prefers-reduced-motion: reduce) { .fcp-page.fcx-col { transition: none; } .fcp-page.actif .fcp-plein, .fc-bac-vol { animation: none; } }
/* le bac en vol garde l'allure qu'il a dans sa zone */
.fc-bac-vol .fc-bac-act { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 4px !important; margin-top: 6px; }
.fc-bac-vol { border-left: 3px solid; border-right: 3px solid; border-radius: var(--r-2); padding: 6px 8px; }
.fc-bac-vol[data-zone="place"] { border-color: #0f9d4f; } .fc-bac-vol[data-zone="refill"] { border-color: #f28c00; } .fc-bac-vol[data-zone="congel"] { border-color: #2b9ff0; }
.fc-bac-vol { border-top: 0; border-bottom: 0; }

/* ===== Retours du 18/11 (3) ===== */
/* largeur des pages selon celle qui est ouverte :
   Fiche ou État ouverts → page étroite et verticale, le stock prend la place en aperçu (bacs, poids, portions, dates) ;
   Stock ou Production ouverts → page en grand, les autres en colonnes réduites */
.fcp-page.fcx-col { transition: flex-grow .5s cubic-bezier(.16, 1, .3, 1), flex-basis .5s cubic-bezier(.16, 1, .3, 1), background .2s, border-color .2s; }
.fcp[data-actif="fiche"] .fcx-fiche.actif { flex: 0 0 330px; }
.fcp[data-actif="etat"] .fcx-etat.actif { flex: 0 0 190px; }
.fcp[data-actif="fiche"] .fcx-stock, .fcp[data-actif="etat"] .fcx-stock { flex: 1 0 116px; }
.fcp-semi { display: none; }
.fcp[data-actif="fiche"] .fcx-stock .fcp-mini, .fcp[data-actif="etat"] .fcx-stock .fcp-mini { display: none; }
.fcp[data-actif="fiche"] .fcx-stock .fcp-semi, .fcp[data-actif="etat"] .fcx-stock .fcp-semi { display: flex; animation: fondu .35s both; }
.fcp-semi { width: 100%; height: 100%; flex-direction: column; gap: 10px; padding: 14px 12px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.fcp-semi > b { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); }
.fcs-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.fcs-zone { display: grid; gap: 5px; padding: 8px; border-radius: var(--r-3); background: #f6f7f9; border-top: 3px solid var(--ligne); }
.fcs-zone.ep { border-top-color: #0f9d4f; } .fcs-zone.r { border-top-color: #f28c00; } .fcs-zone.c { border-top-color: #2b9ff0; }
.fcs-tete { display: grid; padding: 2px 4px 4px; }
.fcs-tete b { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fcs-zone.ep .fcs-tete b { color: #0f9d4f; } .fcs-zone.r .fcs-tete b { color: #d97a00; } .fcs-zone.c .fcs-tete b { color: #1677c9; }
.fcs-tete span { font-size: .66rem; color: var(--texte-2); }
.fcs-bac { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: baseline; padding: 6px 8px; border-radius: var(--r-1); background: #fff; }
.fcs-bac b { font-size: .86rem; } .fcs-bac span { font-size: .7rem; color: var(--texte-2); text-align: right; }
.fcs-bac small { grid-column: 1 / -1; font-size: .64rem; color: var(--texte-3); }
.fcs-bac.dlc-depassee { box-shadow: inset 3px 0 0 var(--rouge); } .fcs-bac.dlc-du-jour { box-shadow: inset 3px 0 0 var(--orange); }
.fcs-vide { margin: 0; padding: 4px; font-size: .7rem; color: var(--texte-3); }
.fcp[data-actif="fiche"] .fcx-stock:hover, .fcp[data-actif="etat"] .fcx-stock:hover { background: var(--bleu-voile); }

/* page Fiche : les trois blocs l'un sous l'autre ; « Modifier » change les valeurs en champs sur place */
.fcx-fiche .fcp-plein { display: block !important; }
.fcf-form-sur-place { display: grid; gap: 8px; }
.fcf-form-sur-place .fcf-bloc { grid-template-columns: 1fr 1fr; }
.fcf-info .fcf-e { display: none; width: 100%; box-sizing: border-box; min-height: 0; padding: 6px 8px; border-radius: var(--r-1); font: inherit; font-size: .86rem; font-weight: 600; }
.fcf-form-sur-place.edition .fcf-e { display: block; animation: fondu .2s both; }
.fcf-form-sur-place.edition .fcf-v { display: none; }
.fcf-form-sur-place:not(.edition) .fcf-si-edition { display: none; }
.fcf-form-sur-place.edition .fcf-bloc { background: var(--bleu-voile); box-shadow: inset 0 0 0 1px #dfe3ff; }
.fcf-actions { display: flex; justify-content: flex-end; gap: 6px; }
.fcf-form-sur-place:not(.edition) .fcf-seul-edition, .fcf-form-sur-place.edition .fcf-modif { display: none; }
.fcf-info { cursor: default; }
/* page État ouverte : liste verticale, plus petite */
.fcp[data-actif="etat"] .fcx-etat .fcx-etats { grid-template-columns: 1fr !important; gap: 6px; }
.fcp[data-actif="etat"] .fcx-etat .fcx-e { padding: 12px 10px; font-size: .82rem; justify-content: flex-start; }

/* bacs : le glisser ne doit jamais être interrompu par le défilement de la page */
.fcx-stock .fc-bac { touch-action: none; }
.fcx-stock .fc-zone.cible { transform: none !important; }
.fc-bac-l3 { font-size: .62rem; font-weight: 700; color: #1677c9; }

/* alerte « ne pas recongeler » */
.fc-alerte { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(20, 26, 48, .28); border-radius: inherit; animation: fondu .2s both; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.fc-alerte.sort { animation: fondu-sortie .2s both; }
.fc-alerte-carte { width: min(420px, 90%); display: grid; gap: 10px; justify-items: center; text-align: center; padding: 26px 24px 20px; border-radius: var(--r-5); background: #fff; box-shadow: var(--ombre-forte); animation: pop-entree .35s var(--ressort) both; }
.fc-alerte-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e3f1fd; color: #1677c9; animation: secoue .5s .25s; }
.fc-alerte-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fc-alerte-ic .barre { stroke: var(--rouge); stroke-width: 2.4; stroke-dasharray: 26; stroke-dashoffset: 26; animation: trace .4s var(--sortie) .2s forwards; }
.fc-alerte-carte h3 { margin: 0; font-size: 1.15rem; }
.fc-alerte-carte p { margin: 0; font-size: .9rem; color: var(--texte-2); line-height: 1.45; }
.fc-alerte-act { display: flex; gap: 8px; margin-top: 6px; }
.fc-alerte-act .fc-b { min-height: 40px; padding: 0 16px; font-size: .82rem; }
.fc-alerte-carte small { font-size: .68rem; color: var(--texte-3); line-height: 1.4; }
.fiche.fiche-comp { position: relative; }
/* en-tête de la fiche : plus de décalage hérité (top: -22px), les onglets respirent sous le bord */
.fiche-comp .fiche-tete { top: 0 !important; min-height: 56px; padding-top: 0; margin-bottom: 10px; }

/* ===== Bac : repesée sur place (18/11, 4) ===== */
/* boutons plus compacts, le texte tient toujours dans le bouton */
.fcx-stock .fc-bac-act, .fc-bac-vol .fc-bac-act { gap: 4px !important; margin-top: 6px; }
button.fc-b.fc-b-ic { min-width: 0; min-height: 40px; padding: 4px 2px; font-size: .6rem; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; text-align: center; }
button.fc-b.fc-b-ic svg { width: 16px; height: 16px; }
button.fc-b.fc-b-ic span { display: block; max-width: 100%; }
/* mode repesée : le poids devient un champ, Imprimer / Vider s'effacent, deux boutons « Mettre à jour » apparaissent */
.fc-poids-champ { display: none; align-items: baseline; gap: 4px; }
.fc-poids-champ input { width: 86px; min-height: 0; padding: 4px 8px; border-radius: var(--r-1); border: 1.5px solid var(--bleu); font: inherit; font-size: .95rem; font-weight: 800; text-align: right; box-shadow: 0 0 0 3px rgba(25,46,213,.12); }
.fc-poids-champ small { font-size: .62rem; color: var(--texte-2); }
.fc-bac.repesee .fc-poids { display: none; }
.fc-bac.repesee .fc-poids-champ { display: inline-flex; animation: fondu .2s both; }
.fc-bac .fc-bac-maj { display: none !important; }
.fc-bac.repesee .fc-bac-act:not(.fc-bac-maj) { display: none !important; }
.fc-bac.repesee .fc-bac-maj { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; animation: maj-entre .28s var(--ressort) both; }
@keyframes maj-entre { from { opacity: 0; transform: translateY(4px) scale(.97); } to { opacity: 1; transform: none; } }
.fc-bac.repesee { background: var(--bleu-voile) !important; box-shadow: inset 0 0 0 1.5px #c9d0ff; cursor: default; }
button.fc-b.fc-b-ic.fc-b-plein { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.fc-bac-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
.fc-portions { font-size: .7rem; color: var(--texte-2); white-space: nowrap; }

/* ===== Page Production : recette + procédé à gauche, dalle Production à droite (18/11, 5) ===== */
.fcp .fcx-obj.actif { padding: 8px; }
.fcp .fcx-obj > .fcp-plein { max-width: none; }
.fcpr { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.fcpr-g { min-width: 0; padding: 6px 6px 4px; }
.fcpr-g .fcx-recette-tete { margin-top: 0; }
/* dalle Production : 18 (page) − 8 (marge) = 10 */
.fcpr-d { position: sticky; top: 0; display: grid; gap: 10px; padding: 12px; border-radius: var(--r-2); background: #f6f7f9; }
.fcpr-d > h3 { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); }
.fcpr-obj { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.fcpr-tuile { display: grid; gap: 1px; padding: 10px 10px 9px; border-radius: var(--r-1); background: #fff; }
.fcpr-tuile span { font-size: .66rem; font-weight: 700; color: var(--texte-2); }
.fcpr-tuile b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.fcpr-tuile small { font-size: .62rem; color: var(--texte-3); }
.fcpr-tuile.fort { background: var(--bleu); } .fcpr-tuile.fort span, .fcpr-tuile.fort small { color: rgba(255,255,255,.75); } .fcpr-tuile.fort b { color: #fff; }
.fcpr-mod { grid-column: 1 / -1; display: grid; gap: 4px; font-size: .68rem; font-weight: 700; color: var(--texte-2); }
.fcpr-mod-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.fcpr-mod input { min-height: 0; width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: var(--r-1); font: inherit; font-size: .95rem; font-weight: 800; text-align: center; }
.fcpr-mod .fc-b { min-height: 38px; padding: 0 14px; }
.fcpr-d .fcx-p1, .fcpr-d .fcx-p1-fin, .fcpr-d .fcx-calcul { margin: 0; border-radius: var(--r-1); }
.fcpr-d .fcx-p1-fin { flex-direction: column; align-items: stretch; background: #fff; }
.fcpr-d .fcx-p1-bt { width: 100%; }
.fcpr-d .fcx-p1-ok { margin: 0; padding: 10px; border-radius: var(--r-1); background: #fff; font-size: .74rem; line-height: 1.45; color: var(--texte-2); }
.fcpr-d .fcx-p1-note { margin: 0; }
.fcpr-d .fcx-calcul { display: grid; gap: 6px; background: var(--bleu-clair); }

/* ingrédients : des cartes comme le procédé, sans numéro ; la quantité suit le nom ; un petit logo vert quand c'est fait */
.fcx-ings { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; grid-template-columns: 20px max-content max-content minmax(0, 1fr); row-gap: 6px; }
.fcx-ing { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--r-3); background: var(--carte); box-shadow: var(--ombre); font-size: .9rem; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: opacity .25s, background .2s, transform .18s var(--ressort); }
.fcx-ing:hover { background: var(--bleu-voile); }
.fcx-ing:active { transform: scale(.985); }
.fcx-ing-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d5dae3; transition: background .2s, border-color .2s; }
.fcx-ing-ic svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: scale(0); transition: transform .3s var(--ressort); }
.fcx-ing-n { min-width: 0; font-weight: 600; }
.fcx-ing-n em { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu); font-style: normal; font-size: .64rem; font-weight: 700; }
.fcx-ing-n small { margin-left: 4px; font-size: .7rem; color: var(--texte-3); font-weight: 500; }
.fcx-ing .q { justify-self: end; font-weight: 800; font-variant-numeric: tabular-nums; }
.fcx-ing.faite { opacity: .55; }
.fcx-ing.faite .fcx-ing-n, .fcx-ing.faite .q { text-decoration: line-through; }
.fcx-ing.faite .fcx-ing-ic { background: var(--vert); border-color: var(--vert); animation: case-pop .32s var(--ressort); }
.fcx-ing.faite .fcx-ing-ic svg { transform: scale(1); }
@media (max-width: 900px) { .fcpr { grid-template-columns: 1fr; } .fcpr-d { position: static; order: -1; } }
/* colonnes fixes dans chaque carte (le partage de colonnes entre lignes chevauchait la marge) */
.fcx-ings { display: grid; grid-template-columns: minmax(0, 1fr); }
.fcx-ing { grid-column: auto; grid-template-columns: 20px minmax(0, 14em) auto minmax(0, 1fr); column-gap: 12px; }
.fcx-ing .q { justify-self: end; white-space: nowrap; }
.fcx-ing { grid-template-columns: 20px minmax(0, 14em) 5.5em minmax(0, 1fr); }

/* ===== Colonnes réduites à la taille de leur contenu (18/11, 6) : plus d'espace perdu, la page ouverte s'élargit ===== */
.fcp-page.fcx-col:not(.actif) { flex: 0 0 auto; }
.fcp-page:not(.actif) .fcp-mini { width: max-content; min-width: 64px; max-width: 140px; padding: 12px 10px; gap: 8px; }
.fcp-page:not(.actif) .fcp-etat { width: max-content; padding: 8px 10px; }
.fcp-page:not(.actif) .fcp-cpt { padding: 6px 9px; }
.fcp-page:not(.actif) .fcp-cpt b { font-size: 1.2rem; }
/* le stock garde son aperçu quand Fiche ou État est ouvert */
.fcp[data-actif="fiche"] .fcx-stock:not(.actif), .fcp[data-actif="etat"] .fcx-stock:not(.actif) { flex: 1 0 116px; }

/* ===== Suivi de la recette (18/11, 7) : gardé sur l'appareil, « Réinitialiser » discret en haut ===== */
.fcx-recette-tete { display: flex; align-items: center; gap: 8px; }
.fcx-recette-tete #rec-pour { margin-left: auto; }
.fcx-suivi { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border: 1px solid #cfe9da; border-radius: 999px; background: var(--vert-clair); color: var(--vert); font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer; white-space: nowrap; animation: pop-entree .3s var(--ressort) both; }
.fcx-suivi[hidden] { display: none; }
.fcx-suivi svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ressort); }
.fcx-suivi b { font-weight: 800; }
.fcx-suivi em { font-style: normal; padding-left: 6px; border-left: 1px solid #b9e0c9; }
.fcx-suivi:hover { background: #d7f2e2; } .fcx-suivi:hover svg { transform: rotate(-200deg); }
.fcx-suivi:active { transform: scale(.94); }
.suivi-restaure .fcx-ing.faite .fcx-ing-ic, .suivi-restaure .etapes li.faite::before, .suivi-restaure .fcx-suivi { animation: none; }

/* ===== Nouveau bac : une carte de bac à remplir sur place (18/11, 8) ===== */
.fc-bac-nouveau[hidden] { display: none !important; }
.fcx-stock .fc-bac.fc-bac-nouveau { cursor: default; touch-action: auto; border-style: dashed; animation: maj-entre .3s var(--ressort) both; }
.fcx-stock .fc-bac.fc-bac-nouveau.pret { border-style: solid; }
.fc-bac-nouveau .fc-poids-champ input::placeholder { font-weight: 600; color: var(--texte-3); }
.fc-nouveau-l2 { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.fc-nouveau-l2 select { min-height: 0; max-width: 100%; padding: 3px 22px 3px 7px; border-radius: var(--r-1); border: 1.5px solid #c9d0ff; background-color: #fff; font: inherit; font-size: .7rem; font-weight: 600; color: var(--encre); }
.fc-nouveau-l2 select:invalid, .fc-nouveau-l2 select:has(option[value=""]:checked) { border-color: var(--bleu); color: var(--bleu); box-shadow: 0 0 0 3px rgba(25,46,213,.1); }
.fc-nouveau-date { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; color: var(--texte-2); }
.fc-nouveau-date input { min-height: 0; padding: 2px 5px; border-radius: var(--r-1); border: 1.5px solid #dfe3ff; font: inherit; font-size: .68rem; font-weight: 600; background: #fff; }
.fc-nouveau-l2 em { margin-left: auto; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--texte-2); }
.fc-bac-nouveau button.fc-b:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.3); }
.fc-bac-nouveau.pret button.fc-b:not(:disabled) { animation: maj-entre .25s var(--ressort); }
/* nouveau bac : seulement les liserés gauche et droit (pointillés tant que ce n'est pas prêt), comme les autres bacs */
.fcx-stock .fc-bac.fc-bac-nouveau { border-top: 0 !important; border-bottom: 0 !important; border-left-style: dashed; border-right-style: dashed; }
.fcx-stock .fc-bac.fc-bac-nouveau.pret { border-left-style: solid; border-right-style: solid; }

/* ===== Repesée : aperçu en direct et confirmation (18/11, 9) ===== */
.fc-repesee-apercu { display: none; font-size: .64rem; line-height: 1.35; color: var(--texte-2); }
.fc-bac.repesee .fc-repesee-apercu { display: block; animation: fondu .2s both; }
.fc-repesee-apercu.erreur { color: var(--rouge); font-weight: 600; }
.fc-bac.repesee .fc-portions { font-weight: 700; color: var(--bleu); }
.fc-bac.repesee button.fc-b:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.3); }
.fc-bac.vient-repese { animation: bac-repese 1.4s ease-out; }
@keyframes bac-repese { 0%, 30% { background: #dff5e8; box-shadow: inset 0 0 0 2px #0f9d4f; } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.fc-repesee-apercu b { color: var(--bleu); font-weight: 800; }

/* ===== Saisie dans la carte du bac : même gabarit que l'affichage (18/11, 10) =====
   le champ prend la typo et la couleur du poids affiché ; seul un pointillé dessous dit qu'on est en saisie */
.fc-bac .fc-poids-champ { gap: 2px; align-items: baseline; }
.fc-bac .fc-poids-champ input { width: 5.2ch; min-height: 0; padding: 0 0 1px; border: 0; border-bottom: 1.5px dashed currentColor; border-radius: 0; background: transparent; box-shadow: none;
  font: inherit; font-size: .86rem; font-weight: 700; color: inherit; text-align: left; -moz-appearance: textfield; appearance: textfield; }
.fc-bac .fc-poids-champ input::-webkit-outer-spin-button, .fc-bac .fc-poids-champ input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fc-bac .fc-poids-champ input:focus { outline: none; border-bottom-style: solid; }
.fc-bac .fc-poids-champ input::placeholder { color: currentColor; opacity: .35; font-weight: 700; }
.fc-bac .fc-poids-champ small { font-size: .86rem; font-weight: 700; color: inherit; }
.fcx-stock .z-ep .fc-poids-champ { color: rgb(11, 138, 69); } .fcx-stock .z-r .fc-poids-champ { color: rgb(196, 111, 0); } .fcx-stock .z-c .fc-poids-champ { color: rgb(27, 127, 204); }
/* le résultat s'écrit là où sont d'habitude les portions, dans la même typo */
.fc-bac.repesee .fc-portions { font-weight: 600; color: var(--texte-2); }
.fc-bac .fc-portions.erreur { color: var(--rouge); }
.fc-bac.repesee { background: var(--fond) !important; box-shadow: inset 0 0 0 1px #dfe3ff; }
/* nouveau bac : contenant et date écrits comme la ligne habituelle, sans cadre */
.fc-nouveau-l2 select, .fc-nouveau-date input { min-height: 0; padding: 0 0 1px; border: 0; border-bottom: 1px dashed #b8bfcc; border-radius: 0; background-color: transparent; box-shadow: none !important;
  font: inherit; font-size: .64rem; font-weight: 400; color: var(--texte-3); }
.fc-nouveau-l2 select { padding-right: 14px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa1ad' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 8px; }
.fc-nouveau-l2 select:has(option[value=""]:checked) { color: var(--bleu); border-bottom-color: var(--bleu); font-weight: 600; }
.fc-nouveau-date { font-size: .64rem; color: var(--texte-3); }
.fc-nouveau-date input::-webkit-calendar-picker-indicator { opacity: .35; width: 10px; margin-left: 2px; }
.fc-nouveau-l2 em { font-size: .64rem; }
.fc-nouveau-l2 { gap: 2px 6px; }
/* même hauteur de boutons avant et pendant la saisie (« Mettre à jour et imprimer » tient sur deux lignes) */
.fcx-stock button.fc-b.fc-b-ic, .fc-bac-vol button.fc-b.fc-b-ic { min-height: 46px; }
/* lignes du tableau Stock & production : angles droits partout (18/11, 11) */
.pc-l { border-radius: 0 !important; }

/* ===== Recherche d'ingrédient au fil de la frappe (18/11, 12) ===== */
.fcx-rec-edit table, .fcx-rec-edit tbody, .fcx-rec-edit td { overflow: visible !important; }
.cbx { position: relative; }
.cbx-txt { width: 100%; box-sizing: border-box; min-height: 36px; padding: 6px 10px; border: 1px solid var(--ligne); border-radius: var(--r-1); background: #fff; font: inherit; font-size: .86rem; font-weight: 600; }
.cbx-txt:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(25,46,213,.12); }
.cbx.choisi .cbx-txt { border-color: #cfe9da; }
.cbx.invalide .cbx-txt { border-color: var(--rouge); background: var(--rouge-clair); }
.cbx-liste { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow-y: auto; border-radius: var(--r-2); background: #fff; box-shadow: 0 12px 30px rgba(11,13,18,.16), 0 0 0 1px var(--ligne); animation: maj-entre .16s var(--sortie) both; }
.cbx-liste[hidden] { display: none; }
.cbx-liste li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-1); font-size: .84rem; cursor: pointer; }
.cbx-liste li b { color: var(--bleu); font-weight: 800; }
.cbx-liste li em { font-style: normal; font-size: .62rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu); }
.cbx-liste li.actif, .cbx-liste li[data-i]:hover { background: var(--bleu-clair); }
.cbx-liste li.cbx-rien { color: var(--texte-3); cursor: default; font-size: .78rem; }
/* le champ de recherche prend toute la colonne Ingrédient (la règle des quantités visait tous les champs de la ligne) */
.fcx-ligne-edit .cbx-txt { width: 100%; margin-left: 0; text-align: left; font-weight: 600; }
.fcx-ligne-edit td:first-child { width: 100%; }
.cbx-liste .cbx-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Écriture de la recette : arrondis concentriques (18/11, 13) =====
   tableau 14 px ; en-tête collé en haut = mêmes 14 px en haut, droit en bas, sans trait ;
   marge des cellules 6 px → champs à 14 − 6 ≈ 10 px, même hauteur ; liste de propositions au même arrondi que son champ */
.fcx-rec-edit table.fcx-recette { border-radius: var(--r-3); border-collapse: separate; border-spacing: 0; overflow: visible !important; }
.fcx-rec-edit .fcx-recette thead th { border: 0 !important; padding: 7px 10px; }
.fcx-rec-edit .fcx-recette thead th:first-child { border-radius: var(--r-3) 0 0 0 !important; }
.fcx-rec-edit .fcx-recette thead th:last-child { border-radius: 0 var(--r-3) 0 0 !important; }
.fcx-rec-edit .fcx-recette thead th:not(:first-child):not(:last-child) { border-radius: 0 !important; }
.fcx-rec-edit .fcx-recette td { padding: 6px; vertical-align: middle; border: 0 !important; }
.fcx-rec-edit .fcx-ligne-edit + .fcx-ligne-edit td { border-top: 1px solid var(--ligne) !important; }
.fcx-rec-edit .fcx-ligne-edit input.cbx-txt, .fcx-rec-edit .fcx-ligne-edit input[name=q] { box-sizing: border-box; height: 38px; min-height: 38px; margin: 0; padding: 0 10px; border-radius: var(--r-2); border: 1px solid var(--ligne); font-size: .86rem; }
.fcx-rec-edit .fcx-ligne-edit input[name=q] { width: 90px; text-align: right; font-weight: 700; }
.fcx-rec-edit .fc-x { width: 30px; height: 30px; border-radius: var(--r-2); }
.cbx-liste { border-radius: var(--r-2); padding: 4px; top: calc(100% + 4px); left: 0; right: 0; }
.cbx-liste li { border-radius: var(--r-1); }

/* ===== Procédé en écriture : une carte par étape, comme à l'affichage (18/11, 13) ===== */
.etapes.etapes-edit li { cursor: text; padding-right: 46px; }
.etapes.etapes-edit li:active { transform: none; }
.etapes.etapes-edit li:focus-within { box-shadow: 0 0 0 2px var(--bleu), var(--ombre); }
.etapes.etapes-edit li.nouvelle { animation: maj-entre .25s var(--ressort) both; }
.etapes.etapes-edit textarea { display: block; width: 100%; min-height: 0; margin: 0; padding: 2px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; resize: none; overflow: hidden;
  font: inherit; font-size: .9rem; line-height: 1.5; color: var(--encre); }
.etapes.etapes-edit textarea:focus { outline: none; }
.etapes.etapes-edit textarea::placeholder { color: var(--texte-3); }
.etapes.etapes-edit .fc-x { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: var(--r-2); background: transparent; color: var(--texte-3); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.etapes.etapes-edit li:hover .fc-x, .etapes.etapes-edit li:focus-within .fc-x { opacity: 1; }
.etapes.etapes-edit .fc-x:hover { background: var(--rouge-clair); color: var(--rouge); }
.fcx-ajout-etape { width: 100%; margin: 2px 0 10px; }
@media (hover: none) { .etapes.etapes-edit .fc-x { opacity: 1; } }

/* ===== Stock & production : bandeaux remontés sous la barre de titre (18/11, 14) ===== */
@media (min-width: 980px) {
  .principal-zone:has(.pv-fam) .haut { padding-top: 8px !important; padding-bottom: 2px !important; }
  .principal-zone:has(.pv-fam) .pv-top2 { margin-top: -44px !important; }
  .principal-zone:has(.pv-fam) .pv-fam { margin-top: 14px !important; height: calc(100vh - 66px) !important; height: calc(100dvh - 66px) !important; }
}
@media (min-width: 980px) {
  .principal-zone:has(.pv-fam) .pv-top2 { margin-top: -40px !important; }
  .principal-zone:has(.pv-fam) .pv-fam { margin-top: 18px !important; height: calc(100vh - 70px) !important; height: calc(100dvh - 70px) !important; }
}
@media (min-width: 980px) { .principal-zone:has(.pv-fam) .pv-fam { margin-top: 14px !important; height: calc(100vh - 66px) !important; height: calc(100dvh - 66px) !important; } }

/* ===== Volet Cuisine : Stock & production en menu dépliant (18/11, 15) ===== */
.volet-groupe { display: grid; }
.volet-plie { flex: none; width: 10px; height: 10px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .7; transition: transform .3s var(--ressort); }
.volet-groupe.ouvert .volet-plie { transform: rotate(225deg) translate(-2px, -2px); }
.volet-sous { display: grid; gap: 4px; max-height: 0; overflow: hidden; margin-left: 52px; transition: max-height .35s var(--sortie), margin .3s; }
.volet-groupe.ouvert .volet-sous { max-height: 260px; margin-top: 4px; margin-bottom: 6px; }
.volet-sous-lien { position: relative; display: grid; gap: 1px; padding: 9px 12px; border: 0; border-radius: var(--r-3); background: rgba(255,255,255,.08); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s, transform .18s var(--ressort); }
.volet-sous-lien b { font-size: .86rem; font-weight: 700; } .volet-sous-lien small { font-size: .68rem; opacity: .72; }
.volet-sous-lien:hover { background: rgba(255,255,255,.18); }
.volet-sous-lien.actif { background: #fff; color: var(--bleu); }
.volet-sous-lien .badge { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }

/* ===== Rayons permanents (pâtisserie, assiette de fromage) : grille de dalles ===== */
.pv-fam.pv-rayon { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: max-content; align-items: start !important; align-content: start; gap: 10px !important; overflow-y: auto; }
.pv-fam.pv-rayon .pc { height: auto !important; }
.pc-titre2 h3[data-renommer-plat] { cursor: text; border-radius: var(--r-1); }
.pc-titre2 h3[data-renommer-plat]:hover { background: var(--bleu-voile); }
.pc-titre2 h3 .pc-renommer { width: 100%; min-height: 0; padding: 0 0 1px; border: 0; border-bottom: 1.5px dashed var(--bleu); border-radius: 0; background: transparent; font: inherit; color: inherit; }
.pc-titre2 h3 .pc-renommer:focus { outline: none; border-bottom-style: solid; }
.pc-titre2 h3:has(.pc-renommer) { display: flex; align-items: center; gap: 6px; flex: 1; }
.pc-retirer { flex: none; min-height: 0; padding: 3px 9px; border: 1px solid #ffc9c9; border-radius: 999px; background: #fff; color: var(--rouge); font: inherit; font-size: .64rem; font-weight: 700; cursor: pointer; }
/* dalle « Ajouter un produit » */
.pc.pc-nouveau-produit { display: grid; place-items: stretch; min-height: 120px; padding: 6px !important; border: 1.5px dashed #c3c9d4; background: transparent; box-shadow: none; }
.pc-ajout-produit { display: grid; place-items: center; align-content: center; gap: 4px; width: 100%; height: 100%; min-height: 108px; border: 0; border-radius: var(--r-3); background: transparent; color: var(--texte-2); font: inherit; cursor: pointer; transition: background .2s, color .2s; }
.pc-ajout-produit i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bleu-clair); color: var(--bleu); font-style: normal; font-size: 1.2rem; font-weight: 700; transition: transform .3s var(--ressort); }
.pc-ajout-produit b { font-size: .9rem; } .pc-ajout-produit small { font-size: .7rem; color: var(--texte-3); }
.pc-ajout-produit:hover { background: var(--bleu-voile); color: var(--bleu); } .pc-ajout-produit:hover i { transform: rotate(90deg) scale(1.08); }
.pc-ajout-produit[hidden], .pc-form-produit[hidden] { display: none !important; }
.pc-form-produit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-self: center; padding: 10px; }
.pc-form-produit input { min-height: 0; padding: 8px 10px; border-radius: var(--r-2); font: inherit; font-size: .88rem; font-weight: 600; }
/* le groupe garde la largeur du volet ; descriptions trop longues coupées « … » */
.volet-groupe { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.volet-sous { min-width: 0; margin-right: 0; }
.volet-sous-lien { min-width: 0; }
.volet-sous-lien small, .volet-deplier .volet-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.volet-deplier .volet-txt { min-width: 0; }
.volet-deplier.contient-actif { background: rgba(255,255,255,.16); }
/* rayons : le nom du produit sur sa propre ligne, au-dessus des colonnes (pas de coupure) */
.pc-titre-rayon { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; min-width: 0; }
.pc-titre-rayon h3 { margin: 0; flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; padding: 1px 4px; }
.pc-tete2.sans-titre .pc-titre2 .pc-pretes, .pc-tete2.sans-titre .pc-titre2 .pc-statut { display: none; }
/* Estimations : mini-dalle en bas de Stock & production */
.volet-sous-lien.mini { justify-self: start; padding: 6px 12px; border-radius: 999px; }
.volet-sous-lien.mini small { display: none; }
.volet-sous-lien.mini b { font-size: .76rem; }

/* ===== Champ de recherche : flèche pour voir toute la liste (18/11, 16) ===== */
.cbx-tout { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: var(--r-1); background: transparent; color: var(--texte-3); cursor: pointer; transition: background .15s, color .15s; }
.cbx-tout svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ressort); }
.cbx-tout:hover { background: var(--bleu-clair); color: var(--bleu); }
.cbx:has(.cbx-liste:not([hidden])) .cbx-tout svg { transform: rotate(180deg); }
.cbx .cbx-txt, .fcx-rec-edit .fcx-ligne-edit input.cbx-txt { padding-right: 34px; }
/* dans la carte d'un nouveau bac : le contenant s'écrit comme la ligne grise habituelle */
.cbx.cbx-ligne { display: inline-block; min-width: 0; }
.cbx.cbx-ligne .cbx-txt { width: 10.5em; height: auto; min-height: 0; padding: 0 18px 1px 0; border: 0; border-bottom: 1px dashed #b8bfcc; border-radius: 0; background: transparent; box-shadow: none;
  font: inherit; font-size: .64rem; font-weight: 400; color: var(--texte-3); }
.cbx.cbx-ligne .cbx-txt:focus { outline: none; border-bottom: 1px solid var(--bleu); color: var(--encre); }
.cbx.cbx-ligne .cbx-txt::placeholder { color: var(--bleu); font-weight: 600; }
.cbx.cbx-ligne.invalide .cbx-txt { background: transparent; border-bottom-color: var(--rouge); color: var(--rouge); }
.cbx.cbx-ligne .cbx-tout { right: 0; width: 16px; height: 16px; }
.cbx.cbx-ligne .cbx-tout svg { width: 9px; height: 9px; }
.cbx.cbx-ligne .cbx-liste { right: auto; width: max-content; min-width: 210px; max-width: 280px; }
.cbx.cbx-ligne .cbx-liste li { font-size: .8rem; padding: 6px 10px; }
.cbx.vers-haut .cbx-liste { top: auto; bottom: calc(100% + 4px); }
/* liste ouverte : la carte et sa colonne de stock la laissent dépasser, au-dessus des voisines */
.fc-bac:has(.cbx-liste:not([hidden])), .fcx-stock .fc-zone:has(.cbx-liste:not([hidden])) { overflow: visible !important; }
.fc-bac:has(.cbx-liste:not([hidden])) { position: relative; z-index: 6; }

/* ===== Rayons : grille qui remplit l'écran (18/11, 17) =====
   3 colonnes, au moins 2 rangées (une dalle = 1/6 de l'écran) ; 9 produits = 3 rangées ; fromage : une seule dalle en haut à gauche */
.pv-fam.pv-rayon { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-rows: repeat(var(--lignes, 1), minmax(0, 1fr)) !important; grid-auto-rows: minmax(0, 1fr); align-items: stretch !important; align-content: stretch; overflow: hidden; }
.pv-fam.pv-rayon .pc { height: auto !important; min-height: 0; overflow-y: auto; }
.pv-fam.pv-rayon .pc-l { max-height: none; }
/* bouton d'ajout dans la barre du haut, comme les pastilles */
.pv-ajout-produit { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 6px; border: 1px dashed #b8c2ff; border-radius: 999px; background: #fff; color: var(--bleu); font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s; }
.pv-ajout-produit i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bleu); color: #fff; font-style: normal; font-size: .9rem; transition: transform .3s var(--ressort); }
.pv-ajout-produit:hover { background: var(--bleu-voile); border-style: solid; } .pv-ajout-produit:hover i { transform: rotate(90deg); }
/* la nouvelle dalle, à sa place dans la grille */
.pc.pc-nouveau-produit { display: flex; flex-direction: column; min-height: 0; padding: 9px 10px !important; border: 1.5px dashed #b8c2ff; background: var(--bleu-voile); box-shadow: none; animation: maj-entre .3s var(--ressort) both; }
.pc-nouveau-produit .pc-form-produit { display: flex; flex-direction: column; gap: 8px; padding: 0; height: 100%; }
.pc-nouveau-produit .pc-titre-rayon h3 { display: block; }
.pc-nouveau-aide { margin: 0; padding: 0 8px; font-size: .74rem; color: var(--texte-2); }
.pc-nouveau-act { display: flex; justify-content: flex-end; gap: 6px; margin-top: auto; }
.pc-nouveau-act .fc-b { min-height: 34px; padding: 0 14px; }
@media (min-width: 980px) { .principal-zone:has(.pv-rayon) .pv-fam.pv-rayon { height: calc(100vh - 69px) !important; height: calc(100dvh - 69px) !important; } }
/* nom du nouveau produit et renommage : dans la typo du titre de la dalle, seul un pointillé dessous */
.pc-titre-rayon h3 .pc-renommer { width: 100%; min-height: 0; padding: 0 0 1px; border: 0; border-bottom: 1.5px dashed var(--bleu); border-radius: 0; background: transparent; box-shadow: none; font: inherit; color: inherit; }
.pc-titre-rayon h3 .pc-renommer:focus { outline: none; border-bottom-style: solid; }
.pc-titre-rayon h3 .pc-renommer::placeholder { color: var(--bleu); opacity: .5; }
.pc-titre-rayon h3:has(.pc-renommer) { display: flex; align-items: center; gap: 6px; }

/* ===== Tableau de bord cuisine, nouvel ordre (18/11, 18) =====
   en haut : Midi, Soir (estimés en gros, réservés et heures d'arrivée) et notes des réservations ; puis les stocks en place,
   resserrés ; puis À produire (manque pour le service, puis avance) à côté des DLC et de la brigade ; enfin chat et froid. */
@media (min-width: 1101px) {
  .tdb-salle.tdb-cuisine { grid-template-areas: "midi soir notes notes" "stocks stocks stocks stocks" "prod prod dlc dlc" "prod prod service service" "chat chat froid froid"; grid-auto-rows: auto; }
  .tdb-cuisine > .cv-midi { grid-area: midi; } .tdb-cuisine > .cv-soir { grid-area: soir; }
  .tdb-cuisine > .tdb-notes { grid-area: notes; } .tdb-cuisine > .tdb-stocks { grid-area: stocks; }
  .tdb-cuisine > .tdb-produire { grid-area: prod; } .tdb-cuisine > .tdb-dlc { grid-area: dlc; }
  .tdb-cuisine > .tdb-service { grid-area: service; } .tdb-cuisine > .tdb-chat { grid-area: chat; } .tdb-cuisine > .tdb-froid { grid-area: froid; }
}
/* dalles Midi / Soir */
.tdb-cv { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tdb-cv-corps { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex: 1; }
.tdb-cv-est { display: grid; line-height: 1; }
.tdb-cv-est span { font-size: 2.6rem; font-weight: 780; letter-spacing: -.05em; color: var(--s); font-variant-numeric: tabular-nums; }
.tdb-cv-est small, .tdb-cv-resa small { font-size: .66rem; color: var(--texte-3); font-weight: 500; }
.tdb-cv-resa { display: grid; justify-items: end; text-align: right; gap: 1px; line-height: 1.1; }
.tdb-cv-resa > b { font-size: 1.35rem; font-weight: 750; letter-spacing: -.03em; color: var(--encre); font-variant-numeric: tabular-nums; }
.tdb-cv-h { margin-top: 4px; font-size: .8rem; font-weight: 700; color: var(--encre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tdb-cv-h0 { margin-top: 4px; }
.tdb-cuisine .tdb-notes .lignes { max-height: 96px; overflow-y: auto; }
/* stocks en place resserrés : une ligne de petites cartes */
.tdb-cuisine .stocks-place { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin-top: 8px; }
.tdb-cuisine .stock-plat { gap: 2px; padding: 7px 10px; border-top-width: 3px; }
.tdb-cuisine .stock-plat .badge, .tdb-cuisine .stock-juste, .tdb-cuisine .stock-comps, .tdb-cuisine #tdb-stocks-corps > .infos { display: none; }
.tdb-cuisine .stock-plat > b { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.tdb-cuisine .stock-n { display: flex; align-items: baseline; gap: 5px; } .tdb-cuisine .stock-n span { font-size: 1.3rem; } .tdb-cuisine .stock-n small { font-size: .6rem; }
/* À produire : deux listes numérotées */
.tdb-produire { display: flex; flex-direction: column; gap: 12px; }
.tp-bloc { display: grid; gap: 6px; }
.tp-bloc h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .92rem; font-weight: 750; color: var(--encre); }
.tp-bloc h4 > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rouge); color: #fff; font-size: .72rem; }
.tp-bloc.av h4 > span { background: var(--texte-3); }
.tp-bloc h4 em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--texte-3); }
.tp-sous { margin: -4px 0 2px 30px; font-size: .68rem; color: var(--texte-3); }
.tp-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-left: 3px solid var(--ligne); border-radius: 0 var(--r-3) var(--r-3) 0; background: var(--fond); font: inherit; text-align: left; cursor: pointer; animation: pop-entree .4s var(--ressort) both; animation-delay: calc(min(var(--i), 6) * 35ms); transition: background .2s; }
.tp-l:hover { background: var(--bleu-voile); }
.tp-l.rouge { border-left-color: var(--rouge); } .tp-l.bleu { border-left-color: var(--bleu); }
.tp-nom { display: grid; min-width: 0; } .tp-nom b { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.tp-nom small { font-size: .66rem; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.tp-n { display: grid; justify-items: end; line-height: 1; } .tp-n b { font-size: 1.2rem; font-weight: 750; letter-spacing: -.03em; color: var(--encre); }
.tp-l.rouge .tp-n b { color: var(--rouge); } .tp-l.bleu .tp-n b { color: var(--bleu); }
.tp-n small { font-size: .58rem; color: var(--texte-3); margin-top: 2px; white-space: nowrap; }
.tp-ok { margin: 0; padding: 8px 12px; border-radius: var(--r-3); background: #e9f8ef; color: var(--vert); font-size: .8rem; font-weight: 700; }
/* DLC bien visibles, en peu de place */
.tdb-cuisine .tdb-dlc .etiquette { flex-wrap: wrap; }
.dlc-pastille { display: inline-flex; align-items: baseline; gap: 4px; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--fond); font-size: .7rem; font-weight: 600; color: var(--texte-2); text-transform: none; letter-spacing: 0; }
.dlc-pastille:first-of-type { margin-left: auto; }
.dlc-pastille b { font-size: .95rem; font-weight: 780; color: var(--encre); }
.dlc-pastille.rouge { background: #ffecec; color: var(--rouge); } .dlc-pastille.rouge b { color: var(--rouge); }
.dlc-pastille.orange { background: #fff4e0; color: #b77800; } .dlc-pastille.orange b { color: #b77800; }
.tdb-cuisine .dlc-noms button { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border: 0; border-radius: 999px; background: #fff4e0; color: #8a5a00; font: inherit; font-size: .76rem; font-weight: 650; cursor: pointer; }
.tdb-cuisine .dlc-noms button small { font-size: .62rem; font-weight: 500; opacity: .8; }
.tdb-cuisine .dlc-noms button.rouge { background: #ffecec; color: var(--rouge); }
/* chat de la cuisine : plus compact */
.tdb-cuisine .tdb-chat .tdb-fil { max-height: 220px; overflow-y: auto; }
/* À produire prend la hauteur des dalles voisines (DLC + brigade) et l'avance défile dedans */
@media (min-width: 1101px) {
  .tdb-cuisine > .tdb-produire { contain: size; overflow: hidden; }
  .tdb-cuisine .tp-bloc.av { min-height: 0; flex: 1; grid-template-rows: auto auto; align-content: start; overflow-y: auto; margin-right: -6px; padding-right: 6px; }
  .tdb-cuisine .tp-bloc.serv { flex: none; }
}
@media (min-width: 1101px) { .tdb-cuisine .tp-bloc.av { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); padding-bottom: 20px; } }
.tdb-cuisine .etiquette .fantome.petit { flex: none; width: auto; min-width: max-content; padding: 0 12px; border-radius: 999px; }

/* ===== Accueil : salle à gauche, cuisine à droite (18/11, 19) =====
   le logo du haut du menu sert de bouton Accueil (plus de maison) ; deux colonnes jumelles, mêmes rangées des deux côtés */
.barre .marque { border: 0; background: none; font: inherit; cursor: pointer; margin: 0 auto 6px; width: 72px; padding: 6px 0 8px; border-radius: var(--r-4); transition: background .2s; }
.barre .marque.actif { background: var(--bleu-clair); }
.barre .marque:active { transform: scale(.95); }
.onglets-bas .ob-logo { height: 24px; width: auto; }
.picto-mobile[data-ecran-accueil] { cursor: pointer; }
.acc2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr auto; gap: 0 14px; }
@media (min-width: 980px) { .principal-zone:has(.acc2) .acc2 { min-height: calc(100dvh - 120px); } }
.acc-cote { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; gap: 8px; padding: 10px; border-radius: var(--r-6); background: var(--carte); box-shadow: var(--ombre); animation: pop-entree .45s var(--ressort) both; }
.acc-cote.cuisine { animation-delay: 60ms; }
.acc-tete { display: flex; align-items: center; gap: 10px; padding: 6px 8px 2px; cursor: pointer; }
.acc-tete svg { width: 26px; height: 26px; color: var(--bleu); }
.acc-tete h2 { margin: 0; font-size: 1.45rem; font-weight: 780; letter-spacing: -.03em; color: var(--encre); }
.acc-tete span { margin-left: auto; font-size: .76rem; font-weight: 650; color: var(--bleu); }
.acc-bloc { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border-radius: var(--r-4); background: var(--fond); }
.acc-bloc[data-aller] { cursor: pointer; transition: background .2s, transform .15s; } .acc-bloc[data-aller]:hover { background: var(--bleu-voile); } .acc-bloc[data-aller]:active { transform: scale(.985); }
.acc-lib { display: flex; align-items: baseline; gap: 8px; font-size: .68rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--texte-3); }
.acc-lib em { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--texte-2); }
.acc-lib .orange { color: #b77800; }
.acc-sous { font-size: .68rem; color: var(--texte-3); }
/* service en cours : le grand bloc bleu de l'équipe */
.acc-service { background: var(--bleu); color: #fff; gap: 4px; }
.acc-service .acc-lib { color: rgba(255,255,255,.65); }
.acc-shift { font-size: 1.35rem; font-weight: 760; letter-spacing: -.03em; line-height: 1.15; }
.acc-heures { font-size: .78rem; color: rgba(255,255,255,.8); min-height: 1em; }
.acc-taches { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: .76rem; color: rgba(255,255,255,.85); white-space: nowrap; }
.acc-taches b { color: #fff; }
.acc-piste { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.acc-piste i { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .6s var(--sortie); }
.acc-prochaine { font-size: .76rem; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.acc-prochaine b { color: #fff; font-weight: 650; }
.acc-prochaine.retard { color: #ffd5d6; } .acc-prochaine.ok { color: #c9f2d9; }
/* deux petits blocs côte à côte */
.acc-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.acc-cv-l { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.acc-gros { font-size: 2.4rem; font-weight: 780; letter-spacing: -.05em; line-height: 1; color: var(--bleu); font-variant-numeric: tabular-nums; }
.acc-cv-r { display: grid; justify-items: end; text-align: right; font-size: .72rem; color: var(--texte-3); line-height: 1.25; }
.acc-cv-r b { font-size: 1.1rem; font-weight: 750; color: var(--encre); }
.acc-cv-r em { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--encre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.acc-mini > b { font-size: 1.25rem; font-weight: 760; letter-spacing: -.03em; color: var(--encre); }
.acc-mini.vert > b { color: var(--vert); } .acc-mini.orange > b { color: #b77800; } .acc-mini.rouge > b { color: var(--rouge); }
.acc-mini.rouge { background: var(--rouge-clair); } .acc-mini.orange { background: var(--orange-clair); }
/* listes : notes des réservations, manque pour le service */
.acc-liste { gap: 6px; min-height: 0; overflow: hidden; }
.acc-l { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-2); background: var(--carte); font-size: .8rem; min-width: 0; }
.acc-l.rouge { box-shadow: inset 3px 0 0 var(--rouge); } .acc-l.bleu { box-shadow: inset 3px 0 0 var(--bleu); }
.acc-l time { font-weight: 700; font-variant-numeric: tabular-nums; }
.acc-l-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.acc-l-n { font-size: .7rem; color: var(--texte-3); white-space: nowrap; } .acc-l-n b { font-size: 1rem; color: var(--encre); }
.acc-l.rouge .acc-l-n b { color: var(--rouge); } .acc-l.bleu .acc-l-n b { color: var(--bleu); }
.acc-pastille { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu); font-size: .7rem; font-weight: 700; }
.acc-vide { margin: 0; padding: 10px 12px; border-radius: var(--r-2); background: var(--carte); font-size: .8rem; color: var(--texte-2); }
.acc-vide.ok { color: var(--vert); font-weight: 650; }
@media (max-width: 760px) { .acc2 { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; } .acc-cote { grid-row: auto; grid-template-rows: none; } }
.acc-l-txt small { margin-left: 8px; font-size: .7rem; color: #b77800; }
@media (min-width: 980px) { .principal-zone:has(.acc2) #contenu { padding-bottom: 20px; } .principal-zone:has(.acc2) .acc2 { min-height: calc(100dvh - 118px); } }
/* libellé « Accueil » sous le logo, comme les autres liens du menu */
.barre .marque { gap: 4px; }
.barre .marque .marque-lib { font-size: .62rem; font-weight: 500; line-height: 1.15; color: var(--texte-2); }
.barre .marque.actif .marque-lib { color: var(--bleu); font-weight: 650; }

/* ===== Planning : semaine de l'équipe façon agenda (18/11, 20) ===== */
.pl { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 980px) { .principal-zone:has(.pl) .pl { height: calc(100dvh - 118px); } .principal-zone:has(.pl) #contenu { padding-bottom: 20px; } }
.pl-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pl-nav { display: flex; align-items: center; gap: 6px; }
.pl-nav > b { min-width: 210px; text-align: center; font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; }
.pl-fl { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--carte); box-shadow: var(--ombre); font-size: 1.3rem; line-height: 1; color: var(--encre); cursor: pointer; }
.pl-auj { height: 32px; padding: 0 14px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--carte); font: inherit; font-size: .76rem; font-weight: 650; color: var(--bleu); cursor: pointer; }
.pl-mode { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--carte); box-shadow: var(--ombre); }
.pl-mode button { height: 30px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .8rem; font-weight: 650; color: var(--texte-2); cursor: pointer; transition: background .25s, color .25s; }
.pl-mode button.actif { background: var(--bleu); color: #fff; }
/* calendriers : une pastille par personne, touchée = masquée */
.pl-gens { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-pers { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; background: var(--carte); box-shadow: var(--ombre); font: inherit; font-size: .8rem; cursor: pointer; transition: opacity .2s; }
.pl-pers b { font-weight: 650; color: var(--encre); } .pl-pers small { font-size: .7rem; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.pl-coche { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: var(--c); }
.pl-coche::after { content: ""; width: 8px; height: 4px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.pl-pers.cache { opacity: .55; } .pl-pers.cache .pl-coche { background: transparent; box-shadow: inset 0 0 0 2px var(--c); } .pl-pers.cache .pl-coche::after { display: none; }
/* la grille */
.pl-cal { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 10px 12px 0; border-radius: var(--r-6); background: var(--carte); box-shadow: var(--ombre); }
.pl-entete, .pl-absences, .pl-corps { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); }
.pl-jour { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 2px 0 8px; }
.pl-jour small { font-size: .72rem; font-weight: 600; color: var(--texte-3); text-transform: uppercase; letter-spacing: .04em; }
.pl-jour b { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; font-size: .95rem; font-weight: 700; color: var(--encre); }
.pl-jour.auj small { color: var(--bleu); } .pl-jour.auj b { background: var(--bleu); color: #fff; }
.pl-absences { padding-bottom: 6px; border-bottom: 1px solid var(--ligne); }
.pl-absences > span { align-self: center; font-size: .58rem; color: var(--texte-3); text-align: right; padding-right: 6px; }
.pl-absences > div { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.pl-absences em { padding: 3px 8px; border-radius: var(--r-1); background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); font-style: normal; font-size: .66rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.pl-corps { flex: 1; min-height: 0; position: relative; margin-top: 8px; }
.pl-heures { position: relative; }
.pl-heures span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .62rem; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.pl-col { position: relative; border-left: 1px solid var(--ligne); }
.pl-col.auj { background: var(--bleu-voile); }
.pl-trait { position: absolute; left: 0; right: 0; height: 1px; background: var(--ligne); opacity: .7; }
.pl-maintenant { position: absolute; left: -1px; right: 0; height: 2px; background: var(--rouge); z-index: 3; }
.pl-maintenant::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); }
/* un créneau : teinte claire de la couleur de la personne, filet plein à gauche, pause hachurée */
.pl-bloc { position: absolute; z-index: 1; display: block; min-height: 18px; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-1); background: color-mix(in srgb, var(--c) 16%, #fff); box-shadow: inset 3px 0 0 var(--c); font: inherit; text-align: left; color: color-mix(in srgb, var(--c) 70%, #000); cursor: pointer; animation: pop-entree .35s var(--ressort) both; transition: filter .2s, transform .15s; }
.pl-bloc:hover { filter: saturate(1.3) brightness(.97); z-index: 2; } .pl-bloc:active { transform: scale(.98); }
.pl-bloc-txt { position: relative; z-index: 1; display: grid; gap: 1px; padding: 4px 4px 4px 7px; }
.pl-bloc-txt b { font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.pl-bloc-txt small { font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; font-variant-numeric: tabular-nums; }
.pl-pause { position: absolute; left: 3px; right: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 40%, transparent) 0 3px, transparent 3px 7px); border-top: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); border-bottom: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); }
.pl-bloc.pl-fant { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); border-radius: var(--r-1); }
.pl-bloc.pl-fant .pl-pause { display: none; } .pl-bloc.pl-fant .pl-bloc-txt { opacity: .7; }
.pl-bloc.en-cours::after { content: ""; position: absolute; left: 3px; right: 0; bottom: 0; height: 10px; background: linear-gradient(transparent, color-mix(in srgb, var(--c) 30%, transparent)); }
.pl-legende { display: flex; gap: 16px; margin: 0; font-size: .7rem; color: var(--texte-3); }
.pl-legende span { display: inline-flex; align-items: center; gap: 6px; }
.pl-leg-pause { width: 18px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(135deg, #9aa1ad 0 2px, transparent 2px 5px); }
.pl-leg-fantome { width: 18px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #9aa1ad; }
/* détail d'un créneau, en bas à droite */
.pl { position: relative; }
.pl-detail { position: absolute; right: 14px; bottom: 34px; z-index: 5; width: 340px; padding: 12px; border-radius: var(--r-5); background: var(--carte); box-shadow: var(--ombre-haute); }
.pl-detail.entre { animation: pop-entree .3s var(--ressort) both; }
.pl-det-tete { display: flex; align-items: center; gap: 10px; padding: 2px 2px 10px; }
.pl-det-tete b { display: block; font-size: 1rem; } .pl-det-tete small { font-size: .72rem; color: var(--texte-3); }
.pl-det-x { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--fond); cursor: pointer; }
.pl-det-l { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pl-det-l > div { display: grid; gap: 2px; padding: 10px; border-radius: var(--r-2); background: var(--fond); }
.pl-det-l small { font-size: .64rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--texte-3); }
.pl-det-l b { font-size: 1rem; font-variant-numeric: tabular-nums; } .pl-det-l span { font-size: .7rem; color: var(--texte-2); }
.pl-corrige { color: #b77800 !important; }
.pl-bloc { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.pl-bloc-txt { padding: 4px 3px 4px 6px; }
.pl-bloc { box-shadow: inset 3px 0 0 var(--c), 0 0 0 1.5px var(--carte); }
.pl-col.auj .pl-bloc { box-shadow: inset 3px 0 0 var(--c), 0 0 0 1.5px var(--bleu-voile); }
.pl-bloc:hover { z-index: 9 !important; }
.pl-bloc.pl-fant { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--carte) 85%, transparent); }
.pl-maintenant { z-index: 30; pointer-events: none; }
.pl-bloc.pl-fant { background: var(--carte); box-shadow: none; outline: 1.5px dashed color-mix(in srgb, var(--c) 65%, transparent); outline-offset: -1.5px; }
.pl-col.auj .pl-bloc.pl-fant { background: var(--bleu-voile); }

/* Titre de dalle : l'étiquette « X à produire pour … » passe sous le titre, jamais par-dessus (19/11) */
.pc-titre2 { flex-wrap: wrap !important; align-content: end; row-gap: 1px; }
.pc-titre2 .pc-statut { position: static !important; flex-basis: 100%; min-width: 0; margin: 0; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
/* Temps de travail : les deux boutons du haut gardent leur largeur, jamais écrasés l'un sous l'autre (19/11) */
.tt-boutons { flex: none; }
.tt-boutons button { flex: none; white-space: nowrap; }
.tt-boutons button.fantome { width: auto; padding: 0 14px; display: inline-flex; }
/* Boutons « fantome » avec du texte (Shifts et tâches, Feuilles de temps, Effacer, Retirer…) : largeur selon le texte.
   Les boutons ronds à icône seule portent un aria-label et gardent leur rond de 44 px. (19/11) */
button.fantome:not([aria-label]) { width: auto; min-width: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
/* Pastilles d'évolution et groupes « 779 couverts (-27 %) » : jamais coupés en fin de ligne (19/11) */
.evolution, .sans-coupure { white-space: nowrap; }
/* Chats des tableaux de bord : chaque message garde sa hauteur, le fil défile au lieu de tasser les messages (19/11) */
.tdb-fil { grid-auto-rows: max-content; }
.tdb-fil > .tdb-msg { min-height: max-content; }

/* ===== Plan de nettoyage (ex-Sanitaire) — 19/11 ===== */
.pn { display: grid; gap: 14px; }
.pn-haut { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.pn-hero, .pn-agenda, .pn-carte { background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre); padding: 16px; min-width: 0; }
.pn-hero-lib { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: var(--texte-2); }
.pn-hero-lib svg { width: 16px; height: 16px; }
.pn-hero { display: flex; flex-direction: column; gap: 6px; }
.pn-hero h2 { margin: 4px 0 0; font-size: 1.5rem; letter-spacing: -.03em; }
.pn-hero p { margin: 0; color: var(--texte-2); font-size: .86rem; }
.pn-hero.a-signer { background: var(--bleu); color: #fff; }
.pn-hero.a-signer .pn-hero-lib, .pn-hero.a-signer p { color: rgba(255,255,255,.82); }
.pn-hero.signe h2 { color: var(--vert); }
.pn-faire { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--bleu); font: inherit; font-weight: 700; cursor: pointer; }
.pn-faire svg { width: 18px; height: 18px; }
.pn-faire.discret { background: var(--fond); color: var(--encre); }
.pn-agenda { display: flex; flex-direction: column; gap: 6px; }
.pn-ag { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ligne); font-size: .86rem; }
.pn-ag span { color: var(--texte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-ag.rouge span { color: var(--rouge); font-weight: 700; }
.pn-agenda small { color: var(--texte-3); font-size: .7rem; margin-top: auto; }
.pn-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pn-colonnes > div { display: grid; gap: 14px; min-width: 0; }
.pn-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.pn-titre { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.pn-titre h3 { margin: 0; font-size: 1.02rem; letter-spacing: -.02em; }
.pn-nb { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--fond); font-size: .72rem; font-weight: 700; color: var(--texte-2); }
.pn-regle { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; padding: 4px 10px; border: 0; border-radius: 999px; background: var(--bleu-voile); color: var(--bleu); font: inherit; font-size: .74rem; font-weight: 600; cursor: pointer; text-align: left; }
.pn-regle svg { width: 14px; height: 14px; flex: none; }
.pn-regle:disabled { cursor: default; }
.pn-regle.fixe { background: transparent; color: var(--texte-3); padding: 0; font-weight: 500; cursor: default; }
.pn-statut { font-size: .7rem; font-weight: 700; white-space: nowrap; padding: 3px 9px; border-radius: 999px; }
.pn-statut.rouge { background: #fde8e8; color: var(--rouge); }
.pn-statut.vert { background: #e3f6ea; color: var(--vert); }
.pn-statut.neutre { background: var(--fond); color: var(--texte-3); }
.pn-tete .pn-statut { order: 0; }
.pn-titre { order: -1; }
.pn-cat { margin: 10px 0 2px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); }
.pn-cat:first-child { margin-top: 0; }
.pn-ligne { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: var(--r-1); background: transparent; font: inherit; color: var(--encre); text-align: left; cursor: pointer; }
.pn-ligne:hover { background: var(--fond); }
.pn-ligne span { display: grid; min-width: 0; }
.pn-ligne b { font-size: .86rem; font-weight: 600; }
.pn-ligne small { font-size: .7rem; color: var(--texte-3); }
.pn-ligne svg { width: 14px; height: 14px; flex: none; color: var(--texte-3); }
.pn-carte.f-utilisation .pn-ligne b { font-weight: 500; }
/* réglage du jour, sur place */
.pn-regle-form { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: var(--r-1); background: var(--bleu-voile); }
.pn-regle-form select, .pn-regle-form input[type=time] { min-height: 36px; padding: 0 8px; border: 1px solid var(--ligne); border-radius: var(--r-1); background: #fff; font: inherit; font-size: .8rem; }
.pn-regle-form select[hidden] { display: none; }
.pn-mois { flex-basis: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.pn-mois label { position: relative; }
.pn-mois input { position: absolute; opacity: 0; pointer-events: none; }
.pn-mois span { display: grid; place-items: center; min-height: 30px; border-radius: var(--r-1); background: #fff; font-size: .7rem; font-weight: 600; color: var(--texte-2); cursor: pointer; }
.pn-mois input:checked + span { background: var(--bleu); color: #fff; }
.pn-regle-actions { flex-basis: 100%; display: flex; justify-content: flex-end; gap: 6px; }
/* signatures */
.pn-sig { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ligne); font-size: .84rem; }
.pn-sig:last-child { border-bottom: 0; }
.pn-sig-date { display: grid; font-weight: 600; white-space: nowrap; } .pn-sig-date small { font-weight: 500; color: var(--texte-3); font-size: .7rem; }
.pn-sig-freq { display: flex; flex-wrap: wrap; gap: 4px; }
.pn-sig-freq em { font-style: normal; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fond); color: var(--texte-2); }
.pn-sig-qui { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pn-sig-qui .avatar { width: 24px; height: 24px; font-size: .7rem; }
.pn-sig-qui small { color: var(--texte-3); font-size: .7rem; }
.pn-sig-res { grid-column: 2 / -1; font-size: .74rem; color: var(--orange); }
/* mode opératoire */
.pn-consigne-fond { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(15, 18, 30, .35); }
.pn-consigne { width: min(520px, 100%); max-height: 80vh; overflow-y: auto; background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre-forte); padding: 18px; }
.pn-consigne-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pn-consigne-tete small { font-size: .7rem; color: var(--texte-3); font-weight: 600; }
.pn-consigne-tete h3 { margin: 2px 0 0; font-size: 1.15rem; }
.pn-consigne-tete button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--fond); cursor: pointer; font-size: .9rem; }
.pn-moment { margin: 8px 0 0; font-size: .8rem; font-weight: 600; color: var(--bleu); }
.pn-consigne-texte { margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--encre); }
.pn-qui { margin: 12px 0 0; font-size: .74rem; color: var(--texte-3); }
/* fenêtre d'autocontrôle */
.fiche-autoctrl .ac-barre { height: 6px; border-radius: 999px; background: var(--ligne); overflow: hidden; margin: 4px 0 14px; }
.fiche-autoctrl .ac-barre i { display: block; height: 100%; background: var(--vert); border-radius: 999px; transition: width .3s var(--doux); }
.ac-bloc { background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre); padding: 14px 14px 8px; margin-bottom: 12px; }
.ac-bloc > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ac-bloc h3 { margin: 0; font-size: 1.05rem; }
.ac-bloc header small { font-size: .74rem; color: var(--texte-2); }
.ac-retard { color: var(--rouge); font-weight: 700; }
.ac-tout { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--bleu-voile); color: var(--bleu); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.ac-tout svg { width: 20px; height: 20px; padding: 3px; border-radius: 999px; background: #fff; box-sizing: content-box; }
.ac-tout.fait { background: var(--vert); color: #fff; }
.ac-tout.fait svg { color: var(--vert); }
.ac-tout.rebond { animation: ac-rebond .5s var(--ressort); }
@keyframes ac-rebond { 0% { transform: scale(1); } 30% { transform: scale(.9); } 65% { transform: scale(1.08); } 100% { transform: scale(1); } }
.ac-bloc.vague [data-point] .coche { animation: ac-coche .45s var(--ressort) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes ac-coche { 0% { transform: scale(.4); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.pn-point { align-items: center; padding: 8px; margin: 0 -6px; width: calc(100% + 12px); border-radius: var(--r-3); }
.pn-point-txt { flex: 1; display: grid; min-width: 0; }
.pn-point-txt b { font-size: .9rem; font-weight: 600; }
.pn-point-txt small { font-size: .72rem; color: var(--texte-3); }
.pn-point.fait .pn-point-txt b { color: var(--texte-3); }
.pn-voir { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--fond); font-size: .78rem; font-weight: 700; color: var(--texte-2); }
.ac-signer { display: grid; gap: 10px; background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre); padding: 16px; }
.ac-prenoms { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-prenoms .prenom-choix.actif { border-color: var(--bleu); box-shadow: inset 0 0 0 1.5px var(--bleu); color: var(--bleu); }
.ac-reserve { display: grid; gap: 6px; font-size: .8rem; color: var(--texte-2); }
.ac-reserve textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: var(--r-3); font: inherit; font-size: .88rem; resize: vertical; }
.ac-atteste { margin: 0; font-size: .8rem; color: var(--texte-2); }
.ac-valider { min-height: 48px; border-radius: var(--r-1); }
.ac-fait { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; text-align: center; background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre); }
.ac-fait svg { width: 34px; height: 34px; color: var(--vert); }
.ac-fait b { font-size: 1.1rem; } .ac-fait span { color: var(--texte-2); font-size: .86rem; }
/* tâche de la journée qui ouvre l'autocontrôle : une icône, pas une case */
.coche.action { border-color: var(--bleu) !important; background: var(--bleu-voile); color: var(--bleu); }
.coche.action svg { width: 15px !important; height: 15px !important; stroke: currentColor !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; fill: none; stroke-width: 1.8 !important; }
.ac-valider:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.pn-regle-actions button { min-height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; }
.pn-regle-actions .principal { background: var(--bleu); color: #fff; border: 0; box-shadow: none; }

/* ===== Plan de nettoyage face à face : salle à gauche, cuisine à droite (19/11) ===== */
.pn-regles { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-5); background: #fff6e0; color: #6b4a00; }
.pn-regles svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.pn-regles div { display: grid; gap: 3px; } .pn-regles b { font-size: .9rem; } .pn-regles span { font-size: .8rem; line-height: 1.45; }
.pn-face { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pn-cote-titre { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); padding: 2px 4px 0; }
.pn-vide { min-height: 0; }
.pn-face .pn-hero { gap: 4px; }
.pn-face .pn-hero h2 { font-size: 1.3rem; }
.pn-hero-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 8px; }
.pn-hero-bas .pn-faire { margin-top: 0; }
.pn-proch { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-proch em { font-style: normal; font-size: .72rem; color: var(--texte-2); padding: 3px 9px; border-radius: 999px; background: var(--fond); white-space: nowrap; }
.pn-hero.a-signer .pn-proch em { background: rgba(255,255,255,.16); color: #fff; }
.pn-proch b { font-weight: 700; }
/* linge et matériel */
.pn-mat-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pn-mat { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-1); background: var(--fond); min-width: 0; }
.pn-mat-illus { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-1); background: #fff; }
.pn-mat-txt { display: grid; gap: 1px; min-width: 0; }
.pn-mat-txt b { font-size: .8rem; font-weight: 650; line-height: 1.2; }
.pn-mat-txt em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: var(--encre); }
.pn-mat-txt em::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--pastille); box-shadow: inset 0 0 0 1px #00000022; flex: none; }
.pn-mat-txt small { font-size: .68rem; color: var(--texte-3); line-height: 1.25; }
.pn-confirmer { justify-self: start; margin-top: 2px; font-size: .62rem; font-weight: 700; color: var(--orange); }
/* produits */
.pn-prod-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
.pn-prod { display: grid; padding: 6px 0; border-bottom: 1px solid var(--ligne); min-width: 0; }
.pn-prod small { font-size: .66rem; font-weight: 600; color: var(--texte-3); text-transform: uppercase; letter-spacing: .03em; }
.pn-prod b { font-size: .82rem; font-weight: 600; }
/* grand nettoyage de saison */
.pn-saison-barre { height: 6px; border-radius: 999px; background: var(--ligne); overflow: hidden; margin: 0 0 8px; }
.pn-saison-barre i { display: block; height: 100%; background: var(--vert); border-radius: 999px; }
.pn-sz { display: flex; align-items: center; gap: 10px; width: calc(100% + 16px); margin: 0 -8px; padding: 7px 8px; border: 0; border-radius: var(--r-1); background: transparent; font: inherit; color: var(--encre); text-align: left; cursor: pointer; }
.pn-sz:hover { background: var(--fond); }
.pn-sz-pt { flex: none; width: 12px; height: 12px; border-radius: 999px; border: 2px solid #c9cedb; }
.pn-sz.s-en_cours .pn-sz-pt { border-color: var(--orange); background: linear-gradient(90deg, var(--orange) 50%, transparent 50%); }
.pn-sz.s-fait .pn-sz-pt { border-color: var(--vert); background: var(--vert); }
.pn-sz-txt { flex: 1; display: grid; min-width: 0; } .pn-sz-txt b { font-size: .84rem; font-weight: 600; } .pn-sz-txt small { font-size: .68rem; color: var(--texte-3); }
.pn-sz em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--texte-3); white-space: nowrap; }
.pn-sz.s-en_cours em { color: var(--orange); } .pn-sz.s-fait em { color: var(--vert); } .pn-sz.s-fait b { color: var(--texte-3); }
/* signatures : équipe */
.pn-historique .pn-sig { grid-template-columns: 100px 70px 1fr auto; }
.pn-sig-eq { justify-self: start; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--fond); color: var(--texte-2); }
/* linge dans le mode opératoire */
.pn-consigne-linge { margin-top: 14px; padding: 10px; border-radius: var(--r-1); background: var(--fond); }
.pn-consigne-linge small { display: block; font-size: .68rem; font-weight: 600; color: var(--texte-3); margin-bottom: 6px; }
.pn-consigne-linge > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-consigne-linge span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 999px; background: #fff; }
.pn-consigne-linge em { font-style: normal; display: grid; font-size: .68rem; font-weight: 600; line-height: 1.15; }
.pn-consigne-linge i { font-style: normal; font-weight: 500; color: var(--texte-3); }
.pn-face .pn-historique { align-self: start; }
.pn-historique .pn-liste { max-height: 1100px; overflow-y: auto; }
.pn-historique .pn-sig { grid-template-columns: 82px 62px minmax(0, 1fr) auto; gap: 8px; }

/* ----- Températures : tout sur un écran, salle (et réserve) à gauche, cuisine à droite ----- */
.temp-haut { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.temp-etat { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--carte); border-radius: var(--r-4); padding: 12px 16px; box-shadow: var(--ombre); min-width: 0; }
.temp-etat > svg { width: 18px; height: 18px; color: var(--vert); flex: none; }
.temp-etat.rouge { background: var(--rouge-clair); }
.temp-etat.rouge > svg { color: var(--rouge); }
.temp-etat b { white-space: nowrap; }
.temp-etat span:not(.point-vivant) { color: var(--texte-2); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.temp-etat .petit { margin-left: auto; flex: none; }
.temp-regler { align-self: center; flex: none; }
.temp-aide { color: var(--texte-2); font-size: .8rem; margin: 12px 2px 8px; }
.temp-face { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.temp-groupe + .temp-groupe { margin-top: 14px; }
.temp-groupe h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); margin: 0 0 8px 2px; font-weight: 700; }
.temp-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.temp-cartes .carte-temp { padding: 14px 16px; }
.temp-cartes .carte-temp .valeur { font-size: 2.1rem; margin: 4px 0 2px; }
.carte-temp.en-reglage { cursor: default; }
.carte-temp.en-reglage:hover, .carte-temp.en-reglage:active { transform: none; }
.temp-reglages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.temp-reglages label { display: flex; flex-direction: column; gap: 2px; font-size: .68rem; color: var(--texte-2); min-width: 0; }
.temp-reglages label:last-child { grid-column: 1 / -1; }
.temp-reglages input { min-height: 32px; padding: 4px 6px; font-size: .88rem; border-radius: var(--r-1); min-width: 0; box-sizing: border-box; }
.temp-reglages input.enregistre { box-shadow: 0 0 0 2px var(--vert); }
.temp-cartes .carte-temp.en-reglage { padding: 12px 14px; }
.temp-cartes .carte-temp.en-reglage .valeur { display: none; }
.temp-reglages label:last-child { flex-direction: row; align-items: center; gap: 8px; }
.temp-haut .temp-etat:nth-child(2) { flex-grow: 1.6; }

/* ===== Hygiène : tableau de bord ===== */
.hy-tdb { display: flex; flex-direction: column; gap: 14px; }
.hy-face { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hy-equipe { display: flex; flex-direction: column; gap: 12px; }
.hy-equipe.a-signer { box-shadow: inset 4px 0 0 var(--orange), var(--ombre); }
.hy-equipe-haut { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hy-equipe-haut h2 { margin: 2px 0 0; font-size: 1.45rem; letter-spacing: -.02em; }
.hy-equipe-haut .sous { margin: 2px 0 0; }
.hy-taux { display: flex; align-items: center; gap: 8px; text-align: left; flex: none; }
.hy-taux b { font-size: 2.2rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.hy-taux b small { font-size: 1rem; margin-left: 1px; }
.hy-taux span { font-size: .72rem; color: var(--texte-2); line-height: 1.25; }
.hy-bande { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.hy-bande i { height: 26px; border-radius: var(--r-1); background: var(--vert); opacity: .9; }
.hy-bande i.non { background: var(--rouge-clair); box-shadow: inset 0 0 0 1px #e5484d40; opacity: 1; }
.hy-bande i.auj { background: transparent; box-shadow: inset 0 0 0 1.5px var(--orange); opacity: 1; }
.hy-bande-lib { display: flex; justify-content: space-between; font-size: .68rem; color: var(--texte-3); margin-top: -6px; }
.hy-autres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hy-autres > span { display: inline-flex; gap: 6px; align-items: baseline; background: var(--fond); border-radius: var(--r-2); padding: 7px 10px; font-size: .78rem; }
.hy-autres > span em { font-style: normal; color: var(--texte-2); }
.hy-autres > span.rouge { background: var(--orange-clair); }
.hy-autres .principal { margin-left: auto; }
.hy-tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hy-mini { text-align: left; display: flex; flex-direction: column; gap: 6px; border: 0; font: inherit; color: inherit; cursor: pointer; }
.hy-mini b { font-size: 1.05rem; font-weight: 600; }
.hy-mini > span { font-size: .78rem; color: var(--texte-2); }
.hy-mini.rouge { background: var(--rouge-clair); }
.hy-mini.orange { box-shadow: inset 4px 0 0 var(--orange), var(--ombre); }
.hy-controle { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; font: inherit; cursor: pointer;
  background: var(--bleu); color: #fff; border-radius: var(--rayon); padding: 16px 20px; box-shadow: var(--ombre); }
.hy-controle b { display: block; font-size: 1.05rem; }
.hy-controle small { display: block; opacity: .85; font-size: .82rem; margin-top: 2px; }
.hy-controle > span:nth-child(2) { flex: 1; }
.hy-controle svg { width: 22px; height: 22px; flex: none; }
.hy-controle-ic { width: 44px; height: 44px; border-radius: var(--r-3); background: #ffffff26; display: grid; place-items: center; flex: none; }

/* ===== Administratif ===== */
.ad-haut { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ad-haut p { flex: 1 1 420px; display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--texte-2); font-size: .88rem; }
.ad-haut p svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--bleu); }
.ad-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.ad-rubrique header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ad-rubrique h3 { margin: 0; font-size: 1rem; }
.ad-rubrique header small { color: var(--texte-2); font-size: .76rem; }
.ad-num { width: 28px; height: 28px; border-radius: var(--r-2); background: var(--bleu-voile); color: var(--bleu); font-weight: 700; display: grid; place-items: center; flex: none; font-size: .85rem; }
.ad-docs { display: flex; flex-direction: column; gap: 6px; }
.ad-doc { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-3); background: var(--fond); color: inherit; text-decoration: none; min-height: 44px; }
a.ad-doc:hover { background: var(--bleu-voile); }
.ad-doc.vide, .ad-doc.a_verifier { background: var(--orange-clair); }
.ad-ic { width: 30px; height: 30px; border-radius: var(--r-1); display: grid; place-items: center; flex: none; background: var(--carte); color: var(--bleu); }
.ad-ic.dossier { color: var(--orange); }
.ad-ic svg { width: 18px; height: 18px; }
.ad-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-txt b { font-size: .86rem; font-weight: 600; }
.ad-txt small { font-size: .72rem; color: var(--texte-2); }
.ad-etat em { font-style: normal; font-size: .7rem; color: var(--texte-2); white-space: nowrap; }
.ad-etat em.orange { color: var(--orange); font-weight: 700; }
.ad-doc.en-modif { align-items: flex-start; }
.ad-champs { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ad-champs input, .ad-champs select { min-height: 34px; font-size: .84rem; padding: 4px 8px; border-radius: var(--r-1); min-width: 0; box-sizing: border-box; width: 100%; }
.ad-champs-bas { display: flex; gap: 5px; }
.ad-champs-bas input, .ad-champs-bas select { flex: 1; }
.ad-champs .enregistre { box-shadow: 0 0 0 2px var(--vert); }
.ad-ajouter { margin-top: 8px; }

/* ===== Contrôle sanitaire ===== */
.cs-ecran { display: flex; flex-direction: column; gap: 14px; }
.tuile.cs-lancer { display: flex; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: 20px; }
.cs-lancer > div { flex: 1; min-width: 0; }
.cs-lancer h2 { margin: 4px 0; font-size: 1.5rem; letter-spacing: -.02em; }
.cs-lancer .sous { margin: 0; max-width: 62ch; }
.cs-gros { flex: none; min-height: 56px; padding: 0 22px; font-size: 1rem; display: inline-flex; gap: 8px; align-items: center; }
.cs-gros svg { width: 18px; height: 18px; }
.cs-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.cs-demarche ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cs-demarche li { display: flex; gap: 12px; align-items: flex-start; }
.cs-demarche li > span { width: 26px; height: 26px; border-radius: 999px; background: var(--bleu); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; flex: none; }
.cs-demarche b { font-size: .9rem; }
.cs-demarche small { display: block; color: var(--texte-2); font-size: .78rem; line-height: 1.35; }
.cs-avant ul { list-style: none; margin: 10px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cs-avant li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; }
.cs-avant li i { width: 18px; height: 18px; border-radius: var(--r-1); box-shadow: inset 0 0 0 1.5px var(--texte-3); flex: none; margin-top: 1px; }
.cs-avant li.ok i { background: var(--vert); box-shadow: none; }
.cs-avant li.non i { background: var(--rouge); box-shadow: none; }
.cs-avant li small { display: block; color: var(--texte-2); font-size: .74rem; }

.cs-pres { position: fixed; inset: 0; z-index: 900; background: var(--fond); display: flex; flex-direction: column; }
.cs-pres-haut { display: flex; align-items: center; gap: 16px; padding: 14px 22px; }
.cs-pres-marque { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .86rem; color: var(--texte-2); flex: 1; }
.cs-pres-marque svg { width: 18px; height: 18px; color: var(--bleu); }
.cs-points { display: flex; gap: 6px; }
.cs-points button { width: 26px; height: 8px; min-height: 0; padding: 0; border-radius: 999px; border: 0; background: var(--ligne); cursor: pointer; }
.cs-points button.actif { background: var(--bleu); width: 40px; }
.cs-pres .sc-rond { background: var(--carte); color: var(--encre); box-shadow: var(--ombre); }
.cs-diapo { flex: 1; overflow: auto; padding: 4px 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.cs-diapo-tete h2 { margin: 2px 0; font-size: 2rem; letter-spacing: -.03em; }
.cs-diapo-tete p { margin: 0; color: var(--texte-2); }
.cs-etape { font-size: .74rem; font-weight: 700; color: var(--bleu); letter-spacing: .06em; }
.cs-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cs-tous { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cs-bloc { background: var(--carte); border-radius: var(--rayon); padding: 16px 18px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 10px; }
.cs-bloc h4 { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); }
.cs-chiffre { display: flex; align-items: baseline; gap: 10px; }
.cs-chiffre b { font-size: 2.4rem; font-weight: 600; letter-spacing: -.04em; }
.cs-chiffre span { color: var(--texte-2); font-size: .85rem; }
.cs-liste { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: .9rem; }
.cs-plan { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 1rem; }
.cs-note { margin: 0; font-size: .88rem; background: var(--vert-clair); border-radius: var(--r-2); padding: 10px 12px; }
.cs-docs { display: flex; flex-direction: column; gap: 6px; }
.cs-docs.ligne { flex-direction: row; flex-wrap: wrap; }
.cs-doc { display: flex; gap: 10px; align-items: center; background: var(--fond); border-radius: var(--r-2); padding: 8px 10px; color: inherit; text-decoration: none; min-height: 40px; }
.cs-bloc .cs-doc { background: var(--fond); }
.cs-docs.ligne .cs-doc { background: var(--carte); box-shadow: var(--ombre); }
.cs-doc svg { width: 18px; height: 18px; color: var(--bleu); flex: none; }
.cs-doc b { font-size: .84rem; font-weight: 600; display: block; }
.cs-doc small { font-size: .72rem; color: var(--texte-2); }
.cs-ouvrir { align-self: flex-start; background: var(--bleu-voile); color: var(--bleu); border: 0; border-radius: var(--r-2); padding: 0 14px; min-height: 40px; font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; }
.cs-bas { display: flex; align-items: center; gap: 14px; justify-content: space-between; font-size: .9rem; }
.cs-bas > span { color: var(--texte-2); }
.cs-froid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cs-app { background: var(--carte); border-radius: var(--rayon); padding: 14px 16px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 2px; }
.cs-app small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); font-weight: 700; }
.cs-app b { font-size: .88rem; font-weight: 600; }
.cs-temp { font-size: 2rem; font-weight: 600; letter-spacing: -.04em; }
.cs-app em { font-style: normal; font-size: .74rem; color: var(--texte-2); }
.cs-app.haut { background: var(--rouge-clair); }
.cs-pres-bas { display: flex; justify-content: space-between; gap: 12px; padding: 12px 22px 18px; }
.cs-nav { min-height: 52px; padding: 0 20px; border-radius: var(--r-3); border: 0; background: var(--carte); box-shadow: var(--ombre); font: inherit; font-weight: 600; cursor: pointer; color: var(--encre); }
.cs-nav.suivant { background: var(--bleu); color: #fff; }
.cs-nav:disabled { visibility: hidden; }
.sc-astuce { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); background: rgba(10,14,40,.72); color: #fff; font-size: .84rem; line-height: 1.4; padding: 10px 14px; border-radius: var(--r-3); text-align: center; backdrop-filter: blur(8px); }
.cs-tous .cs-bloc { padding: 12px 14px; gap: 8px; }
.cs-tous .cs-doc { min-height: 36px; padding: 6px 10px; }
.ad-champs-bas { flex-wrap: wrap; }
.ad-champs-bas input[type="date"] { flex: 1 1 130px; }
.ad-champs-bas select { flex: 1 1 110px; }
.ad-champs-bas [data-supprimer] { flex: none; min-height: 32px; padding: 0 10px; font-size: .8rem; margin-left: auto; }
.cs-note.bleu { background: var(--bleu-voile); }
.fiche-autoctrl .ac-signer { margin-bottom: 14px; }
.ac-signer-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ac-compte { font-size: .78rem; color: var(--texte-2); }
.ac-signer-bas { display: flex; align-items: center; gap: 12px; }
.ac-signer-bas .ac-atteste { flex: 1; }
.ac-signer-bas .ac-valider { flex: none; padding: 0 20px; }
.fiche-autoctrl .ac-signer .ac-barre { margin: 0; }
.ac-reserve[hidden] { display: none; }
.cmd-signature { border-left: 3px solid var(--ligne); padding: 4px 0 4px 12px; display: flex; flex-direction: column; gap: 6px; }
.cmd-signature > small { color: var(--texte-2); font-size: .74rem; }
.cmd-sig-corps { font-size: .8rem; line-height: 1.35; color: var(--encre); overflow-wrap: anywhere; }
.cmd-sig-corps p { margin: 0 0 4px; }
.cmd-sig-corps img { max-width: 160px; height: auto; vertical-align: middle; margin-right: 6px; }
.cmd-sig-cadre { width: 100%; border: 0; display: block; background: #fff; border-radius: var(--r-1); min-height: 120px; }

/* ===== Estimations du mois (par type de plat) ===== */
.est { display: flex; flex-direction: column; gap: 12px; }
.est-tete { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.est-mois { display: flex; align-items: center; gap: 10px; }
.est-mois h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; min-width: 190px; text-align: center; }
.est-mois .sc-rond { background: var(--carte); color: var(--encre); box-shadow: var(--ombre); }
.est-mois .sc-rond:disabled { opacity: .35; }
.est-carte { font-size: .82rem; color: var(--texte-2); background: var(--carte); border-radius: 999px; padding: 6px 12px; box-shadow: var(--ombre); }
.est-totaux { display: flex; align-items: stretch; gap: 6px; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 10px; }
.est-totaux > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 2px; border-radius: var(--r-3); background: var(--fond); min-width: 0; }
.est-totaux > div.fort { background: var(--bleu); color: #fff; }
.est-totaux b { font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.est-totaux span { font-size: .7rem; color: var(--texte-2); }
.est-totaux > div.fort span { color: #ffffffcc; }
.est-totaux-lib { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 0 10px 0 6px; font-weight: 600; font-size: .86rem; }
.est-totaux-lib small { font-weight: 400; color: var(--texte-2); font-size: .74rem; }
.est-semaines { display: flex; gap: 6px; flex-wrap: wrap; }
.est-semaines button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--carte); box-shadow: var(--ombre); font: inherit; font-size: .84rem; font-weight: 600; color: var(--texte-2); cursor: pointer; }
.est-semaines button.actif { background: var(--encre); color: #fff; }
.est-tableau { padding: 10px 12px; }
.est-table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.est-table th, .est-table td { text-align: center; padding: 0; }
.est-table thead th { font-weight: 400; padding: 4px 0 6px; vertical-align: top; }
.est-table thead th span { display: block; font-size: .7rem; color: var(--texte-2); text-transform: uppercase; letter-spacing: .05em; }
.est-table thead th b { display: block; font-size: 1.05rem; }
.est-table thead th em { display: block; font-style: normal; font-size: .64rem; color: var(--orange); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-table thead th.auj b { color: var(--bleu); }
.est-table thead th.passe { opacity: .6; }
.est-table .est-lib { width: 92px; text-align: left; font-size: .84rem; font-weight: 600; padding-left: 4px; }
.est-table .est-total { width: 84px; font-weight: 700; font-size: .95rem; background: var(--fond); border-radius: var(--r-2); }
.est-table td { height: 38px; font-size: .95rem; }
.est-table td.reel { color: var(--texte-2); background: var(--fond); border-radius: var(--r-2); }
.est-table td.ferme { color: var(--texte-3); font-size: .74rem; }
.est-case { width: 100%; height: 38px; border: 0; border-radius: var(--r-2); background: var(--bleu-voile); color: var(--encre); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.est-case.ajuste { background: var(--orange-clair); box-shadow: inset 0 0 0 1.5px var(--orange); }
.est-champ { width: 100%; height: 38px; box-sizing: border-box; text-align: center; border-radius: var(--r-2); font-size: .95rem; font-weight: 700; padding: 0 4px; }
.est-table tr.est-couverts td, .est-table tr.est-couverts th { padding-bottom: 6px; }
.est-table tr.est-couverts .est-case { background: var(--bleu); color: #fff; }
.est-table tr.est-couverts .est-case.ajuste { background: var(--orange); }
.est-table tr.sep th, .est-table tr.sep td { border-top: 6px solid transparent; }
.est-legende { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .74rem; color: var(--texte-2); margin: 8px 4px 2px; }
.est-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
.est-legende .l-reel { background: var(--fond); box-shadow: inset 0 0 0 1px var(--ligne); }
.est-legende .l-est { background: var(--bleu-voile); }
.est-legende .l-aj { background: var(--orange-clair); box-shadow: inset 0 0 0 1.5px var(--orange); }
.est-astuce { margin-left: auto; }
.est-bas { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }
.est-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.est-form-titre { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; margin-right: auto; align-self: center; }
.est-form-titre svg, .est-precision svg { width: 18px; height: 18px; color: var(--bleu); flex: none; }
.est-form label { display: flex; flex-direction: column; gap: 3px; font-size: .72rem; color: var(--texte-2); }
.est-form select { min-height: 40px; }
.est-precision { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .78rem; color: var(--texte-2); line-height: 1.4; }
.est-precision b { color: var(--encre); }
.est-bas .message { font-size: .8rem; margin: 0; }
.est-table td { height: 34px; }
.est-case, .est-champ { height: 34px; }
.est { gap: 10px; }
.est-table td { height: 30px; }
.est-case, .est-champ { height: 30px; }
.est-totaux { padding: 8px; }
.est-totaux > div { padding: 4px 2px; }
.est-totaux b { font-size: 1.25rem; }
.est-bas { padding: 10px 16px; gap: 6px; }
.est-tableau { padding: 8px 12px; }
.est-table thead th { padding: 2px 0 4px; }

/* ===== Documents de l'app (charte d'hygiène, guide de la cellule) ===== */
.fiche-doc .fiche-tete { align-items: flex-start; }
.doc-tete-actions { display: flex; gap: 8px; align-items: center; }
.doc-intro { font-size: .95rem; color: var(--texte-2); margin: 4px 0 14px; line-height: 1.5; }
.doc-section { background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre); padding: 14px 16px; margin-bottom: 10px; }
.doc-section h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1rem; }
.doc-section h3 span { width: 26px; height: 26px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: .8rem; display: grid; place-items: center; flex: none; }
.doc-section ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; line-height: 1.45; }
.doc-regle { display: flex; gap: 14px; align-items: center; background: var(--bleu); color: #fff; border-radius: var(--r-5); padding: 16px 18px; margin-bottom: 12px; }
.doc-regle svg { width: 30px; height: 30px; flex: none; }
.doc-regle div { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.doc-regle b { font-size: 1.05rem; font-weight: 600; } .doc-regle b.fort { font-size: 1.3rem; font-weight: 800; }
.doc-source { font-size: .74rem; color: var(--texte-3); margin: 12px 2px 4px; line-height: 1.4; }
.doc-engagement { font-weight: 600; font-size: .95rem; margin: 12px 2px; }
.doc-signatures { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre); padding: 12px 14px; margin-bottom: 12px; }
.doc-signatures > div:first-child { font-size: .86rem; color: var(--texte-2); } .doc-signatures b { color: var(--encre); font-size: 1.1rem; }
.doc-noms { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.doc-noms span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--fond); color: var(--texte-2); }
.doc-noms span.ok { background: var(--vert-clair); color: var(--vert); font-weight: 600; }
.charte-signer { background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre); padding: 14px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.charte-signer h3 { margin: 0; font-size: 1rem; }
.charte-signer canvas { width: 100%; height: 150px; border-radius: var(--r-1); background: #fbfbfd; box-shadow: inset 0 0 0 1.5px var(--ligne); touch-action: none; }
.coche-charte { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 600; } .coche-charte input { width: 20px; height: 20px; accent-color: var(--bleu); flex: none; }
.charte-code { display: flex; gap: 10px; align-items: center; font-size: .86rem; color: var(--texte-2); } .charte-code input { width: 130px; min-height: 40px; font-size: 1.1rem; letter-spacing: .3em; text-align: center; border-radius: var(--r-1); }
.charte-actions { display: flex; justify-content: space-between; gap: 10px; }
.charte-signer .prenom-choix:disabled { opacity: .38; cursor: not-allowed; }
.charte-signer .sous-info { font-size: .76rem; color: var(--texte-3); margin: 0; }

/* Tableaux de bord : colonnes libres (20/11) */
@media (min-width: 1101px) {
  .tdb-salle.tdb-libre, .tdb-salle.tdb-cuisine.tdb-libre { grid-template-areas: none; }
  .tdb-libre > .tdb-cv, .tdb-libre > .tdb-notes, .tdb-libre > .tdb-stocks { grid-area: auto; }
}
.tdb-libre > .tdb-stocks { grid-column: 1 / -1; }
.tdb-colonnes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: inherit; align-items: start; }
.tdb-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tdb-col > .tuile { grid-area: auto; }
@media (max-width: 1100px) { .tdb-colonnes { grid-template-columns: 1fr; } }
.tdb-chat-tete { display: flex; align-items: center; gap: 8px; }
.tdb-passation { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--bleu-voile); color: var(--bleu); font: inherit; font-size: .78rem; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.tdb-passation svg { width: 15px; height: 15px; }
.tdb-rang { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tdb-col .tdb-stocks .etiquette { flex-wrap: wrap; }
.tp-deplier { display: grid; gap: 6px; }
.tp-deplier > summary { list-style: none; cursor: pointer; display: flex; justify-content: center; min-height: 40px; align-items: center; border-radius: var(--r-2); background: var(--fond); font-size: .84rem; font-weight: 700; color: var(--bleu); }
.tp-deplier > summary::-webkit-details-marker { display: none; }
.tp-deplier .tp-moins, .tp-deplier[open] .tp-plus { display: none; }
.tp-deplier[open] .tp-moins { display: inline; }
.tp-deplier[open] > summary { order: 2; }
.tp-deplier[open] { display: flex; flex-direction: column; }

/* ===== Chat : passation lisible, retirer son message, dictée ===== */
.tdb-pass { flex: 1; min-width: 0; background: var(--fond); border-radius: var(--r-3); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.tdb-pass-tete { display: flex; align-items: center; gap: 8px; font-size: .84rem; }
.tdb-pass-tete time { font-size: .72rem; color: var(--texte-3); }
.tdb-pass-r span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-3); font-weight: 700; }
.tdb-pass-r p { margin: 1px 0 0; font-size: .86rem; line-height: 1.35; }
.tdb-retirer { margin-left: auto; width: 26px; height: 26px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--texte-3); font-size: .8rem; cursor: pointer; }
.tdb-retirer:hover { background: var(--rouge-clair); color: var(--rouge); }
.tdb-msg > div { min-width: 0; }
.tdb-msg > div:not(.tdb-pass) { display: block; }
.tdb-msg > div > .tdb-retirer { float: right; }
.dictee { flex: none; width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: var(--fond); color: var(--texte-2); display: grid; place-items: center; cursor: pointer; }
.dictee svg { width: 19px; height: 19px; }
.dictee.ecoute { background: var(--rouge); color: #fff; animation: dictee-pouls 1.2s infinite; }
@keyframes dictee-pouls { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.45); } 50% { box-shadow: 0 0 0 8px rgba(229,72,77,0); } }

/* ===== Fenêtre de passation ===== */
.fiche-passation2 { display: flex; flex-direction: column; gap: 12px; }
.pass-precedente { background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre); padding: 10px 14px; display: grid; gap: 8px; }
.pass-precedente > summary { cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--bleu); list-style: none; }
.pass-precedente > summary::-webkit-details-marker { display: none; }
.pass-cartes { display: flex; flex-direction: column; gap: 10px; }
.pass-carte { background: var(--carte); border-radius: var(--r-5); box-shadow: var(--ombre); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pass-titre { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--encre); }
.pass-titre .dictee { margin-left: auto; width: 36px; height: 36px; }
.pass-carte textarea { width: 100%; box-sizing: border-box; min-height: 70px; resize: none; border: 1.5px solid var(--ligne); border-radius: var(--r-3); padding: 10px 12px; font: inherit; font-size: .95rem; line-height: 1.4; background: var(--fond); }
.pass-carte textarea:focus { outline: none; border-color: var(--bleu); background: #fff; }
.pass-bas { display: flex; align-items: center; gap: 12px; justify-content: space-between; position: sticky; bottom: 0; background: var(--fond); padding: 10px 0 4px; }
.pass-bas span { font-size: .8rem; color: var(--texte-2); }
.pass-bas .principal { min-height: 48px; padding: 0 22px; }

/* ===== Prise d'avance : bouton distinct ===== */
.tp-deplier > summary { background: var(--bleu-voile); min-height: 44px; border-radius: var(--r-3); }

/* ===== Stocks en place : liste claire, carte puis pâtisseries ===== */
.stocks-place2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; margin-top: 8px; }
.sp-bloc { display: flex; flex-direction: column; gap: 4px; }
.sp-bloc h4 { margin: 0 0 2px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); }
.sp-l { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r-2); background: var(--fond); min-height: 38px; }
.sp-nom { flex: 1; min-width: 0; font-size: .86rem; font-weight: 600; display: flex; flex-direction: column; line-height: 1.2; }
.sp-nom small { font-size: .68rem; color: var(--texte-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-n { font-size: 1.15rem; font-weight: 750; letter-spacing: -.02em; min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.sp-l.t-rouge .sp-n { color: var(--rouge); } .sp-l.t-orange .sp-n { color: var(--orange); } .sp-l.t-vert .sp-n { color: var(--vert); } .sp-l.t-vide .sp-n { color: var(--texte-3); }
.sp-l.t-rouge { box-shadow: inset 3px 0 0 var(--rouge); } .sp-l.t-orange { box-shadow: inset 3px 0 0 var(--orange); } .sp-l.t-vert { box-shadow: inset 3px 0 0 var(--vert); }
.pass-bas { box-shadow: 0 -10px 18px -8px rgba(11,13,18,.12); padding-left: 2px; padding-right: 2px; }

/* Stocks en place compacts (20/11, soir) */
.stocks-place2 { grid-template-columns: 1fr; gap: 8px; margin-top: 6px; }
.sp-bloc { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; }
.sp-bloc h4 { grid-column: 1 / -1; margin: 0; }
.sp-l { min-height: 30px; padding: 3px 8px; gap: 6px; }
.sp-nom { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sp-n { font-size: .98rem; min-width: 28px; }
.tdb-stocks .infos { margin: 6px 0 0; font-size: .7rem; }

/* DLC mises en avant (20/11, soir) */
.tdb-dlc { display: flex; flex-direction: column; gap: 10px; }
.tdb-dlc.alerte { background: var(--rouge-clair); box-shadow: inset 4px 0 0 var(--rouge), var(--ombre); }
.tdb-dlc.attention { background: var(--orange-clair); box-shadow: inset 4px 0 0 var(--orange), var(--ombre); }
.dlc-compteurs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dlc-c { display: flex; align-items: baseline; gap: 8px; background: var(--carte); border-radius: var(--r-3); padding: 8px 12px; }
.dlc-c b { font-size: 2rem; font-weight: 780; letter-spacing: -.04em; line-height: 1; }
.dlc-c span { font-size: .78rem; font-weight: 600; color: var(--texte-2); }
.dlc-c.rouge b { color: var(--rouge); } .dlc-c.orange b { color: var(--orange); }
.dlc-c.zero b { color: var(--texte-3); }
.dlc-lignes { display: flex; flex-direction: column; gap: 5px; }
.dlc-l { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; min-height: 40px; padding: 6px 12px; border: 0; border-radius: var(--r-3); background: var(--carte); font: inherit; cursor: pointer; }
.dlc-l i { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.dlc-l.rouge i { background: var(--rouge); } .dlc-l.orange i { background: var(--orange); }
.dlc-l span { flex: 1; font-weight: 650; font-size: .9rem; }
.dlc-l em { font-style: normal; font-size: .74rem; font-weight: 700; }
.dlc-l.rouge em { color: var(--rouge); } .dlc-l.orange em { color: var(--orange); }
.dlc-rien { margin: 0; font-weight: 600; color: var(--vert); }

/* Tableau de bord cuisine, version compacte (20/11, soir) */
.tdb-dlc { gap: 8px; }
.tdb-dlc .etiquette { flex-wrap: wrap; gap: 6px; }
.tdb-dlc .dlc-noms { display: flex; flex-wrap: wrap; gap: 6px; }
.tdb-dlc .dlc-noms button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--carte); font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--orange); }
.tdb-dlc .dlc-noms button.rouge { box-shadow: inset 0 0 0 1.5px var(--rouge); color: var(--rouge); }
.tdb-dlc .dlc-rien { font-size: .84rem; }
.tdb-dlc.attention { box-shadow: inset 3px 0 0 var(--orange), var(--ombre); }
.tdb-dlc.alerte { box-shadow: inset 3px 0 0 var(--rouge), var(--ombre); }
.tdb-col .tdb-rang .cv-prochain, .tdb-col .tdb-rang .tdb-notes { min-height: 0; }
.tdb-col .tdb-rang .tdb-notes .etiquette small { display: none; }
.tdb-col .tdb-rang .tdb-notes .lignes { max-height: 96px; overflow-y: auto; }
.froid-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 6px; }
.fm { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-2); background: var(--fond); font: inherit; cursor: pointer; text-align: left; min-width: 0; }
.fm i { width: 8px; height: 8px; border-radius: 999px; background: var(--vert); flex: none; }
.fm.rouge i { background: var(--rouge); } .fm.gris i { background: var(--texte-3); }
.fm.rouge { background: var(--rouge-clair); }
.fm span { flex: 1; min-width: 0; font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm b { font-size: .86rem; font-variant-numeric: tabular-nums; }
.fm.rouge b { color: var(--rouge); }
.tdb-rang > .tuile { grid-column: auto; }
.tdb-equipe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 10px; }
.tdb-equipe:empty { display: none; }
.tdb-equipe-lib { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; font-weight: 700; }
.tdb-membre { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.16); }
.tdb-membre > span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: .86rem; }
.tdb-membre small { font-weight: 500; font-size: .68rem; opacity: .8; }
.tdb-membre.pointe { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.tdb-membre.pause { opacity: .65; }
/* Brigade : l'équipe en poste à droite de l'en-tête (20/11, soir) */
.tdb-brigade-tete { display: flex; align-items: center; gap: 8px; }
.tdb-brigade-tete .tdb-equipe { margin: 0 0 0 auto; gap: 6px; flex-wrap: nowrap; }
.tdb-membre { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .8rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: #fff; }
.tdb-membre i { width: 22px; height: 22px; border-radius: 999px; background: #fff; color: var(--bleu); font-style: normal; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.tdb-membre.pointe { box-shadow: inset 0 0 0 1.5px #fff; }
.tdb-membre.pause { opacity: .6; }
.tdb-equipe-vide { font-size: .72rem; opacity: .7; text-transform: none; letter-spacing: 0; }
.tdb-membre i { background: var(--c, #fff); color: #fff; box-shadow: 0 0 0 2px #fff; }
.prenom-choix.en-poste { box-shadow: inset 0 0 0 1.5px var(--bleu); } .prenom-choix span small { display: block; font-size: .64rem; color: var(--bleu); font-weight: 700; line-height: 1; }
/* Redessin sur place (après un clic) : aucune animation d'entrée ne se rejoue (les animations en boucle restent) */
#contenu.sans-anim *:not(.dictee):not(.point-direct):not(.point-nouveau):not(.epingle-ic):not(.jretard):not(.rec-envoi i):not(.resa-direct i):not(.jshift-live i):not(.barres-vivantes i):not(.orbite) { animation-name: none !important; }
.tdb-msg { position: relative; }
.tdb-msg:has(.tdb-retirer) > div { padding-right: 30px; }
.tdb-msg .tdb-retirer, .tdb-msg > div > .tdb-retirer { position: absolute; top: 0; right: 0; float: none; margin: 0; }
.tdb-pass-tete .tdb-retirer { position: static; margin-left: auto; }
.tdb-msg:has(.tdb-pass) > div { padding-right: 10px; }

/* Textes centrés dans leur bulle (contrôle « décentré », 20/11) */
.tdb-dlc .dlc-noms button { align-items: center; line-height: 1.1; }
.cal-jour { align-content: center; }
.est-table td, .est-table th { background-clip: padding-box; }
.est-table tr.est-couverts td, .est-table tr.est-couverts th { padding-bottom: 0; }
.est-table tr.est-couverts + tr td, .est-table tr.est-couverts + tr th { border-top: 6px solid transparent; }
.est-table thead th.est-total { vertical-align: middle; padding: 3px 0; }
/* Grands chiffres : la ligne contient tout le chiffre (plus de débordement sur le texte du dessous) */
.geant, .tuile .geant { line-height: 1.1; }
.pt-heure { line-height: 1.08; }
/* Réception : le titre ne passe plus sous le compteur « aujourd'hui » */
.rec-action-txt h3 { width: fit-content; max-width: calc(100% - 96px); }
/* Fiches de vente : nom long un peu plus petit pour tenir sur une ligne */
.fv-carte b.long { font-size: .92em; letter-spacing: -.02em; }
/* Pointage : « 1re fois » sous l'état, plus par-dessus la pastille */
.pt-nouveau { position: static; display: inline-block; margin-top: 4px; }
/* Calendrier des réservations : jour sans réservation centré */
.cal-jour { align-content: center; }
.geant > span, .tuile .geant > span { display: inline-block; }
.grand > span:first-child, .tuile .grand > span:first-child { display: inline-block; line-height: inherit; }

/* Réglages du gérant : appareils et tâches planifiées (nouveau serveur) */
.rg-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rg-bloc.l2 { grid-column: span 2; }
.rg-aide { font-size: .85rem; color: var(--texte-2); line-height: 1.45; margin: 10px 0 0; }
.rg-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.rg-ligne { display: flex; align-items: center; gap: 12px; background: var(--fond); border-radius: var(--r-1); padding: 10px 12px; }
.rg-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--bleu); flex: none; }
.rg-ic svg { width: 17px; height: 17px; }
.rg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rg-txt b { font-weight: 600; font-size: .92rem; }
.rg-txt small { font-size: .76rem; color: var(--texte-2); }
.rg-actions { display: flex; gap: 8px; flex: none; }
.rg-etat { flex: none; }
.rg-erreur { margin: -2px 0 0; padding: 8px 12px; border-radius: var(--r-1); background: var(--rouge-clair); color: var(--rouge); font-size: .78rem; overflow-wrap: anywhere; }
.rg-code { margin-top: 14px; padding: 14px; border-radius: var(--r-1); background: var(--bleu); color: #fff; text-align: center; }
.rg-code small { display: block; font-size: .78rem; opacity: .85; }
.rg-code b { display: block; font-size: 2.6rem; font-weight: 600; letter-spacing: .12em; line-height: 1.15; margin-top: 4px; }
.rg-ajout { display: flex; gap: 10px; margin-top: 14px; }
.rg-ajout input { flex: 1; min-width: 0; border-radius: var(--r-1); }
.rg-ajout button { border-radius: var(--r-1); }

/* pastilles d'évolution qui passent à la ligne : un écart entre les lignes (24/11/2026) */
.tuile .bas.bas-pastilles { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 5px; }
/* Réglages sur écran étroit (téléphone, fenêtre réduite) : une colonne, boutons sous le nom */
@media (max-width: 900px) {
  .rg-grille { grid-template-columns: minmax(0, 1fr); }
  .rg-bloc.l2 { grid-column: auto; }
  .rg-ligne { flex-wrap: wrap; }
  .rg-txt { flex-basis: calc(100% - 46px); }
  .rg-actions { margin-left: 46px; }
}
