/* RH CGEAT - feuille de style. Sobre, lisible, adaptée au téléphone. */
:root {
  /* Charte du cabinet (logo Avicenne Consult) : bleu dominant, touche de rouge, cyan, jaune */
  --bleu: #0070C0;        /* bleu d'action (papier à en-tête) */
  --bleu-fonce: #2E3192;  /* bleu marine du logo : titres, menu */
  --bleu-clair: #E6F4FC;
  --cyan: #00ADEB;        /* bleu du logo : bandeaux, filets */
  --cyan-clair: #E6F6FD;
  --rouge-marque: #ED1C24;
  --jaune: #FCE80C;
  --texte: #1d2733;
  --texte-doux: #5b6776;
  --bord: #d5dbe3;
  --fond: #f5f7fa;
  --blanc: #fff;
  --rouge: #b3261e;
  --rouge-clair: #fbe9e7;
  --orange: #b25e00;
  --orange-clair: #fff3e0;
  --vert: #1e7a3c;
  --vert-clair: #e6f4ea;
  --rayon: 8px;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: "Arial Narrow", Arial, "Helvetica Neue", sans-serif; color: var(--texte);
  background: var(--fond); line-height: 1.45; }
a { color: var(--bleu); }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; color: var(--texte-doux); }
h1 small, h2 small { color: var(--texte-doux); font-weight: normal; }
code { background: var(--bleu-clair); padding: 2px 6px; border-radius: 4px; font-size: .95em; }

/* En-tête et menus */
.entete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  background: #fff; color: var(--texte); padding: .45rem 1rem; border-bottom: 4px solid var(--cyan);
  box-shadow: 0 2px 0 var(--jaune); }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { height: 52px; width: auto; display: block; }
.logo span { font-weight: 700; font-size: 1.1rem; color: var(--rouge-marque); letter-spacing: 1px; border-left: 2px solid var(--bord); padding-left: .6rem; }
.marque { text-align: center; margin-bottom: 1rem; }
.marque img { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto .5rem; }
.marque span { color: var(--bleu); font-weight: 700; letter-spacing: .5px; }
.profil { margin-left: auto; text-align: right; font-size: .85rem; line-height: 1.2; }
.profil .role { display: block; color: var(--texte-doux); }
.cadre { display: flex; min-height: calc(100vh - 52px); }
.menu-lateral { width: 230px; flex-shrink: 0; background: var(--blanc); border-right: 1px solid var(--bord); padding: 1rem 0; }
.menu-lateral ul, .menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-lateral a, .menu-mobile a, .menu-lateral button.lien, .menu-mobile button.lien {
  display: block; padding: .55rem 1.25rem; color: var(--texte); text-decoration: none; text-align: left; width: 100%; }
.menu-lateral a:hover { background: var(--bleu-clair); }
.menu-lateral a.actif, .menu-mobile a.actif { background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 700;
  box-shadow: inset 4px 0 0 var(--rouge-marque); }
.contenu > h1::after, .titre-actions > h1::after { content: ""; display: block; width: 48px; height: 3px; margin-top: .35rem;
  background: linear-gradient(90deg, var(--rouge-marque) 60%, var(--jaune) 60%); }
