/* GARANTISS — Suivi Membre (phase 2) — PF-DESIGN, 17/11/2026
   Charte : orange #FF7100, noir, blanc, police Poppins (hébergée avec l'application).
   Règles du fondateur : très simple, texte 16 px minimum, actions 18 px,
   gros boutons (48 px de haut au moins), une couleur toujours accompagnée d'un mot. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("polices/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("polices/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("polices/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --orange: #FF7100;
  --orange-fonce: #C25400;   /* texte orange lisible sur blanc (contraste AA) */
  --orange-clair: #FFF1E6;
  --noir: #111111;
  --gris-texte: #4A4A4A;
  --gris-ligne: #DADADA;
  --fond: #F6F6F6;
  --blanc: #FFFFFF;
  --vert: #1E7B34;   --vert-clair: #E3F4E7;
  --ambre: #B45309;  --ambre-clair: #FEF0D9;
  --rouge: #B91C1C;  --rouge-clair: #FDE4E4;
  --gris: #555F6D;   --gris-clair: #ECEEF1;
  --rayon: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--noir);
  font-family: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.5;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
a { color: var(--orange-fonce); }
:focus-visible { outline: 3px solid var(--noir); outline-offset: 2px; }

/* Bandeau permanent « Version d'essai » */
.bandeau-essai {
  position: sticky; top: 0; z-index: 50;
  background: var(--noir); color: var(--blanc);
  text-align: center; font-weight: 600; font-size: 16px; padding: 8px 12px;
}
.bandeau-essai span { color: var(--orange); }

