/* LSSPM Manager — feuille de style de l'interface (sans étape de compilation).
   Charte LSSPM : vert #006039 (structure, titres), bleu #5CB5FF (repères, focus,
   jamais en texte sur fond blanc), anthracite #1E2021 (texte). Police Montserrat
   (substitut libre de Gotham) et Noto Sans Arabic, servies localement.
   Idée directrice : le filigrane du logo, présent sur chaque document officiel
   de la Ligue, signe aussi l'accueil de l'application ; tout le reste reste calme. */
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Sans Arabic'; src: url('../fonts/NotoSansArabic-variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --vert: #006039; --vert-fonce: #004a2c; --vert-nuit: #00331f; --vert-pale: #e7f1ec; --vert-voile: #f1f6f3;
  --bleu: #5cb5ff; --bleu-pale: #eaf5ff;
  --texte: #1e2021; --texte-2: #545d5a; --fond: #f3f6f5; --carte: #fff;
  --bordure: #dfe6e2; --bordure-forte: #c3cec8;
  --alerte: #b3261e; --alerte-pale: #fcecea;
  --attente: #a15c00; --attente-pale: #fff3df;
  --ok: #1f6b3a; --ok-pale: #e7f3ec;
  --eteint: #6b7470; --eteint-pale: #eef1ef;
  --attention: #7a5200; --attention-pale: #fff4db;
  --police: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-ar: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --rayon: 10px; --rayon-petit: 6px;
  --ombre: 0 1px 2px rgba(0, 51, 31, .06), 0 2px 8px rgba(0, 51, 31, .04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 15px/1.55 var(--police); font-feature-settings: 'tnum' 1; }