h1, h2 { color: var(--bleu-fonce); }
.titre-groupe { padding: 1rem 1.25rem .25rem; font-size: .75rem; text-transform: uppercase; color: var(--texte-doux); letter-spacing: .5px; }
.menu-mobile { display: none; }
.menu-mobile summary { list-style: none; cursor: pointer; padding: .4rem .8rem; border: 1px solid var(--bord); border-radius: var(--rayon); color: var(--bleu-fonce); font-weight: 700; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] ul { position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: .5rem 0; }
.contenu { flex: 1; padding: 1.5rem; max-width: 1200px; min-width: 0; }
.cadre-public { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cadre-public .contenu { max-width: 420px; width: 100%; padding: 0; }

/* Cartes et grilles */
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem; margin-bottom: 1.25rem; }
.carte.etroite { max-width: 560px; }
.carte.centre { text-align: center; max-width: 560px; margin: 2rem auto; }
.connexion h1 { text-align: center; font-size: 1.2rem; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grille-2 > .carte, .grille-3 > .carte { margin-bottom: 0; }
.grille-2 + *, .grille-3 + * { margin-top: 1.25rem; }
.titre-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.titre-actions h1, .titre-actions h2 { margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }
.intro, .aide { color: var(--texte-doux); }
.aide { font-size: .9rem; }
.vide { color: var(--texte-doux); font-style: italic; }

/* Indicateurs */
.indicateurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.indicateur { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; text-decoration: none; color: var(--texte); }
.indicateur span { display: block; color: var(--texte-doux); font-size: .9rem; }
.indicateur b { font-size: 1.8rem; }

/* Barres horizontales (sans script) */
.barres { width: 100%; border-collapse: collapse; }
.barres td { padding: .25rem 0; font-size: .9rem; }
.barres td:first-child { width: 40%; padding-right: .5rem; }
.barres .nb { width: 3rem; text-align: right; font-weight: 600; }
.barre span { display: block; height: 14px; background: var(--bleu); opacity: .75; border-radius: 3px; min-width: 3px; }
.largeur-0 { width: 2% } .largeur-1 { width: 5% } .largeur-2 { width: 10% } .largeur-3 { width: 15% } .largeur-4 { width: 20% }
.largeur-5 { width: 25% } .largeur-6 { width: 30% } .largeur-7 { width: 35% } .largeur-8 { width: 40% } .largeur-9 { width: 45% }
.largeur-10 { width: 50% } .largeur-11 { width: 55% } .largeur-12 { width: 60% } .largeur-13 { width: 65% } .largeur-14 { width: 70% }
.largeur-15 { width: 75% } .largeur-16 { width: 80% } .largeur-17 { width: 85% } .largeur-18 { width: 90% } .largeur-19 { width: 95% } .largeur-20 { width: 100% }

/* Alertes */
.liste-alertes { list-style: none; padding: 0; margin: 0 0 .75rem; }
.liste-alertes li { border-left: 4px solid var(--bleu); padding: .5rem .75rem; margin-bottom: .4rem; background: var(--fond); border-radius: 0 var(--rayon) var(--rayon) 0; }
.liste-alertes a { text-decoration: none; color: var(--texte); display: block; }
.liste-alertes .quand { display: block; color: var(--texte-doux); font-size: .85rem; }
.liste-alertes .alerte-retard { border-color: var(--rouge); background: var(--rouge-clair); }
.liste-alertes .alerte-proche { border-color: var(--orange); background: var(--orange-clair); }
tr.alerte-retard td, td.alerte-retard { background: var(--rouge-clair); }
tr.alerte-proche td { background: var(--orange-clair); }
.legende { font-size: .8rem; color: var(--texte-doux); }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 .25rem 0 .75rem; }
.pastille.retard { background: var(--rouge); } .pastille.proche { background: var(--orange); } .pastille.a_venir { background: var(--bleu); }

