/* Cartographie des PAD – charte bleue du Ministère */
:root { --bleu: #0b5cad; --bleu-d: #062f5c; --bleu-c: #1d7fd6; --or: #b8925a; --or-d: #8a6c3f; --encre: #1b2838; --gris: #5d6b7c; --bord: #dde4ec; --fond: #f4f7fb; --vert: #1b6b3a; --rouge: #a12727; --amb: #b45309; --acces: #0b5cad; --qualite: #0e7490; --insertion: #1b6b3a; --gouvernance: #8a6c3f; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Segoe UI", Inter, system-ui, Arial, sans-serif; color: var(--encre); background: var(--fond); font-size: 14px; }
a { color: var(--bleu); text-decoration: none; } a:hover { text-decoration: underline; }
body { display: flex; min-height: 100vh; }
.sb { width: 250px; flex: none; background: linear-gradient(180deg, #062f5c 0%, #083d7a 100%); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sb-logo { padding: 18px 16px 12px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.12); }
.sb-logo img { width: 72px; height: 72px; border-radius: 14px; background: #fff; padding: 4px; }
.sb-logo .rep { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: 8px; }
.sb-logo .drap { display: flex; width: 60px; height: 3px; margin: 5px auto 8px; } .sb-logo .drap i { flex: 1; } .sb-logo .drap i:nth-child(1){background:#00853f} .sb-logo .drap i:nth-child(2){background:#fdef42} .sb-logo .drap i:nth-child(3){background:#e31b23}
.sb-logo .min { font-size: 11px; line-height: 1.35; opacity: .95; } .sb-logo .app { margin-top: 6px; font-size: 11.5px; font-weight: 700; color: #ffd98a; }
.sb-nav { padding: 10px 10px; display: grid; gap: 2px; }
.sb-nav a { color: rgba(255,255,255,.88); padding: 9px 12px; border-radius: 9px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.sb-nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; } .sb-nav a.actif { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.sb-nav .ico { width: 20px; text-align: center; opacity: .9; }
.sb-pied { margin-top: auto; padding: 12px 16px; font-size: 10.5px; opacity: .7; }
.page { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 56px; background: #fff; border-bottom: 1px solid var(--bord); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; position: sticky; top: 0; z-index: 50; }
.top .fil { font-size: 13px; color: var(--gris); } .top-droite { display: flex; align-items: center; gap: 10px; } .top .qui { font-weight: 600; }
.pill { display: inline-block; background: #eef3fa; color: var(--bleu-d); border-radius: 999px; padding: 2px 10px; font-size: 11.5px; font-weight: 600; }
.contenu { padding: 20px 22px 28px; max-width: 1480px; width: 100%; margin: 0 auto; } .contenu.large { max-width: none; }
.pied { padding: 10px 22px; font-size: 11.5px; color: var(--gris); border-top: 1px solid var(--bord); display: flex; justify-content: space-between; background: #fff; }
.flash { padding: 10px 14px; border-radius: 9px; margin-bottom: 12px; font-size: 13.5px; } .flash.success { background: #e4f4ea; color: var(--vert); } .flash.error { background: #fdecec; color: var(--rouge); } .flash.info { background: #eef3fa; color: var(--bleu-d); }
/* en-tête de page */
.hero { background: linear-gradient(135deg, #062f5c 0%, #0b5cad 60%, #1d7fd6 100%); color: #fff; border-radius: 14px; padding: 20px 24px; margin-bottom: 16px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.hero h1 { margin: 0 0 4px; font-size: 20px; font-weight: 800; } .hero p { margin: 0; font-size: 13px; opacity: .92; max-width: 900px; line-height: 1.5; }
.hero .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 13px; text-decoration: none !important; background: var(--bleu); color: #fff; }
.btn:hover { background: #084a8c; } .btn-light { background: #fff; color: var(--bleu-d); border-color: var(--bord); } .btn-light:hover { background: #eef3fa; } .btn-or { background: var(--or); } .btn-or:hover { background: var(--or-d); } .btn-vert { background: var(--vert); } .btn-rouge { background: var(--rouge); } .btn-sm { padding: 5px 10px; font-size: 12px; }
.hero .btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); } .hero .btn-light:hover { background: rgba(255,255,255,.25); }
/* filtres */
.filtres { background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filtres label { display: grid; gap: 3px; font-size: 11px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.filtres select, .filtres input { height: 34px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 9px; font-size: 13px; min-width: 150px; background: #fff; font-family: inherit; }
/* kpis */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; border-top: 4px solid var(--bleu); }
.kpi b { display: block; font-size: 22px; color: var(--bleu-d); line-height: 1.1; font-variant-numeric: tabular-nums; } .kpi span { font-size: 11.5px; color: var(--gris); display: block; margin-top: 3px; line-height: 1.35; }
.kpi small { display: block; font-size: 10.5px; color: #8a97a8; margin-top: 2px; }
.kpi.or { border-top-color: var(--or); } .kpi.vert { border-top-color: var(--vert); } .kpi.rouge { border-top-color: var(--rouge); } .kpi.amb { border-top-color: var(--amb); } .kpi.violet { border-top-color: #6d28d9; }
/* cartes */
.grille { display: grid; gap: 14px; } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g21 { grid-template-columns: 2fr 1fr; } .g12 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1100px) { .g2, .g3, .g21, .g12 { grid-template-columns: 1fr; } }
.carte-b { background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.carte-b h3 { margin: 0 0 10px; font-size: 14px; color: var(--bleu-d); display: flex; align-items: center; justify-content: space-between; gap: 8px; } .carte-b h3 small { font-weight: 400; color: var(--gris); font-size: 11.5px; }
/* barres */
.bars { display: grid; gap: 5px; } .bars .row { display: grid; grid-template-columns: minmax(120px, 42%) 1fr 60px; align-items: center; gap: 8px; font-size: 12.5px; }
.bars .row .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bars .bar { height: 10px; background: #e9eef4; border-radius: 5px; overflow: hidden; } .bars .bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--bleu), var(--bleu-c)); border-radius: 5px; }
.bars .v { text-align: right; font-weight: 700; color: var(--bleu-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars.axe-acces .bar b { background: var(--acces); } .bars .bar b.acces { background: var(--acces); } .bars .bar b.qualite { background: var(--qualite); } .bars .bar b.insertion { background: var(--insertion); } .bars .bar b.gouvernance { background: var(--gouvernance); }
/* tableaux */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
table.t th { background: var(--bleu-d); color: #fff; padding: 8px 9px; text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
table.t td { padding: 7px 9px; border-bottom: 1px solid #edf1f6; vertical-align: top; }
table.t tr:hover td { background: #f8fafc; } table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } table.t td.c, table.t th.c { text-align: center; }
table.t tr.tot td { font-weight: 800; background: #eaf0f8; color: var(--bleu-d); }
table.t .sub { display: block; color: var(--gris); font-size: 11px; font-weight: 400; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: #e4f4ea; color: var(--vert); } .badge.warn { background: #fef3c7; color: #92400e; } .badge.ko { background: #fdecec; color: var(--rouge); } .badge.neu { background: #eef2f6; color: var(--gris); } .badge.bleu { background: #eef3fa; color: var(--bleu-d); }
.badge.acces { background: #e3eefb; color: var(--acces); } .badge.qualite { background: #e0f4f8; color: var(--qualite); } .badge.insertion { background: #e4f4ea; color: var(--insertion); } .badge.gouvernance { background: #f5ede1; color: var(--gouvernance); }
.compl { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; } .compl i { width: 50px; height: 7px; background: #e2e8f0; border-radius: 4px; overflow: hidden; display: inline-block; } .compl i b { display: block; height: 100%; }
.heat td.h { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; } .heat td.h0 { color: #c0c8d2; }
.heat td.h1 { background: #e3eefb; } .heat td.h2 { background: #bcd6f3; } .heat td.h3 { background: #8ab8e8; color: #fff; } .heat td.h4 { background: #4f8fd1; color: #fff; } .heat td.h5 { background: #0b5cad; color: #fff; }
/* 18/11/2026 (recette) : au survol d'une ligne, les cases colorées des matrices gardent leur couleur (le texte blanc restait sur fond clair) */
table.t.heat tr:hover td.h1 { background: #e3eefb; } table.t.heat tr:hover td.h2 { background: #bcd6f3; } table.t.heat tr:hover td.h3 { background: #8ab8e8; } table.t.heat tr:hover td.h4 { background: #4f8fd1; } table.t.heat tr:hover td.h5 { background: #0b5cad; }
.heat td.h3, table.t.heat tr:hover td.h3 { color: #0b2a4a; }   /* contraste : texte foncé sur le bleu clair */
table.t.heat tr:hover td.h { box-shadow: inset 0 0 0 2px rgba(15, 23, 42, .28); } table.t.heat tr:hover td:first-child { background: #eef3fa; }
.badge.pub { background: #ede9fe; color: #5b21b6; }
.wf-frise { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; padding: 0; font-size: 12px; }
.wf-frise li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.wf-frise li span { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; font-weight: 700; font-size: 11px; }
.wf-frise li.fait { background: #e4f4ea; color: #166534; } .wf-frise li.fait span { background: #16a34a; color: #fff; }
.wf-frise li.cour { background: #0b5cad; color: #fff; font-weight: 700; } .wf-frise li.cour span { background: #fff; color: #0b5cad; }
.wf-renvoye { background: #fff7e6; border: 1px solid #f3c77a; color: #7a4a00; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 13.5px; line-height: 1.5; }
.vide { padding: 30px; text-align: center; color: var(--gris); background: #fff; border: 1px dashed var(--bord); border-radius: 12px; }
.note { font-size: 11.5px; color: var(--gris); margin-top: 8px; line-height: 1.5; }
.pagin { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 12.5px; } .pagin a, .pagin span { padding: 5px 10px; border: 1px solid var(--bord); border-radius: 7px; background: #fff; } .pagin span.cur { background: var(--bleu); color: #fff; border-color: var(--bleu); }
/* fiche */
.fiche-tete { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.fiche-tete h1 { margin: 4px 0 6px; font-size: 20px; color: var(--bleu-d); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 12px; font-size: 13px; } .kv dt { color: var(--gris); font-weight: 600; } .kv dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; } .chip { display: inline-block; background: #f1f5f9; border-radius: 7px; padding: 3px 9px; font-size: 12px; color: var(--bleu-d); border: 1px solid var(--bord); }
/* formulaires */
.form { display: grid; gap: 12px; } .form .ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--gris); }
.form input, .form select, .form textarea { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; font-family: inherit; background: #fff; } .form textarea { min-height: 80px; resize: vertical; }
.form .cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; font-size: 13px; font-weight: 400; color: var(--encre); } .form .cases label { display: flex; align-items: center; gap: 7px; font-weight: 400; color: var(--encre); font-size: 13px; }
.form .cases input { accent-color: var(--bleu); }
/* carte leaflet */
.map { height: 560px; border-radius: 12px; border: 1px solid var(--bord); background: #dfe9f3; z-index: 1; }
.leaflet-container { font-family: inherit; }
.legende { display: grid; gap: 4px; font-size: 12px; } .legende .l { display: flex; align-items: center; gap: 8px; } .legende i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
/* auth */
body.anonyme { background: linear-gradient(135deg, #062f5c, #0b5cad 60%, #1d7fd6); align-items: center; justify-content: center; }
.auth { width: 100%; max-width: 420px; padding: 20px; }
.auth .boite { background: #fff; border-radius: 16px; padding: 28px 28px 22px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.auth .boite img { width: 84px; height: 84px; display: block; margin: 0 auto 8px; }
.auth h1 { text-align: center; font-size: 16px; margin: 4px 0 2px; color: var(--bleu-d); } .auth .s { text-align: center; color: var(--gris); font-size: 12.5px; margin-bottom: 18px; }
.auth input { width: 100%; height: 40px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 0 12px; font-size: 14px; margin-bottom: 10px; font-family: inherit; }
.auth .btn { width: 100%; justify-content: center; height: 42px; }
.frise { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 150px; } .frise .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; font-size: 10.5px; color: var(--gris); }
.frise .col b { width: 100%; background: linear-gradient(180deg, var(--bleu-c), var(--bleu)); border-radius: 4px 4px 0 0; display: block; } .frise .col b.pipe { background: repeating-linear-gradient(45deg, #b8925a, #b8925a 3px, #d9c3a0 3px, #d9c3a0 6px); }
.frise .col .n { font-weight: 700; color: var(--bleu-d); }
@media print { .sb, .top, .pied, .filtres, .hero .actions, .btn { display: none !important; } .contenu { padding: 0; max-width: none; } body { background: #fff; } .map { height: 120mm; } }

/* =============================================================================
   Cartographie PAD – En-tête officiel bleu, commun aux pages imprimables (29/10/2026, repris de la collecte statistique). Autonome : aucune variable
   externe, imprimé en couleur.
   ============================================================================= */
.me-ban {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(120deg, #003f7f 0%, #0078d4 55%, #2b88d8 100%);
  border-radius: 16px; padding: 18px 22px 22px; margin: 0 0 18px;
  box-shadow: 0 6px 18px rgba(0, 120, 212, .22);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.me-ban::before {
  content: ''; position: absolute; top: -70px; right: -70px; width: 240px; height: 240px; z-index: -1;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); pointer-events: none;
}
.me-ban::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, #00853f 0% 33%, #fcd116 33% 66%, #e31b23 66% 100%);
}
.me-top { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.25); }
.me-logo {
  flex: none; width: 62px; height: 62px; border-radius: 14px; background: #fff; display: grid; place-items: center;
  position: relative; box-shadow: 0 6px 16px rgba(0, 30, 70, .25);
}
.me-logo img { width: 52px; height: 52px; object-fit: contain; }
.me-logo::after {
  content: ''; position: absolute; inset: -3px; border-radius: 16px; z-index: -1;
  background: conic-gradient(from var(--me-a, 0deg), #00853f, #fcd116, #e31b23, #9cc9f2, #00853f);
  opacity: .9;
}
.me-ident { flex: 1; min-width: 0; line-height: 1.25; }
.me-rep { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.me-min { display: block; font-size: 14.5px; font-weight: 700; margin-top: 2px; }
.me-dir { display: block; font-size: 12px; font-style: italic; color: rgba(255,255,255,.88); margin-top: 2px; }
.me-ref { text-align: right; font-size: 11.5px; color: rgba(255,255,255,.88); line-height: 1.55; white-space: nowrap; }
.me-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.me-actions .btn, .me-btn, .me-actions .btn:hover {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font: 600 12.5px/1 'Inter', system-ui, sans-serif;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff !important; text-decoration: none; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .15s, color .15s, transform .15s; height: auto; box-shadow: none;
}
.me-actions .btn:hover, .me-btn:hover { background: #fff !important; color: #0062b1 !important; transform: translateY(-1px); }
.me-actions .mx-btn-deep { background: linear-gradient(135deg, #3b2a7a, #5b45b5); border-color: rgba(255,255,255,.35); }
.me-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.me-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); font-weight: 600; }
.me-title { font-size: 21px; font-weight: 700; margin: 3px 0 4px; color: #fff; letter-spacing: -.01em; line-height: 1.25; font-family: inherit; }
.me-sub { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.86); line-height: 1.5; }
.me-sub strong { color: #fff; }
.me-per { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 11.5px; font-weight: 600; }
.me-kpis { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.me-kpi {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  padding: 9px 14px; text-align: center; min-width: 104px; backdrop-filter: blur(4px);
}
.me-kpi b { display: block; font-size: 22px; font-weight: 700; line-height: 1.05; color: #fff; }
.me-kpi span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.85); margin-top: 4px; }
@media (max-width: 780px) {
  .me-head { grid-template-columns: 1fr; }
  .me-kpis { justify-content: flex-start; }
  .me-top { flex-wrap: wrap; }
  .me-ref { text-align: left; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .me-ban { animation: me-in .6s cubic-bezier(.16,1,.3,1) both; }
  .me-logo::after { animation: me-turn 8s linear infinite; }
}
@keyframes me-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@property --me-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes me-turn { to { --me-a: 360deg; } }
@media print {
  .me-ban { box-shadow: none !important; border-radius: 10px; padding: 12px 16px 16px; margin-bottom: 12px; break-inside: avoid; animation: none !important; }
  .me-ban::before { display: none; }
  .me-actions, .me-noprint { display: none !important; }
  .me-logo { width: 54px; height: 54px; box-shadow: none; }
  .me-logo img { width: 46px; height: 46px; }
  .me-title { font-size: 17px; }
  .me-kpi { padding: 6px 10px; min-width: 86px; backdrop-filter: none; }
  .me-kpi b { font-size: 17px; }
}

/* Impression (29/10/2026) : en-tête officiel conservé, pied de page, cartes sans ombre */
@media print {
  @page { size: A4 landscape; margin: 10mm 10mm 12mm; }
  .me-ban { display: block !important; }
  .me-actions { display: none !important; }
  .top-droite, .cloche, .menu-user { display: none !important; }
  .carte-b, .kpi { box-shadow: none; break-inside: avoid; }
  .map { height: 96mm !important; }
  .me-ban { padding: 8px 14px 12px; margin-bottom: 8px; } .me-head { gap: 10px; } .me-sub { font-size: 11px; } .me-title { font-size: 15px; } .me-top { padding-bottom: 6px; margin-bottom: 6px; }
  .kpis { gap: 8px; margin-bottom: 8px; } .kpi { padding: 8px 10px; } .kpi b { font-size: 17px; }
  .carte-b { padding: 8px 10px; margin-bottom: 8px; } .carte-b h3 { font-size: 12px; margin-bottom: 4px; }
  table.t th, table.t td { padding: 3px 6px; font-size: 10px; }
  .grille { gap: 8px; } .grille.g21 { grid-template-columns: 1.6fr 1fr !important; } .grille.g2 { grid-template-columns: 1fr 1fr !important; } .grille.g3 { grid-template-columns: repeat(3, 1fr) !important; } .grille.g12 { grid-template-columns: 1fr 2fr !important; }
  .kpis { grid-template-columns: repeat(6, 1fr) !important; }
  .leaflet-control-zoom, .leaflet-control-attribution { display: none !important; }
  .pied-print { display: flex !important; justify-content: space-between; font-size: 10px; color: #5b6b63; border-top: 1px solid #ccc; margin-top: 10px; padding-top: 4px; }
}
.pied-print { display: none; }

/* En-tête : cloche et badge utilisateur (29/10/2026) */
.top-droite { display: flex; align-items: center; gap: 10px; position: relative; }
.cloche { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--bord); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--bleu-d); }
.cloche:hover { background: #eef3fa; } .cloche svg { width: 19px; height: 19px; }
.cloche .nb { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.badge-user { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--bord); background: #fff; cursor: pointer; }
.badge-user:hover { background: #eef3fa; }
.badge-user .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #062f5c, #0b5cad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.badge-user .nom { font-size: 13px; font-weight: 600; color: var(--encre); line-height: 1.1; } .badge-user .role { font-size: 10.5px; color: var(--gris); display: block; }
.badge-user .chev { color: var(--gris); font-size: 11px; }
.pop { position: absolute; top: 46px; right: 0; width: 320px; background: #fff; border: 1px solid var(--bord); border-radius: 12px; box-shadow: 0 16px 40px -18px rgba(6,47,92,.45); z-index: 50; display: none; overflow: hidden; }
.pop.ouvert { display: block; }
.pop h4 { margin: 0; padding: 11px 14px; font-size: 12.5px; color: var(--bleu-d); border-bottom: 1px solid var(--bord); display: flex; justify-content: space-between; align-items: center; }
.pop h4 a { font-size: 11.5px; font-weight: 500; }
.pop .item { display: flex; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #eef2f6; font-size: 12.5px; color: var(--encre); text-decoration: none; align-items: flex-start; }
.pop .item:hover { background: #f6f9fd; } .pop .item:last-child { border-bottom: 0; }
.pop .item .pt { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--bleu); } .pop .item .pt.rouge { background: var(--rouge); } .pop .item .pt.amb { background: var(--amb); } .pop .item .pt.vert { background: var(--vert); }
.pop .item small { display: block; color: var(--gris); font-size: 11px; margin-top: 2px; }
.pop .vide { padding: 16px 14px; color: var(--gris); font-size: 12.5px; text-align: center; }
.pop-user { width: 230px; } .pop-user .item { align-items: center; } .pop-user .item svg { width: 16px; height: 16px; color: var(--bleu-d); }
.pop-user .entete-u { padding: 12px 14px; border-bottom: 1px solid var(--bord); } .pop-user .entete-u b { display: block; font-size: 13px; } .pop-user .entete-u span { font-size: 11.5px; color: var(--gris); }

.sb-nav a.rouge { color: #ffb3b6; } .sb-nav a.rouge.actif { background: rgba(227,27,35,.25); color: #fff; } .nb-menu { margin-left: auto; background: var(--rouge); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 1px 7px; font-weight: 700; }

/* Card utilisateur du tableau de bord (29/10/2026) */
.carte-user { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 14px; margin-bottom: 14px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #062f5c 0%, #0b5cad 45%, #1d7fd6 75%, #b8925a 140%); box-shadow: 0 12px 28px -18px rgba(6,47,92,.6); }
.carte-user:before { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.cu-photo { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; border: 3px solid rgba(255,255,255,.7); box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.cu-photo img { width: 100%; height: 100%; object-fit: cover; } .cu-photo span { font-size: 28px; font-weight: 800; color: #0b5cad; }
.cu-texte { flex: 1; min-width: 0; } .cu-bonjour { font-size: 19px; } .cu-bonjour b { font-weight: 800; } .cu-role { font-size: 13px; opacity: .92; margin-top: 2px; } .cu-meta { font-size: 11.5px; opacity: .78; margin-top: 4px; }
.cu-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cu-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; backdrop-filter: blur(4px); }
.cu-chip:hover { background: rgba(255,255,255,.26); text-decoration: none; } .cu-chip b { font-size: 20px; line-height: 1.1; } .cu-chip span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; opacity: .9; margin-top: 3px; }
.cu-chip.alerte { background: rgba(227,27,35,.85); border-color: rgba(255,255,255,.5); }
@media print { .carte-user { display: none; } }
@media (max-width: 900px) { .carte-user { flex-wrap: wrap; } }

/* Analyse IA (29/10/2026) */
.btn-ia { border: 1px solid #c3b1ec; background: linear-gradient(135deg, #ede9fe, #f5f3ff); color: #5b21b6; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn-ia:hover { background: #5b21b6; color: #fff; } .btn-ia[disabled] { opacity: .6; cursor: wait; } .ia-barre { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.ia-modal { position: fixed; inset: 0; background: rgba(6,47,92,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.ia-modal[hidden] { display: none !important; }
.ia-boite { background: #fff; border-radius: 14px; width: min(760px, 100%); max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); overflow: hidden; }
.ia-tete { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: linear-gradient(135deg, #3b2a7a, #5b45b5); color: #fff; font-size: 14px; } .ia-tete span { flex: 1; opacity: .9; font-size: 13px; }
.ia-fermer { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.ia-corps { padding: 16px 20px; overflow: auto; font-size: 13.5px; line-height: 1.6; } .ia-corps h4 { margin: 12px 0 6px; color: #062f5c; font-size: 14px; } .ia-corps h4:first-child { margin-top: 0; } .ia-corps ul { margin: 0 0 8px 18px; padding: 0; }
.ia-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--bord); background: #f8fafc; font-size: 11.5px; }
.ia-attente { padding: 30px; text-align: center; color: var(--gris); } .ia-attente:before { content: ''; display: block; width: 28px; height: 28px; border: 3px solid #ede9fe; border-top-color: #5b21b6; border-radius: 50%; margin: 0 auto 10px; animation: ia-spin .9s linear infinite; } @keyframes ia-spin { to { transform: rotate(360deg); } }
@media print { .btn-ia, .ia-barre, .ia-modal { display: none !important; } }
/* garde-fou : aucun champ ne déborde de sa carte */
.form input, .form select, .form textarea { min-width: 0; max-width: 100%; box-sizing: border-box; } .carte-b { min-width: 0; } .grille > * { min-width: 0; } .tw { overflow-x: auto; }
svg.gr text { font-family: Inter, system-ui, sans-serif; }

/* Sélecteur d'année de l'en-tête (29/10/2026) */
.sel-annee { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 3px 6px 3px 12px; margin: 0; }
.sel-annee label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); font-weight: 700; }
.sel-annee select { border: 0; background: #e8f0fb; color: var(--bleu-d); font-weight: 700; font-size: 13px; padding: 6px 8px; border-radius: 7px; font-family: inherit; cursor: pointer; }
@media print { .sel-annee { display: none; } }

/* Chargeur animé aux couleurs du Sénégal avec le logo du Ministère (29/10/2026) */
.chargeur { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef3fa 60%, #dfe8f3 100%); transition: opacity .35s ease, visibility .35s; }
.chargeur.cache { opacity: 0; visibility: hidden; pointer-events: none; }
.chargeur.actif { background: rgba(238,243,250,.86); backdrop-filter: blur(3px); }
.ch-anneau { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; }
.ch-anneau:before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #00853f 0 33%, #fcd116 33% 66%, #e31b23 66% 100%); animation: ch-tour 1.4s linear infinite; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
.ch-anneau:after { content: ''; position: absolute; inset: 12px; border-radius: 50%; border: 2px dashed rgba(11,92,173,.35); animation: ch-tour 6s linear infinite reverse; }
.ch-logo { width: 88px; height: 88px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -12px rgba(6,47,92,.55); animation: ch-pulse 1.4s ease-in-out infinite; }
.ch-logo img { width: 64px; height: 64px; object-fit: contain; }
.ch-txt { text-align: center; line-height: 1.3 } .ch-txt b { display: block; font-size: 13px; letter-spacing: .18em; color: #062f5c; } .ch-txt span { font-size: 12.5px; color: var(--gris); }
.ch-pts { display: flex; gap: 6px; } .ch-pts i { width: 8px; height: 8px; border-radius: 50%; animation: ch-saut .9s ease-in-out infinite; } .ch-pts i:nth-child(1) { background: #00853f; } .ch-pts i:nth-child(2) { background: #fcd116; animation-delay: .15s; } .ch-pts i:nth-child(3) { background: #e31b23; animation-delay: .3s; }
@keyframes ch-tour { to { transform: rotate(360deg); } } @keyframes ch-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } } @keyframes ch-saut { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(-6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ch-anneau:before, .ch-anneau:after, .ch-logo, .ch-pts i { animation: none; } }
@media print { .chargeur { display: none !important; } }

/* Analyses : affichage aéré (29/10/2026) */
.aere .carte-b, .carte-b.aere { padding: 20px 22px; }
.aere .bars { gap: 9px; } .aere .bars .row { grid-template-columns: minmax(150px, 40%) 1fr 90px; gap: 12px; font-size: 13.5px; line-height: 1.4; }
.aere .bars .row .lab { white-space: normal; overflow: visible; } .aere .bars .bar { height: 14px; border-radius: 7px; } .aere .bars .v { font-size: 13.5px; }
.aere h3 { margin-bottom: 14px; } .aere table.t td { padding: 9px 10px; font-size: 13px; line-height: 1.45; } .aere table.t th { padding: 10px; }
.aere .heat td.h { padding: 8px 6px; } .aere .kpis { gap: 14px; } .aere .kpi { padding: 14px 16px; }
.filtres label[style*="span 2"] select { min-width: 320px; }

/* mefpt_pad_accessibilite (20/11/2026) : contrastes WCAG 2.1 AA (texte ≥ 4,5:1) */
.kpi small { color: #5f6b7a; }
.heat td.h3, table.t.heat tr:hover td.h3 { color: #0a2f57; }
.heat td.h4, table.t.heat tr:hover td.h4 { background: #3a78bd; }
.badge.gouvernance { color: #6f5532; }
.fil a, .note a { text-decoration: underline; text-underline-offset: 2px; }