/* =====================================================================
   KALAN YIRIWA PLUS — Feuille de style
   EASY SOLUTION. Thème adaptable par établissement (marque blanche).
   ===================================================================== */
:root{
  --vert:#0f5132; --vert-clair:#1a7a4c; --vert-pale:#e8f0ec; --vert-fonce:#0a3a24;
  --or:#c8a03c; --or-pale:#fbf6e9;
  --rouge:#b00020; --rouge-pale:#fdecef;
  --orange:#c56a00; --orange-pale:#fff4e5;
  --bleu:#1a4d8f; --bleu-pale:#eaf1fa;
  --gris-900:#1c1f1d; --gris-700:#414744; --gris-500:#6d7570;
  --gris-300:#c9cfcb; --gris-200:#e3e7e5; --gris-100:#f1f4f2; --gris-50:#f8faf9;
  --blanc:#fff;
  --rayon:10px; --rayon-sm:6px;
  --ombre:0 1px 2px rgba(16,32,24,.06),0 2px 8px rgba(16,32,24,.05);
  --ombre-md:0 4px 16px rgba(16,32,24,.10);
  --ombre-lg:0 12px 36px rgba(16,32,24,.16);
  --barre:264px;
  --police:'Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  --mono:'SF Mono',Menlo,Consolas,'Liberation Mono',monospace;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--police);font-size:14px;line-height:1.55;
  color:var(--gris-900);background:var(--gris-100);-webkit-font-smoothing:antialiased}
a{color:var(--vert);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{margin:0 0 .5rem;line-height:1.25;font-weight:650;color:var(--gris-900)}
h1{font-size:1.45rem} h2{font-size:1.15rem} h3{font-size:1rem} h4{font-size:.9rem}
p{margin:0 0 .75rem}
img{max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--or);outline-offset:2px}

/* ---------------------------------------------------------- structure */
.appli{display:flex;min-height:100vh}
.barre-laterale{width:var(--barre);flex:0 0 var(--barre);background:var(--vert-fonce);
  color:#dfe8e3;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;
  overflow-y:auto;z-index:40;scrollbar-width:thin}
.barre-laterale::-webkit-scrollbar{width:6px}
.barre-laterale::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:3px}
.marque{padding:1.1rem 1.15rem;border-bottom:1px solid rgba(255,255,255,.10);
  display:flex;gap:.7rem;align-items:center}
.marque-logo{width:38px;height:38px;border-radius:9px;background:var(--or);color:#22160a;
  display:grid;place-items:center;font-weight:800;font-size:.95rem;flex:0 0 38px;
  overflow:hidden}