/* Messages */
.message { padding: .75rem 1rem; border-radius: var(--rayon); margin-bottom: 1rem; border: 1px solid; }
.message-succes { background: var(--vert-clair); border-color: #a8d5b5; color: var(--vert); }
.message-erreur { background: var(--rouge-clair); border-color: #f1b8b3; color: var(--rouge); }
.message-info { background: var(--bleu-clair); border-color: #b7cde3; color: var(--bleu); }

/* Formulaires */
.champ { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.champ span { font-size: .9rem; font-weight: 600; }
.champ small { color: var(--texte-doux); font-size: .8rem; }
.champ.large { grid-column: 1 / -1; }
.oblig { color: var(--rouge); }
input, select, textarea { font: inherit; padding: .6rem .7rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; min-height: 44px; width: 100%; }
input[type=checkbox] { width: auto; min-height: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bleu); outline-offset: 1px; border-color: var(--bleu); }
.case { display: flex; gap: .5rem; align-items: center; margin-bottom: .9rem; }
fieldset { border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--blanc); margin: 0 0 1rem; padding: 1rem 1.25rem .25rem; }
legend { font-weight: 700; padding: 0 .4rem; color: var(--bleu); }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 1rem; }
.barre-actions { display: flex; gap: .75rem; position: sticky; bottom: 0; background: var(--fond); padding: .75rem 0; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1rem; border-radius: var(--rayon);
  border: 1px solid var(--bord); background: var(--blanc); color: var(--texte); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.bouton:hover { border-color: var(--bleu); }
.bouton.principal { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.bouton.danger { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton.plein { width: 100%; }
button.lien { background: none; border: none; color: var(--bleu); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
form.en-ligne { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
form.en-ligne input, form.en-ligne select { width: auto; min-width: 0; flex: 1; }
.pile { display: flex; flex-direction: column; gap: .6rem; }
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center; }
.filtres input, .filtres select { width: auto; flex: 1 1 160px; }
.filtres label { display: flex; align-items: center; gap: .3rem; }
.etapes li { margin-bottom: .5rem; }
code.cle { font-size: 1.05rem; letter-spacing: 1px; display: inline-block; margin-top: .25rem; }
code.uri { word-break: break-all; display: block; margin-top: .5rem; }

/* Tableaux */
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau { width: 100%; border-collapse: collapse; background: var(--blanc); font-size: .93rem; }
.tableau th { text-align: left; background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .3px; border-bottom: 2px solid var(--cyan); }
.tableau th, .tableau td { padding: .6rem .7rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau.compact td { padding: .4rem .6rem; font-size: .88rem; }
.tableau td.details { max-width: 420px; word-break: break-word; color: var(--texte-doux); }
.tableau tr.inactif td, .liste-ref li.inactif { opacity: .5; }
.actions-ligne { white-space: nowrap; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--fond); border: 1px solid var(--bord); }
.badge-actif { background: var(--vert-clair); color: var(--vert); border-color: #a8d5b5; }
.badge-suspendu { background: var(--orange-clair); color: var(--orange); border-color: #f3c98b; }
.badge-sorti, .badge-archive { color: var(--texte-doux); }
.badge-confidentiel { background: var(--rouge-clair); color: var(--rouge); border-color: #f1b8b3; }
.pagination { display: flex; justify-content: space-between; }

/* Fiche collaborateur */
.bandeau { display: flex; gap: 1.25rem; align-items: center; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bandeau h1 { margin: 0 0 .25rem; }
.bandeau p { margin: 0; }
.bandeau .meta { color: var(--texte-doux); font-size: .9rem; margin-top: .3rem; }
.bandeau .identite { flex: 1; min-width: 200px; }
.photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.photo.initiales { display: flex; align-items: center; justify-content: center; background: var(--bleu-clair); color: var(--bleu); font-size: 1.8rem; font-weight: 700; }
.deroulant { position: relative; }
.deroulant summary { list-style: none; }
.deroulant summary::-webkit-details-marker { display: none; }
.deroulant .panneau { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; width: 300px; box-shadow: 0 6px 20px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: .75rem; }
.onglets { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 2px solid var(--bord); margin-bottom: 1.25rem; }
.onglets a { padding: .7rem 1rem; text-decoration: none; color: var(--texte-doux); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.onglets a.actif { color: var(--bleu); border-color: var(--bleu); }
.infos { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: .45rem 1rem; margin: 0; }
.infos dt { color: var(--texte-doux); font-size: .9rem; }
.infos dd { margin: 0; word-break: break-word; }
.infos.grand dd { font-size: 1.15rem; }
.multiligne { white-space: pre-line; }
.bloc-demande { border-bottom: 1px solid var(--bord); padding: .5rem 0 1rem; }
.reponse { color: var(--vert); }
.cartes-liste { display: grid; gap: .6rem; }
.carte-ligne { display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: .9rem 1rem; text-decoration: none; color: var(--texte); }
.carte-ligne span { color: var(--texte-doux); font-size: .9rem; }
.liste-ref { list-style: none; padding: 0; margin: 0 0 1rem; }
.liste-ref li { padding: .5rem 0; border-bottom: 1px solid var(--bord); display: flex; flex-direction: column; gap: .3rem; }
.liste-simple { padding-left: 1.1rem; }
.liste-simple li { margin-bottom: .6rem; }

/* Téléphone */
@media (max-width: 860px) {
  .menu-lateral { display: none; }
  .menu-mobile { display: block; }
  .profil .nom { display: none; }
  .contenu { padding: 1rem; }
  .grille-2, .grille-3 { grid-template-columns: 1fr; }
  .indicateurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infos { grid-template-columns: 1fr; gap: .1rem; }
  .infos dd { margin-bottom: .5rem; }
  h1 { font-size: 1.3rem; }
  .bandeau { padding: 1rem; }
  .photo { width: 64px; height: 64px; }
  .deroulant .panneau { position: fixed; left: 1rem; right: 1rem; top: auto; bottom: 1rem; width: auto; }
  .tableau.cliquable thead { display: none; }
  .tableau.cliquable tr { display: block; border-bottom: 1px solid var(--bord); padding: .5rem 0; }
  .tableau.cliquable td { display: inline-block; border: none; padding: .1rem .5rem .1rem 0; }
  .tableau.cliquable td:nth-child(2) { display: block; font-size: 1.05rem; }
}
@media print {
  .entete, .menu-lateral, .actions, .onglets, .filtres, .barre-actions { display: none !important; }
  .carte { border: none; }
}

/* ---------------- Étape 2 : temps et absences ---------------- */
.cloche { color: var(--bleu-fonce); text-decoration: none; font-size: .9rem; margin-left: auto; padding: .3rem .6rem; border: 1px solid var(--bord); border-radius: var(--rayon); font-weight: 700; }
.cloche + .profil { margin-left: .5rem; }
.pastille-nb { background: var(--rouge-marque); color: #fff; border-radius: 99px; padding: 0 .45rem; font-size: .8rem; }
.bandeau-action { display: block; background: var(--orange-clair); border: 1px solid #f3c98b; color: var(--texte); padding: .8rem 1rem; border-radius: var(--rayon); margin-bottom: 1rem; text-decoration: none; }
.raccourcis { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.espace { margin-top: 1.5rem; }
.texte-orange { color: var(--orange); }
.texte-rouge { color: var(--rouge); }
.pointage { text-align: center; }
.date-jour { color: var(--texte-doux); margin: 0 0 1rem; }
.bouton.enorme { font-size: 1.25rem; min-height: 72px; width: 100%; max-width: 420px; }
.etat { font-size: 1.1rem; }
.jour-resume { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-bottom: .75rem; }
.case-resume { border-radius: var(--rayon); padding: .7rem; background: var(--fond); border-left: 4px solid var(--bord); }
.case-resume b { display: block; font-size: 1.5rem; }
.case-resume span { font-size: .85rem; color: var(--texte-doux); }
.case-resume.code-P { border-color: var(--vert); } .case-resume.code-RT { border-color: var(--orange); }
.case-resume.code-A { border-color: var(--rouge); } .case-resume.code-C { border-color: var(--bleu); } .case-resume.code-NP { border-color: #8a94a3; }
.code { display: inline-block; min-width: 2.2em; text-align: center; border-radius: 4px; font-size: .75rem; font-weight: 700; padding: .1rem .3rem; background: var(--fond); }
.code-P { background: var(--vert-clair); color: var(--vert); }
.code-RT { background: var(--orange-clair); color: var(--orange); }
.code-A { background: var(--rouge-clair); color: var(--rouge); }
.code-C { background: var(--bleu-clair); color: var(--bleu); }
.code-DA { background: #ede7f6; color: #5e35b1; }
.code-F { background: #eeeeee; color: #555; }
.code-R { background: #f7f7f7; color: #999; }
.code-NP { background: #f0f2f5; color: #5b6776; }
.legende-codes { font-size: .82rem; color: var(--texte-doux); line-height: 2; }
.liste-jours { list-style: none; padding: 0; margin: 0; }
.liste-jours li { padding: .35rem 0; border-bottom: 1px solid var(--bord); font-size: .92rem; }
.calendrier table { border-collapse: collapse; font-size: .78rem; background: var(--blanc); }
.calendrier th, .calendrier td { border: 1px solid var(--bord); padding: .3rem .25rem; text-align: center; min-width: 26px; }
.calendrier th.fixe { position: sticky; left: 0; background: var(--blanc); text-align: left; white-space: nowrap; min-width: 140px; z-index: 1; }
.calendrier thead th { background: var(--fond); font-weight: 600; }
.calendrier th.aujourdhui { background: var(--rouge-marque); color: #fff; }
.circuit { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; counter-reset: etape; }
.circuit li { counter-increment: etape; padding: .4rem .8rem; border-radius: 99px; border: 1px solid var(--bord); color: var(--texte-doux); }
.circuit li::before { content: counter(etape) ". "; }
.circuit li.fait { background: var(--vert-clair); border-color: #a8d5b5; color: var(--vert); }
.circuit li.courant { background: var(--orange-clair); border-color: #f3c98b; color: var(--orange); font-weight: 700; }
.historique { list-style: none; padding: 0; }
.historique li { padding: .5rem 0; border-bottom: 1px solid var(--bord); font-size: .92rem; }
.commentaire { color: var(--texte-doux); font-style: italic; }
.boutons-decision { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge-en_attente, .badge-complement { background: var(--orange-clair); color: var(--orange); border-color: #f3c98b; }
.badge-accordee { background: var(--vert-clair); color: var(--vert); border-color: #a8d5b5; }
.badge-refusee { background: var(--rouge-clair); color: var(--rouge); border-color: #f1b8b3; }
.badge-annulee { color: var(--texte-doux); }
.carte-ligne.en-retard { border-left: 4px solid var(--orange); }
.carte-ligne.non-lu { border-left: 4px solid var(--bleu); background: var(--bleu-clair); }
.parametre { border-bottom: 1px solid var(--bord); padding: .8rem 0; }
.parametre-tete { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.parametre .valeur { font-weight: 700; font-size: 1.05rem; }
.parametre-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cases { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
section.inactif { opacity: .55; }
tr.ligne-R td, tr.ligne-F td { color: #999; }
@media (max-width: 860px) {
  .cloche { margin-left: auto; }
  .calendrier th.fixe { min-width: 100px; }
}
@media print {
  .cloche, .raccourcis, .bandeau-action { display: none !important; }
}
.logo { white-space: nowrap; }
@media (max-width: 860px) { .profil { display: none; } .entete { gap: .6rem; } }
.qr { display: flex; justify-content: center; margin: .5rem 0 1rem; }
.qr svg { width: 220px; height: 220px; border: 1px solid var(--bord); border-radius: var(--rayon); }

/* Charte : ajustements téléphone */
@media (max-width: 860px) {
  .logo img { height: 34px; }
  .logo span { font-size: .95rem; padding-left: .45rem; }
}
.bouton.principal:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.indicateur { border-top: 3px solid var(--cyan); }
.indicateur b { color: var(--bleu-fonce); }

/* ---------------- Charte v2 : impression sur papier à en-tête ---------------- */
.entete-impression, .pied-impression { display: none; }
@media print {
  @page { size: A4; margin: 12mm 14mm; }
  body { background: #fff; font-size: 11pt; }
  .cadre, .cadre-public { display: block; min-height: 0; }
  .contenu { padding: 0; max-width: none; }
  .message, .barre-actions, .raccourcis, .legende-codes { display: none !important; }
  .entete-impression { display: flex; align-items: center; gap: 12px; border-bottom: 1.5px solid #1D2733; padding-bottom: 6px; margin-bottom: 14px; font-family: Arial, sans-serif; }
  .entete-impression .bloc-logo { display: flex; flex-direction: column; align-items: center; font-size: 7.5pt; }
  .entete-impression img { height: 50px; width: auto; }
  .entete-impression .filet { align-self: stretch; width: 1.5px; background: #808285; }
  .entete-impression p { margin: 0; font-size: 8pt; line-height: 1.4; }
  .entete-impression .titre-cabinet { font-weight: 700; font-size: 8.5pt; text-transform: uppercase; }
  .entete-impression .courriel { color: #0070C0; font-style: italic; }
  .pied-impression { display: block; position: fixed; bottom: 0; left: 0; right: 0; text-align: center; border-top: 1px solid #1D2733; padding-top: 4px; font-family: "Maiandra GD", "Arial Narrow", Arial, sans-serif; font-size: 7.5pt; }
  .pied-impression i { color: var(--rouge-marque); }
  .tableau { font-size: 9pt; }
  .carte, .bandeau { break-inside: avoid; }
}
.etapes-import { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; counter-reset: e; }
.etapes-import li { counter-increment: e; padding: .4rem .9rem; border-radius: 99px; border: 1px solid var(--bord); color: var(--texte-doux); background: var(--blanc); }
.etapes-import li::before { content: counter(e) ". "; }
.etapes-import li.fait { background: var(--vert-clair); border-color: #a8d5b5; color: var(--vert); }
.etapes-import li.courant { background: var(--bleu-clair); border-color: var(--cyan); color: var(--bleu-fonce); font-weight: 700; }
tr.ligne-reconnue td:first-child { box-shadow: inset 3px 0 0 var(--cyan); }
.conversion { color: var(--bleu); }
.indicateur-alerte { border-top-color: var(--orange) !important; }
.indicateur-erreur { border-top-color: var(--rouge) !important; }
.case-validation { background: var(--bleu-clair); border: 1px solid var(--cyan); border-radius: var(--rayon); padding: .8rem 1rem; font-weight: 700; }
/* Organigramme */
.org { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.org-service { background: #fff; border: 1px solid var(--bord); border-top: 6px solid var(--couleur-service); border-radius: var(--rayon); padding: 1rem; }
.org-service h2 { color: var(--couleur-service); margin-top: 0; }
.org-resp { margin: .3rem 0 .6rem; }
.org-arbre, .org-arbre ul { list-style: none; margin: 0; padding-left: 1rem; border-left: 2px solid var(--bord); }
.org-arbre { padding-left: .5rem; }
.org-arbre li { margin: .35rem 0; }
.org-personne { display: inline-flex; flex-direction: column; background: var(--fond); border-left: 4px solid var(--couleur-service); border-radius: 6px; padding: .35rem .6rem; }
.org-personne small { color: var(--texte-doux); }
.org-hors { font-style: italic; }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 1.25rem; }
.badge-alerte { background: #FDECEA; color: #B3261E; }
.badge-dec-a_valider { background: var(--orange-clair); color: var(--orange); }
.badge-dec-validee { background: var(--bleu-clair); color: var(--bleu-fonce); }
.badge-dec-appliquee { background: var(--vert-clair); color: var(--vert); }
.badge-dec-refusee, .badge-dec-annulee { color: var(--texte-doux); }
.carte-interne { border: 1px solid var(--bord); border-radius: var(--rayon); padding: .5rem 1rem; margin: 0 0 1rem; }
.fiche-liste { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .4rem 1rem; margin: 0; }
.fiche-liste dt { color: var(--texte-doux); }
.fiche-liste dd { margin: 0; }
.alerte-info { background: var(--orange-clair); border-left: 4px solid var(--orange); border-radius: var(--rayon); padding: .7rem 1rem; }
.lien-activation { word-break: break-all; font-size: .8rem; }
/* Dossier du personnel */
.jauge { height: 10px; background: var(--fond); border-radius: 99px; overflow: hidden; border: 1px solid var(--bord); }
.jauge span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--bleu)); }
.sous-dossier summary { cursor: pointer; font-size: 1.05rem; color: var(--bleu-fonce); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sous-dossier[open] summary { margin-bottom: .6rem; }
.etat-piece { width: 2rem; text-align: center; font-weight: 700; font-size: 1.1rem; }
.etat-piece .ok { color: var(--vert); } .etat-piece .ko { color: var(--rouge); } .etat-piece .so { color: var(--texte-doux); }
tr.piece-manquante td { background: #FFF6F5; }
.doc-ligne { font-size: .9rem; margin-top: .2rem; }
.jauge.petite { height: 6px; width: 90px; }
.jauge span { width: 0; }
/* Groupe de menu repliable (Administration) */
.groupe-menu summary { cursor: pointer; list-style: none; text-transform: uppercase; }
.groupe-menu summary::-webkit-details-marker { display: none; }
.groupe-menu summary::after { content: " ▸"; }
.groupe-menu[open] summary::after { content: " ▾"; }
.groupe-menu ul { list-style: none; margin: .3rem -1.25rem 0; padding: 0; text-transform: none; letter-spacing: 0; font-size: 1rem; }
/* Dépôt groupé */
.depot-zone { border: 2px dashed var(--cyan); background: var(--cyan-clair); border-radius: var(--rayon); padding: 1rem; margin: .5rem 0 1rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.depot-zone label { flex: 1 1 320px; }
.depot-zone input[type=file] { display: block; margin-top: .5rem; }
.depot-element { border-left: 5px solid var(--bord); }
.depot-sur { border-left-color: var(--vert); } .depot-probable { border-left-color: var(--orange); } .depot-aclasser { border-left-color: var(--rouge); }
.propositions { background: var(--fond); border-radius: var(--rayon); padding: .6rem 1rem; margin-top: .6rem; }
.badge-paie-soumise, .badge-paie-calculee { background: var(--orange-clair); color: var(--orange); }
.badge-paie-validee, .badge-paie-diffusee, .badge-paie-payee { background: #e3f1e6; color: #1e6b33; }
.etapes li.actif { font-weight: bold; }

/* Barre latérale sombre et contrastée (v1.7) */
.menu-lateral { background: #1B1F5E; border-right: 0; box-shadow: 2px 0 8px rgba(0,0,0,.18); }
.menu-lateral a, .menu-lateral button.lien { color: #E8ECF8; }
.menu-lateral a:hover, .menu-lateral button.lien:hover { background: rgba(255,255,255,.10); color: #fff; }
.menu-lateral a.actif { background: rgba(0,173,235,.22); color: #fff; font-weight: 700; box-shadow: inset 4px 0 0 var(--jaune); }
.menu-lateral .titre-groupe { color: #9FB3E8; font-weight: 700; border-top: 1px solid rgba(255,255,255,.10); margin-top: .4rem; }
.menu-lateral .titre-groupe:first-of-type { border-top: 0; }
.menu-lateral .groupe-menu summary { color: #9FB3E8; }
.menu-lateral .groupe-menu ul a { color: #E8ECF8; }
.badge-situation-present { background: #e3f1e6; color: #1e6b33; }
.badge-situation-conge, .badge-situation-absence { background: var(--bleu-clair); color: var(--bleu-fonce); }
.badge-situation-maladie { background: var(--rouge-clair); color: var(--rouge); }
.badge-situation-mission { background: #FFF6D6; color: #7a5b00; }
.badge-situation-affectation { background: #EFE3FA; color: #5b2a86; }
.badge-situation-suspendu, .badge-situation-sorti { background: #eee; color: #555; }
.badge-etat-N, .badge-etat-B { background: #e3f1e6; color: #1e6b33; }
.badge-etat-M { background: var(--orange-clair); color: var(--orange); }
.badge-etat-HS { background: var(--rouge-clair); color: var(--rouge); }
.tableau.saisie input { width: 100%; min-width: 6rem; padding: .3rem; }
.tableau.saisie td { padding: .2rem; }

/* Bandeau d'aperçu « Voir comme… » */
.bandeau-apercu { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center;
  justify-content: center; padding: .5rem 1rem; background: #FFD23F; color: #1B1F5E; font-size: .95rem; }
.bandeau-apercu a { color: #1B1F5E; font-weight: 700; }
.bandeau-apercu form { margin: 0; }
.bandeau-apercu button { background: #1B1F5E; color: #fff; border: 0; border-radius: 4px; padding: .3rem .8rem; cursor: pointer; }

/* Barre latérale fixe : elle ne défile plus avec la page (v1.8) */
@media (min-width: 861px) {
  .menu-lateral { position: sticky; top: var(--haut-entete, 80px); align-self: flex-start;
    height: calc(100vh - var(--haut-entete, 80px)); overflow-y: auto; overscroll-behavior: contain; }
}
.liste-cases { list-style: none; padding: 0; columns: 2 18rem; }
.liste-cases li { break-inside: avoid; padding: .15rem 0; }
.motif-hors-zone { margin-top: .6rem; text-align: left; }

.badge-type { background: #EEF0FA; color: #1B1F5E; }
.frise { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--bleu-clair); }
.frise li { padding: .35rem 0 .35rem 1rem; position: relative; }
.frise li::before { content: ""; position: absolute; left: -7px; top: .75rem; width: 11px; height: 11px; border-radius: 50%; background: var(--bleu); }
.frise .date { color: var(--texte-doux); display: inline-block; min-width: 6.5rem; }

/* Fil d'Ariane, retour, précédent / suivant (v1.10) */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: -.3rem 0 1rem;
  font-size: .9rem; color: var(--texte-doux); }
.fil .retour { border: 1px solid var(--bordure, #d0d5e2); background: #fff; color: #1B1F5E; border-radius: 6px;
  padding: .3rem .8rem; font-weight: 600; cursor: pointer; }
.fil .retour:hover { background: #EEF0FA; }
.fil .chemin { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.fil .chemin li + li::before { content: "›"; margin-right: .3rem; color: #9aa3b8; }
.fil .chemin a { color: #1B1F5E; }
.fil .voisins { margin-left: auto; display: flex; gap: .7rem; align-items: center; }
.fil .voisins a { font-weight: 600; color: #1B1F5E; border: 1px solid #d0d5e2; border-radius: 6px; padding: .25rem .7rem; background: #fff; }
.fil .voisins .inactif { color: #b8bfcf; padding: .25rem .7rem; }
@media print { .fil { display: none; } }

/* ===== Habillage 1.12 : illustrations, icônes, bandeau d'accueil ===== */
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; margin-right: .55rem; opacity: .85; }
.menu-lateral a, .menu-mobile a { display: flex; align-items: center; }
.menu-lateral a.actif .ic { opacity: 1; color: var(--jaune); }
.menu-mobile a .ic { color: var(--bleu); }

/* Connexion : illustration de terrain + formulaire */
.cadre-public.public-large { padding: 0; align-items: stretch; background: var(--bleu-fonce); }
.cadre-public.public-large .contenu { max-width: none; width: 100%; padding: 0; }
.accueil-connexion { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); min-height: 100vh; }
.connexion-visuel { position: relative; overflow: hidden; background: #0070C0; }
.connexion-visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 100%; display: block; }
.connexion-accroche { position: absolute; left: 2rem; top: 2rem; right: 2rem; color: #fff; max-width: 480px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.connexion-accroche .accroche-titre { font-size: 2.2rem; font-weight: 700; margin: 0 0 .3rem; letter-spacing: .5px; }
.connexion-accroche p { margin: 0; font-size: 1.1rem; opacity: .95; }
.accueil-connexion .carte.connexion { margin: auto; width: min(400px, 92%); border: 0; box-shadow: 0 12px 40px rgba(0,0,0,.25);
  border-top: 5px solid var(--cyan); }
.accueil-connexion > .carte.connexion { align-self: center; justify-self: center; }
@media (max-width: 860px) {
  .accueil-connexion { grid-template-columns: 1fr; min-height: 0; }
  .connexion-visuel { height: 230px; }
  .connexion-accroche { top: 1rem; left: 1rem; }
  .connexion-accroche .accroche-titre { font-size: 1.5rem; }
  .connexion-accroche p { font-size: .95rem; }
  .accueil-connexion .carte.connexion { margin: -2rem auto 2rem; position: relative; }
}

/* Bandeau d'accueil */
.bandeau-accueil { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; overflow: hidden;
  background: linear-gradient(120deg, var(--bleu-fonce), var(--bleu) 60%, var(--cyan)); color: #fff;
  border-radius: 14px; padding: 1.4rem 1.6rem 0; margin-bottom: 1.25rem; box-shadow: 0 6px 18px rgba(46,49,146,.25); }
.bandeau-texte { padding-bottom: 1.4rem; }
.bandeau-accueil h1 { color: #fff; font-size: 1.9rem; margin: 0 0 .2rem; }
.bandeau-date { margin: 0; text-transform: none; opacity: .85; font-size: .95rem; }
.bandeau-phrase { margin: 0 0 1rem; opacity: .9; }
.bandeau-chiffres { display: flex; flex-wrap: wrap; gap: .6rem; }
.bandeau-chiffres a { display: flex; flex-direction: column; min-width: 92px; padding: .55rem .8rem; border-radius: 10px;
  background: rgba(255,255,255,.14); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.25); }
.bandeau-chiffres a:hover { background: rgba(255,255,255,.24); }
.bandeau-chiffres b { font-size: 1.5rem; line-height: 1.1; color: var(--jaune); }
.bandeau-chiffres span { font-size: .85rem; }
.bandeau-illus { width: 300px; max-width: 40%; align-self: flex-end; display: block; }
@media (max-width: 860px) { .bandeau-illus { display: none; } .bandeau-accueil h1 { font-size: 1.5rem; } }

/* Illustrations discrètes selon la rubrique */
.contenu[data-rubrique="missions"], .contenu[data-rubrique="materiel"], .contenu[data-rubrique="collaborateurs"],
.contenu[data-rubrique="deposer"] { background-repeat: no-repeat; background-position: right 1.5rem top 1rem;
  background-size: 190px auto; }
.contenu[data-rubrique="missions"] { background-image: url("illus/mission.svg"); }
.contenu[data-rubrique="materiel"] { background-image: url("illus/materiel.svg"); }
.contenu[data-rubrique="collaborateurs"], .contenu[data-rubrique="deposer"] { background-image: url("illus/equipe.svg"); background-size: 210px auto; }
@media (max-width: 860px) { .contenu[data-rubrique] { background-image: none !important; } }
.fiche-poste { max-width: 860px; line-height: 1.55; }
.fiche-poste h2 { color: var(--bleu-fonce); font-size: 1.05rem; margin: 1.2rem 0 .5rem; border-bottom: 2px solid var(--cyan-clair); padding-bottom: .2rem; }
.fiche-poste h2:first-child { font-size: 1.25rem; margin-top: 0; }
.fiche-poste p { margin: .3rem 0; }
.fiche-poste .puce { padding-left: 1.1rem; position: relative; }
.fiche-poste .puce::before { content: "•"; position: absolute; left: .2rem; color: var(--cyan); font-weight: 700; }
.marque .sous-titre { display: block; color: #5b6776; font-size: .82rem; margin-top: .2rem; }
@media (max-width: 520px) { .logo span { font-size: .8rem; max-width: 9.5rem; line-height: 1.15; white-space: normal; } }
@media (max-width: 860px) { .connexion-accroche p:not(.accroche-titre) { display: none; } }
.etapes-eval { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: e; }
.etapes-eval li { counter-increment: e; padding: .35rem .7rem; border-radius: 999px; background: #eef2f6; color: #5b6776; font-size: .85rem; }
.etapes-eval li::before { content: counter(e) ". "; font-weight: 700; }
.etapes-eval li.faite { background: #e3f4ea; color: #1d6b3b; }
.etapes-eval li.en-cours { background: var(--bleu); color: #fff; font-weight: 600; }
.resultat-eval { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-left: 5px solid var(--cyan); }
.resultat-eval b { font-size: 1.8rem; color: var(--bleu-fonce); }
.resultat-eval span { font-size: 1.2rem; font-weight: 600; }
.badge-niveau-courante { background: #e6f4fc; color: #0b5c8a; }
.badge-niveau-personnelle { background: #fff4d6; color: #7a5600; }
.badge-niveau-confidentielle { background: #fde3e4; color: #a3141b; }
.texte-long { white-space: pre-line; }
.planning-conges td { min-width: 4.2rem; vertical-align: top; }
.pl, .pl-cle { display: inline-block; padding: .1rem .35rem; border-radius: 6px; font-size: .8rem; margin: 1px 0; }
.pl.retenue, .pl-cle.retenue { background: var(--bleu); color: #fff; }
.pl.choix1, .pl-cle.choix1 { background: #d6eefb; color: #0b5c8a; }
.pl.choix2, .pl-cle.choix2 { background: #eef2f6; color: #5b6776; }

/* Formulaire compact sur une ligne (contentieux, ajouts rapides) */
.formulaire-ligne { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: flex-end; margin-top: .75rem; }
.formulaire-ligne .champ { margin: 0; min-width: 9rem; flex: 1 1 9rem; }
.formulaire-ligne .bouton { flex: 0 0 auto; }
.historique-disc { border-left: 3px solid var(--rouge, #ED1C24); padding: .25rem 0 .25rem .9rem; margin: 0 0 1rem; }
.historique-disc h3 { margin: 0 0 .3rem; font-size: 1rem; }
.encadre { background: var(--fond-doux, #f4f7fb); border-radius: 6px; padding: .6rem .8rem; }
.repartition-sexe td, .repartition-sexe th { text-align: center; }
.repartition-sexe th[scope=row] { text-align: left; }
.repartition-sexe tr.total { border-top: 2px solid var(--bord); }
.filtre-actif { background: var(--fond-doux, #f4f7fb); border-left: 3px solid var(--cyan); padding: .4rem .8rem; }

.infos dd { overflow-wrap: anywhere; }
@media (max-width: 860px) { .onglets { flex-wrap: nowrap; overflow-x: auto; } }