/* En-tête */
.entete { background: var(--blanc); border-bottom: 4px solid var(--orange); }
.entete .dedans { max-width: 720px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { width: 40px; height: 38px; flex: none; }
.entete .titre { font-weight: 700; font-size: 20px; line-height: 1.2; }
.entete .sous-titre { font-size: 16px; color: var(--gris-texte); }

main { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; }

h1 { font-size: 26px; line-height: 1.25; margin: 4px 0 6px; }
h2 { font-size: 21px; margin: 22px 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.aide { font-size: 16px; color: var(--gris-texte); margin: 0 0 16px; }
.aide-bas { font-size: 16px; color: var(--gris-texte); margin: 26px 0 0; padding: 12px 14px; background: var(--blanc); border-radius: var(--rayon); border-left: 6px solid var(--orange); }

/* Cartes */
.carte { background: var(--blanc); border-radius: var(--rayon); padding: 16px; margin: 0 0 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.carte .ligne-haut { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.nom-membre { font-size: 20px; font-weight: 700; line-height: 1.25; }
.code { font-size: 16px; color: var(--gris-texte); }
.raison { font-size: 18px; font-weight: 600; margin: 8px 0 2px; }
.detail { font-size: 16px; color: var(--gris-texte); margin: 0 0 12px; }
.urgent { color: var(--rouge); font-weight: 700; }

/* Boutons */
.bouton {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 12px 18px;
  border: 0; border-radius: var(--rayon); cursor: pointer;
  font-size: 19px; font-weight: 700; text-decoration: none;
  background: var(--orange); color: var(--noir);
}
.bouton:active { transform: scale(.99); }
.bouton[disabled] { opacity: .5; cursor: wait; }
.bouton svg { width: 26px; height: 26px; flex: none; }
.bouton.secondaire { background: var(--blanc); color: var(--noir); border: 2px solid var(--noir); font-weight: 600; font-size: 18px; min-height: 52px; }
.bouton.discret { background: transparent; color: var(--orange-fonce); text-decoration: underline; font-weight: 600; font-size: 18px; min-height: 48px; }
.bouton + .bouton { margin-top: 10px; }
.barre-action { position: fixed; left: 0; right: 0; bottom: 74px; padding: 10px 16px; background: linear-gradient(transparent, var(--fond) 30%); z-index: 20; }
.barre-action .bouton { max-width: 688px; margin: 0 auto; box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* Menu du bas (4 entrées) */
.menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--blanc); border-top: 1px solid var(--gris-ligne); }
.menu ul { list-style: none; margin: 0 auto; padding: 0; display: flex; max-width: 720px; }
.menu li { flex: 1; }
.menu button { width: 100%; min-height: 72px; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 16px; font-weight: 600; color: var(--gris-texte); padding: 6px 2px; }
.menu button svg { width: 28px; height: 28px; }
.menu button[aria-current="page"] { color: var(--noir); box-shadow: inset 0 4px 0 var(--orange); }
.menu button[aria-current="page"] svg { color: var(--orange); }

/* Couleurs du membre : toujours avec un mot */
.etiquette { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 12px 4px 8px; font-size: 16px; font-weight: 700; white-space: nowrap; border: 2px solid currentColor; }
.etiquette .rond { width: 16px; height: 16px; border-radius: 50%; background: currentColor; flex: none; }
.c-vert   { color: var(--vert);  background: var(--vert-clair); }
.c-orange { color: var(--ambre); background: var(--ambre-clair); }
.c-rouge  { color: var(--rouge); background: var(--rouge-clair); }
.c-gris   { color: var(--gris);  background: var(--gris-clair); }

/* Formulaires */
label.champ, .question { display: block; font-size: 18px; font-weight: 600; margin: 18px 0 8px; }
.question .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--noir); color: var(--blanc); align-items: center; justify-content: center; font-size: 16px; margin-right: 8px; }
input[type=email], input[type=number], input[type=password], input[type=text], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 56px; padding: 12px 14px; font-size: 18px;
  border: 2px solid #9A9A9A; border-radius: var(--rayon); background: var(--blanc);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px var(--orange-clair); }
.code-6 { font-size: 34px !important; letter-spacing: 12px; text-align: center; font-weight: 700; }

/* Choix à toucher */
.choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choix.deux { grid-template-columns: 1fr 1fr; }
.choix button {
  min-height: 58px; padding: 10px; border-radius: var(--rayon); cursor: pointer;
  border: 2px solid #9A9A9A; background: var(--blanc); font-size: 17px; font-weight: 600; line-height: 1.25;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.choix button svg { width: 24px; height: 24px; flex: none; }
.choix button[aria-pressed="true"] { border-color: var(--noir); background: var(--orange); color: var(--noir); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.suggestions button { border: 1px dashed var(--orange-fonce); background: var(--orange-clair); border-radius: 999px; padding: 8px 14px; font-size: 16px; cursor: pointer; min-height: 44px; text-align: left; }
.bloc-plus { border-left: 4px solid var(--orange); padding: 4px 0 4px 14px; margin-top: 10px; }

/* Messages */
.message { border-radius: var(--rayon); padding: 14px 16px; margin: 12px 0; font-size: 17px; display: flex; gap: 12px; align-items: flex-start; }
.message svg { width: 28px; height: 28px; flex: none; }
.message.erreur { background: var(--rouge-clair); color: #7F1D1D; border: 2px solid var(--rouge); }
.message.succes { background: var(--vert-clair); color: #14532D; border: 2px solid var(--vert); font-weight: 600; }
.message.info { background: var(--orange-clair); color: var(--noir); border: 2px solid var(--orange); }

.bravo { text-align: center; padding: 24px 12px; }
.bravo svg { width: 96px; height: 96px; color: var(--vert); }
.bravo .gros { font-size: 24px; font-weight: 700; margin: 8px 0; }

/* Fiche membre */
.infos { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 10px 0 0; }
.infos div { font-size: 17px; }
.infos b { font-weight: 600; }
details.section { background: var(--blanc); border-radius: var(--rayon); margin: 0 0 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
details.section > summary { cursor: pointer; padding: 16px; font-size: 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 58px; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::after { content: "+"; font-size: 28px; color: var(--orange-fonce); }
details.section[open] > summary::after { content: "–"; }
details.section .contenu { padding: 0 16px 16px; }
.contact { border-top: 1px solid var(--gris-ligne); padding: 12px 0; }
.contact:first-child { border-top: 0; }
.contact .quand { font-size: 16px; color: var(--gris-texte); }
.contact .quoi { font-size: 17px; margin: 4px 0; }
.relationnelle { border: 2px dashed var(--orange); }
.cadenas { font-size: 16px; color: var(--gris-texte); display: flex; gap: 8px; align-items: center; }
.cadenas svg { width: 20px; height: 20px; }

/* Tri du lundi */
.groupe { margin: 0 0 16px; }
.groupe h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.groupe .explication { font-size: 16px; color: var(--gris-texte); margin: -4px 0 10px; }
.liste-membres button { width: 100%; text-align: left; background: var(--blanc); border: 0; border-radius: var(--rayon); padding: 14px 16px; margin: 0 0 8px; cursor: pointer; min-height: 58px; box-shadow: 0 1px 3px rgba(0,0,0,.08); font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.liste-membres .pourquoi { display: block; font-size: 16px; color: var(--gris-texte); font-weight: 400; }
.liste-membres .fleche { font-size: 26px; color: var(--orange-fonce); }

/* Tableau de bord */
.tuiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .tuiles { grid-template-columns: 1fr 1fr; } }
.tuile { background: var(--blanc); border-radius: var(--rayon); padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-top: 6px solid var(--gris-ligne); }
.tuile.bien { border-top-color: var(--vert); }
.tuile.ameliorer { border-top-color: var(--ambre); }
.tuile .chiffre { font-size: 36px; font-weight: 700; line-height: 1.1; margin: 6px 0; }
.tuile .verdict { font-weight: 700; font-size: 17px; }
.tuile.bien .verdict { color: var(--vert); }
.tuile.ameliorer .verdict { color: var(--ambre); }
.tuile p { margin: 4px 0 0; font-size: 16px; color: var(--gris-texte); }

/* Double authentification : étapes illustrées */
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: e; }
.etapes li { background: var(--blanc); border-radius: var(--rayon); padding: 14px; margin: 0 0 12px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.etapes li .dessin svg { width: 84px; height: 84px; }
.etapes li .texte { font-size: 17px; }
.etapes li .texte b { display: block; font-size: 18px; margin-bottom: 2px; }
.qr { display: block; width: 220px; height: 220px; margin: 8px auto; background: var(--blanc); padding: 8px; border: 2px solid var(--noir); border-radius: 8px; }
.cle { font-family: "Courier New", monospace; font-size: 20px; font-weight: 700; letter-spacing: 2px; background: var(--fond); padding: 10px; border-radius: 8px; word-break: break-all; text-align: center; }

.selecteur { background: var(--blanc); border-radius: var(--rayon); padding: 12px 16px; margin: 0 0 14px; }
.lecture-seule { font-size: 16px; color: var(--gris-texte); }
.cache { display: none !important; }
.centre { text-align: center; }
.chargement { text-align: center; padding: 40px 0; font-size: 18px; color: var(--gris-texte); }

/* Classes utilitaires (aucun style en ligne : la CSP les interdit) */
.ligne-feu { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; }
.ligne-feu .nombre { font-size: 22px; }
.enligne { display: inline !important; font-size: inherit !important; }
.bouton.gauche { justify-content: flex-start; }
.sans-marge { margin: 0 !important; }
.serre { margin: 6px 0 0 !important; }
details.section.espace { margin-top: 20px; }

/* Équipe (Direction) */
.carte-bouton { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; }
.carte-bouton .nom-membre, .carte-bouton .detail { display: block; }
.carte-bouton .detail { margin: 2px 0 10px; }
h2.groupe { font-size: 18px; margin: 22px 0 10px; color: var(--gris-texte); }
.espace-haut { margin-top: 12px; }

/* Tableaux de bord */
.titre-section { font-size: 19px; margin: 0 0 6px; }
.indicateur { padding: 12px 0; border-top: 1px solid var(--gris-ligne); }
.indicateur:first-of-type { border-top: 0; }
.ind-haut { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ind-valeur { font-size: 24px; font-weight: 700; }
.ind-mot { font-size: 17px; font-weight: 600; margin-top: 2px; }
.indicateur .detail { margin: 2px 0 0; }
.ligne-conseiller { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--gris-ligne); background: transparent; padding: 12px 0; min-height: 56px; cursor: pointer; font: inherit; color: inherit; }
.ligne-conseiller .nom { display: block; font-weight: 700; font-size: 17px; }
.ligne-conseiller .chiffres { display: block; font-size: 16px; color: var(--gris-texte); }

/* Accueil */
.accueil { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .accueil { grid-template-columns: 1fr 1fr; } }
.tuile-accueil { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--blanc); border: 0; border-left: 6px solid var(--orange);
  border-radius: var(--rayon); padding: 16px; min-height: 84px; box-shadow: 0 1px 3px rgba(0,0,0,.1); cursor: pointer; font: inherit; color: inherit; position: relative; }
.tuile-accueil:active { transform: scale(.99); }
.ta-icone { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--orange-clair); color: var(--orange-fonce); display: flex; align-items: center; justify-content: center; }
.ta-icone svg { width: 30px; height: 30px; }
.ta-texte { display: block; flex: 1; }
.ta-titre { display: block; font-size: 19px; font-weight: 700; }
.ta-detail { display: block; font-size: 16px; color: var(--gris-texte); }
.ta-badge { flex: none; background: var(--rouge); color: var(--blanc); font-weight: 700; font-size: 16px; border-radius: 999px; padding: 4px 10px; }

/* Caisse et comptabilité */
.ligne-somme { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 17px; border-bottom: 1px dashed var(--gris-ligne); }
.ligne-somme span:last-child { font-weight: 600; text-align: right; white-space: nowrap; }
.ligne-somme.fort { font-size: 19px; font-weight: 700; border-bottom: 0; border-top: 2px solid var(--noir); margin-top: 4px; }
.ligne-somme.fort span:last-child { font-weight: 700; }
.tableau-defile { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: 16px; }
.table th, .table td { border-bottom: 1px solid var(--gris-ligne); padding: 8px 6px; text-align: left; vertical-align: top; }
.table th { background: var(--fond); font-weight: 600; }
.table td.nb { text-align: right; white-space: nowrap; }
.recu-haut { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.recu-haut .logo { width: 44px; height: 44px; }
.bouton.secondaire + .bouton.secondaire, .bouton + .bouton.secondaire { margin-top: 10px; }
@media print {
  .menu, .entete, .bandeau-essai, .non-imprime, .aide-bas { display: none !important; }
  body { background: #fff; }
  .carte.recu { box-shadow: none; border: 1px solid #000; }
}

/* ===== Tableau de bord de la Direction (atelier KPI du 18/11/2026) ===== */
main.large { max-width: 1180px; }
.pilotage { --serie: #2a78d6; --serie-zone: rgba(42,120,214,.10); --bon: #0ca30c; --moyen: #fab219; --mauvais: #d03b3b; --neutre: #898781;
  --grille: #e1e0d9; --axe: #898781; --encre: #0b0b0b; --encre-2: #52514e; --surface: #fcfcfb; }
.pil-entete { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; justify-content: space-between; }
.pil-entete h1 { margin-bottom: 2px; }
.puce-agrement { display: inline-flex; align-items: center; gap: 6px; background: var(--blanc); border: 1px solid var(--gris-ligne); border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 600; }
.puce-agrement .kt-signe { color: var(--serie); }
.pil-resume { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.pil-resume .pr { display: inline-flex; align-items: center; gap: 6px; background: var(--blanc); border-radius: 999px; padding: 6px 12px; font-size: 16px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pil-resume .pr .kt-signe { width: 20px; height: 20px; }
.pr.k-bon .kt-signe { color: var(--bon); } .pr.k-moyen .kt-signe { color: #b07a00; } .pr.k-mauvais .kt-signe { color: var(--mauvais); }

.kpi-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .kpi-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kpi-grille { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kpi-tuile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: var(--blanc); border: 0; border-top: 6px solid var(--neutre);
  border-radius: 12px; padding: 12px 12px 14px; min-height: 150px; box-shadow: 0 1px 3px rgba(0,0,0,.1); cursor: pointer; font: inherit; color: var(--encre); }
.kpi-tuile.ouvert { outline: 3px solid var(--noir); outline-offset: 1px; }
.kpi-tuile.k-bon { border-top-color: var(--bon); } .kpi-tuile.k-moyen { border-top-color: var(--moyen); } .kpi-tuile.k-mauvais { border-top-color: var(--mauvais); } .kpi-tuile.k-info { border-top-color: var(--serie); }
.kt-titre { font-size: 16px; font-weight: 600; color: var(--encre-2); line-height: 1.25; }
.kt-valeur { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
@media (min-width: 1100px) { .kt-valeur { font-size: 32px; } }
.kt-unite { font-size: 17px; font-weight: 600; color: var(--encre-2); letter-spacing: 0; }
.kt-etat { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 600; }
.kt-signe { width: 20px; height: 20px; flex: none; }
.k-bon .kt-etat .kt-signe { color: var(--bon); } .k-moyen .kt-etat .kt-signe { color: #b07a00; } .k-mauvais .kt-etat .kt-signe { color: var(--mauvais); } .k-info .kt-etat .kt-signe { color: var(--serie); }
.kt-tendance { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; color: var(--encre-2); }
.kt-tendance svg { width: 20px; height: 20px; flex: none; }
.td-bien svg { color: #006300; } .td-mal svg { color: var(--mauvais); } .td-neutre svg { color: var(--neutre); }
.kt-cible { font-size: 16px; color: var(--encre-2); margin-top: auto; }

.kpi-detail { margin-top: 12px; border-left: 6px solid var(--serie); }
.kpi-detail.k-bon { border-left-color: var(--bon); } .kpi-detail.k-moyen { border-left-color: var(--moyen); } .kpi-detail.k-mauvais { border-left-color: var(--mauvais); }
.kpi-detail .ligne-haut .bouton { width: auto; }

.pil-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
@media (min-width: 900px) { .pil-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pil-grille .large { grid-column: 1 / -1; } }
.pil-grille .carte { margin: 0; }
.graphe { width: 100%; height: auto; display: block; }
.g-grille { stroke: var(--grille); stroke-width: 1; }
.g-axe { fill: var(--axe); font-size: 16px; font-family: inherit; }
.g-valeur { fill: var(--encre); font-size: 16px; font-weight: 700; font-family: inherit; }
.g-ligne { fill: none; stroke: var(--serie); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-zone { fill: var(--serie-zone); }
.g-point .g-marque { fill: var(--serie); stroke: var(--surface); stroke-width: 2; }
.g-barre .g-marque, .barre-simple .g-marque { fill: var(--serie); }
.g-cible { fill: transparent; }
.g-point:hover .g-marque { r: 6; } .g-barre:hover .g-marque { opacity: .8; }
.jauge { margin: 10px 0 14px; }
.jg-haut, .jg-bas { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.jg-titre { font-weight: 600; } .jg-valeur { font-weight: 600; white-space: nowrap; }
.jg-bas { color: var(--encre-2); }
.jg-barre { width: 100%; height: 14px; display: block; margin: 6px 0 4px; }
.jg-barre.k-bon .jg-piste { fill: #cfeccf; } .jg-barre.k-bon .jg-rempli { fill: var(--bon); }
.jg-barre.k-moyen .jg-piste { fill: #fdebc0; } .jg-barre.k-moyen .jg-rempli { fill: var(--moyen); }
.jg-barre.k-mauvais .jg-piste { fill: #f6d4d4; } .jg-barre.k-mauvais .jg-rempli { fill: var(--mauvais); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 16px; color: var(--encre-2); margin: 4px 0 10px; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.lg.rond { border-radius: 50%; }
.lg.k-bon, rect.k-bon, circle.k-bon, .pastille.k-bon { background: var(--bon); fill: var(--bon); }
.lg.k-moyen, rect.k-moyen, circle.k-moyen, .pastille.k-moyen { background: var(--moyen); fill: var(--moyen); }
.lg.k-mauvais, rect.k-mauvais, circle.k-mauvais, .pastille.k-mauvais { background: var(--mauvais); fill: var(--mauvais); }
.lg.k-gris, rect.k-gris { background: #c3c2b7; fill: #c3c2b7; }
.ligne-barre { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 8px 0; font-size: 16px; }
.lb-nom { font-weight: 600; } .lb-valeur { color: var(--encre-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.barre-empilee { width: 100%; height: 24px; display: block; } .barre-simple { width: 100%; height: 18px; display: block; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.plan-titre { font-size: 17px; margin: 4px 0 6px; }
.plan { width: 100%; height: auto; display: block; }
.plan-fond { fill: #f4f3ef; }
.plan-fleuve { fill: none; stroke: #b7d3f6; stroke-width: 14; stroke-linecap: round; }
.plan-point circle { stroke: var(--surface); stroke-width: 2; fill-opacity: .85; }
.plan-point:hover circle { fill-opacity: 1; }
.plan-nom { fill: var(--encre); font-size: 16px; font-weight: 600; font-family: inherit; paint-order: stroke; stroke: #f4f3ef; stroke-width: 3px; }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
main:focus { outline: none; }
.jg-barre.k-info .jg-piste { fill: #cde2fb; } .jg-barre.k-info .jg-rempli { fill: #2a78d6; }

/* =====================================================================
   CHARTE « DOUX » (18/11/2026) — demande du fondateur : « trop brut, trop
   gros partout ; il faut que ce soit doux, comme les produits Apple ».
   Source : PLATEFORME/11_Charte_design_doux.md. Cette couche remplace
   l'apparence ci-dessus sans toucher au fonctionnement.
   ===================================================================== */
:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --fill: #F2F2F5; --fg: #1D1D1F; --muted: #6E6E73; --faint: #AEAEB2; --line: rgba(60,60,67,.12);
  --accent: #FF7100; --accent-ink: #C25700; --accent-soft: rgba(255,113,0,.10);
  --ok: #248A3D; --ok-soft: rgba(52,199,89,.12); --warn: #A05A00; --warn-soft: rgba(255,159,10,.14); --bad: #C4302B; --bad-soft: rgba(255,59,48,.10);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.05); --glass: rgba(255,255,255,.72);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --brand: "Poppins", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --r-card: 18px; --r-ctl: 10px;
  /* anciens noms, ré-alignés */
  --fond: var(--bg); --blanc: var(--surface); --noir: var(--fg); --gris-texte: var(--muted); --gris-ligne: var(--line);
  --orange-fonce: var(--accent-ink); --orange-clair: var(--accent-soft); --rayon: var(--r-card);
  --vert: var(--ok); --vert-clair: var(--ok-soft); --ambre: var(--warn); --ambre-clair: var(--warn-soft); --rouge: var(--bad); --rouge-clair: var(--bad-soft);
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #000000; --surface: #1C1C1E; --fill: #2C2C2E; --fg: #F5F5F7; --muted: #98989D; --faint: #636366; --line: rgba(84,84,88,.45);
  --accent: #FF8A2B; --accent-ink: #FF9F4D; --accent-soft: rgba(255,138,43,.16);
  --ok: #30D158; --ok-soft: rgba(48,209,88,.16); --warn: #FFB340; --warn-soft: rgba(255,179,64,.16); --bad: #FF6961; --bad-soft: rgba(255,69,58,.16);
  --shadow: none; --glass: rgba(28,28,30,.72); color-scheme: dark; } }

body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.47; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent-ink); }

/* Bandeau d'essai : une petite pastille, plus de grand bandeau noir */
.bandeau-essai { position: fixed; top: max(8px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  color: var(--muted); font-size: 12px; font-weight: 500; padding: 4px 10px 4px 8px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
.bandeau-essai::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.bandeau-essai span { color: var(--muted); }

/* En-tête en verre dépoli, fin */
.entete { position: sticky; top: 0; z-index: 40; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--line); }
.entete .dedans { padding: 34px 16px 10px; gap: 10px; }
.logo { width: 26px; height: 25px; }
.entete .titre { font-family: var(--brand); font-weight: 600; font-size: 17px; }
.entete .sous-titre { font-size: 13px; color: var(--muted); }

main { padding: 18px 16px 110px; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 600; }
.aide { font-size: 15px; color: var(--muted); }
.aide-bas { font-size: 13px; color: var(--muted); background: transparent; border: 0; padding: 8px 4px; }

/* Cartes : blanches, sans bordure, coins 18 px, ombre presque invisible */
.carte, details.section, .liste-membres button, .tuile, .etapes li, .selecteur, .tuile-accueil, .kpi-tuile {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); border: 0; }
.nom-membre { font-size: 17px; font-weight: 600; }
.code, .detail, .lecture-seule, .cadenas, .contact .quand { font-size: 13px; color: var(--muted); }
.raison { font-size: 15px; font-weight: 600; }
.titre-section { font-size: 17px; font-weight: 600; }
h2.groupe, .groupe .explication { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Boutons */
.bouton { min-height: 48px; border-radius: 12px; font-size: 17px; font-weight: 600; background: var(--accent); color: #fff; box-shadow: none; }
.bouton svg { width: 20px; height: 20px; }
.bouton.secondaire { background: var(--fill); color: var(--fg); border: 0; font-size: 17px; font-weight: 500; min-height: 46px; }
.bouton.discret { color: var(--accent-ink); text-decoration: none; font-size: 15px; font-weight: 500; min-height: 44px; }
.barre-action { bottom: 64px; background: linear-gradient(transparent, var(--bg) 40%); }
.barre-action .bouton { box-shadow: 0 6px 20px rgba(255,113,0,.25); }

/* Menu du bas : verre dépoli, onglet actif sur fond orange très pâle */
.menu { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.menu ul { padding: 4px 6px; gap: 2px; }
.menu button { min-height: 56px; font-size: 11px; font-weight: 500; color: var(--muted); border-radius: 12px; gap: 3px; }
.menu button svg { width: 24px; height: 24px; }
.menu button[aria-current="page"] { color: var(--accent-ink); box-shadow: none; background: var(--accent-soft); }
.menu button[aria-current="page"] svg { color: var(--accent); }

/* Étiquettes et messages : pastilles douces */
.etiquette { border: 0; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 8px; gap: 6px; }
.etiquette .rond { width: 8px; height: 8px; }
.c-vert { color: var(--ok); background: var(--ok-soft); } .c-orange { color: var(--warn); background: var(--warn-soft); }
.c-rouge { color: var(--bad); background: var(--bad-soft); } .c-gris { color: var(--muted); background: var(--fill); }
.message { border: 0 !important; border-radius: 14px; font-size: 15px; padding: 12px 14px; }
.message svg { width: 20px; height: 20px; }
.message.erreur { background: var(--bad-soft); color: var(--bad); }
.message.succes { background: var(--ok-soft); color: var(--ok); font-weight: 500; }
.message.info { background: var(--accent-soft); color: var(--fg); }

/* Formulaires : champs remplis gris clair, sans bordure */
label.champ, .question { font-size: 13px; font-weight: 500; color: var(--muted); margin: 16px 0 6px; }
input[type=email], input[type=number], input[type=password], input[type=text], input[type=date], input[type=time], select, textarea {
  min-height: 44px; font-size: 17px; border: 0; border-radius: var(--r-ctl); background: var(--fill); padding: 10px 12px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.code-6 { font-size: 28px !important; font-weight: 600; letter-spacing: 10px; }
.choix button { min-height: 44px; border: 0; background: var(--fill); font-size: 15px; font-weight: 500; border-radius: var(--r-ctl); }
.choix button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12), inset 0 0 0 2px var(--accent); }
.suggestions button { border: 0; background: var(--fill); font-size: 13px; min-height: 44px; }
.bloc-plus { border-left: 2px solid var(--accent-soft); }

/* Repliables, listes, tuiles */
details.section > summary { font-size: 15px; font-weight: 600; min-height: 50px; }
details.section > summary::after { font-size: 22px; color: var(--faint); font-weight: 300; }
.liste-membres button { font-size: 15px; min-height: 52px; }
.liste-membres .pourquoi { font-size: 13px; color: var(--muted); }
.liste-membres .fleche { color: var(--faint); font-size: 20px; }
.tuile { border-top: 0; } .tuile .chiffre { font-size: 28px; font-weight: 600; } .tuile .verdict { font-size: 13px; font-weight: 600; } .tuile p { font-size: 13px; }
.ind-valeur { font-size: 22px; font-weight: 600; } .ind-mot { font-size: 13px; }
.indicateur, .ligne-conseiller, .contact { border-top: .5px solid var(--line); }
.ligne-conseiller .nom { font-size: 15px; font-weight: 600; } .ligne-conseiller .chiffres { font-size: 13px; color: var(--muted); }
.infos div { font-size: 15px; }
.chargement { font-size: 15px; color: var(--faint); }

/* Accueil : cartes douces, l'orange seulement dans l'icône */
.accueil { gap: 10px; }
.tuile-accueil { border-left: 0; min-height: 72px; padding: 14px 16px; gap: 14px; }
.ta-icone { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.ta-icone svg { width: 22px; height: 22px; }
.ta-titre { font-size: 17px; font-weight: 600; }
.ta-detail { font-size: 13px; color: var(--muted); }
.ta-badge { background: var(--bad-soft); color: var(--bad); font-size: 12px; font-weight: 600; padding: 3px 9px; }
.tuile-accueil::after { content: "›"; color: var(--faint); font-size: 22px; margin-left: 4px; }

/* Sommes et tableaux légers */
.ligne-somme { font-size: 15px; border-bottom: .5px solid var(--line); }
.ligne-somme span:first-child { color: var(--muted); }
.ligne-somme span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; }
.ligne-somme.fort { font-size: 17px; font-weight: 600; border-top: .5px solid var(--line); }
.ligne-somme.fort span:first-child { color: var(--fg); }
.table { font-size: 13px; }
.table th { background: transparent; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table th, .table td { border-bottom: .5px solid var(--line); }
.table td.nb { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Tableau de bord de la Direction */
.pilotage { --serie: #2a78d6; --grille: var(--line); --axe: var(--faint); --encre: var(--fg); --encre-2: var(--muted); }
.puce-agrement, .pil-resume .pr { border: 0; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; padding: 6px 12px; }
.puce-agrement .kt-signe, .pil-resume .pr .kt-signe { width: 16px; height: 16px; }
.kpi-tuile { border-top: 0; padding: 14px 14px 14px; min-height: 132px; gap: 3px; position: relative; }
.kpi-tuile::before { content: ""; position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.kpi-tuile.k-bon::before { background: var(--ok); } .kpi-tuile.k-moyen::before { background: #FF9F0A; } .kpi-tuile.k-mauvais::before { background: var(--bad); } .kpi-tuile.k-info::before { background: var(--serie); }
.kpi-tuile.ouvert { outline: 2px solid var(--accent); outline-offset: 0; }
.kt-titre { font-size: 12px; font-weight: 500; color: var(--muted); padding-right: 14px; }
.kt-valeur { font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--fg); }
@media (min-width: 1100px) { .kt-valeur { font-size: 28px; } }
.kt-unite { font-size: 13px; font-weight: 500; color: var(--muted); }
.kt-etat { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px 2px 4px; }
.kt-etat .kt-signe { width: 14px; height: 14px; }
.k-bon .kt-etat { background: var(--ok-soft); color: var(--ok); } .k-moyen .kt-etat { background: var(--warn-soft); color: var(--warn); }
.k-mauvais .kt-etat { background: var(--bad-soft); color: var(--bad); } .k-info .kt-etat { background: var(--fill); color: var(--muted); }
.k-bon .kt-etat .kt-signe, .k-moyen .kt-etat .kt-signe, .k-mauvais .kt-etat .kt-signe, .k-info .kt-etat .kt-signe { color: currentColor; }
.kt-tendance { font-size: 12px; color: var(--muted); } .kt-tendance svg { width: 14px; height: 14px; }
.kt-cible { font-size: 12px; color: var(--faint); }
.kpi-detail { border-left: 0; }
.g-axe { font-size: 12px; } .g-valeur { font-size: 12px; font-weight: 600; } .plan-nom { font-size: 12px; font-weight: 500; }
.plan-fond { fill: var(--fill); } .plan-nom { stroke: var(--fill); }
.jg-haut, .jg-bas { font-size: 13px; } .jg-titre { font-weight: 500; } .jg-bas { color: var(--muted); }
.legende, .ligne-barre { font-size: 13px; } .lb-nom { font-weight: 500; }
.lg.k-moyen, rect.k-moyen, circle.k-moyen, .pastille.k-moyen { background: #FF9F0A; fill: #FF9F0A; }
.lg.k-bon, rect.k-bon, circle.k-bon, .pastille.k-bon { background: #34C759; fill: #34C759; }
.lg.k-mauvais, rect.k-mauvais, circle.k-mauvais, .pastille.k-mauvais { background: #FF453A; fill: #FF453A; }
.recu-haut .logo { width: 32px; height: 31px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
* { transition-duration: .2s; }

/* Pièces justificatives et lecture par l'IA (18/11/2026) */
.piece .ligne-haut { align-items: flex-start; }
.ia-lu { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fill); }
.ia-details { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.ia-details li { margin: 2px 0; }
.boutons-piece { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.boutons-piece .bouton { width: auto; margin: 0; }
.depot-piece { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--fill); }
.depot-piece input[type=file] { font-size: 14px; padding: 10px 0; }

/* Onglets du suivi (18/11/2026) */
.onglets { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets button { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--fill); color: var(--fg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.onglets button.actif { background: var(--fg); color: var(--surface); }
.onglets .cpt { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; }

/* 18/11 : clavier de chiffres mélangé, raccourcis discrets de la Direction, départements */
.pin { margin: 14px 0 6px; }
.points { display: flex; justify-content: center; gap: 10px; margin: 8px 0 14px; }
.pt { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gris); background: transparent; }
.pt.plein { background: var(--noir); border-color: var(--noir); }
.clavier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.touche { min-height: 58px; font-size: 24px; font-weight: 600; border-radius: 12px; border: 1px solid var(--gris-ligne); background: var(--blanc); color: var(--noir); cursor: pointer; }
.touche:active { background: var(--orange-clair); }
.touche:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.touche-fn { font-size: 20px; color: var(--gris-texte); background: var(--fond); }
.raccourcis { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--gris-ligne); }
.raccourcis .titre-section { font-size: 14px; color: var(--gris-texte); font-weight: 600; margin: 0 0 8px; }
.rc-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.rc { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 44px; border-radius: 999px; border: 1px solid var(--gris-ligne); background: var(--blanc); color: var(--gris-texte); font-size: 14px; cursor: pointer; }
.rc svg { width: 16px; height: 16px; }
.rc:hover { border-color: var(--orange); color: var(--noir); }
.dep summary { display: flex; align-items: center; justify-content: space-between; }
.cpt-dep { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--gris-clair); color: var(--gris-texte); font-size: 13px; text-align: center; margin-left: 8px; }
.lien { background: none; border: 0; padding: 0; color: var(--orange-fonce); text-decoration: underline; font: inherit; cursor: pointer; }
.onglets button[aria-selected="true"] { background: var(--noir); color: var(--blanc); }
.form-calc { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 720px) { .form-calc { grid-template-columns: 1fr 1fr; } .form-calc .champ { margin-top: 10px; } .form-calc > p, .form-calc > button { grid-column: 1 / -1; } }
.resultat-calc { margin-top: 18px; }
.onglets button { min-height: 44px; }

/* 18/11 midi : expérience « iPhone » — pas de zoom, pas de surbrillance au toucher, clavier de code rond */
html, body { touch-action: manipulation; overscroll-behavior-y: none; }
* { -webkit-tap-highlight-color: transparent; }
button, .touche, .rc, .menu button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button:active { transform: scale(.98); transition: transform .08s; }
.pin { margin: 18px 0 8px; text-align: center; }
.pin-titre { font-size: 17px; font-weight: 500; color: var(--noir); margin-bottom: 14px; }
.points { display: flex; justify-content: center; gap: 14px; margin: 0 0 26px; }
.pt { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--noir); background: transparent; transition: background .12s, transform .12s; }
.pt.plein { background: var(--noir); transform: scale(1.05); }
.points.secoue { animation: secoue .45s cubic-bezier(.36,.07,.19,.97) both; }
.points.secoue .pt { border-color: var(--rouge); }
@keyframes secoue { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
.clavier { display: grid; grid-template-columns: repeat(3, 78px); justify-content: center; gap: 16px 26px; max-width: none; margin: 0 auto; }
.touche { width: 78px; height: 78px; min-height: 0; border-radius: 50%; border: 0; background: rgba(120,120,128,.16); color: var(--noir);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: background .15s; }
.touche:active { background: rgba(120,120,128,.42); transform: none; transition: background 0s; }
.t-chiffre { font-size: 34px; font-weight: 400; line-height: 1; }
.t-lettres { font-size: 11px; font-weight: 600; letter-spacing: 2px; margin-top: 2px; color: var(--noir); opacity: .8; }
.touche-fn { background: transparent; font-size: 16px; font-weight: 500; color: var(--noir); }
.touche-fn:active { background: transparent; opacity: .4; }
.touche-vide { width: 78px; height: 78px; }
@media (max-width: 360px) { .clavier { grid-template-columns: repeat(3, 70px); gap: 12px 20px; } .touche, .touche-vide { width: 70px; height: 70px; } }
