/* Essai Django « Ma semaine » — Système 55. Mobile d'abord ; palette de la maquette. */
@font-face { font-family: "Overpass"; font-weight: 400; font-display: swap; src: url("../fonts/overpass-latin-400-normal.0a42543972be.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 600; font-display: swap; src: url("../fonts/overpass-latin-600-normal.084bbf8c048a.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 700; font-display: swap; src: url("../fonts/overpass-latin-700-normal.8587eb4eb423.woff2") format("woff2"); }
:root {
  --fond: #F4EEE4; --carte: #FFFFFF; --encre: #1F1D1B; --texte: #4A443E; --discret: #5E574F;
  --trait: #E6DCCF; --accent: #C3751F; --accent-fonce: #8A4F12; --alerte: #A33A1A; --bien: #2E5E6E;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.45 "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent-fonce); }
h1 { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 19px; font-weight: 700; }
small { color: var(--discret); font-size: 13px; font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }
.alerte { color: var(--alerte); } .bien { color: var(--bien); } .fort { font-weight: 700; }

.bandeau-essai { background: var(--encre); color: #E0B784; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top)); }
.page { max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.entete { display: flex; flex-direction: column; gap: 6px; }
.surtitre { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--discret); }
.surtitre.clair { color: #E0B784; }
.sous-titre { margin: 0; color: var(--texte); }
.semaines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #CDBFAE; background: var(--carte); color: var(--encre); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.bouton.plein { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; width: 100%; font-size: 16px; }
.bouton.discret { background: transparent; }
.bouton:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--bien); outline-offset: 2px; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-fonce); text-decoration: underline; cursor: pointer; min-height: 44px; }

.carte { background: var(--carte); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.verdict { background: var(--encre); color: #FAF5EE; border-radius: 16px; padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.verdict p { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 600; }

.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tuile { gap: 4px; padding: 14px; }
.etiquette { font-size: 12px; font-weight: 700; color: var(--discret); text-transform: uppercase; letter-spacing: .08em; }
.valeur { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.detail { font-size: 13px; color: var(--texte); }
.evolution { font-size: 13px; color: var(--bien); font-weight: 600; }

.titre-bloc { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.note { margin: 0; font-size: 14px; color: var(--texte); }
.note.discret, .mesure { font-size: 13px; color: var(--discret); }
.mesure { margin: 0; text-align: center; }

/* Jour par jour — téléphone : 3 lignes par jour */
.jours { display: flex; flex-direction: column; }
.jour { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "nom ca ecart" "barre barre barre" "couverts couverts payroll"; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #F0E8DD; font-size: 15px; }
.jour.tete { display: none; }
.j-nom { grid-area: nom; font-weight: 700; } .j-ca { grid-area: ca; text-align: right; font-weight: 600; }
.j-ecart { grid-area: ecart; text-align: right; font-weight: 600; min-width: 72px; }
.j-couverts { grid-area: couverts; color: var(--texte); font-size: 14px; } .j-payroll { grid-area: payroll; text-align: right; font-size: 14px; }
.j-rien { grid-column: 2 / -1; color: var(--discret); font-weight: 400; font-size: 14px; }
.j-barre { grid-area: barre; position: relative; display: block; height: 18px; background: var(--fond); border-radius: 6px; }
.barre { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 6px; max-width: 100%; }
.barre.rouge { background: var(--alerte); }
.repere { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--encre); }
.jour.vide .j-nom { color: var(--discret); }

.jauge { position: relative; height: 10px; background: var(--fond); border-radius: 5px; margin: 4px 0; }
.jauge.fine { height: 8px; margin: 0; overflow: hidden; }
.ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.ligne > span:first-child { color: var(--texte); }
.pilier { display: flex; flex-direction: column; gap: 6px; }
.pilier .ligne > span:first-child { color: var(--encre); font-size: 14px; }

.action { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--trait); border-radius: 12px; align-items: center; }
.pastille { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px; background: var(--fond); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent-fonce); }

.colonnes, .etroit { display: flex; flex-direction: column; gap: 16px; }
.liste { display: flex; flex-direction: column; gap: 10px; }
.ligne-lien { flex-direction: row; justify-content: space-between; align-items: center; text-decoration: none; color: var(--encre); min-height: 56px; }

.formulaire { max-width: 420px; gap: 8px; }
.formulaire label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.formulaire input[type=email], .formulaire input[type=password] { min-height: 48px; padding: 0 12px; border: 1px solid #CDBFAE; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--encre); width: 100%; }
.formulaire .bouton { margin-top: 12px; }
.erreur { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FBEDE8; color: var(--alerte); font-weight: 600; font-size: 14px; }

.pied { margin-top: 8px; padding-bottom: env(safe-area-inset-bottom); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--discret); text-align: center; }
.pied form { display: flex; gap: 10px; align-items: center; }

@media (min-width: 760px) {
  h1 { font-size: 40px; }
  .page { padding: 36px 24px 56px; gap: 24px; }
  .carte { padding: 24px; } .verdict { padding: 24px 28px; } .verdict p { font-size: 22px; }
  .tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .tuile { padding: 20px; } .valeur { font-size: 34px; }
  .jour, .jour.tete { display: grid; grid-template-columns: 130px minmax(0, 1fr) 100px 100px 100px 110px; grid-template-areas: "nom barre ca ecart couverts payroll"; gap: 16px; }
  .jour.tete { padding: 0 0 10px; border-bottom: 1px solid var(--trait); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--discret); }
  .jour.tete span:nth-child(n+3) { text-align: right; }
  .j-couverts { text-align: right; font-size: 15px; color: var(--encre); } .j-couverts small { display: none; } .j-payroll { font-size: 15px; }
  .j-barre { height: 22px; } .j-rien { grid-column: 3 / -1; text-align: right; }
  .colonnes { flex-direction: row; align-items: flex-start; gap: 24px; }
  .large { flex: 999 1 560px; min-width: 0; } .etroit { flex: 1 1 340px; min-width: 0; gap: 24px; }
}
@media print { .bandeau-essai, .semaines, .pied form, .mesure { display: none; } body { background: #fff; } }

/* Menu commun (socle Django, 13/11/2026) : barre du haut + panneau, sans JavaScript (<details>). */
.barre { position: sticky; top: 0; z-index: 10; background: var(--encre); color: #FAF5EE; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); }
.marque { color: #FAF5EE; text-decoration: none; font-weight: 700; letter-spacing: .04em; min-height: 44px; display: inline-flex; align-items: center; }
.menu { position: relative; }
.menu > summary { list-style: none; min-width: 88px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--fond); }
.menu-panneau { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); background: var(--carte); color: var(--encre); border-radius: 14px; box-shadow: 0 12px 32px rgba(31, 29, 27, .25); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.menu-panneau ul { list-style: none; margin: 0; padding: 0; }
.menu-panneau li a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--encre); text-decoration: none; font-weight: 600; }
.menu-panneau li a:hover, .menu-panneau li a[aria-current="page"] { background: var(--fond); }
.menu-panneau li a[aria-current="page"] { color: var(--accent-fonce); }
.menu-groupe { padding: 10px 12px 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--discret); border-top: 1px solid var(--trait); margin-top: 4px; }
.menu-groupe small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.menu-panneau form { border-top: 1px solid var(--trait); margin-top: 4px; padding: 0 12px; }

/* Lot 4 (14/11/2026) : actions de la semaine — formulaires sans JavaScript, boutons ≥ 44 px. */
h3 { margin: 0; font-size: 16px; font-weight: 700; }
.succes { margin: 0; padding: 10px 12px; border-radius: 10px; background: #E7F0F2; color: var(--bien); font-weight: 600; font-size: 14px; }
.priorites { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.puce { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--fond); color: var(--accent-fonce); font-size: 13px; font-weight: 600; }
.reprise { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px dashed #CDBFAE; border-radius: 12px; background: #FBF8F3; }
.action { align-items: flex-start; }
.action-texte { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.action-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.etat { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--discret); }
.statut-faite .etat { color: var(--bien); }
.statut-faite strong { text-decoration: line-through; text-decoration-color: var(--discret); }
.statut-reportee, .statut-abandonnee { opacity: .7; }
.action-boutons { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.action-boutons form { margin: 0; }
.bouton.coche { background: var(--bien); border-color: var(--bien); color: #fff; }
.bouton.danger { color: var(--alerte); border-color: #E3B5A6; }
.plus > summary, .ajout > summary { list-style: none; }
.plus > summary::-webkit-details-marker, .ajout > summary::-webkit-details-marker { display: none; }
.plus-panneau { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ajout[open] > summary { margin-bottom: 8px; }
.large-form { max-width: none; }
.formulaire select, .formulaire textarea, .formulaire input[type=text], .formulaire input[type=date] { min-height: 48px; padding: 8px 12px; border: 1px solid #CDBFAE; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--encre); width: 100%; }
@media print { .action-boutons, .ajout, .reprise form { display: none; } }
/* Correction (lot 4) : la barre du menu (.barre, socle) recouvrait le style des barres de CA et des jauges. */
.j-barre > .barre, .jauge > .barre { position: absolute; top: 0; bottom: 0; left: 0; display: block; padding: 0; z-index: auto; background: var(--accent); }
.jauge > .barre.rouge { background: var(--alerte); }

/* Lot 5 (14/11/2026) : clôture du mois — une colonne sur téléphone, niveaux écrits en toutes lettres. */
.choix-mois { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.choix-mois label { font-size: 14px; font-weight: 600; }
.choix-mois select { flex: 1 1 180px; min-height: 44px; padding: 0 12px; border: 1px solid #CDBFAE; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--encre); }
.verdict p.suite { font-size: 16px; font-weight: 400; }
.tuiles.cinq .large-tuile { grid-column: 1 / -1; }
.niveau { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #303336; white-space: nowrap; }
.niv-tres_bon { background: #DCEFD8; } .niv-bon { background: #FFF1BF; } .niv-trop_haut { background: #FFDDBD; } .niv-pas_bon { background: #F6CECA; }
.matieres { display: flex; flex-direction: column; gap: 16px; }
.matiere, .mois-ligne { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--trait); border-radius: 12px; }
.mois-ligne { margin-top: 4px; }
.ligne.total { border-top: 1px solid var(--trait); padding-top: 6px; }
.ligne > .num { text-align: right; }
.compare { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 0; border-bottom: 1px solid #F0E8DD; font-size: 14px; align-items: baseline; }
.compare > :nth-child(n+2) { text-align: right; }
.compare.tete { font-size: 12px; font-weight: 700; color: var(--discret); text-transform: uppercase; letter-spacing: .06em; }
.bloc-saisie { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; }
.bloc-saisie legend { font-weight: 700; font-size: 16px; padding: 0; }
.cases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; }
.case { display: flex; flex-direction: column; gap: 2px; }
.formulaire input.invalide { border-color: var(--alerte); border-width: 2px; }
.graphe { display: flex; flex-direction: column; gap: 10px; }
.graphe-ligne { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.graphe-barres { display: flex; flex-direction: column; gap: 3px; }
.trait { display: block; height: 9px; border-radius: 4px; min-width: 2px; }
.trait.n, .legende.n { background: var(--accent); } .trait.n1, .legende.n1 { background: #B5ADA3; }
.legende { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
@media (min-width: 760px) {
  .tuiles.cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tuiles.cinq .large-tuile { grid-column: auto; }
  .tuiles.cinq .valeur { font-size: 28px; }
  .matieres { flex-direction: row; } .matiere { flex: 1 1 0; }
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare { font-size: 15px; }
}
@media print { .choix-mois, #saisie { display: none; } }

/* Lot 6 (14/11/2026) : Cockpit du jour. */
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.note.info { padding: 10px 12px; border-radius: 10px; background: #FBF3E4; color: var(--encre); }
.choix-mois input[type=date] { flex: 1 1 180px; min-height: 44px; padding: 0 12px; border: 1px solid #CDBFAE; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--encre); }
.moment-ligne { border: 1px solid var(--trait); border-radius: 12px; padding: 10px 12px 12px; margin: 0 0 8px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.moment-ligne.avec-payroll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.moment-ligne .c-moment, .moment-ligne .c-erreur { grid-column: 1 / -1; }
.formulaire input[inputmode] { min-width: 0; }
.coche { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 400; margin: 0; }
.coche input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--accent-fonce); }
.boutons-ligne { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.boutons-ligne .bouton { flex: 1 1 150px; margin-top: 0; }
.bouton[disabled] { opacity: .45; cursor: default; }
.tuiles.trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rubrique { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--trait); }
.rubrique:first-of-type { border-top: 0; padding-top: 0; }
.memo { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.ajout-ligne { display: flex; gap: 8px; align-items: center; }
.ajout-ligne input[type=text] { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #CDBFAE; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--encre); }
.achat { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--trait); }
.achat form { margin: 0; flex: 0 0 auto; }
.achat.fait strong { text-decoration: line-through; text-decoration-color: var(--discret); font-weight: 400; color: var(--discret); }
@media (min-width: 760px) {
  .moment-ligne, .moment-ligne.avec-payroll { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
  .moment-ligne:not(.avec-payroll) { grid-template-columns: 1.3fr repeat(2, minmax(0, 1fr)); }
  .moment-ligne .c-moment { grid-column: auto; }
  .tuiles.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print { #saisie form, .ajout-ligne, #signal, .achat form { display: none; } }
/* Lot 6 bis (15/11/2026) : Historique et Import de journées. */
.cases.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.formulaire input[type=file] { min-height: 48px; padding: 10px 0; font: inherit; font-size: 15px; max-width: 100%; }
.jour-memos { border-top: 1px solid var(--trait); padding: 10px 0; }
.jour-memos > summary { cursor: pointer; min-height: 44px; overflow-wrap: anywhere; }
ul.note { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.rubrique small, .ligne span { overflow-wrap: anywhere; }
.liens-bas { display: flex; flex-wrap: wrap; gap: 8px; }
/* Lot 7 (15/11/2026) : Grille Système 55 — score en 6 boutons (sans JavaScript), un formulaire par pilier. */
.grille-pilier { display: grid; grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "nom note" "barre barre"; gap: 4px 10px; font-size: 14px; }
.g-nom { grid-area: nom; overflow-wrap: anywhere; } .g-note { grid-area: note; text-align: right; font-weight: 700; }
.g-barre { grid-area: barre; display: block; height: 12px; background: var(--fond); border-radius: 6px; overflow: hidden; }
.g-plein { display: block; height: 100%; border-radius: 6px; }
.pilier-bloc { border-top: 1px solid var(--trait); padding: 10px 0; scroll-margin-top: 72px; }
.pilier-bloc > summary { cursor: pointer; min-height: 44px; overflow-wrap: anywhere; }
.pilier-bloc[open] > summary { margin-bottom: 8px; }
.base-ligne { border: 1px solid var(--trait); border-radius: 12px; padding: 10px 12px 12px; margin: 0 0 8px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.base-ligne legend { padding: 0 4px; overflow-wrap: anywhere; }
.score-choix { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.score-choix label { position: relative; margin: 0; }
.score-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.score-choix span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #CDBFAE; border-radius: 10px; background: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.score-choix input:checked + span { background: var(--encre); color: #FAF5EE; border-color: var(--encre); }
.score-choix input:focus-visible + span { outline: 2px solid var(--accent-fonce); outline-offset: 2px; }
.details-base > summary { cursor: pointer; min-height: 36px; color: var(--accent-fonce); font-weight: 600; }
.details-base textarea { width: 100%; box-sizing: border-box; min-height: 80px; padding: 8px 12px; border: 1px solid #CDBFAE; border-radius: 10px; font: inherit; font-size: 16px; }
@media print { .score-choix input:not(:checked) + span { display: none; } .pilier-bloc form button { display: none; } }
/* Lot 7 (15/11/2026) : Équipe & RH — une fiche par poste / employé, champs dans leur libellé. */
.fiche { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--trait); scroll-margin-top: 72px; }
.fiche .ligne strong, .fiche small { overflow-wrap: anywhere; }
.fiche.inactif { opacity: .7; }
.formulaire label > input, .formulaire label > select { display: block; margin-top: 4px; font-weight: 400; }
.cases.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .cases.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Lot 7 (15/11/2026) : Prévision — graphique SVG dessiné par le serveur (sans JavaScript), légendes sous le dessin. */
.verdict.perte { background: var(--alerte); }
.courbes { display: block; max-width: 100%; height: auto; }
.photo-fiche { display: block; max-width: 100%; height: auto; border-radius: 10px; }  /* lot 9 PR 3b : photo de la fiche technique */
.legendes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 13px; }
.legendes > span { display: inline-flex; align-items: center; gap: 6px; }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.legende.rond { border-radius: 50%; }
.cases.trois-saisie { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; align-items: end; }
/* Lot 8 (15/11/2026) : Analyse — constat payroll aux couleurs de Streamlit (succès / info / attention / erreur), tableaux repliables sous les graphiques. */
.message-success, .message-info, .message-warning, .message-error { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--encre); overflow-wrap: anywhere; }
.message-success { background: #E4F0EA; } .message-info { background: #FBF3E4; }
.message-warning { background: #FFE9D2; } .message-error { background: #F6CECA; }
.carte.avert { background: #FFF6E5; }
.evolution.alerte { color: var(--alerte); } .evolution.bien { color: var(--bien); } .evolution:not(.alerte):not(.bien) { color: var(--discret); }
.tableau-graphe > summary, details.carte > summary, .objectifs > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; overflow-wrap: anywhere; color: var(--encre); }
.tableau-graphe > summary { min-height: 36px; color: var(--accent-fonce); font-weight: 600; font-size: 14px; }
.tableau-graphe .ligne, .tableau-graphe .fiche { font-size: 14px; }
.tableau-graphe .ligne > .num { text-align: right; }
.carte .tuiles > .tuile { display: flex; flex-direction: column; padding: 8px 0; }
.semaines .bouton.plein { width: auto; }
/* Lot 8 PR 2 (15/11/2026) : objectifs du mois et commentaire du manager — après un enregistrement, le bloc n'est pas caché sous l'en-tête. */
#objectifs, #rapport-mensuel { scroll-margin-top: 72px; }
/* Lot 8 PR 3 (15/11/2026) : détail par service — une petite figure par service, CA par shift en tableau coloré (lisible à 390 px). */
#services { scroll-margin-top: 72px; }
#services h3 { margin: 14px 0 6px; font-size: 16px; }
.facette h4 { margin: 10px 0 2px; font-size: 14px; }
.carte-ca { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; font-size: 12px; }
.carte-ca th { font-weight: 600; color: var(--discret); text-align: left; overflow-wrap: anywhere; padding: 2px 4px; }
.carte-ca thead th { text-align: center; }
.carte-ca td { text-align: center; padding: 6px 2px; border-radius: 4px; font-weight: 700; white-space: nowrap; }
/* Lot 8 PR 4 (15/11/2026) : exports PDF / Excel — boutons côte à côte, repliés l'un sous l'autre à 390 px. */
#rapports { scroll-margin-top: 72px; }
.exports { display: flex; flex-wrap: wrap; gap: 8px; }
.exports > .bouton { flex: 1 1 150px; text-align: center; justify-content: center; overflow-wrap: anywhere; }
/* Lot 10 (18/11/2026) : SOP & documents — check-list cochable et procédure (Markdown rendu côté serveur). */
ul.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
ul.checklist .coche { align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--trait); overflow-wrap: anywhere; }
.markdown { font-size: 15px; overflow-wrap: anywhere; min-width: 0; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { font-size: 17px; margin: 12px 0 4px; }
.markdown ul, .markdown ol { padding-left: 22px; }
.markdown pre, .markdown table { display: block; max-width: 100%; overflow-x: auto; }
.markdown img { max-width: 100%; height: auto; }
.choix-mois input[type=search] { flex: 1 1 180px; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #CDBFAE; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--encre); }
.doc-sop { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 72px; }
.doc-sop h3, .doc-sop p { margin: 0; overflow-wrap: anywhere; }
.doc-sop .ligne { align-items: center; }
.doc-sop .ligne .bouton { margin-top: 0; flex: 0 0 auto; }
.markdown code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: #F4EDE3; padding: 0 4px; border-radius: 4px; }
.note.markdown p { margin: 0; }
.prefill { border: 1px dashed #CDBFAE; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.prefill summary { font-weight: 600; cursor: pointer; }
.choix-mode { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.choix-mode legend { font-size: 14px; font-weight: 600; padding: 0; }
/* Lot 11 (18/11/2026) : 🔑 Accès — titres de groupe de l'accueil, rôles de la grille en ligne (lisible à 390 px). */
.titre-section { font-size: 16px; margin: 12px 0 0; color: var(--encre); }
.roles-grille { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--texte); }
.fiche small { overflow-wrap: anywhere; }
/* Lot 11 PR 2 (18/11/2026) : une fiche par accès, dépliée pour changer ou retirer. */
details.fiche > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 4px; min-height: 44px; }
details.fiche > summary::-webkit-details-marker { display: none; }
details.fiche[open] > summary { padding-bottom: 6px; }
details.fiche .formulaire { margin-top: 8px; }
#liste, #donner { scroll-margin-top: 72px; }
.fiche .ligne > .num.fort { white-space: nowrap; flex-shrink: 0; }
/* Lot 12 (21/11/2026) : trace d'erreur / message technique, sans défilement horizontal de la page. */
pre.trace { margin: 0; padding: 10px; border-radius: 10px; background: #F4F1EC; font-size: 12px; line-height: 1.35;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow-y: auto; }
/* Lot 12 : textes techniques sans espace (révision, message d'erreur, e-mail) : coupés plutôt que débordants. */
.casse { overflow-wrap: anywhere; min-width: 0; }
.valeur.casse { font-size: 18px; }
pre.trace.mdp { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; user-select: all; }