[lang="ar"] { font-family: var(--police-ar); }
a { color: var(--vert); text-underline-offset: 2px; }
a:hover { color: var(--vert-fonce); }
h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; color: var(--vert-nuit); margin: 0 0 .3rem; }
h2 { font-size: 1.08rem; font-weight: 650; color: var(--vert-nuit); margin: 2rem 0 .7rem; }
p { margin: .4rem 0; }
code, .mono { font-family: var(--police); font-weight: 600; font-size: .86em; letter-spacing: .01em; color: var(--vert-nuit); }
.muted { color: var(--texte-2); font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- Structure */
.app { display: grid; grid-template-columns: 16.5rem 1fr; min-height: 100vh; }
.nav { background: var(--vert-nuit); color: #fff; padding: 1.1rem .8rem 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.nav-logo { display: flex; align-items: center; gap: .7rem; padding: .2rem .4rem 1rem; margin-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.nav-logo img { width: 3.2rem; height: 3.2rem; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.nav-logo strong { display: block; font-size: .98rem; font-weight: 700; line-height: 1.15; }
.nav-logo small { display: block; font-size: .74rem; color: #a9cdbc; font-weight: 500; }
.nav-groupe { font-size: .76rem; font-weight: 600; color: #8fbba6; padding: 1rem .7rem .3rem; }
.nav a.lien { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--rayon-petit); color: #dcebe3; text-decoration: none; font-size: .93rem; font-weight: 500; border-left: 3px solid transparent; }
.nav a.lien svg { width: 1.15rem; height: 1.15rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav a.lien:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.lien[aria-current="page"] { background: rgba(92,181,255,.14); color: #fff; font-weight: 650; border-left-color: var(--bleu); }
.nav a.lien[aria-current="page"] svg { opacity: 1; }
.principal { min-width: 0; display: flex; flex-direction: column; }
.entete { display: flex; align-items: center; gap: 1rem; padding: .75rem 2rem; background: #fff; border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 5; }
.entete .denom { flex: 0 1 auto; min-width: 0; }
.entete .ar { font-size: .86rem; color: var(--texte-2); line-height: 1.3; }
.entete .fr { font-size: .78rem; font-weight: 700; color: var(--vert); line-height: 1.3; }
.recherche { flex: 1 1 22rem; max-width: 34rem; margin-left: auto; position: relative; }
.recherche input[type=search] { padding-left: 2.4rem; background: var(--fond); border-color: transparent; border-radius: 999px; }
.recherche input[type=search]:focus { background: #fff; border-color: var(--bordure-forte); }
.recherche svg { position: absolute; left: .85rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); stroke: var(--texte-2); fill: none; stroke-width: 2; pointer-events: none; }
.recherche button { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.utilisateur { display: flex; align-items: center; gap: .6rem; flex: none; }
.initiales { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--vert-pale); color: var(--vert); display: grid; place-items: center; font-weight: 700; font-size: .82rem; }
.utilisateur .nom { font-size: .86rem; font-weight: 600; line-height: 1.2; }
.utilisateur .nom small { display: block; font-weight: 500; color: var(--texte-2); }
.btn-lien { background: none; border: 0; padding: .3rem; color: var(--texte-2); font: inherit; font-size: .84rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.btn-lien:hover { color: var(--vert); }
.menu-mobile { display: none; }
.contenu { padding: 2rem; max-width: 84rem; width: 100%; }

@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 0 auto 0 0; width: 17rem; z-index: 20; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-ouverte .nav { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .menu-mobile { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--rayon-petit); border: 1px solid var(--bordure); background: #fff; cursor: pointer; flex: none; }
  .menu-mobile svg { width: 1.3rem; height: 1.3rem; stroke: var(--vert-nuit); fill: none; stroke-width: 2; }
  .entete { padding: .6rem 1rem; flex-wrap: wrap; }
  .entete .denom { display: none; }
  .utilisateur .nom { display: none; }
  .contenu { padding: 1.2rem 1rem; }
}

/* ---------------------------------------------------------------- Composants */
.carte { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.barre-titre { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.3rem; }
.barre-titre p.muted { max-width: 60ch; }
.indicateur { display: block; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .9rem 1.1rem; text-decoration: none; color: inherit; }
.indicateur .valeur { font-size: 1.8rem; font-weight: 700; color: var(--vert-nuit); line-height: 1.1; }
.indicateur .libelle { font-size: .86rem; color: var(--texte-2); }

.tableau-defilant { overflow-x: auto; border: 1px solid var(--bordure); border-radius: var(--rayon); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { background: var(--vert-voile); color: var(--vert-nuit); text-align: left; font-weight: 650; font-size: .82rem; padding: .65rem .85rem; white-space: nowrap; border-bottom: 1px solid var(--bordure); }
td { padding: .7rem .85rem; border-top: 1px solid var(--bordure); vertical-align: top; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover td { background: #fafcfb; }
td a { font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }
td.mono { white-space: nowrap; }
tr.en-retard td:first-child { box-shadow: inset 3px 0 0 var(--alerte); }
dl.fiche { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: .55rem 1.2rem; margin: 0; }
dl.fiche dt { color: var(--texte-2); font-size: .88rem; }
dl.fiche dd { margin: 0; }
@media (max-width: 600px) { dl.fiche { grid-template-columns: 1fr; gap: .1rem; } dl.fiche dd { margin-bottom: .6rem; } }

/* Pastilles : la couleur porte le sens du statut. */
.pastille { display: inline-flex; align-items: center; gap: .3rem; padding: .14rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--vert-pale); color: var(--vert); white-space: nowrap; }
.pastille.confidentiel, .pastille.restreint, .pastille.retard { background: var(--alerte-pale); color: var(--alerte); }
.pastille.signe { background: var(--vert); color: #fff; }
.pastille.s-a_traiter, .pastille.s-a_executer, .pastille.s-recu, .pastille.s-brouillon, .pastille.s-projet, .pastille.s-propose, .pastille.s-date_a_confirmer { background: var(--bleu-pale); color: #1d4e7a; }
.pastille.s-en_attente, .pastille.s-bloquee, .pastille.s-infos_complementaires, .pastille.s-realisee, .pastille.s-executee, .pastille.s-realise_non_cloture, .pastille.s-en_cloture { background: var(--attente-pale); color: var(--attente); }
.pastille.s-cloturee, .pastille.s-cloture, .pastille.s-archive, .pastille.s-archivee, .pastille.s-en_vigueur, .pastille.s-valide, .pastille.s-diffuse { background: var(--ok-pale); color: var(--ok); }
.pastille.s-annulee, .pastille.s-annule, .pastille.s-caduque, .pastille.s-refuse, .pastille.s-remplace { background: var(--eteint-pale); color: var(--eteint); }
.pastille.interne { background: var(--eteint-pale); color: var(--eteint); }

form.formulaire { display: grid; gap: .9rem; max-width: 46rem; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .25rem; }
.aide { font-weight: 400; color: var(--texte-2); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number], input[type=file], select, textarea {
  width: 100%; font: inherit; padding: .55rem .75rem; border: 1px solid var(--bordure-forte); border-radius: var(--rayon-petit); background: #fff; color: var(--texte); min-height: 2.7rem; }
textarea { min-height: 6rem; line-height: 1.5; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--bleu); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.7rem; padding: .5rem 1.1rem; border-radius: var(--rayon-petit); border: 1px solid var(--vert); background: var(--vert); color: #fff; font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }
.btn.secondaire { background: #fff; color: var(--vert); border-color: var(--bordure-forte); }
.btn.secondaire:hover { background: var(--vert-voile); border-color: var(--vert); }
.btn.danger { background: #fff; color: var(--alerte); border-color: var(--alerte); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.message { border-radius: var(--rayon); padding: .8rem 1rem; margin-bottom: 1.2rem; border: 1px solid; font-weight: 500; }
.message.ok { background: var(--ok-pale); border-color: #a7d3b7; color: var(--ok); }
.message.erreur { background: var(--alerte-pale); border-color: #ebbcb6; color: var(--alerte); }
.message.attention { background: var(--attention-pale); border-color: #ebcb85; color: var(--attention); }

details.carte summary { cursor: pointer; font-weight: 600; }
ul.journal { list-style: none; padding-left: 0; margin: 0; }
ul.journal li { padding: .6rem 0; border-bottom: 1px solid var(--bordure); }
ul.journal li:last-child { border-bottom: 0; }

/* Filtres en onglets (registres) */
.filtres { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 1.1rem; }
.filtres a { padding: .38rem .85rem; border: 1px solid var(--bordure); border-radius: 999px; text-decoration: none; color: var(--texte-2); font-size: .86rem; font-weight: 600; background: #fff; }
.filtres a:hover { border-color: var(--vert); color: var(--vert); }
.filtres a[aria-current="page"] { background: var(--vert); border-color: var(--vert); color: #fff; }
.filtres input[type=search] { max-width: 17rem; margin-left: auto; min-height: 2.4rem; }
.filtres .btn { min-height: 2.4rem; }

/* ---------------------------------------------------------------- Tableau de bord */
.accueil { position: relative; overflow: hidden; background: var(--vert); color: #fff; border-radius: 14px; padding: 1.8rem 2rem 1.6rem; margin-bottom: 1.4rem; }
.accueil::after { content: ''; position: absolute; right: -2.5rem; top: 50%; width: 17rem; height: 17rem; transform: translateY(-50%); background: url('../brand/logo-lsspm.png') center / contain no-repeat; opacity: .12; filter: grayscale(1) brightness(3); pointer-events: none; }
.accueil h1 { color: #fff; font-size: 1.75rem; }
.accueil .date { color: #bfe0cf; font-size: .9rem; font-weight: 500; }
.accueil ul { list-style: none; padding: 0; margin: 1rem 0 1.2rem; max-width: 46rem; position: relative; z-index: 1; }
.accueil li { font-size: 1.02rem; padding: .25rem 0 .25rem 1.4rem; position: relative; }
.accueil li::before { content: ''; position: absolute; left: 0; top: .78rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--bleu); }
.accueil li.urgent::before { background: #ff8a80; }
.accueil li a { color: #fff; font-weight: 700; }
.accueil .actions { position: relative; z-index: 1; }
.accueil .btn { background: #fff; color: var(--vert); border-color: #fff; }
.accueil .btn:hover { background: var(--vert-pale); color: var(--vert-nuit); }
.accueil .btn.secondaire { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.accueil .btn.secondaire:hover { background: rgba(255,255,255,.1); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); margin-bottom: .6rem; }
.chiffres a, .chiffres div { display: block; padding: .9rem 1.1rem; text-decoration: none; color: inherit; border-left: 1px solid var(--bordure); }
.chiffres > :first-child { border-left: 0; }
.chiffres a:hover { background: var(--vert-voile); }
.chiffres .valeur { display: block; font-size: 1.65rem; font-weight: 700; color: var(--vert-nuit); line-height: 1.15; }
.chiffres .libelle { display: block; font-size: .82rem; color: var(--texte-2); line-height: 1.35; }
.chiffres .alerte .valeur { color: var(--alerte); }
.chiffres .attente .valeur { color: var(--attente); }
@media (max-width: 700px) { .chiffres a, .chiffres div { border-left: 0; border-top: 1px solid var(--bordure); } .chiffres > :first-child { border-top: 0; } }
.filtre-tdb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filtre-tdb input, .filtre-tdb select { width: auto; min-height: 2.4rem; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
@media (max-width: 1100px) { .deux-colonnes { grid-template-columns: 1fr; } }
.vide { background: #fff; border: 1px dashed var(--bordure-forte); border-radius: var(--rayon); padding: 1rem 1.2rem; color: var(--texte-2); font-size: .92rem; }

/* ---------------------------------------------------------------- Connexion */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(circle at 20% 10%, var(--vert-pale), var(--fond) 55%); }
.connexion .carte { width: 100%; max-width: 27rem; padding: 2rem; box-shadow: var(--ombre); }
.connexion .marque { text-align: center; margin-bottom: 1.4rem; }
.connexion .marque img { width: 7.5rem; height: auto; }
.connexion .marque .ar { color: var(--texte-2); font-size: .92rem; margin-top: .4rem; }
.connexion .marque .fr { color: var(--vert); font-weight: 700; font-size: .8rem; border-bottom: 2px solid var(--vert); padding-bottom: .7rem; }
.qr svg { width: 12rem; height: 12rem; }

/* ---------------------------------------------------------------- Page Dossiers */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; font-size: .86rem; margin: 0 0 .5rem; }
.fil a { color: var(--texte-2); text-decoration: none; }
.fil a:hover { color: var(--vert); text-decoration: underline; }
.fil a[aria-current="page"] { color: var(--vert-nuit); font-weight: 600; }
.fil .sep { color: var(--bordure-forte); }
.sous-dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .7rem; margin-bottom: 1.6rem; }
a.dossier { display: grid; grid-template-columns: 2.4rem 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .85rem 1rem; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); text-decoration: none; color: var(--texte); }
a.dossier:hover { border-color: var(--vert); background: var(--vert-voile); }
a.dossier svg { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; padding: .45rem; border-radius: 10px; background: var(--vert-pale); fill: none; stroke: var(--vert); stroke-width: 1.7; stroke-linejoin: round; }
a.dossier .nom { font-weight: 650; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
a.dossier .compte { font-size: .8rem; color: var(--texte-2); }

/* ---------------------------------------------------------------- Arborescence sous « Dossiers » (barre latérale) */
.nav-arbre { list-style: none; margin: .1rem 0 .5rem; padding: 0 0 0 1.55rem; font-size: .84rem; }
.nav-arbre ul { list-style: none; margin: .1rem 0 .3rem; padding: 0 0 0 .8rem; border-left: 1px solid rgba(255,255,255,.14); }
.nav-arbre li { position: relative; }
.nav-arbre summary { list-style: none; display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.nav-arbre summary::-webkit-details-marker { display: none; }
.nav-arbre summary::before { content: ''; flex: none; width: .4rem; height: .4rem; margin: 0 .25rem 0 -.75rem; border-right: 1.5px solid #8fbba6; border-bottom: 1.5px solid #8fbba6; transform: rotate(-45deg); transition: transform .15s ease; }
.nav-arbre details[open] > summary::before { transform: rotate(45deg); }
.nav-arbre a { display: block; flex: 1 1 auto; min-width: 0; padding: .28rem .45rem; border-radius: var(--rayon-petit); color: #c9ded3; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-arbre a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-arbre a[aria-current] { color: #fff; }
.nav-arbre a[aria-current="page"] { background: rgba(92,181,255,.16); font-weight: 650; box-shadow: inset 2px 0 0 var(--bleu); }
.nav-arbre li.feuille, .nav-arbre ul li { display: flex; align-items: center; gap: .3rem; }
.nav-arbre .compte { flex: none; font-size: .72rem; color: #8fbba6; font-weight: 600; padding-right: .3rem; }

/* ---------------------------------------------------------------- Rédaction (v0.6) */
.modeles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
a.modele { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); text-decoration: none; color: var(--texte); border-top: 4px solid var(--vert); }
a.modele:hover { border-color: var(--vert); background: var(--vert-voile); }
a.modele .code { font-size: .74rem; font-weight: 700; color: var(--vert); letter-spacing: .04em; }
a.modele strong { font-size: 1.05rem; color: var(--vert-nuit); }
.redaction-grille { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.2rem; align-items: start; }
@media (max-width: 1100px) { .redaction-grille { grid-template-columns: 1fr; } }
.redaction-fiche label { margin-top: .7rem; }
.redaction-fiche label:first-of-type { margin-top: 0; }
.redaction-fiche .deux { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
h2.petit { margin: 0 0 .7rem; font-size: .95rem; }
.carte.collant { position: sticky; top: 5rem; }
.actions.colonne { flex-direction: column; align-items: stretch; }
.editeur { padding: 0; overflow: hidden; }
.outils { display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem; border-bottom: 1px solid var(--bordure); background: var(--vert-voile); position: sticky; top: 0; }
.outils button { font: inherit; font-size: .84rem; padding: .35rem .65rem; border: 1px solid transparent; border-radius: var(--rayon-petit); background: transparent; color: var(--vert-nuit); cursor: pointer; min-height: 2.1rem; }
.outils button:hover { background: #fff; border-color: var(--bordure-forte); }
.outils .sep { width: 1px; background: var(--bordure-forte); margin: .2rem .25rem; }
.zone { min-height: 26rem; padding: 1.5rem 2rem 2rem; outline: none; font-size: .98rem; line-height: 1.65; }
.zone:focus { box-shadow: inset 0 0 0 2px var(--bleu); }
.zone h2, .page-corps h2 { color: var(--vert); font-size: 1.08rem; margin: 1.3rem 0 .4rem; }
.zone h3, .page-corps h3 { color: var(--vert); font-size: .98rem; margin: 1rem 0 .3rem; }
.zone table, .page-corps table { border-collapse: collapse; margin: .6rem 0; width: 100%; }
.zone th, .zone td, .page-corps th, .page-corps td { border: 1px solid var(--bordure-forte); padding: .35rem .5rem; font-size: .9rem; }
.zone th, .page-corps th { background: var(--vert); color: #fff; }
.etat-sauvegarde { padding: 0 1rem .7rem; }

/* Aperçu : une page A4 à l'écran, avec le filigrane du logo */
.feuille-apercu { background: #e9eeeb; border-radius: var(--rayon); padding: 2rem 1rem; overflow-x: auto; }
.page { position: relative; background: #fff; width: 100%; max-width: 21cm; min-height: 29.7cm; margin: 0 auto; padding: .5cm 2.5cm 3.4cm; box-shadow: 0 4px 22px rgba(0,0,0,.12); font-family: 'Inter', 'Noto Sans Arabic', sans-serif; font-size: 10.5pt; line-height: 1.45; color: #1E2021; }
.page::before { content: ''; position: absolute; inset: 25% 12% auto; height: 13cm; background: url('../brand/logo-lsspm.png') center / contain no-repeat; opacity: .12; pointer-events: none; }
.page.brouillon::after { content: 'BROUILLON'; position: absolute; top: 1cm; right: 1cm; border: 2px solid var(--attente); color: var(--attente); font-weight: 700; letter-spacing: .1em; padding: .2rem .6rem; border-radius: 4px; font-size: 9pt; }
/* Modèle PV-2026-004 validé par le SG le 12/11/2026 (Inter, vert #006039, bleu #5CB5FF). */
.page-entete { text-align: center; border-bottom: 1px solid #006039; padding-bottom: .05cm; margin-bottom: .9cm; }
.page-entete img { height: 1.25cm; width: auto; }
.page-entete .ar { font-family: 'Noto Sans Arabic', sans-serif; font-size: 11.5pt; font-weight: 700; line-height: 1.3; }
.page-entete .fr { font-size: 8.5pt; font-weight: 700; }
.page-titre { text-align: center; color: #006039; font-size: 16pt; font-weight: 700; margin: .5cm 0 .15cm; }
.page-sous-titre { text-align: center; font-size: 11.5pt; font-weight: 700; margin: 0 0 .1cm; }
.page-ligne-ref { text-align: center; color: #5CB5FF; font-size: 10.5pt; font-weight: 700; margin: 0 0 .35cm; }
.page h2.page-section, .page-corps h2 { color: #006039; font-size: 12.5pt; font-weight: 700; margin: .5cm 0 .15cm; }
.page-corps h3 { color: #5CB5FF; font-size: 10.5pt; font-weight: 700; margin: .35cm 0 .1cm; }
.page-corps h4 { color: #1E2021; font-size: 10.5pt; font-weight: 700; margin: .25cm 0 .1cm; }
.page-meta { width: 100%; border-collapse: collapse; margin-bottom: .6cm; font-size: 9pt; position: relative; }
.page-meta th { width: 28.75%; background: #006039; color: #fff; text-align: left; padding: .05cm .2cm; border: 1px solid #5CB5FF; font-weight: 700; white-space: normal; }
.page-meta td { padding: .05cm .2cm; border: 1px solid #5CB5FF; }
.page-corps { position: relative; }
.page-corps p { margin: .2cm 0; text-align: justify; }
.page .page-corps th, .page .page-corps td { border: 1px solid #5CB5FF; font-size: 9pt; padding: .05cm .2cm; }
.page .page-corps th { background: #006039; color: #fff; text-align: left; }
.page-signatures { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9.5pt; position: relative; }
.page-signatures th { background: #006039; color: #fff; text-align: left; padding: .05cm .2cm; border: 1px solid #5CB5FF; }
.page-signatures td { border: 1px solid #5CB5FF; height: 3cm; vertical-align: top; padding: .1cm .2cm; }
.page-signatures td span { display: block; margin-bottom: .35cm; }
.page-signature { text-align: right; margin-top: .6cm; }
.page-signature p { margin: .3cm 0 0; }
.page-signature strong { color: #006039; }
.page-pied { position: absolute; left: 2.5cm; right: 2.5cm; bottom: .9cm; border-top: 1px solid #006039; border-bottom: 3px solid #5CB5FF; padding: .1cm 0 .15cm; text-align: center; font-size: 7pt; line-height: 1.4; color: #1E2021; }
.page-pied strong { color: #006039; font-size: 7.5pt; }
@media (max-width: 700px) { .page { padding: .5cm .8cm 3.4cm; } .page-pied { left: .8cm; right: .8cm; } }

/* Fiche document : bandeau de rédaction */
.bandeau-redaction { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; border-left: 4px solid var(--vert); }
.bandeau-redaction p { margin: 0; }
.pastille.s-soumis, .pastille.s-en_etude { background: var(--bleu-pale); color: #1d4e7a; }
.pastille.s-valide_sous_reserve { background: var(--attente-pale); color: var(--attente); }
.pastille.s-proposee { background: var(--bleu-pale); color: #1d4e7a; }
.pastille.s-validee, .pastille.s-engagee { background: var(--attente-pale); color: var(--attente); }
.pastille.s-realisee_a_regulariser { background: var(--alerte-pale); color: var(--alerte); }
.pastille.s-payee { background: var(--ok-pale); color: var(--ok); }
label.case { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; }
label.case input { margin-top: .25rem; }
.filtres select, .filtres form select { width: auto; max-width: 22rem; min-height: 2.4rem; }
td.controles .pastille { white-space: normal; margin: 0 .2rem .2rem 0; }
td.objet { min-width: 16rem; }
.chiffres.montants .valeur { font-size: 1.3rem; white-space: nowrap; }

/* ---------------------------------------------------------------------------
   Palette R13 (décision du SG du 30/10/2026, variante B) : dégradé du vert de
   la charte #006039 vers le turquoise de la carte du logo #3EA5C2. Couleurs
   officielles uniquement (charte.pdf et logo). Les pages d'aperçu (.page-*)
   et les documents Word/PDF ne changent pas.
   --------------------------------------------------------------------------- */
:root {
  --turquoise: #3EA5C2; --bleu-logo: #1D71B8;
  --degrade: linear-gradient(120deg, #006039 0%, #3EA5C2 100%);
  --degrade-nav: linear-gradient(180deg, #006039 0%, #006039 30%, #3EA5C2 100%);
  --degrade-btn: linear-gradient(135deg, #004a2c 0%, #006039 100%);
}
a:hover { color: var(--bleu-logo); }
.nav { background: var(--degrade-nav); }
.nav-logo { border-bottom-color: rgba(255,255,255,.22); }
.nav-logo small, .nav-groupe { color: #dff0ea; }
.nav a.lien { color: #fff; }
.nav a.lien:hover { background: rgba(255,255,255,.12); }
.nav a.lien[aria-current="page"] { background: rgba(255,255,255,.18); border-left-color: #fff; }
.nav-arbre a { color: #eef7f3; }
.nav-arbre summary::before { border-color: rgba(255,255,255,.75); }
.nav-arbre ul { border-left-color: rgba(255,255,255,.25); }
.btn { background: var(--degrade-btn); }
.btn:hover { background: var(--vert); }
.btn.secondaire, .btn.secondaire:hover { background: #fff; }
.btn.secondaire:hover { background: var(--vert-voile); }
.accueil { background: var(--degrade); }
.accueil .date { color: #e0f2ee; }
.accueil li::before { background: #fff; }
a.modele { border-top: 0; background: linear-gradient(120deg, #006039, #3EA5C2) top / 100% 4px no-repeat, #fff; padding-top: calc(1.1rem + 4px); }
a.modele:hover { background: linear-gradient(120deg, #006039, #3EA5C2) top / 100% 4px no-repeat, var(--vert-voile); }
.connexion { background: radial-gradient(circle at 20% 10%, #e3f3f6, var(--fond) 55%); }

/* Registre documentaire (R16) : rubriques, filtres, pagination. */
.filtres.rubriques { margin: 0 0 .8rem; }
.filtres .compte { display: inline-block; min-width: 1.5rem; margin-left: .3rem; padding: 0 .35rem; border-radius: 999px; background: var(--vert-pale); color: var(--vert); font-size: .74rem; font-weight: 700; text-align: center; }
.filtres a[aria-current="page"] .compte { background: rgba(255,255,255,.25); color: #fff; }
.filtres-documents { display: grid; grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(8rem, 1fr)) auto; gap: .6rem .9rem; align-items: end; }
.filtres-documents .actions { display: flex; align-items: center; gap: .8rem; }
.resume-liste { margin: .9rem 0 .4rem; font-size: .88rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 1rem 0 .5rem; }
.pagination a, .pagination span[aria-current], .pagination .inactif { display: inline-flex; align-items: center; justify-content: center; min-width: 2.3rem; min-height: 2.3rem; padding: 0 .7rem; border: 1px solid var(--bordure-forte); border-radius: var(--rayon-petit); background: #fff; color: var(--vert); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pagination a:hover { border-color: var(--vert); background: var(--vert-voile); }
.pagination span[aria-current] { background: var(--degrade-btn); border-color: var(--vert); color: #fff; }
.pagination .inactif { color: var(--eteint); background: var(--eteint-pale); border-color: var(--bordure); }
.pagination > .muted { margin-left: .6rem; font-size: .86rem; }
@media (max-width: 760px) { .filtres-documents { grid-template-columns: 1fr 1fr; } .filtres-documents .champ-large { grid-column: 1 / -1; } }
.classement { max-width: 22rem; }

/* v0.8 — R22 retrait d'une pièce ; R23-R24 gestion des dossiers */
details.retrait { display: inline-block; margin-left: .4rem; }
details.retrait[open] { display: block; margin: .4rem 0 .6rem; }
details.retrait summary { list-style: none; cursor: pointer; font-size: .85rem; }
details.retrait summary::-webkit-details-marker { display: none; }
details.retrait form { margin-top: .4rem; padding: .6rem .8rem; border: 1px solid var(--bordure, #d9e2dc); border-radius: 8px; background: #fff; }
ul.pieces li { margin: .25rem 0; }
.gestion-dossier { margin: 0 0 1rem; }
.gestion-dossier summary { cursor: pointer; font-weight: 600; }
.gestion-dossier .grille { margin-top: .6rem; }
.gestion-dossier .actions input, .gestion-dossier .actions select { flex: 1 1 14rem; min-width: 0; }
.btn-lien.danger { color: #b42318; }

/* v0.8, liste n° 2 (R30 à R35) : éditeur complet (TinyMCE) et aperçu des nouvelles mises en forme. */
.editeur .aide-editeur { margin: 0 0 .6rem; font-size: .85rem; }
.editeur .tox-tinymce { border-radius: 8px; border-color: var(--bordure); }
.editeur .tox .tox-toolbar__primary, .editeur .tox .tox-editor-header { background: var(--vert-voile, #eef5f1); }
.editeur label.case { display: block; margin-top: .8rem; font-weight: 500; }
.editeur label.case input { margin: 0 .45rem 0 0; vertical-align: -2px; }
.editeur label.case .aide { display: block; margin-left: 1.6rem; font-weight: 400; }
.page-corps hr.saut-page { border: 0; border-top: 2px dashed #5CB5FF; margin: .6cm 0; position: relative; }
.page-corps hr.saut-page::after { content: 'saut de page'; position: absolute; right: 0; top: -.9em; font-size: 7pt; color: #5CB5FF; background: #fff; padding: 0 .3em; }
.page-corps hr { border: 0; border-top: 1px solid #5CB5FF; margin: .3cm 0; }
.page-corps a { color: #0077E9; }
.page-corps ul ul, .page-corps ol ol, .page-corps ul ol, .page-corps ol ul { margin: .1cm 0; }
.page-corps table { width: 100%; border-collapse: collapse; table-layout: fixed; }

/* R39 : table des matières automatique dans l'aperçu à l'écran. */
.page-corps .tdm-apercu { margin: .3cm 0 .5cm; }
.page-corps .tdm-apercu .tdm-titre { color: #006039; font-weight: 700; font-size: 12.5pt; margin: 0 0 .15cm; }
.page-corps .tdm-apercu ul { list-style: none; padding: 0; margin: 0; }
.page-corps .tdm-apercu li { display: flex; gap: .3em; font-size: 10pt; margin: .05cm 0; }
.page-corps .tdm-apercu li::after { content: ''; flex: 1; border-bottom: 1px dotted #8a9399; margin-bottom: .3em; order: 1; }
.page-corps .tdm-apercu li span { order: 2; color: #8a9399; }
.page-corps .tdm-apercu li.tdm-h2 { font-weight: 700; color: #006039; margin-top: .12cm; }
.page-corps .tdm-apercu li.tdm-h3 { padding-left: .6cm; }
.page-corps .tdm-apercu li.tdm-h4 { padding-left: 1.2cm; }
.page-corps .tdm-apercu .tdm-note { font-size: 8pt; color: #8a9399; margin: .1cm 0 0; }

/* ------------------------------------------------ v0.8 livraison A (liste n° 3) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.petit { font-size: .84rem; }
.btn.danger, .btn.secondaire.danger { color: var(--alerte); border-color: #e7b7b2; }
.btn.secondaire.danger:hover { background: var(--alerte-pale); color: var(--alerte); }
/* A2 — bouton « + Ajouter » */
.ajouter { position: relative; margin: 0 .2rem .9rem; }
.ajouter > summary { list-style: none; }
.ajouter > summary::-webkit-details-marker { display: none; }
.btn-ajouter { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.8rem; border-radius: 10px; background: #fff; color: var(--vert-nuit); font-weight: 700; cursor: pointer; }
.btn-ajouter svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.ajouter[open] .btn-ajouter { box-shadow: 0 0 0 3px var(--bleu); }
.ajouter-menu { position: absolute; z-index: 30; left: 0; top: calc(100% + .5rem); width: min(44rem, 86vw); background: #fff; color: var(--texte); border: 1px solid var(--bordure-forte); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,51,31,.2); padding: .9rem; }
.ajouter-menu input[type=search] { width: 100%; margin-bottom: .7rem; }
.ajouter-groupes { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .4rem 1.2rem; }
.ajouter-titre { font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--vert); margin: .3rem 0 .2rem; }
.ajouter-groupe a, .ajouter-raccourcis a { display: block; padding: .42rem .5rem; border-radius: 6px; color: var(--texte); text-decoration: none; font-size: .92rem; }
.ajouter-groupe a:hover, .ajouter-groupe a:focus, .ajouter-raccourcis a:hover { background: var(--vert-pale); color: var(--vert-nuit); }
.ajouter-raccourcis { margin-bottom: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--bordure); }
.ajouter-raccourcis [data-ajouter-raccourcis-liste] { display: flex; flex-wrap: wrap; gap: .4rem; }
.ajouter-raccourcis a.raccourci { background: var(--vert-pale); font-weight: 600; }
.ajouter-contexte { margin-top: .7rem; padding: .5rem .7rem; background: var(--vert-voile); border-radius: 8px; font-size: .84rem; color: var(--vert-nuit); }
/* A3 — zone de dépôt */
.zone-depot { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; border: 2px dashed var(--bleu); background: #f5faff; border-radius: 14px; padding: 1.6rem 1rem; cursor: pointer; color: var(--texte-2); }
.zone-depot svg { width: 2rem; height: 2rem; stroke: #1d5fa0; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.zone-depot strong { color: var(--vert-nuit); font-size: 1.02rem; }
.zone-depot.survol { background: var(--bleu-pale); border-style: solid; }
.zone-depot-liste { font-size: .86rem; color: var(--vert); font-weight: 600; }
.depot-rapide { margin-top: 1.2rem; }
/* R48 — vérification du dépôt */
.depot-liste { padding: 0; overflow: hidden; }
.depot-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; padding: 1rem 1.2rem; border-top: 1px solid var(--bordure); }
.depot-ligne:first-child { border-top: 0; }
.depot-ligne.inactive { background: var(--eteint-pale); color: var(--texte-2); }
.ext-fichier { flex: none; width: 2.6rem; height: 3.1rem; border-radius: 7px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: var(--eteint-pale); color: var(--texte-2); }
.ext-pdf { background: var(--alerte-pale); color: var(--alerte); }
.ext-docx, .ext-doc { background: var(--bleu-pale); color: #1d5fa0; }
.ext-xlsx, .ext-xls { background: var(--vert-pale); color: var(--vert); }
.depot-fichier { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.depot-fichier .nom { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depot-message { font-size: .84rem; color: #1d5fa0; }
.depot-type { flex: 0 1 16rem; display: flex; flex-direction: column; gap: .25rem; font-size: .84rem; }
.depot-ref { flex: 0 0 12rem; display: flex; flex-direction: column; }
.depot-ref .etiquette { font-size: .76rem; font-weight: 600; color: var(--texte-2); }
.depot-ref strong { font-size: 1rem; color: var(--vert-nuit); }
.case.petite { font-size: .84rem; }
.depot-pied { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; }
.depot-pied p { flex: 1 1 18rem; margin: 0; }
/* A10 — annuler */
.annuler-bandeau { display: inline; margin-left: .6rem; }
.annuler-bandeau .btn-lien { font-weight: 700; color: var(--vert-nuit); }
.retrait-piece { display: inline; }
/* R46 — liaison par recherche */
.liaison .suggestions { display: flex; flex-direction: column; gap: .2rem; margin-top: .4rem; max-width: 40rem; }
.suggestion { text-align: left; background: #fff; border: 1px solid var(--bordure); border-radius: 8px; padding: .45rem .7rem; font: inherit; font-size: .9rem; cursor: pointer; }
.suggestion:hover, .suggestion:focus { background: var(--vert-pale); border-color: var(--vert); }
.liste-liens { list-style: none; padding: 0; margin: 0 0 .8rem; }
.liste-liens li { padding: .35rem 0; border-bottom: 1px solid var(--bordure); }
.liste-liens .muted { display: inline-block; min-width: 11rem; }
.ajouter-menu [hidden] { display: none !important; }
/* Le menu « + Ajouter » s'ouvre à côté de la barre latérale (jamais coupé par elle). */
.ajouter-menu { position: fixed; left: calc(16.5rem + .8rem); top: 4.6rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
@media (max-width: 1000px) { .ajouter-menu { left: .8rem; right: .8rem; width: auto; top: 4.6rem; } }

/* ===========================================================================
   v0.8, liste n° 3 — livraison B : nouvelle présentation (maquettes validées
   par le SG le 13/11/2026). Police Inter (R56), cartes aérées, chiffres clés
   en grand, mêmes boutons et pastilles partout, couleurs de la charte.
   =========================================================================== */
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-ExtraBold.woff') format('woff'); font-weight: 800; font-display: swap; }
:root {
  --police: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rayon: 12px; --rayon-grand: 16px;
  --orange: #8a4f00; --bleu-texte: #1d5fa0; --turquoise-texte: #17697c; --turquoise-pale: #e6f4f8;
}
body { font-size: 15px; }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 700; }
code, .mono { font-weight: 600; }
.surtitre { margin: 0 0 .15rem; font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--vert); }
.num { display: inline-block; min-width: 1.6em; margin-right: .35em; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .8; }

/* Barre latérale */
.nav { display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg, #00331f 0%, #006039 55%, #1b6f7e 100%); }
.nav a.lien { font-weight: 500; border-left: 0; border-radius: 8px; padding: .55rem .75rem; }
.nav a.lien[aria-current="page"] { background: rgba(255,255,255,.14); box-shadow: inset 3px 0 0 var(--bleu); font-weight: 650; }
.nav-groupe { color: #a9d4c0; font-size: .76rem; padding: .9rem .75rem .25rem; }
.nav-favoris { list-style: none; margin: 0; padding: 0; }
.nav-favoris a { display: flex; align-items: center; gap: .65rem; padding: .42rem .75rem; border-radius: 8px; color: #e3f1ea; text-decoration: none; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-favoris a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-favoris a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.nav-favoris .puce { flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.nav-favoris .puce.favori { background: var(--bleu); }
.nav-favoris a.recent { color: #cfe6dc; }
.nav-astuce { margin: 0 .75rem .4rem; font-size: .78rem; line-height: 1.4; color: #bfe0d0; }
.nav-admin { margin-top: .9rem; }
.nav-admin > summary { list-style: none; cursor: pointer; color: #a9d4c0; font-size: .76rem; font-weight: 600; padding: .4rem .75rem; border-radius: 8px; }
.nav-admin > summary::-webkit-details-marker { display: none; }
.nav-admin > summary::after { content: ' ▸'; }
.nav-admin[open] > summary::after { content: ' ▾'; }
.nav-admin > summary:hover { color: #fff; }

/* En-tête : recherche, aide, menu de l'utilisateur */
.entete { gap: .9rem; }
.recherche input[type=search] { min-height: 2.75rem; }
.aide-entete { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--bordure); display: grid; place-items: center; text-decoration: none; font-weight: 700; color: var(--vert-nuit); background: #fff; }
.aide-entete:hover { border-color: var(--vert); background: var(--vert-voile); }
details.utilisateur { position: relative; flex: none; }
details.utilisateur > summary { list-style: none; display: flex; align-items: center; gap: .6rem; cursor: pointer; padding: .2rem .4rem; border-radius: 10px; }
details.utilisateur > summary::-webkit-details-marker { display: none; }
details.utilisateur > summary:hover { background: var(--vert-voile); }
details.utilisateur .initiales { width: 2.5rem; height: 2.5rem; }
details.utilisateur .nom { display: block; font-size: .88rem; font-weight: 650; line-height: 1.25; }
details.utilisateur .nom small { display: block; font-size: .76rem; font-weight: 500; color: var(--texte-2); }
.utilisateur-menu { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30; min-width: 14rem; background: #fff; border: 1px solid var(--bordure-forte); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,51,31,.16); padding: .5rem; display: flex; flex-direction: column; gap: .2rem; }
.utilisateur-menu a, .utilisateur-menu .btn-lien { display: block; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: var(--texte); font-size: .9rem; }
.utilisateur-menu a:hover, .utilisateur-menu .btn-lien:hover { background: var(--vert-pale); color: var(--vert-nuit); }
.utilisateur-menu form { margin: 0; }
@media (max-width: 1000px) { details.utilisateur .nom { display: none; } .aide-entete { width: 2.4rem; height: 2.4rem; } }

/* Composants communs */
.carte-section { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-grand); padding: 1.1rem 1.35rem; margin-bottom: 1.4rem; }
.carte-section > h2:first-child, .carte-section .entete-section h2 { margin: 0 0 .8rem; font-size: 1.06rem; }
.entete-section { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.entete-section a { font-size: .84rem; font-weight: 600; }
.btn-mini { font: inherit; font-size: .78rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--bordure-forte); background: #fff; color: var(--vert); cursor: pointer; min-height: 1.9rem; }
.btn-mini:hover { border-color: var(--vert); background: var(--vert-voile); }
.texte-retard, .en-retard-texte { color: var(--alerte); font-weight: 600; }
.pastille.avec-sens { cursor: help; }
.pastille.interne { background: var(--eteint-pale); color: #3f4744; }
a.pastille { text-decoration: none; }
a.pastille:hover { text-decoration: underline; }
.alerte-douce { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; justify-content: space-between; background: var(--attente-pale); border: 1px solid #ebcb85; color: #5c3a00; border-radius: var(--rayon); padding: .9rem 1.1rem; }
.vide-accueillant { text-align: center; padding: 1.6rem 1rem; }
.titre-section { margin: 1.6rem 0 .8rem; font-size: 1.06rem; }
.barre { height: 8px; background: var(--vert-pale); border-radius: 999px; overflow: hidden; }
.barre > span { display: block; height: 100%; background: linear-gradient(90deg, #006039, #3ea5c2); border-radius: 999px; }
.mini-jauge { display: inline-block; vertical-align: middle; width: 5rem; height: 6px; background: var(--vert-pale); border-radius: 999px; overflow: hidden; margin-left: .4rem; }
.mini-jauge > span { display: block; height: 100%; background: var(--vert); }
/* Étiquette de type de document (A27) */
.type-doc { flex: none; display: inline-grid; place-items: center; min-width: 2.6rem; padding: .18rem .45rem; border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; background: var(--eteint-pale); color: #3f4744; }
.type-doc.grand { min-width: 3.4rem; height: 3.4rem; border-radius: 10px; font-size: .74rem; }
.t-pv { background: var(--vert-pale); color: var(--vert); }
.t-cou { background: var(--bleu-pale); color: var(--bleu-texte); }
.t-fin { background: var(--attente-pale); color: var(--orange); }
.t-com { background: var(--turquoise-pale); color: var(--turquoise-texte); }
.t-rap { background: #eef0fb; color: #3d4a8f; }

/* Ma journée (A1, A30) */
.journee-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.4rem; }
.journee-entete h1 { font-size: 2rem; margin: .1rem 0 0; }
.journee-entete .sous-titre { margin: .2rem 0 0; color: var(--texte-2); font-size: 1rem; }
.progression-mois { background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: .85rem 1.1rem; min-width: min(18rem, 100%); display: flex; flex-direction: column; gap: .45rem; }
.progression-mois .ligne { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; }
.progression-mois .titre { font-weight: 650; color: var(--vert-nuit); }
.progression-mois .valeur { font-weight: 700; color: var(--vert); }
.progression-mois .barre { height: 10px; }
.progression-mois .note { font-size: .78rem; color: var(--texte-2); }
.cartes-cles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.carte-cle { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 1rem 1.15rem; text-decoration: none; color: var(--texte); }
.carte-cle:hover { border-color: var(--vert); color: var(--texte); box-shadow: var(--ombre); }
.carte-cle .etiquette { font-size: .82rem; font-weight: 650; color: var(--texte-2); }
.carte-cle .etiquette.orange { color: var(--orange); } .carte-cle .etiquette.vert { color: var(--vert); } .carte-cle .etiquette.bleu { color: var(--bleu-texte); }
.carte-cle .valeur { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--vert-nuit); }
.carte-cle .detail { font-size: .82rem; color: var(--texte-2); }
.carte-cle.alerte { border-color: #f2c9c5; }
.carte-cle.alerte .etiquette, .carte-cle.alerte .valeur { color: var(--alerte); }
@media (max-width: 900px) { .cartes-cles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.journee-grille { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 1100px) { .journee-grille { grid-template-columns: minmax(0, 1fr); } }
.a-faire { padding: .4rem 0; }
.a-faire > h2:first-child { padding: .7rem 1.35rem .2rem; }
.tache { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: .85rem 1.35rem; border-top: 1px solid #edf1ef; }
.a-faire h2 + .tache { border-top: 0; }
.tache-icone { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; }
.tache-icone svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ton-orange { background: var(--attente-pale); color: var(--orange); } .ton-rouge { background: var(--alerte-pale); color: var(--alerte); }
.ton-bleu { background: var(--bleu-pale); color: var(--bleu-texte); } .ton-vert { background: var(--vert-pale); color: var(--vert); }
.ton-gris { background: var(--eteint-pale); color: #3f4744; }
.tache-texte { flex: 1 1 15rem; min-width: 0; }
.tache-texte .titre { font-weight: 650; }
.tache-texte .detail { font-size: .84rem; color: var(--texte-2); }
.tache .btn { flex: none; }
.vide-accueil { padding: .8rem 1.35rem 1.1rem; }
.evenement { display: flex; gap: .8rem; align-items: center; padding: .45rem 0; text-decoration: none; color: var(--texte); }
.evenement:hover .titre { color: var(--vert); text-decoration: underline; }
.date-bloc { flex: none; width: 3rem; text-align: center; border-radius: 10px; padding: .3rem 0; background: var(--vert-pale); color: var(--vert); }
.date-bloc span { display: block; font-size: .68rem; font-weight: 700; }
.date-bloc strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--vert-nuit); line-height: 1.1; }
.date-bloc.echeance { background: var(--bleu-pale); color: var(--bleu-texte); } .date-bloc.activite { background: var(--attente-pale); color: var(--orange); }
.evenement-texte { min-width: 0; display: flex; flex-direction: column; }
.evenement-texte .titre { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evenement-texte .detail { font-size: .78rem; color: var(--texte-2); }
.recent-doc { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; text-decoration: none; color: var(--texte); font-size: .88rem; }
.recent-doc .texte { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-doc .quand { flex: none; font-size: .74rem; color: var(--texte-2); }
.recent-doc:hover .texte { color: var(--vert); text-decoration: underline; }
.mini-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; margin: 0; }
.mini-chiffres dt { font-size: .76rem; color: var(--texte-2); }
.mini-chiffres dd { margin: 0; font-weight: 700; color: var(--vert-nuit); }
.mini-chiffres .alerte dd { color: var(--alerte); }
.tableau-detaille { margin-top: .6rem; }
.tableau-detaille > summary { cursor: pointer; font-weight: 700; color: var(--vert-nuit); padding: .8rem 1.1rem; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); }
.tableau-detaille[open] > summary { margin-bottom: 1rem; }
.tableau-detaille > summary .muted { font-weight: 400; margin-left: .4rem; }

/* Dossiers (R42, R56, A8, A27) */
.dossiers-titre h1 { margin: 0; }
.bascule { display: inline-flex; border: 1px solid var(--bordure-forte); border-radius: 10px; overflow: hidden; background: #fff; }
.bascule a { padding: .5rem .9rem; font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--texte-2); min-height: 2.6rem; display: inline-flex; align-items: center; }
.bascule a[aria-pressed="true"] { background: var(--vert); color: #fff; }
.vignettes-dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.vignette-dossier { display: flex; flex-direction: column; justify-content: space-between; gap: .9rem; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 1rem 1.1rem; text-decoration: none; color: var(--texte); min-height: 8.2rem; }
.vignette-dossier:hover { border-color: var(--vert); box-shadow: var(--ombre); color: var(--texte); }
.vignette-dossier .haut { display: flex; gap: .8rem; align-items: flex-start; }
.vignette-dossier .icone { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); }
.vignette-dossier .icone svg, .dossier-entete-icone svg, .fiche-entete-icone svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icone.i-administration, .icone.i-communication { background: var(--bleu-pale); color: var(--bleu-texte); }
.icone.i-finances { background: var(--attente-pale); color: var(--orange); }
.icone.i-evenements, .icone.i-partenariats, .icone.i-veille { background: var(--turquoise-pale); color: var(--turquoise-texte); }
.icone.i-rapports, .icone.i-archives { background: var(--eteint-pale); color: #3f4744; }
.icone.i-classer { background: #f5faff; color: var(--bleu-texte); border: 1px dashed var(--bleu); }
.vignette-dossier .noms { min-width: 0; }
.vignette-dossier .numero { font-size: .76rem; font-weight: 700; color: var(--vert); letter-spacing: .02em; }
.vignette-dossier .nom { font-weight: 700; color: var(--vert-nuit); line-height: 1.3; overflow-wrap: anywhere; }
.vignette-dossier .nom .restreint { font-weight: 500; font-size: .78rem; color: var(--alerte); }
.vignette-dossier .bas { display: flex; flex-direction: column; gap: .45rem; }
.vignette-dossier .ligne { display: flex; justify-content: space-between; gap: .6rem; font-size: .8rem; color: var(--texte-2); }
.vignette-dossier .a-completer { color: var(--orange); font-weight: 650; white-space: nowrap; }
.vignette-dossier .quand { white-space: nowrap; }
.vignette-dossier .barre { height: 6px; }
.dossier-entete, .fiche-entete { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; align-items: center; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-grand); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.dossier-entete-icone, .fiche-entete-icone { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 14px; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); }
.dossier-entete-texte, .fiche-entete-texte { flex: 1 1 20rem; min-width: 0; }
.dossier-entete h1, .fiche-entete h1 { font-size: 1.45rem; margin: 0 0 .45rem; }
.puces { display: flex; flex-wrap: wrap; gap: .4rem; }
.dossier-jauge { flex: 0 1 17rem; display: flex; flex-direction: column; gap: .35rem; background: var(--attente-pale); border-radius: 12px; padding: .7rem .9rem; }
.dossier-jauge.complete { background: var(--ok-pale); }
.dossier-jauge .ligne { display: flex; justify-content: space-between; gap: .6rem; font-size: .82rem; font-weight: 650; color: var(--vert-nuit); }
.dossier-jauge .barre { background: rgba(255,255,255,.75); }
.dossier-jauge .note { font-size: .76rem; color: var(--texte-2); }
.aide-lien { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1px solid currentColor; font-size: .7rem; font-weight: 700; text-decoration: none; margin-left: .2rem; }
.dossier-entete-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-top: .3rem; border-top: 1px solid #edf1ef; }
.dossier-entete-actions form { margin: 0; }
.favori-btn[aria-pressed="true"] { color: var(--orange); border-color: #ebcb85; background: var(--attente-pale); }
.nouveau-dossier .champs { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .8rem; }
.titre-documents { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .6rem 1rem; }
.tri-documents { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 .8rem; }
.tri-documents label { display: flex; align-items: center; gap: .4rem; font-weight: 500; font-size: .84rem; color: var(--texte-2); margin: 0; }
.tri-documents select { width: auto; min-height: 2.4rem; }
.cartes-documents { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .8rem; }
.carte-document { position: relative; display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: .9rem 1rem; }
.carte-document:hover, .carte-document:focus-within { border-color: var(--vert); box-shadow: var(--ombre); }
.carte-document .texte { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.carte-document .ref { font-size: .76rem; font-weight: 700; color: var(--vert); }
.carte-document .titre { font-weight: 650; color: var(--vert-nuit); text-decoration: none; line-height: 1.3; }
.carte-document .titre::after { content: ''; position: absolute; inset: 0; }
.carte-document .titre:hover { text-decoration: underline; }
.carte-document .meta { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; font-size: .76rem; color: var(--texte-2); position: relative; z-index: 1; }
.apercu-survol { display: none; position: absolute; z-index: 20; left: 1rem; right: 1rem; top: calc(100% + .4rem); background: #fff; border: 1px solid var(--bordure-forte); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,51,31,.16); padding: .8rem 1rem; font-size: .84rem; pointer-events: none; }
.apercu-survol dl { margin: .4rem 0; display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; }
.apercu-survol dl div { display: contents; }
.apercu-survol dt { color: var(--texte-2); }
.apercu-survol dd { margin: 0; }
@media (hover: hover) { .carte-document:hover .apercu-survol { display: block; } }
.liste-dossiers td:first-child { width: 4rem; }

/* Fiche décision (R55) */
.fiche-entete-icone { background: var(--bleu-pale); color: var(--bleu-texte); }
.taches-decision { padding: 1.2rem 1.35rem; }
.entete-taches { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; }
.entete-taches h2 { margin: 0; }
.entete-taches .resume, .resume-taches { margin: .25rem 0 0; font-size: .9rem; color: var(--texte-2); }
.barre-empilee { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--eteint-pale); margin: .3rem 0 .5rem; }
.barre-empilee .seg { display: block; height: 100%; }
.seg.cloturee, .legende i.cloturee { background: var(--vert); }
.seg.realisee, .legende i.realisee { background: #3ea5c2; }
.seg.en-cours, .legende i.en-cours { background: var(--bleu); }
.seg.retard, .legende i.retard { background: var(--alerte); }
.legende i.autre { background: var(--eteint-pale); border: 1px solid var(--bordure-forte); }
.legende { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .78rem; color: var(--texte-2); margin-bottom: .9rem; }
.legende span { display: inline-flex; align-items: center; gap: .35rem; }
.legende i { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; }
td.statut-rapide { white-space: nowrap; }
td.statut-rapide form { display: inline; margin-left: .3rem; }
tr.terminee td { color: var(--texte-2); }
.proposition { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-top: .9rem; padding: .8rem 1rem; border-radius: var(--rayon); background: var(--ok-pale); color: var(--ok); }
.proposition form { margin: 0; }
.detail-fiche > summary { margin-bottom: .2rem; }
.detail-fiche[open] > summary { margin-bottom: .8rem; }

/* Aide et glossaire (A6) */
.aide-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.4rem; align-items: start; }
@media (max-width: 1000px) { .aide-grille { grid-template-columns: 1fr; } }
.aide-gestes { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.glossaire { margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.glossaire dt { font-weight: 700; color: var(--vert-nuit); }
.glossaire dd { margin: .1rem 0 0; color: var(--texte); font-size: .92rem; }
.glossaire > div:target { background: var(--attente-pale); border-radius: 8px; padding: .4rem .6rem; }
.glossaire.statuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .9rem 1.4rem; }
/* Inter : les chiffres tabulaires élargissent aussi les traits d'union (« ACT - 2026 ») ; réservés aux colonnes de chiffres. */
body { font-feature-settings: normal; }
.valeur, .chiffres .valeur, .carte-cle .valeur, .mini-chiffres dd, .compte { font-variant-numeric: tabular-nums; }
/* Le champ « fichier » caché (zone de dépôt) ne doit pas élargir la page. */
.sr-only { width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
@media (max-width: 600px) { .tache-texte { flex-basis: 12rem; } .tache .btn { width: 100%; } .journee-entete h1 { font-size: 1.6rem; } .cartes-cles { gap: .6rem; } .carte-cle .valeur { font-size: 1.8rem; } .dossier-entete, .fiche-entete { padding: 1rem; } .nouveau-dossier .champs { grid-template-columns: 4.5rem minmax(0, 1fr); } }

/* ===========================================================================
   Version simplifiée (R59, 14/11/2026) — explorateur « comme dans Windows » :
   vue Détails, petites icônes de format, sélection, menu du clic droit.
   =========================================================================== */
.explorateur { display: flex; flex-direction: column; gap: .8rem; }
.explo-barre { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.explo-nav { flex: 1 1 26rem; min-width: 0; display: flex; gap: .4rem; align-items: center; }
.explo-btn-icone { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 8px; border: 1px solid var(--bordure); background: #fff; display: grid; place-items: center; color: var(--vert-nuit); }
.explo-btn-icone svg, .explo-outil svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.explo-btn-icone:hover { background: var(--vert-voile); }
.explo-adresse { flex: 1; min-width: 0; margin: 0; background: #fff; border: 1px solid var(--bordure); border-radius: 8px; padding: .45rem .8rem; min-height: 2.4rem; }
.explo-outils { display: flex; flex-wrap: wrap; gap: .4rem; }
.explo-outil { display: inline-flex; flex-direction: row; white-space: nowrap; align-items: center; gap: .4rem; min-height: 2.4rem; padding: 0 .85rem; border-radius: 8px; border: 1px solid var(--bordure-forte); background: #fff; color: var(--vert-nuit); font-weight: 600; font-size: .86rem; text-decoration: none; cursor: pointer; margin: 0; }
.explo-outil:hover { background: var(--vert-voile); color: var(--vert-nuit); }
.explo-outil.principal { background: var(--vert); border-color: var(--vert); color: #fff; }
.explo-outil.principal:hover { background: var(--vert-fonce); color: #fff; }
.explo-liste { background: #fff; border: 1px solid var(--bordure); border-radius: 10px; overflow-x: auto; user-select: none; min-height: 12rem; }
.explo-liste.survol { outline: 3px dashed var(--bleu); outline-offset: -3px; background: #f5faff; }
.explo-entete, .explo-ligne { display: grid; grid-template-columns: minmax(16rem, 1fr) 9.5rem 11rem 6.5rem; gap: .8rem; align-items: center; padding: 0 .9rem; min-width: 44rem; }
.explo-entete { font-size: .76rem; color: var(--texte-2); font-weight: 600; padding-top: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--bordure); position: sticky; top: 0; background: #fff; }
.explo-ligne { min-height: 2.25rem; font-size: .88rem; border: 1px solid transparent; border-radius: 4px; margin: 1px 3px; cursor: default; }
.explo-ligne:hover { background: #eef6f2; }
.explo-ligne.choisie { background: #d9ece3; border-color: #9fcab4; }
.explo-ligne:focus { outline: none; }
.explo-ligne.choisie:focus-visible { box-shadow: 0 0 0 2px var(--bleu); }
.explo-ligne.cible { background: #d6ecff; border-color: var(--bleu); }
.explo-ligne.archive .nom { color: var(--texte-2); }
.explo-nom { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.explo-nom a.nom { color: var(--texte); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; }
.explo-ligne.dossier a.nom { font-weight: 500; }
.explo-nom .num { opacity: .6; font-weight: 600; min-width: 0; }
.explo-ref { flex: none; font-size: .72rem; color: var(--texte-2); font-weight: 600; }
.explo-badge { flex: none; font-size: .68rem; font-weight: 600; color: var(--texte-2); border: 1px solid var(--bordure-forte); border-radius: 4px; padding: 0 .3rem; }
.explo-date, .explo-type, .explo-taille { color: var(--texte-2); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.droite { text-align: right; }
.ic-dossier { flex: none; width: 1.25rem; height: 1.1rem; fill: #f4c542; stroke: #d9a520; stroke-width: 1; }
.ic-fichier { flex: none; width: 1.1rem; height: 1.35rem; }
.ic-fichier .page { fill: #fff; stroke: #9aa5a0; }
.ic-fichier text { font: 700 6px Arial, sans-serif; fill: #fff; }
.ic-word .bande { fill: #2b579a; } .ic-word text { font-size: 7px; }
.ic-excel .bande { fill: #217346; } .ic-excel text { font-size: 7px; }
.ic-ppt .bande { fill: #c43e1c; } .ic-ppt text { font-size: 7px; }
.ic-pdf .bande { fill: #d93025; }
.ic-image .bande { fill: #17697c; }
.ic-autre .bande { fill: #6b7470; }
.explo-renommer { min-height: 1.8rem !important; padding: .1rem .4rem !important; font-size: .88rem; max-width: 26rem; border: 1px solid var(--bleu) !important; }
.explo-vide { padding: 2.5rem 1rem; text-align: center; color: var(--texte-2); }
.explo-statut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin: 0; font-size: .8rem; }
.zone-depot.compacte { flex-direction: row; justify-content: center; padding: .7rem 1rem; gap: .6rem; font-size: .84rem; border-width: 1.5px; }
.zone-depot.compacte svg { width: 1.2rem; height: 1.2rem; }
.explo-depot { margin-top: 0; }
.explo-menu { position: fixed; z-index: 40; min-width: 15rem; background: #fff; border: 1px solid var(--bordure-forte); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: .3rem; display: flex; flex-direction: column; }
.explo-menu[hidden] { display: none; }
.explo-menu button { display: flex; justify-content: space-between; gap: 1rem; text-align: left; font: inherit; font-size: .88rem; padding: .45rem .7rem; border: 0; background: none; border-radius: 5px; cursor: default; color: var(--texte); }
.explo-menu button[hidden] { display: none; }
.explo-menu button:hover, .explo-menu button:focus { background: var(--vert-pale); outline: none; }
.explo-menu button.danger { color: var(--alerte); }
.explo-menu kbd { font: inherit; font-size: .74rem; color: var(--texte-2); }
.explo-menu hr { border: 0; border-top: 1px solid var(--bordure); margin: .25rem 0; width: 100%; }
.explo-dialogue { border: 1px solid var(--bordure-forte); border-radius: 12px; padding: 1.2rem; width: min(34rem, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.explo-dialogue::backdrop { background: rgba(0, 30, 18, .35); }
.explo-dialogue h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
.explo-dialogue select { min-height: 16rem; margin-bottom: .8rem; }
@media (max-width: 700px) { .explo-entete, .explo-ligne { grid-template-columns: minmax(12rem, 1fr) 6.5rem; min-width: 0; } .explo-type, .explo-taille, .explo-entete span:nth-child(3), .explo-entete span:nth-child(4) { display: none; } .explo-date { font-size: .74rem; } }
.nav-bas { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; gap: 2px; }
.nav-admin { margin-top: 0; }
/* Fiche d'un document allégée (R58) */
.fiche-fichier { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; align-items: center; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.ic-fichier.grand { width: 3rem; height: 3.7rem; }
.fiche-fichier-texte { flex: 1 1 20rem; min-width: 0; }
.fiche-fichier-texte h1 { font-size: 1.35rem; margin: 0 0 .3rem; overflow-wrap: anywhere; }
.fiche-fichier-meta { margin: 0; color: var(--texte-2); font-size: .86rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.fiche-fichier-gestes { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fiche-fichier-gestes form { margin: 0; }
.fiche-fichier-traiter { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .86rem; color: var(--texte-2); padding-top: .6rem; border-top: 1px solid #edf1ef; margin: 0; }
.fiche-fichier-traiter select { width: auto; max-width: 18rem; min-height: 2.2rem; }
.plus-details { margin-top: 1rem; }
.plus-details > summary { cursor: pointer; font-weight: 650; color: var(--vert-nuit); padding: .7rem 1rem; background: #fff; border: 1px solid var(--bordure); border-radius: 10px; }
.plus-details[open] > summary { margin-bottom: 1rem; }
/* Ma journée simplifiée (R59) */
.cartes-cles.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .cartes-cles.trois { grid-template-columns: 1fr; } }
.puce-etat { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--bleu); }
.puce-etat.retard { background: var(--alerte); }
.tache-texte a.titre { display: block; font-weight: 650; color: var(--texte); text-decoration: none; }
.tache-texte a.titre:hover { color: var(--vert); text-decoration: underline; }
.tache form { margin: 0; }
/* Décisions et actions (R59) */
.carte-decision { background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.carte-decision-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; align-items: flex-start; }
.carte-decision-tete > div:first-child { flex: 1 1 24rem; min-width: 0; }
.carte-decision h2 { margin: .15rem 0 .3rem; font-size: 1.08rem; }
.carte-decision h2 a { color: var(--vert-nuit); text-decoration: none; }
.carte-decision h2 a:hover { text-decoration: underline; }
.carte-decision-avancement { flex: 0 1 15rem; display: flex; flex-direction: column; gap: .35rem; font-size: .84rem; }
.carte-decision-avancement .ligne { display: flex; justify-content: space-between; gap: .6rem; }
.tableau-defilant.sobre { border-color: #edf1ef; }
.tableau-defilant.sobre th { background: #fff; color: var(--texte-2); font-weight: 600; }
a.lien-sobre { color: var(--texte); font-weight: 500; }
.etat-fait { display: inline-block; background: var(--ok-pale); color: var(--ok); font-weight: 650; font-size: .8rem; padding: .15rem .7rem; border-radius: 999px; }
select.choix-etat { width: auto; min-height: 2.1rem; padding: .2rem .5rem; font-size: .84rem; border-radius: 999px; font-weight: 600; }
select.choix-etat.a_faire { background: var(--eteint-pale); }
select.choix-etat.en_cours { background: var(--bleu-pale); color: #1d4e7a; }
a.planifier { align-self: flex-start; font-weight: 600; font-size: .88rem; text-decoration: none; border: 1px dashed var(--vert); border-radius: 8px; padding: .4rem .8rem; }
a.planifier:hover { background: var(--vert-voile); }
.recherche-filtre { margin-left: auto; }
.recherche-filtre input { min-height: 2.3rem; }
table.table-actions { table-layout: fixed; min-width: 34rem; }
table.table-actions th:nth-child(1) { width: 44%; } table.table-actions th:nth-child(2) { width: 24%; } table.table-actions th:nth-child(3) { width: 16%; } table.table-actions th:nth-child(4) { width: 16%; }
.a-faire > .entete-section { padding: .7rem 1.35rem .2rem; }
.a-faire > .entete-section h2 { margin: 0; }
.carte-decision, .carte-decision > * { min-width: 0; max-width: 100%; }
/* Listes simples, une ligne par élément (R59, 19 h 35) */
.liste-simple { background: #fff; border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden; }
.liste-simple-entete, .ligne-simple { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 9.5rem 7.5rem; gap: 1rem; align-items: center; padding: .7rem 1.1rem; }
.liste-simple-entete { font-size: .76rem; font-weight: 600; color: var(--texte-2); border-bottom: 1px solid var(--bordure); padding-top: .5rem; padding-bottom: .5rem; }
.ligne-simple { text-decoration: none; color: var(--texte); border-top: 1px solid #edf1ef; }
.ligne-simple:first-of-type { border-top: 0; }
.ligne-simple:hover { background: #eef6f2; color: var(--texte); }
.ls-titre { font-weight: 600; min-width: 0; }
.ls-ref { display: block; font-size: .74rem; font-weight: 700; color: var(--vert); }
.ls-date, .ls-avancement { font-size: .84rem; color: var(--texte-2); display: flex; align-items: center; gap: .4rem; }
.ls-avancement .mini-jauge { margin-left: 0; width: 3.5rem; }
@media (max-width: 700px) { .liste-simple-entete { display: none; } .ligne-simple { grid-template-columns: minmax(0, 1fr) auto; } .ls-date { display: none; } .ls-avancement { grid-column: 1; } .ls-etat { grid-column: 2; grid-row: 1; } }
form.en-ligne { display: inline; margin-left: .4rem; }
.tableau-defilant { position: relative; }
/* R62 : renommer une décision */
.renommer-btn { margin-left: .5rem; vertical-align: middle; font-size: .74rem; }
.renommer-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .5rem; }
.renommer-form[hidden] { display: none; }
.renommer-form input { flex: 1 1 24rem; font-size: 1.1rem; font-weight: 700; }
/* R63 : référence en tête ; R64 : tri par colonne */
.explo-entete, .explo-ligne { grid-template-columns: 9rem minmax(16rem, 1fr) 9.5rem 10rem 6rem; min-width: 52rem; }
.explo-refcol { font-size: .76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explo-refcol .mono { color: var(--vert-nuit); font-size: .76rem; }
.explo-refcol .jointe { color: var(--texte-2); font-weight: 500; }
.tri-colonne { font: inherit; font-weight: 600; color: var(--texte-2); background: none; border: 0; padding: .1rem 0; cursor: pointer; }
.tri-colonne:hover { color: var(--vert-nuit); }
[aria-sort="ascending"] .tri-colonne, [aria-sort="descending"] .tri-colonne { color: var(--vert-nuit); }
.droite .tri-colonne { margin-left: auto; display: block; }
@media (max-width: 700px) { .explo-entete, .explo-ligne { grid-template-columns: minmax(12rem, 1fr) 6.5rem; min-width: 0; } .explo-refcol, .explo-entete > span:nth-child(1), .explo-entete > span:nth-child(4), .explo-entete > span:nth-child(5) { display: none; } .explo-entete > span:nth-child(3) { display: block; } }
/* R61 : listes condensées, la référence à côté de l'intitulé */
.liste-simple-entete, .ligne-simple { padding-top: .45rem; padding-bottom: .45rem; }
.ls-titre { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-ref { display: inline-block; min-width: 8.5rem; margin-right: .6rem; font-size: .8rem; }
.ls-type { font-size: .74rem; color: var(--texte-2); font-weight: 500; margin-left: .4rem; }
.liste-simple-entete .tri-colonne { font-size: .76rem; }
@media (max-width: 700px) { .ls-titre { white-space: normal; } .ls-ref { display: block; min-width: 0; } }
/* R64 : en-têtes visiblement cliquables (⇅ tant qu'aucun tri n'est choisi) */
.tri-colonne { text-decoration: underline dotted; text-underline-offset: 3px; }
.tri-colonne .fleche:empty::after { content: ' ⇅'; opacity: .5; }
.tri-colonne:hover .fleche:empty::after { opacity: 1; }
/* Étape 2 : Finances (onglets), banque et caisse, adhérents, listes */
.onglets { display: flex; gap: .2rem; border-bottom: 1px solid var(--bordure); margin: 0 0 1rem; }
.onglets a { padding: .5rem 1rem; text-decoration: none; color: var(--texte-2); font-weight: 600; font-size: .9rem; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; margin-bottom: -1px; }
.onglets a:hover { color: var(--vert); }
.onglets a[aria-current="page"] { background: #fff; border-color: var(--bordure); color: var(--vert-nuit); }
.liste-mouvements .liste-simple-entete, .liste-mouvements .ligne-simple { grid-template-columns: minmax(0, 1fr) 6.5rem 5.5rem 10rem; }
.liste-depenses .liste-simple-entete, .liste-depenses .ligne-simple { grid-template-columns: minmax(0, 1fr) 8.5rem 8.5rem 12rem; }
.liste-adherents .liste-simple-entete, .liste-adherents .ligne-simple { grid-template-columns: minmax(0, 1fr) 13rem 7.5rem 9rem; }
.a-droite, .montant { text-align: right; justify-self: end; }
.montant { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: .3rem; }
.montant.entree { color: var(--ok); }
.montant.sortie { color: var(--texte); }
.tresorerie-comptes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.tresorerie-comptes .carte-section { margin-bottom: 0; }
.solde-calcule { margin: 0 0 .6rem; }
.solde-calcule .valeur { display: block; font-size: 1.7rem; font-weight: 700; color: var(--vert-nuit); }
.solde-calcule .libelle { font-size: .82rem; color: var(--texte-2); }
.rapprochement { margin: 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; }
.rapprochement .petit { flex-basis: 100%; }
.tresorerie-saisies { display: grid; gap: .6rem; margin-top: 1rem; }
.tresorerie-saisies .carte, #cotisations .carte { margin: 0; }
details.annuler-mvt { display: inline-block; position: relative; }
details.annuler-mvt > summary { list-style: none; cursor: pointer; color: var(--texte-2); padding: 0 .3rem; border-radius: 4px; }
details.annuler-mvt > summary::-webkit-details-marker { display: none; }
details.annuler-mvt > summary:hover { background: var(--alerte-pale); color: var(--alerte); }
details.annuler-mvt[open] form { position: absolute; right: 0; top: 1.6rem; z-index: 5; background: #fff; border: 1px solid var(--bordure-forte); border-radius: 8px; padding: .5rem; display: flex; gap: .4rem; box-shadow: 0 8px 24px rgba(0,0,0,.15); width: 18rem; }
.ligne-ajout { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; margin-top: .8rem; }
.ligne-ajout > div { flex: 1 1 12rem; }
.ligne-ajout > div:last-child { flex: 0 0 auto; }
.tarif-ligne { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.tarif-ligne input[name=montant] { width: 7rem; }
.tarif-ligne .erreur { color: var(--alerte); font-size: .82rem; flex-basis: 100%; }
.fiche-courte { margin: 0 0 1.2rem; }
.petit-titre { font-size: 1rem; margin: 0 0 .6rem; }
tr.annulee td { color: var(--texte-2); text-decoration: line-through; }
tr.annulee td:last-child { text-decoration: none; }
.pastille.s-admis { background: var(--ok-pale); color: var(--ok); }
@media (max-width: 700px) {
  .liste-mouvements .ligne-simple, .liste-depenses .ligne-simple, .liste-adherents .ligne-simple { grid-template-columns: minmax(0, 1fr) auto; }
  .liste-mouvements .ligne-simple > :nth-child(3), .liste-adherents .ligne-simple > :nth-child(2) { display: none; }
}
/* v0.9.4 — R75/R76 : étapes sans gros bloc */
.statut-etapes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.etapes-avancer { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; }
.etapes-carte { display: flex; flex-direction: column; gap: .6rem; }
.etapes-carte > strong { font-size: .95rem; }
.etape-geste { position: relative; display: inline-block; }
.etape-geste > summary { list-style: none; cursor: pointer; }
.etape-geste > summary::-webkit-details-marker { display: none; }
.etape-fenetre { position: absolute; z-index: 20; top: calc(100% + .35rem); left: 0; width: min(24rem, 86vw); background: #fff; border: 1px solid var(--bordure-forte); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.16); padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.etape-fenetre p { margin: 0; font-size: .9rem; }
.etape-fenetre label { font-size: .85rem; font-weight: 600; }
.etapes-retirer { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.6rem 0 .4rem; padding-top: .8rem; border-top: 1px dashed var(--bordure); }
.etape-geste.discret > summary { color: var(--alerte); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.etapes-retirer .etape-fenetre { top: auto; bottom: calc(100% + .35rem); }
.etape-reactiver { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .45rem .7rem; border-radius: 8px; background: var(--alerte-pale); margin: .2rem 0; }
.etape-reactiver span { font-weight: 600; color: var(--alerte); font-size: .9rem; }
.etapes-seance { min-width: 11rem; }
.etapes-seance .etapes-retirer { margin: .4rem 0 0; padding: 0; border: 0; gap: .6rem; }
.etapes-seance .etapes-retirer .etape-fenetre { right: 0; left: auto; }
.renommer-form .case { display: inline-flex; gap: .35rem; align-items: center; font-size: .88rem; }
.message.doublons { display: flex; flex-direction: column; gap: .4rem; background: #fff; border: 1px solid var(--bordure-forte); }
.doublon-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* R79 (v0.9.4) : version installée en bas de la barre latérale. */
.nav-version { display:block; margin:.75rem 1rem 1rem; font-size:.75rem; color:inherit; opacity:.65; text-decoration:none; }
.nav-version:hover, .nav-version:focus { opacity:1; text-decoration:underline; }

/* R69 (v0.9.4) : signatures et cachets. */
.grille-signatures { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:1rem; margin-bottom:1rem; }
.signature-carte img { display:block; max-width:100%; max-height:160px; margin:0 auto .5rem; background:repeating-conic-gradient(#f2f2f2 0 25%, #fff 0 50%) 0 0/16px 16px; }
.case-signature { display:inline-flex; align-items:center; gap:.35rem; font-size:.85rem; margin-right:.5rem; }

/* R89 (v0.9.5) : portée des chiffres de la page Dépenses. */
.portee-chiffres { margin: 0 0 .4rem; font-size: .9rem; color: var(--texte-doux, #475569); }

/* R84 (v0.9.5) : « Annuler … » et « Réactiver … » à côté de « Renommer ». */
h1 .entete-geste, h1 form.entete-geste { display: inline-block; position: relative; vertical-align: middle; font-size: 1rem; font-weight: 400; margin-left: .35rem; }
h1 .entete-geste > summary { list-style: none; cursor: pointer; }
h1 .entete-geste > summary::-webkit-details-marker { display: none; }
.btn-mini.annuler-mini { color: #B42318; border-color: #F3B8B2; background: #fff; }
.btn-mini.annuler-mini:hover, .btn-mini.annuler-mini:focus { background: #FEF3F2; }
.btn-mini.reactiver-mini { color: var(--vert); background: #fff; } /* R93 (v0.9.6) : discret, comme « Renommer » */
h1 .entete-geste .etape-fenetre { position: absolute; left: auto; right: 0; top: calc(100% + .4rem); z-index: 30; width: min(26rem, 85vw); background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, .15); padding: .9rem; font-size: .9rem; }

/* R86 (v0.9.5) : signatures et cachets dans l'Aperçu. */
.apercu-signature { display: flex; gap: .6rem; align-items: center; justify-content: inherit; margin: .3rem 0; }
.page-signature .apercu-signature { justify-content: flex-end; }
.apercu-signature img { max-height: 90px; max-width: 45%; }
.apercu-mention { display: block; font-size: .72rem; color: #5F6B6D; }
.apercu-prevu { display: block; margin-top: .3rem; padding: .35rem .5rem; border: 1px dashed #F59E0B; border-radius: 6px; font-size: .75rem; color: #92400E; background: #FFFBEB; }

/* R91, R92, R94 (v0.9.6) : documents repliés, modifier une séance, éléments annulés repliés. */
.replie > summary { cursor: pointer; color: var(--vert); font-size: .9rem; font-weight: 600; margin: .4rem 0; }
.replie > summary::marker { color: var(--vert); }
.replie.annules > summary { color: var(--texte-doux, #64748B); font-weight: 500; font-size: .85rem; }
.docs-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.docs-tete h2 { margin-bottom: .3rem; }
.docs-tete a { font-size: .9rem; }
.table-docs td { padding-top: .35rem; padding-bottom: .35rem; }
.table-docs td.mono { white-space: nowrap; width: 1%; }
.seance-modifier .etape-fenetre { right: 0; left: auto; width: min(30rem, 90vw); }
.seance-modifier .etape-fenetre .grille { display: grid; grid-template-columns: 5rem 1fr 1fr; gap: .5rem; }
.seance-modifier .etape-fenetre input { width: 100%; }
.seance-docs { font-size: .82rem; }

/* R99, R100 (v0.9.7) : gestes de la fiche dépense sous le titre. */
.gestes-fiche { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.gestes-fiche .etape-fenetre { width: min(28rem, 88vw); }
.gestes-fiche .etape-fenetre input, .gestes-fiche .etape-fenetre select, .gestes-fiche .etape-fenetre textarea { width: 100%; }
#joindre-piece { margin: 0; }

/* R95 (v0.9.7) : tableau des séances compact, gestes alignés sur une ligne. */
.table-seances td { vertical-align: middle; padding-top: .45rem; padding-bottom: .45rem; }
.table-seances td.mono { width: 3.2rem; }
.table-seances .intitule-seance { max-width: 22rem; }
.table-seances .seance-docs { display: block; font-size: .78rem; margin-top: .1rem; }
.table-seances .dates-seance, .table-seances td:nth-child(4) { white-space: nowrap; }
.table-seances .col-montant { text-align: right; white-space: nowrap; }
.table-seances .depenses-seance a, .table-seances .depenses-seance strong { display: block; font-weight: 600; }
.table-seances .depenses-seance .muted { display: block; font-size: .78rem; }
.table-seances tfoot td { border-top: 1px solid var(--bordure); font-size: .88rem; }
.table-seances tfoot tr.total td { border-top: 2px solid var(--bordure-forte); }
.table-seances td.etapes-seance { width: 1%; white-space: nowrap; }
.gestes-seance { display: flex; flex-wrap: nowrap; align-items: center; gap: .3rem; }
.gestes-seance .etapes-avancer, .gestes-seance .etapes-retirer { display: contents; }
.gestes-seance form.en-ligne { margin: 0; }
.gestes-seance .etape-geste.discret > summary { font-size: .8rem; padding: 0 .2rem; }
.gestes-seance .etape-fenetre { left: auto; right: 0; white-space: normal; }
@media (max-width: 900px) { .gestes-seance { flex-wrap: wrap; } .table-seances td.etapes-seance { white-space: normal; min-width: 12rem; } }
.planifier-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }

/* R96 (v0.9.7) : bandeau compact de l'activité, fixé sous l'en-tête quand on descend. */
.bandeau-activite { position: sticky; top: var(--haut-entete, 3.5rem); z-index: 4; height: 0; overflow: visible; }
.bandeau-activite-contenu { display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; background: rgba(255,255,255,.97); border: 1px solid var(--bordure); border-radius: 0 0 10px 10px; box-shadow: 0 6px 18px rgba(15,23,42,.08);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.bandeau-activite.visible .bandeau-activite-contenu { opacity: 1; transform: none; pointer-events: auto; }
.bandeau-activite .bandeau-titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.bandeau-activite .bandeau-gestes { display: flex; gap: .3rem; flex-shrink: 0; }
@media (max-width: 700px) { .bandeau-activite .bandeau-gestes { display: none; } }

/* R97 (v0.9.7) : visuel de l'activité. */
.barre-titre .visuel-activite { flex-shrink: 0; padding: 0; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; cursor: zoom-in; overflow: hidden; width: 5.5rem; height: 5.5rem; }
.barre-titre .visuel-activite img { width: 100%; height: 100%; object-fit: contain; display: block; }
.barre-titre .titre-activite { flex: 1; min-width: 0; }
.visuel-grand { border: none; border-radius: 12px; padding: 1rem; max-width: min(92vw, 60rem); max-height: 92vh; }
.visuel-grand::backdrop { background: rgba(15,23,42,.6); }
.visuel-grand img { display: block; max-width: 100%; max-height: 78vh; margin: .5rem auto; object-fit: contain; }
.visuel-grand form { text-align: right; }
.proposition-visuel form { margin-left: .5rem; }

.barre-titre.fiche-depense > div:first-child { flex: 1 1 24rem; min-width: 0; }

/* R101 (v0.9.8) : page « Qui a accès à quoi ». */
.onglets-acces { display: flex; gap: .3rem; border-bottom: 1px solid var(--bordure); margin: .5rem 0 1rem; flex-wrap: wrap; }
.onglets-acces a { padding: .45rem .9rem; border-radius: 8px 8px 0 0; text-decoration: none; color: var(--texte-doux, #475569); font-weight: 600; }
.onglets-acces a[aria-current="page"] { color: var(--vert); border-bottom: 2px solid var(--vert); }
.roles-compte { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.pastille.role { background: #E7F1FB; color: #1E3A5F; cursor: pointer; list-style: none; }
.role-geste > summary::-webkit-details-marker { display: none; }
.table-acces tr.inactif td { opacity: .55; }
.table-acces .etape-fenetre { width: min(24rem, 88vw); }
.table-acces .etape-fenetre input, .table-acces .etape-fenetre select { width: 100%; }
.matrice-acces th.col-role { font-size: .78rem; white-space: normal; max-width: 7rem; vertical-align: bottom; }
.matrice-acces tr.module th { background: var(--fond-doux, #F1F5F4); text-align: left; font-size: .85rem; }
.matrice-acces td.coche { text-align: center; color: var(--vert); font-weight: 700; }
.matrice-acces td { padding-top: .3rem; padding-bottom: .3rem; font-size: .88rem; }
.confidentiel-legende { color: #B91C1C; font-size: .8rem; }
.recherche-acces .en-ligne { display: flex; gap: .5rem; max-width: 36rem; }
.recherche-acces input[type=search] { flex: 1; }

/* R103 (v0.9.8) : avertissement avant déconnexion pour inactivité. */
.avertissement-session { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; max-width: 24rem; background: #fff; border: 1px solid var(--bordure); border-left: 4px solid #B45309;
    border-radius: 10px; padding: .9rem 1rem; box-shadow: 0 10px 30px rgba(15,23,42,.18); }
.avertissement-session p { margin: 0 0 .6rem; }
.gestes-verif { display: flex; gap: .3rem; flex-wrap: wrap; }
.gestes-verif form { margin: 0; }

/* R106 (v0.9.9) : gestes de l'activité sur une ligne, alignés. */
.barre-gestes-activite { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.barre-gestes-activite .btn { margin: 0; }
.table-seances tr.nouvelle td { background: #ECFDF5; }
/* La ligne de la séance créée reste visible sous l'en-tête et le bandeau de l'activité. */
.table-seances tr[id^="seance-"], #seances { scroll-margin-top: 9rem; }

/* R107 (0.9.10) : « Supprimer » grisé sur un dossier protégé, avec la raison. */
.explo-menu button:disabled { flex-direction: column; gap: 0; color: var(--texte-doux, #8a94a3); cursor: not-allowed; background: none; }
.explo-menu button:disabled kbd { display: none; }
.explo-menu button .raison { display: block; font-size: .78rem; font-weight: 400; color: #6b7280; white-space: normal; max-width: 18rem; margin-top: .15rem; }

/* R108 (v0.9.11) : visuel des séances ; photos en bas de la fiche d'une activité ; visionneuse. */
.table-seances td.code-seance { white-space: nowrap; }
.vignette-seance { padding: 0; border: 1px solid var(--bordure); border-radius: 6px; background: #fff; cursor: zoom-in; width: 2.4rem; height: 2.4rem; overflow: hidden; vertical-align: middle; margin-right: .45rem; }
.vignette-seance img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proposition-visuel-seance { margin-left: .4rem; }
.photos-activite { display: flex; gap: .75rem; flex-wrap: wrap; margin: .25rem 0 1rem; }
.photos-activite figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.photo-activite { padding: 0; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; cursor: zoom-in; width: 11rem; height: 8rem; overflow: hidden; }
.photo-activite img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .photos-activite { flex-direction: column; align-items: stretch; } .photo-activite { width: 100%; height: 12rem; } }
.visionneuse-pied { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; margin: .25rem 0 0; text-align: center; }
.visionneuse-pied [hidden] { display: none; }