.marque-logo img{width:100%;height:100%;object-fit:cover}
.marque-nom{font-weight:700;color:#fff;font-size:.86rem;line-height:1.2}
.marque-sous{font-size:.66rem;color:#9db5a8;letter-spacing:.04em;text-transform:uppercase;
  margin-top:2px}
.nav{padding:.6rem .55rem 1.6rem;flex:1}
.nav-groupe{font-size:.62rem;text-transform:uppercase;letter-spacing:.1em;color:#7d998b;
  padding:.9rem .7rem .35rem;font-weight:700}
.nav a{display:flex;align-items:center;gap:.65rem;padding:.52rem .7rem;border-radius:7px;
  color:#cfdcd5;font-size:.83rem;margin-bottom:1px;transition:background .12s,color .12s}
.nav a:hover{background:rgba(255,255,255,.08);color:#fff;text-decoration:none}
.nav a.actif{background:var(--vert-clair);color:#fff;font-weight:600;
  box-shadow:inset 3px 0 0 var(--or)}
.nav a svg{width:16px;height:16px;flex:0 0 16px;opacity:.85}
.nav a .pastille{margin-left:auto;background:var(--or);color:#22160a;font-size:.62rem;
  font-weight:700;padding:1px 6px;border-radius:9px}
.nav a .verrou{margin-left:auto;opacity:.45;font-size:.7rem}

.principal{flex:1;min-width:0;display:flex;flex-direction:column}
.barre-haute{background:var(--blanc);border-bottom:1px solid var(--gris-200);
  padding:.6rem 1.4rem;display:flex;align-items:center;gap:1rem;position:sticky;top:0;z-index:30}
.fil{font-size:.72rem;color:var(--gris-500)}
.fil b{color:var(--gris-900);font-weight:600}
.barre-haute-actions{margin-left:auto;display:flex;align-items:center;gap:.7rem}
.contenu{padding:1.3rem 1.4rem 3rem;flex:1;max-width:1560px;width:100%}
.entete-page{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.1rem;flex-wrap:wrap}
.entete-page .titre-bloc{flex:1;min-width:220px}
.entete-page .sous-titre{color:var(--gris-500);font-size:.83rem;margin:0}
.entete-actions{display:flex;gap:.5rem;flex-wrap:wrap}

/* ------------------------------------------------------------- cartes */
.carte{background:var(--blanc);border:1px solid var(--gris-200);border-radius:var(--rayon);
  box-shadow:var(--ombre);margin-bottom:1.1rem;overflow:hidden}
.carte-entete{padding:.75rem 1.05rem;border-bottom:1px solid var(--gris-200);
  display:flex;align-items:center;gap:.7rem;background:var(--gris-50)}
.carte-entete h2,.carte-entete h3{margin:0;font-size:.92rem}
.carte-entete .actions{margin-left:auto;display:flex;gap:.4rem;flex-wrap:wrap}
.carte-corps{padding:1.05rem}
.carte-corps.serre{padding:0}
.carte-pied{padding:.6rem 1.05rem;border-top:1px solid var(--gris-200);background:var(--gris-50);
  font-size:.78rem;color:var(--gris-500)}

.grille{display:grid;gap:1.05rem;align-items:start}
.g2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.g6{grid-template-columns:repeat(auto-fit,minmax(158px,1fr))}
.col-2{grid-column:span 2}
@media(max-width:900px){.col-2{grid-column:span 1}}

/* --------------------------------------------------------- indicateurs */
.kpi{background:var(--blanc);border:1px solid var(--gris-200);border-radius:var(--rayon);
  padding:.9rem 1rem;box-shadow:var(--ombre);position:relative;overflow:hidden}
.kpi::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:var(--vert)}
.kpi.or::before{background:var(--or)} .kpi.rouge::before{background:var(--rouge)}
.kpi.bleu::before{background:var(--bleu)} .kpi.orange::before{background:var(--orange)}
.kpi-libelle{font-size:.66rem;text-transform:uppercase;letter-spacing:.07em;
  color:var(--gris-500);font-weight:700;margin-bottom:.3rem}
.kpi-valeur{font-size:1.65rem;font-weight:700;line-height:1.05;color:var(--gris-900);
  font-variant-numeric:tabular-nums}
.kpi-valeur small{font-size:.72rem;font-weight:600;color:var(--gris-500);margin-left:.2rem}
.kpi-detail{font-size:.72rem;color:var(--gris-500);margin-top:.3rem}
.kpi-tendance{font-size:.72rem;font-weight:600;margin-top:.25rem}
.hausse{color:var(--vert-clair)} .baisse{color:var(--rouge)}

/* ------------------------------------------------------------ tableaux */
.table-enveloppe{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.donnees{width:100%;border-collapse:collapse;font-size:.82rem}
table.donnees th{text-align:left;padding:.55rem .7rem;background:var(--gris-50);
  border-bottom:2px solid var(--gris-200);font-size:.67rem;text-transform:uppercase;
  letter-spacing:.05em;color:var(--gris-700);font-weight:700;white-space:nowrap;
  position:sticky;top:0;z-index:1}
table.donnees td{padding:.5rem .7rem;border-bottom:1px solid var(--gris-100);
  vertical-align:middle}
table.donnees tbody tr:hover{background:var(--vert-pale)}
table.donnees tbody tr:last-child td{border-bottom:none}
table.donnees .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
table.donnees td .badge{width:max-content;max-width:100%}
table.donnees .centre{text-align:center}
table.donnees tfoot td{background:var(--gris-50);font-weight:700;
  border-top:2px solid var(--gris-200)}
.table-vide{padding:2.6rem 1rem;text-align:center;color:var(--gris-500)}
.table-vide svg{width:38px;height:38px;opacity:.3;margin-bottom:.5rem}

/* -------------------------------------------------------------- badges */
.badge{display:inline-flex;align-items:center;gap:.28rem;padding:.14rem .5rem;
  border-radius:20px;font-size:.68rem;font-weight:650;white-space:nowrap;
  background:var(--gris-100);color:var(--gris-700);border:1px solid var(--gris-200)}
.badge.succes{background:var(--vert-pale);color:var(--vert);border-color:#c3ddd0}
.badge.alerte{background:var(--orange-pale);color:var(--orange);border-color:#f5d9b0}
.badge.erreur{background:var(--rouge-pale);color:var(--rouge);border-color:#f3c6cf}
.badge.info{background:var(--bleu-pale);color:var(--bleu);border-color:#c3d6ee}
.badge.or{background:var(--or-pale);color:#8a6a12;border-color:#e8d9a8}
.badge.pleine{background:var(--vert);color:#fff;border-color:var(--vert)}

/* -------------------------------------------------------------- boutons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  padding:.44rem .85rem;border-radius:var(--rayon-sm);border:1px solid var(--gris-300);
  background:var(--blanc);color:var(--gris-900);font-size:.8rem;font-weight:600;
  cursor:pointer;font-family:inherit;transition:.13s;white-space:nowrap;text-decoration:none}
.btn:hover{background:var(--gris-50);border-color:var(--gris-500);text-decoration:none}
.btn svg{width:14px;height:14px}
.btn-principal{background:var(--vert);border-color:var(--vert);color:#fff}
.btn-principal:hover{background:var(--vert-clair);border-color:var(--vert-clair);color:#fff}
.btn-or{background:var(--or);border-color:var(--or);color:#22160a}
.btn-or:hover{background:#b8912f;border-color:#b8912f;color:#22160a}
.btn-danger{background:var(--rouge);border-color:var(--rouge);color:#fff}
.btn-danger:hover{background:#8e0019;color:#fff}
.btn-fantome{background:transparent;border-color:transparent;color:var(--gris-700)}
.btn-fantome:hover{background:var(--gris-100)}
.btn-sm{padding:.26rem .55rem;font-size:.72rem}
.btn-lg{padding:.62rem 1.3rem;font-size:.9rem}
.btn[disabled],.btn.desactive{opacity:.5;pointer-events:none}
.btn-bloc{width:100%}
.groupe-btn{display:inline-flex}
.groupe-btn .btn{border-radius:0;margin-left:-1px}
.groupe-btn .btn:first-child{border-radius:var(--rayon-sm) 0 0 var(--rayon-sm);margin-left:0}
.groupe-btn .btn:last-child{border-radius:0 var(--rayon-sm) var(--rayon-sm) 0}

/* ----------------------------------------------------------- formulaires */
.champ{margin-bottom:.85rem}
.champ label{display:block;font-size:.73rem;font-weight:650;color:var(--gris-700);
  margin-bottom:.25rem}
.champ label .obligatoire{color:var(--rouge)}
.champ .aide{font-size:.7rem;color:var(--gris-500);margin-top:.22rem}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=time],
input[type=email],input[type=tel],input[type=search],input[type=file],select,textarea{
  width:100%;padding:.44rem .6rem;border:1px solid var(--gris-300);border-radius:var(--rayon-sm);
  font-size:.83rem;font-family:inherit;background:var(--blanc);color:var(--gris-900);
  transition:border-color .13s,box-shadow .13s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--vert);
  box-shadow:0 0 0 3px rgba(15,81,50,.11)}
input[readonly],input[disabled],select[disabled]{background:var(--gris-100);color:var(--gris-500)}
textarea{resize:vertical;min-height:70px}
select{cursor:pointer}
.champ-inline{display:flex;align-items:center;gap:.4rem}
.champ-inline input[type=checkbox],.champ-inline input[type=radio]{width:auto;margin:0}
.champ-inline label{margin:0;font-weight:500;font-size:.8rem;cursor:pointer}
fieldset{border:1px solid var(--gris-200);border-radius:var(--rayon);padding:.9rem 1rem;
  margin:0 0 1rem}
legend{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  color:var(--vert);padding:0 .4rem}
.barre-filtres{display:flex;gap:.55rem;flex-wrap:wrap;align-items:flex-end}
.barre-filtres .champ{margin-bottom:0;min-width:135px}
.barre-filtres .champ.large{flex:1;min-width:210px}

/* --------------------------------------------------------------- alertes */
.alerte{padding:.7rem .95rem;border-radius:var(--rayon-sm);margin-bottom:1rem;
  font-size:.82rem;display:flex;gap:.6rem;align-items:flex-start;border:1px solid}
.alerte svg{width:17px;height:17px;flex:0 0 17px;margin-top:1px}
.alerte.succes{background:var(--vert-pale);border-color:#bcd8ca;color:#0b3d26}
.alerte.erreur{background:var(--rouge-pale);border-color:#f0bfca;color:#7d0016}
.alerte.alerte-info{background:var(--bleu-pale);border-color:#bed4ec;color:#123a6b}
.alerte.attention{background:var(--orange-pale);border-color:#f2d5a8;color:#8a4a00}
.alerte .fermer{margin-left:auto;cursor:pointer;opacity:.5;background:none;border:none;
  font-size:1.05rem;line-height:1;color:inherit}
.alerte .fermer:hover{opacity:1}

/* ------------------------------------------------------------- barres */
.barre-progres{height:6px;background:var(--gris-200);border-radius:3px;overflow:hidden}
.barre-progres span{display:block;height:100%;background:var(--vert);border-radius:3px;
  transition:width .4s}
.barre-progres.or span{background:var(--or)}
.barre-progres.rouge span{background:var(--rouge)}
.barre-progres.mince{height:4px}

/* --------------------------------------------------------------- divers */
.pile{display:flex;flex-direction:column;gap:.18rem}
.pile .principal-txt{font-weight:600}
.pile .secondaire{font-size:.72rem;color:var(--gris-500)}
.rangee{display:flex;align-items:center;gap:.55rem}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--vert-pale);color:var(--vert);
  display:grid;place-items:center;font-weight:700;font-size:.72rem;flex:0 0 32px;
  overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.lg{width:56px;height:56px;flex:0 0 56px;font-size:1.1rem}
.avatar.xl{width:88px;height:88px;flex:0 0 88px;font-size:1.7rem}
.mono{font-family:var(--mono);font-size:.78rem}
.discret{color:var(--gris-500);font-size:.76rem}
.centrer{text-align:center}
.droite{text-align:right}
.nowrap{white-space:nowrap}
.mb0{margin-bottom:0} .mt1{margin-top:1rem} .mt2{margin-top:1.6rem}
.note-forte{color:var(--vert);font-weight:700}
.note-faible{color:var(--rouge);font-weight:700}

.onglets{display:flex;gap:.15rem;border-bottom:2px solid var(--gris-200);margin-bottom:1.1rem;
  overflow-x:auto}
.onglets a{padding:.5rem .9rem;font-size:.82rem;font-weight:600;color:var(--gris-500);
  border-bottom:2px solid transparent;margin-bottom:-2px;white-space:nowrap}
.onglets a:hover{color:var(--vert);text-decoration:none}
.onglets a.actif{color:var(--vert);border-bottom-color:var(--vert)}

.pagination{display:flex;gap:.25rem;align-items:center;justify-content:center;
  padding:.8rem;flex-wrap:wrap}
.pagination a,.pagination span{padding:.28rem .6rem;border-radius:var(--rayon-sm);
  font-size:.78rem;border:1px solid var(--gris-200);background:var(--blanc);color:var(--gris-700)}
.pagination a:hover{background:var(--gris-50);text-decoration:none}
.pagination .actuelle{background:var(--vert);color:#fff;border-color:var(--vert);font-weight:600}

/* --------------------------------------------------- connexion / portail */
.page-auth{min-height:100vh;display:grid;place-items:center;padding:1.5rem;
  background:linear-gradient(140deg,var(--vert-fonce) 0%,var(--vert) 55%,#146b41 100%)}
.boite-auth{background:var(--blanc);border-radius:16px;box-shadow:var(--ombre-lg);
  width:100%;max-width:430px;overflow:hidden}
.boite-auth .entete{padding:1.7rem 1.7rem 1.2rem;text-align:center;
  border-bottom:1px solid var(--gris-200)}
.boite-auth .entete .logo{width:60px;height:60px;border-radius:15px;background:var(--vert);
  color:var(--or);display:grid;place-items:center;font-size:1.35rem;font-weight:800;
  margin:0 auto .8rem}
.boite-auth .corps{padding:1.4rem 1.7rem 1.7rem}
.boite-auth .pied{padding:.9rem 1.7rem;background:var(--gris-50);text-align:center;
  font-size:.7rem;color:var(--gris-500);border-top:1px solid var(--gris-200)}

/* ------------------------------------------------------- emploi du temps */
.edt{width:100%;border-collapse:separate;border-spacing:2px;font-size:.72rem;
  table-layout:fixed}
.edt th{background:var(--vert);color:#fff;padding:.42rem;font-size:.68rem;border-radius:5px;
  font-weight:650}
.edt td{background:var(--gris-50);border-radius:5px;padding:.3rem;height:56px;
  vertical-align:top;border:1px solid var(--gris-200)}
.edt td.heure{background:var(--vert-pale);color:var(--vert);font-weight:700;text-align:center;
  vertical-align:middle;font-size:.7rem;width:76px}
.edt .seance{background:var(--blanc);border-left:3px solid var(--or);border-radius:4px;
  padding:.3rem .38rem;height:100%;box-shadow:var(--ombre)}
.edt .seance .matiere{font-weight:700;color:var(--vert);font-size:.71rem;line-height:1.15}
.edt .seance .meta{color:var(--gris-500);font-size:.63rem;line-height:1.3;margin-top:1px}
.edt .seance.provisoire{border-left-color:var(--orange);background:var(--orange-pale)}

/* ------------------------------------------------------------ graphiques */
.graph-barres{display:flex;align-items:flex-end;gap:.35rem;height:150px;padding-top:1.4rem}
.graph-barres .col{flex:1;display:flex;flex-direction:column;justify-content:flex-end;
  align-items:center;height:100%;gap:.25rem;min-width:0}
.graph-barres .tige{width:100%;max-width:44px;background:var(--vert);border-radius:4px 4px 0 0;
  position:relative;transition:height .5s;min-height:2px}
.graph-barres .tige.or{background:var(--or)}
.graph-barres .tige:hover{filter:brightness(1.12)}
.graph-barres .tige .val{position:absolute;top:-1.15rem;left:50%;transform:translateX(-50%);
  font-size:.65rem;font-weight:700;color:var(--gris-700);white-space:nowrap}
.graph-barres .etiq{font-size:.62rem;color:var(--gris-500);text-align:center;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.legende{display:flex;gap:.9rem;flex-wrap:wrap;font-size:.72rem;color:var(--gris-500);
  margin-top:.6rem}
.legende i{width:9px;height:9px;border-radius:2px;display:inline-block;margin-right:.28rem}

/* ------------------------------------------------------------- chatbot */
.chat{display:flex;flex-direction:column;height:min(560px,68vh)}
.chat-fil{flex:1;overflow-y:auto;padding:1rem;background:var(--gris-50);
  display:flex;flex-direction:column;gap:.65rem}
.bulle{max-width:80%;padding:.55rem .8rem;border-radius:13px;font-size:.83rem;line-height:1.5}
.bulle.bot{background:var(--blanc);border:1px solid var(--gris-200);align-self:flex-start;
  border-bottom-left-radius:4px}
.bulle.moi{background:var(--vert);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.chat-saisie{display:flex;gap:.5rem;padding:.7rem;border-top:1px solid var(--gris-200);
  background:var(--blanc)}
.suggestions{display:flex;gap:.35rem;flex-wrap:wrap;padding:.5rem .7rem 0}
.suggestions button{background:var(--blanc);border:1px solid var(--gris-300);
  border-radius:15px;padding:.24rem .65rem;font-size:.72rem;cursor:pointer;
  font-family:inherit;color:var(--gris-700)}
.suggestions button:hover{background:var(--vert-pale);border-color:var(--vert);color:var(--vert)}

/* ------------------------------------------------------------ bandeaux */
.bandeau{padding:.55rem 1.4rem;font-size:.79rem;display:flex;align-items:center;gap:.55rem;
  font-weight:550}
.bandeau.avert{background:var(--orange-pale);color:#8a4a00;border-bottom:1px solid #f2d5a8}
.bandeau.crit{background:var(--rouge);color:#fff}
.bandeau.hors-ligne{background:var(--gris-700);color:#fff}
.bandeau a{color:inherit;text-decoration:underline}

/* --------------------------------------------------------------- modale */
.modale{position:fixed;inset:0;background:rgba(12,24,18,.55);display:none;place-items:center;
  z-index:100;padding:1.2rem;backdrop-filter:blur(2px)}
.modale.ouverte{display:grid}
.modale-boite{background:var(--blanc);border-radius:var(--rayon);max-width:640px;width:100%;
  max-height:88vh;overflow-y:auto;box-shadow:var(--ombre-lg)}
.modale-entete{padding:.9rem 1.15rem;border-bottom:1px solid var(--gris-200);display:flex;
  align-items:center;gap:.6rem}
.modale-entete h3{margin:0}
.modale-corps{padding:1.15rem}
.modale-pied{padding:.8rem 1.15rem;border-top:1px solid var(--gris-200);display:flex;
  gap:.5rem;justify-content:flex-end;background:var(--gris-50)}

/* ------------------------------------------------------------ impression */
@media print{
  .barre-laterale,.barre-haute,.entete-actions,.btn,.pagination,.bandeau,.onglets{display:none!important}
  body{background:#fff;font-size:11px}
  .contenu{padding:0}
  .carte{box-shadow:none;border:1px solid #ccc;break-inside:avoid;margin-bottom:.6rem}
  table.donnees{font-size:10px}
  a{color:#000;text-decoration:none}
}

/* -------------------------------------------------------------- mobile */
.bouton-menu{display:none;background:none;border:none;cursor:pointer;padding:.3rem;
  color:var(--gris-700)}
@media(max-width:1024px){
  .barre-laterale{position:fixed;left:0;top:0;transform:translateX(-100%);
    transition:transform .22s;box-shadow:var(--ombre-lg)}
  .barre-laterale.ouverte{transform:translateX(0)}
  .bouton-menu{display:block}
  .voile{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:35;display:none}
  .voile.actif{display:block}
  .contenu{padding:1rem}
  .kpi-valeur{font-size:1.4rem}
}
@media(max-width:640px){
  .entete-page{flex-direction:column}
  .barre-filtres{flex-direction:column;align-items:stretch}
  .barre-filtres .champ{min-width:0}
  table.donnees{font-size:.76rem}
  table.donnees th,table.donnees td{padding:.4rem .45rem}
}

/* ------------------------------------------------ fil de discussion support */
.fil-discussion{display:flex;flex-direction:column;gap:.6rem}
.fil-discussion .bulle{max-width:min(46rem,88%);padding:.55rem .8rem;
  border-radius:var(--rayon-sm);border:1px solid var(--gris-200);background:var(--gris-50)}
.fil-discussion .bulle.mienne{align-self:flex-end;background:var(--vert-pale);
  border-color:#bcd8ca}
.fil-discussion .bulle-entete{display:flex;gap:.45rem;align-items:baseline;
  font-size:.74rem;margin-bottom:.25rem;flex-wrap:wrap}
.fil-discussion .bulle-date{margin-left:auto;font-size:.68rem;color:var(--gris-700)}
.fil-discussion .bulle-corps{font-size:.82rem;line-height:1.45;white-space:pre-wrap;
  word-break:break-word}
.fil-repondre textarea{min-height:4.5rem}
@media print{.fil-repondre{display:none}}

/* ------------------------------------------------------ photo d'identité */
.apercu-photo{width:105px;height:135px;flex:0 0 105px;border:1px solid var(--gris-200);
  border-radius:var(--rayon-sm);overflow:hidden;background:var(--gris-50);display:flex;
  align-items:center;justify-content:center;font-size:.7rem;color:var(--gris-500)}
/* Même cadrage que le recadrage réel : visage vers le haut de l'image. */
.apercu-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}

/* ------------------------------------------------------- guide d'utilisation */
.guide-filtres{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;font-size:.82rem;
  margin-bottom:.6rem}
.guide-themes{display:flex;gap:.35rem;flex-wrap:wrap}
.guide-themes .btn.actif{background:var(--vert);color:#fff;border-color:var(--vert)}
.guide-theme{margin-bottom:1.2rem}
.guide-theme h2{font-size:.95rem;margin:.2rem 0 .5rem;color:var(--vert)}
.guide-question{background:var(--blanc);border:1px solid var(--gris-200);
  border-radius:var(--rayon-sm);margin-bottom:.4rem}
.guide-question summary{cursor:pointer;padding:.65rem .9rem;font-weight:600;font-size:.86rem;
  list-style-position:inside}
.guide-question[open] summary{border-bottom:1px solid var(--gris-200);color:var(--vert)}
.guide-reponse{padding:.7rem 1rem .8rem;font-size:.84rem;line-height:1.6}
.guide-reponse p{margin:0 0 .6rem}
.guide-reponse ol,.guide-reponse ul{margin:0 0 .6rem 1.2rem;padding:0}
.guide-reponse li{margin-bottom:.25rem}
.guide-astuce,.guide-attention{padding:.5rem .75rem;border-radius:var(--rayon-sm);
  margin:0 0 .6rem;border:1px solid}
.guide-astuce{background:var(--bleu-pale);border-color:#bed4ec;color:#123a6b}
.guide-attention{background:var(--orange-pale);border-color:#f2d5a8;color:#8a4a00}
.guide-liens{font-size:.78rem;margin-top:.4rem}
.guide-liens a{margin-left:.5rem}
.guide-roles{font-size:.72rem;color:var(--gris-500);margin-top:.35rem}
/* Le guide suit le logiciel version après version : une copie imprimée ferait
   foi longtemps après être devenue fausse. Il ne s'imprime donc pas. */
.guide-impression{display:none}
@media print{
  .guide-ecran{display:none!important}
  .guide-impression{display:block!important;padding:3rem 2rem;font-size:14pt;text-align:center}
}

/* ----------------------------------------------------- cachet (aperçu) */
/* Damier : on voit que le fond du cachet est bien transparent. */
.apercu-cachet{width:96px;height:96px;flex:0 0 96px;border:1px solid var(--gris-200);
  border-radius:var(--rayon-sm);background:repeating-conic-gradient(#ececec 0 25%,#fff 0 50%) 0 0/12px 12px;
  display:flex;align-items:center;justify-content:center;overflow:hidden}
.apercu-cachet img{max-width:100%;max-height:100%}
