/* =====================================================================
   Plateforme régionale P2-P2RS — identité visuelle
   Couleurs du CILSS : verts du laurier et du Sahel, noir du continent, blanc (or en touche)
   ===================================================================== */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../vendor/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../vendor/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../vendor/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../vendor/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    /* Couleurs du CILSS : vert du laurier (principal), vert tendre du Sahel, nuit verte presque noire ; les noms des variables sont conservés */
    --nuit: #0F2418; --nuit-2: #153321; --nuit-3: #1C4A2B;
    --bleu: #1B7A35; --bleu-f: #14622A; --bleu-c: #E5F3E8; --bleu-cc: #F2F9F4;
    --vert: #3A9A3E; --vert-f: #2D7D31; --vert-c: #E4F3E6; --feuille: #8CC63F; --feuille-c: #EFF7E4;
    --or: #D99A2B; --or-f: #A8731A; --or-c: #FBF0DA; --terre: #7A4A2A; --terre-c: #F3EAE2;
    --rouge: #C0392B; --rouge-c: #FBEAE8; --violet: #6C4AB6; --violet-c: #F0EBFA;
    --encre: #152019; --texte: #38453C; --doux: #64746A; --ligne: #DFE8E1; --ligne-f: #C7D5CA;
    --fond: #F3F7F4; --fond-2: #F9FBFA; --blanc: #fff;
    --bande: linear-gradient(90deg, var(--bleu) 0 34%, var(--vert) 34% 67%, var(--feuille) 67%);
    --r: 16px; --r-s: 10px; --r-l: 26px;
    --ombre: 0 1px 2px rgba(15, 36, 24, .05), 0 10px 30px -18px rgba(15, 36, 24, .35);
    --ombre-l: 0 30px 60px -30px rgba(15, 36, 24, .45);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --largeur: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15.5px/1.65 var(--sans); color: var(--texte); background: var(--fond); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--bleu); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bleu-f); }
h1, h2, h3, h4 { color: var(--nuit); line-height: 1.18; margin: 0 0 .5em; }
h1, h2, .titre-serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
h3, h4 { font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }
.wrap { width: min(100% - 40px, var(--largeur)); margin-inline: auto; }
.doux { color: var(--doux); }
.centre { text-align: center; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 24px; }
.mt-s { margin-top: 12px; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: 8px; }
.evitement:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(27, 122, 53, .45); outline-offset: 2px; }

/* ---------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1.5px solid transparent; border-radius: 999px;
    background: var(--bleu); color: #fff; font-weight: 700; font-size: .93rem; letter-spacing: .01em; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s; text-decoration: none; }
.btn:hover { background: var(--bleu-f); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(27, 122, 53, .8); }
.btn .ico { width: 18px; height: 18px; }
.btn-vert { background: var(--vert); }
.btn-vert:hover { background: var(--vert-f); box-shadow: 0 10px 22px -12px rgba(47, 125, 50, .8); }
.btn-or { background: var(--or); color: var(--nuit); }
.btn-or:hover { background: #E9B451; color: var(--nuit); box-shadow: 0 10px 22px -12px rgba(221, 162, 58, .9); }
.btn-ligne { background: transparent; border-color: var(--ligne-f); color: var(--nuit); }
.btn-ligne:hover { background: #fff; border-color: var(--bleu); color: var(--bleu); box-shadow: none; }
.btn-blanc { background: #fff; color: var(--nuit); }
.btn-blanc:hover { background: var(--or-c); color: var(--nuit); }
.btn-verre { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(6px); }
.btn-verre:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: #fff; box-shadow: none; }
.btn-danger { background: var(--rouge); }
.btn-danger:hover { background: #A33024; }
.btn-petit { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-mini { min-height: 30px; padding: 0 11px; font-size: .8rem; gap: 6px; }
.btn-icone { width: 38px; min-height: 38px; padding: 0; }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.lien-fleche .ico { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.lien-fleche:hover .ico { transform: translateX(4px); }

/* ---------------------------------------------------------------- Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5; background: #EEF5F0; color: var(--texte); white-space: nowrap; }
.badge .ico { width: 13px; height: 13px; }
.badge.bleu { background: var(--bleu-c); color: var(--bleu-f); }
.badge.vert { background: var(--vert-c); color: var(--vert-f); }
.badge.vert-f { background: var(--vert); color: #fff; }
.badge.or { background: var(--or-c); color: var(--or-f); }
.badge.rouge { background: var(--rouge-c); color: var(--rouge); }
.badge.gris { background: #EEF5F0; color: var(--doux); }
.badge.violet { background: var(--violet-c); color: var(--violet); }
.badge.terre { background: var(--terre-c); color: var(--terre); }
.badge.nuit { background: var(--nuit); color: #fff; }
.pastille-them { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--texte); }
.pastille-them i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--vert)); flex: none; }

/* ---------------------------------------------------------------- Formulaires */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.champ > span:first-child, .champ > label { font-weight: 700; font-size: .86rem; color: var(--nuit); }
.champ .aide { font-weight: 500; font-size: .8rem; color: var(--doux); }
.req { color: var(--rouge); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=time], input[type=url], input[type=tel], input[type=month], select, textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--ligne-f); border-radius: var(--r-s); background: #fff; color: var(--encre); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(27, 122, 53, .12); }
input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed var(--ligne-f); border-radius: var(--r-s); background: var(--fond-2); }
input[type=color] { width: 60px; height: 44px; padding: 3px; border: 1.5px solid var(--ligne-f); border-radius: 8px; background: #fff; }
.case { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 600; cursor: pointer; }
.case input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bleu); flex: none; }
.grille-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grille-form .plein { grid-column: 1 / -1; }
.erreur-champ { color: var(--rouge); font-size: .8rem; font-weight: 600; }
.mdp { position: relative; display: block; }
.mdp input { padding-right: 46px; }
.mdp button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px; color: var(--doux); cursor: pointer; }

/* ---------------------------------------------------------------- Alertes */
.alerte { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-s); margin-bottom: 18px; font-weight: 600; font-size: .93rem; }
.alerte .ico { margin-top: 2px; }
.alerte-ok { background: var(--vert-c); color: var(--vert-f); }
.alerte-erreur { background: var(--rouge-c); color: #9B2C21; }
.alerte-info { background: var(--bleu-c); color: var(--bleu-f); }
.alerte-or { background: var(--or-c); color: #7A5410; }

/* =====================================================================
   PORTAIL PUBLIC
   ===================================================================== */
.bandeau-haut { background: var(--nuit); color: #C6DCCB; font-size: .82rem; }
.bandeau-haut .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.bandeau-haut a { color: #fff; font-weight: 600; }
.bandeau-haut a:hover { color: var(--or); }
.bandeau-haut .gauche, .bandeau-haut .droite { display: flex; align-items: center; gap: 18px; }
.bandeau-haut .ico { width: 15px; height: 15px; color: var(--or); }
.langues { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px; }
.langues a { padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: #C6DCCB; }
.langues a.actif { background: #fff; color: var(--nuit); }
.signature-haut { display: inline-flex; align-items: center; gap: 8px; font-style: italic; font-family: var(--serif); color: #E6F7EB; }

.entete { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--ligne); transition: box-shadow .3s; }
.entete.defile { box-shadow: 0 12px 30px -24px rgba(15, 36, 24, .6); }
.entete .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; transition: min-height .3s; }
.entete.defile .wrap { min-height: 70px; }
.marque { display: flex; align-items: center; gap: 12px; color: var(--nuit); flex: none; }
.marque img { width: 58px; height: 58px; object-fit: contain; transition: width .3s, height .3s; }
.entete.defile .marque img { width: 48px; height: 48px; }
.marque b { display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.marque small { display: block; font-size: .72rem; font-weight: 700; color: var(--vert); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--encre); font-weight: 700; font-size: .92rem; cursor: pointer; }
.nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav > ul > li.actif > a, .nav > ul > li.actif > button { color: var(--bleu); background: var(--bleu-cc); }
.nav > ul > li.actif > a::after { content: ''; display: block; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--bleu), var(--vert)); }
.nav .chevron { width: 15px; height: 15px; transition: transform .25s; }
.sous-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; box-shadow: var(--ombre-l);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav li:hover > .sous-menu, .nav li:focus-within > .sous-menu, .nav li.ouvert > .sous-menu { opacity: 1; visibility: visible; transform: none; }
.nav li:hover > button .chevron, .nav li.ouvert > button .chevron { transform: rotate(180deg); }
.sous-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--encre); font-weight: 700; font-size: .9rem; }
.sous-menu a small { display: block; font-weight: 500; color: var(--doux); font-size: .78rem; }
.sous-menu a:hover { background: var(--fond); color: var(--bleu); }
.sous-menu .ico { color: var(--vert); margin-top: 2px; }
.nav-cta { margin-left: 10px; }
/* « Accueil » visible à toutes les tailles d’écran (v3.2) */
.burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--ligne); border-radius: 12px; background: #fff; color: var(--nuit); place-items: center; cursor: pointer; margin-left: auto; }
.voile-nav { display: none; }

/* --- Héros --- */
.heros { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% 30%, rgba(27, 122, 53, .55), transparent 60%), radial-gradient(900px 500px at 10% 110%, rgba(47, 125, 50, .45), transparent 60%), linear-gradient(160deg, #0C2015 0%, var(--nuit) 45%, #196530 100%); }
.heros::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05'%3E%3Cpath d='M-50 120c120-60 240 40 360-20s240-60 340 10'/%3E%3Cpath d='M-50 170c120-60 240 40 360-20s240-60 340 10'/%3E%3Cpath d='M-50 220c120-60 240 40 360-20s240-60 340 10'/%3E%3Cpath d='M-50 270c120-60 240 40 360-20s240-60 340 10'/%3E%3Cpath d='M-50 320c120-60 240 40 360-20s240-60 340 10'/%3E%3Cpath d='M-50 370c120-60 240 40 360-20s240-60 340 10'/%3E%3Cpath d='M-50 420c120-60 240 40 360-20s240-60 340 10'/%3E%3Cpath d='M-50 470c120-60 240 40 360-20s240-60 340 10'/%3E%3C/g%3E%3C/svg%3E"); background-size: 600px; pointer-events: none; }
.heros .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 64px 0 120px; }
.surtitre { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--feuille); }
.surtitre::before { content: ''; width: 34px; height: 2px; background: currentColor; border-radius: 2px; }
.heros h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.06; margin: 16px 0 18px; font-weight: 600; }
.heros h1 em { font-style: italic; color: var(--feuille); font-weight: 500; }
.heros .chapeau { font-size: 1.12rem; color: #D2ECDA; max-width: 560px; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.citation-heros { display: flex; gap: 14px; align-items: center; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); max-width: 560px; }
.citation-heros .ico { width: 30px; height: 30px; color: var(--or); flex: none; }
.citation-heros p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: #fff; }
.citation-heros small { display: block; font-family: var(--sans); font-style: normal; font-size: .78rem; color: #9EBFA6; margin-top: 4px; letter-spacing: .04em; }

/* --- Carte SVG du Sahel --- */
.carte-sahel { position: relative; }
.carte-sahel svg { display: block; width: 100%; height: auto; overflow: hidden; }
.heros .carte-sahel svg { overflow: visible; }
.carte-sahel .voisin { fill: rgba(255, 255, 255, .045); stroke: rgba(255, 255, 255, .12); stroke-width: .8; }
.carte-sahel .membre { fill: rgba(139, 195, 74, .3); stroke: rgba(205, 235, 170, .75); stroke-width: 1.2; transition: fill .3s, transform .3s; cursor: pointer; }
.carte-sahel a:hover .membre, .carte-sahel a:focus .membre { fill: rgba(221, 162, 58, .55); stroke: #FFE2A8; }
.carte-sahel .etiquette { font: 700 17px var(--sans); fill: #fff; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(15, 36, 24, .7); stroke-width: 3px; letter-spacing: .02em; }
.carte-sahel .point { fill: var(--or); stroke: rgba(255, 255, 255, .9); stroke-width: 1.4; }
.carte-sahel .halo { fill: var(--or); opacity: .4; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
.carte-sahel .siege { fill: #fff; stroke: var(--bleu); stroke-width: 3; }
@keyframes halo { from { transform: scale(1); opacity: .5; } to { transform: scale(3.4); opacity: 0; } }
.carte-legende { position: absolute; left: 0; bottom: -6px; display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: #C6DCCB; }
.carte-legende span { display: inline-flex; align-items: center; gap: 7px; }
.carte-legende i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.carte-claire .voisin { fill: #EEF0EA; stroke: #DCE0D6; }
.carte-claire .membre { fill: #DCEBCB; stroke: #fff; stroke-width: 1.6; }
.carte-claire a:hover .membre { fill: var(--or); }
.carte-claire .membre.actif { fill: var(--vert); }
.carte-claire .etiquette { fill: var(--nuit); stroke: rgba(255, 255, 255, .85); }
.carte-claire .point { fill: var(--bleu); stroke: #fff; }
.carte-claire .halo { fill: var(--bleu); }

/* --- Bande de chiffres --- */
.chiffres { position: relative; z-index: 2; margin-top: -72px; }
.chiffres .grille-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r-l); box-shadow: var(--ombre-l); overflow: hidden; }
.chiffre { position: relative; padding: 26px 28px; border-right: 1px solid var(--ligne); }
.chiffre:last-child { border-right: 0; }
.chiffre .ico-rond { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--c-fond, var(--bleu-c)); color: var(--c, var(--bleu)); margin-bottom: 14px; }
.chiffre b { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--nuit); line-height: 1; letter-spacing: -.02em; }
.chiffre span { display: block; margin-top: 6px; font-weight: 700; color: var(--texte); font-size: .9rem; }
.chiffre small { display: block; color: var(--doux); font-size: .8rem; }

/* --- Sections --- */
.section { padding: 88px 0; }
.section-serree { padding: 64px 0; }
.section-blanche { background: #fff; }
.section-sable { background: linear-gradient(180deg, #F3EEE2, #F7F4EC); }
.section-nuit { background: var(--nuit); color: #C6DCCB; }
.section-nuit h2, .section-nuit h3 { color: #fff; }
.titre-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.titre-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 10px 0 0; }
.titre-section p { max-width: 620px; margin: 10px 0 0; color: var(--doux); font-size: 1.02rem; }
.titre-section.centre { flex-direction: column; align-items: center; text-align: center; }
.titre-section.centre p { margin-inline: auto; }
.surtitre-sombre { color: var(--vert); }
.section-nuit .surtitre { color: var(--feuille); }

/* --- Piliers --- */
.piliers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pilier { position: relative; padding: 30px 26px 28px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; overflow: hidden; }
.pilier::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, var(--bleu)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.pilier:hover { transform: translateY(-6px); box-shadow: var(--ombre-l); border-color: transparent; }
.pilier:hover::after { transform: scaleX(1); }
.pilier .num { position: absolute; right: 20px; top: 14px; font-family: var(--serif); font-size: 3.2rem; font-weight: 700; color: var(--fond); line-height: 1; }
.pilier .ico-rond { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c-fond, var(--bleu-c)); color: var(--c, var(--bleu)); margin-bottom: 20px; position: relative; }
.pilier .ico-rond .ico { width: 26px; height: 26px; }
.pilier h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pilier p { font-size: .92rem; color: var(--doux); margin: 0 0 14px; text-align: left; hyphens: none; }
.pilier p:last-child { margin-bottom: 0; }

/* --- Processus de capitalisation --- */
.processus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: etape; }
.processus::before { content: ''; position: absolute; left: 12%; right: 12%; top: 38px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 8px, transparent 8px 16px); }
.etape-proc { position: relative; text-align: center; padding: 0 18px; }
.etape-proc .disque { position: relative; width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--nuit-2); border: 2px solid rgba(255, 255, 255, .2); color: var(--feuille); transition: transform .4s var(--ease), background .3s; }
.etape-proc:hover .disque { transform: scale(1.08); background: var(--vert); color: #fff; }
.etape-proc .disque .ico { width: 30px; height: 30px; }
.etape-proc .disque::after { counter-increment: etape; content: '0' counter(etape); position: absolute; right: -6px; top: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--or); color: var(--nuit); font: 800 .78rem/30px var(--sans); }
.etape-proc h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.etape-proc p { font-size: .9rem; color: #AECBB5; margin: 0; }
.objectif-proc { display: flex; gap: 18px; align-items: center; margin-top: 50px; padding: 22px 26px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.objectif-proc .ico { width: 34px; height: 34px; color: var(--or); }
.objectif-proc p { margin: 0; color: #E2F4E7; }

/* --- Cartes de fiches --- */
.grille-fiches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.carte-fiche { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; color: inherit; }
.carte-fiche:hover { transform: translateY(-6px); box-shadow: var(--ombre-l); color: inherit; }
.carte-fiche .visuel { position: relative; height: 150px; background: linear-gradient(135deg, var(--c, var(--vert)) 0%, color-mix(in srgb, var(--c, var(--vert)) 55%, var(--nuit)) 100%); overflow: hidden; }
.carte-fiche .visuel > img { width: 100%; height: 100%; object-fit: cover; }
.carte-fiche .visuel .motif { position: absolute; right: -20px; bottom: -30px; width: 170px; height: 170px; color: rgba(255, 255, 255, .16); }
.carte-fiche .visuel .pays-tag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--nuit); font-size: .78rem; font-weight: 800; }
.carte-fiche .visuel .them-tag { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; opacity: .95; }
.carte-fiche .corps { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.carte-fiche h3 { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.28; margin-bottom: 10px; }
.carte-fiche p { font-size: .9rem; color: var(--doux); margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-fiche .pied-carte { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ligne); font-size: .8rem; color: var(--doux); }
.carte-fiche .pied-carte span { display: inline-flex; align-items: center; gap: 5px; }
.carte-fiche .pied-carte .ico { width: 15px; height: 15px; }

/* --- Pays --- */
.bande-pays { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.liste-pays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.puce-pays { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; color: var(--encre); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.puce-pays:hover { border-color: var(--vert); transform: translateX(4px); box-shadow: var(--ombre); color: var(--encre); }
.puce-pays .drapeau { font-size: 1.6rem; line-height: 1; }
.puce-pays b { display: block; font-size: .93rem; }
.puce-pays small { display: block; color: var(--doux); font-size: .76rem; }
.puce-pays.regional { background: linear-gradient(90deg, var(--bleu-cc), var(--feuille-c)); border-color: #D6F2DE; }

/* --- Thématiques --- */
.grille-themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.theme { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); color: var(--encre); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; min-height: 150px; }
.theme:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: var(--c); color: var(--encre); }
.theme .ico-rond { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
.theme b { font-size: .93rem; line-height: 1.3; }
.theme small { margin-top: auto; color: var(--doux); font-weight: 700; font-size: .78rem; }

/* --- Mise en avant bulletin / challenge --- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.encart { position: relative; padding: 34px; border-radius: var(--r-l); overflow: hidden; }
.encart-bulletin { background: linear-gradient(140deg, #fff, var(--or-c)); border: 1px solid #F0E2C2; }
.encart-challenge { background: linear-gradient(140deg, var(--nuit-2), var(--nuit)); color: #C6DCCB; }
.encart-challenge h3 { color: #fff; }
.encart .ico-fond { position: absolute; right: -20px; top: -20px; width: 180px; height: 180px; opacity: .08; }
.encart h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 10px 0; }
.compte-rebours { display: flex; gap: 10px; margin: 18px 0 22px; }
.compte-rebours div { min-width: 70px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); text-align: center; }
.compte-rebours b { display: block; font: 600 1.6rem var(--serif); color: var(--or); }
.compte-rebours span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

/* --- Documents --- */
.liste-docs { display: grid; gap: 12px; }
.ligne-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.ligne-doc:hover { border-color: var(--ligne-f); box-shadow: var(--ombre); }
.ligne-doc .ext { display: grid; place-items: center; width: 50px; height: 58px; border-radius: 10px; background: var(--bleu-c); color: var(--bleu); font: 800 .7rem var(--sans); letter-spacing: .04em; position: relative; }
.ligne-doc .ext.pdf { background: #FDECEA; color: #C0392B; }
.ligne-doc .ext.word { background: #E9F9EE; color: #28A04C; }
.ligne-doc .ext.excel { background: #E5F2E2; color: #2F7D32; }
.ligne-doc .ext.ppt { background: #FBF1DC; color: #B47D1C; }
.ligne-doc h3 { font-size: .98rem; margin: 0 0 4px; }
.ligne-doc h3 a { color: var(--nuit); }
.ligne-doc .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--doux); }
.ligne-doc .meta span { display: inline-flex; align-items: center; gap: 5px; }
.ligne-doc .meta .ico { width: 14px; height: 14px; }

/* --- Application mobile --- */
.bande-mobile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 50px; align-items: center; }
.atouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.atout { display: flex; gap: 14px; align-items: flex-start; }
.atout .ico-rond { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(139, 195, 74, .15); color: var(--feuille); flex: none; }
.atout b { display: block; color: #fff; font-size: .95rem; }
.atout span { font-size: .85rem; color: #AECBB5; }
.telephone { position: relative; width: 290px; height: 580px; margin: 0 auto; border-radius: 46px; background: #09170F; padding: 14px; box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.telephone .ecran { height: 100%; border-radius: 34px; overflow: hidden; background: var(--fond); position: relative; }
.telephone .ecran-tete { padding: 34px 18px 18px; background: linear-gradient(150deg, var(--bleu), var(--nuit)); color: #fff; }
.telephone .ecran-tete small { color: #BFEACC; font-size: .7rem; }
.telephone .ecran-tete b { display: block; font: 600 1.1rem var(--serif); margin-top: 2px; }
.telephone .ecran-carte { margin: 10px 12px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px -12px rgba(15, 36, 24, .6); font-size: .72rem; }
.telephone .ecran-carte b { display: block; color: var(--nuit); font-size: .8rem; line-height: 1.3; margin: 4px 0; }
.telephone .ecran-barre { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 12px 8px 18px; background: #fff; border-top: 1px solid var(--ligne); color: var(--doux); }
.telephone .ecran-barre .ico { width: 20px; height: 20px; }
.telephone .ecran-barre .actif { color: var(--bleu); }
.telephone::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 20px; background: #09170F; z-index: 2; }

/* --- Partenaires --- */
.partenaires { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.partenaire { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; color: var(--nuit); }
.partenaire b { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--bleu); }
.partenaire span { font-size: .8rem; color: var(--doux); max-width: 220px; line-height: 1.35; }

/* --- Pied de page --- */
.pied { position: relative; background: #0F3D1D; color: #A8C4AE; font-size: .9rem; }
.pied::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--bande); }
.pied .wrap { padding: 64px 0 0; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.pied h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pied a { color: #C6DCCB; }
.pied a:hover { color: var(--or); }
.pied .marque-pied { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.pied .marque-pied img { width: 64px; height: 64px; padding: 6px; background: #fff; border-radius: 16px; }
.pied .marque-pied b { color: #fff; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.pied .contact-ligne { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.pied .contact-ligne .ico { width: 17px; height: 17px; color: var(--feuille); margin-top: 3px; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: .8rem; }

/* --- En-tête de page (pages intérieures) --- */
.tete-page { position: relative; overflow: hidden; color: #fff; background: linear-gradient(150deg, #0C2015, var(--nuit) 50%, #1F7E3C); padding: 54px 0 60px; }
.tete-page::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(139, 195, 74, .25), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(27, 122, 53, .5), transparent 70%); }
.tete-page .wrap { position: relative; }
.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #9EBFA6; margin-bottom: 12px; }
.fil a { color: #C6DCCB; }
.fil a:hover { color: var(--or); }
.fil span::before { content: '/'; margin-right: 8px; opacity: .5; }
.tete-page h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 10px; max-width: 900px; }
.tete-page p { color: #C6DCCB; max-width: 760px; font-size: 1.04rem; margin: 0; }
.tete-page .tete-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* --- Filtres --- */
.barre-filtres { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 18px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: var(--ombre); margin: -36px 0 32px; position: relative; z-index: 2; }
.barre-filtres .champ { margin: 0; flex: 1 1 180px; }
.barre-filtres .champ.large { flex: 2 1 280px; }
.recherche-champ { position: relative; }
.recherche-champ .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--doux); }
.recherche-champ input { padding-left: 44px; }
.puces-filtre { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.puces-filtre a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne); color: var(--texte); font-weight: 700; font-size: .84rem; }
.puces-filtre a:hover { border-color: var(--bleu); color: var(--bleu); }
.puces-filtre a.actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.resultats-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--doux); font-size: .9rem; }

/* --- Fiche détaillée --- */
.fiche-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.fiche-resume { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--nuit); padding: 0 0 26px; margin-bottom: 30px; border-bottom: 1px solid var(--ligne); }
.rubrique { position: relative; padding: 0 0 26px 62px; }
.rubrique .num-rub { position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bleu-c); color: var(--bleu); font: 800 .9rem var(--sans); }
.rubrique:nth-child(2n) .num-rub { background: var(--vert-c); color: var(--vert); }
.rubrique:nth-child(3n) .num-rub { background: var(--or-c); color: var(--or-f); }
.rubrique h2 { font-size: 1.3rem; margin: 6px 0 10px; }
.rubrique .texte { white-space: pre-line; color: var(--texte); font-size: 1rem; }
.encadre-lateral { position: sticky; top: 100px; display: grid; gap: 18px; }
.boite { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 22px; }
.boite h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--doux); margin-bottom: 14px; }
.boite dl { margin: 0; display: grid; gap: 12px; }
.boite dt { font-size: .76rem; font-weight: 800; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
.boite dd { margin: 2px 0 0; font-weight: 700; color: var(--nuit); }
.parcours-validation { list-style: none; margin: 0; padding: 0; position: relative; }
.parcours-validation li { position: relative; padding: 0 0 16px 32px; font-size: .88rem; }
.parcours-validation li::before { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--ligne); }
.parcours-validation li:last-child::before { display: none; }
.parcours-validation .rond { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--vert); color: #fff; }
.parcours-validation .rond .ico { width: 12px; height: 12px; }
.parcours-validation .rond.rouge { background: var(--rouge); }
.parcours-validation .rond.attente { background: var(--or); }
.parcours-validation b { display: block; color: var(--nuit); }
.parcours-validation small { color: var(--doux); }

/* --- Tableau de bord public --- */
.grille-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi { position: relative; padding: 22px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.kpi .ico-rond { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--c-fond, var(--bleu-c)); color: var(--c, var(--bleu)); margin-bottom: 14px; }
.kpi small { display: block; font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); }
.kpi b { display: block; font: 600 2rem var(--serif); color: var(--nuit); letter-spacing: -.02em; margin: 4px 0 2px; }
.kpi span { font-size: .84rem; color: var(--doux); }
.jauge { height: 10px; border-radius: 10px; background: #EDF4EF; overflow: hidden; margin-top: 12px; }
.jauge i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--vert), var(--feuille)); transition: width 1.2s var(--ease); }
.jauge.or i { background: linear-gradient(90deg, var(--or-f), var(--or)); }
.jauge.bleu i { background: linear-gradient(90deg, var(--bleu), #5DD681); }
.carte-graphe { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 22px; }
.carte-graphe h3 { font-size: 1rem; margin-bottom: 16px; }
.graphe-boite { position: relative; height: 300px; }
.barres-h { display: grid; gap: 12px; }
.barre-h { display: grid; grid-template-columns: 170px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: .86rem; }
.barre-h .piste { height: 12px; border-radius: 12px; background: #EEF5F0; overflow: hidden; }
.barre-h .piste i { display: block; height: 100%; border-radius: 12px; background: var(--c, var(--vert)); }
.barre-h b { text-align: right; color: var(--nuit); }

/* --- Tableaux --- */
.tableau-boite { overflow-x: auto; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); }
.tableau { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tableau th { padding: 13px 16px; background: #F4F9F6; color: var(--nuit); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--ligne); }
.tableau td { padding: 13px 16px; border-bottom: 1px solid #EEF4F0; vertical-align: middle; color: var(--encre); }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover { background: #FAFDFB; }
.tableau .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau small { display: block; color: var(--doux); font-size: .78rem; }
.tableau .lien-ligne { font-weight: 800; color: var(--nuit); }
.tableau .lien-ligne:hover { color: var(--bleu); }
.vide { padding: 50px 20px; text-align: center; color: var(--doux); }
.vide .ico { width: 42px; height: 42px; color: var(--ligne-f); margin-bottom: 10px; }

/* --- Pagination --- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--ligne); color: var(--texte); font-weight: 700; font-size: .9rem; }
.pagination a:hover { border-color: var(--bleu); color: var(--bleu); }
.pagination .actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.pagination .inactif { opacity: .45; }

/* --- Animations d'apparition --- */
/* Apparition au défilement : uniquement si le script l'a activée (html.anim) — sans JavaScript, tout reste visible */
.anim .revele { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.anim .revele.visible { opacity: 1; transform: none; }
@media print { .anim .revele { opacity: 1 !important; transform: none !important; } }

/* --- Pages diverses --- */
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grille-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.carte { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); }
.carte-corps { padding: 24px; }
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--ligne); }
.carte-tete h2, .carte-tete h3 { margin: 0; font-family: var(--sans); font-weight: 800; font-size: 1.02rem; }
.carte-tete h2 .ico, .carte-tete h3 .ico { vertical-align: -4px; margin-right: 6px; color: var(--vert); }
.prose { font-size: 1.02rem; color: var(--texte); }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose p { margin-bottom: 1.1em; }
.carte-bulletin { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); color: inherit; transition: transform .3s var(--ease), box-shadow .3s; position: relative; overflow: hidden; }
.carte-bulletin::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--or), var(--vert)); }
.carte-bulletin:hover { transform: translateY(-4px); box-shadow: var(--ombre-l); color: inherit; }
.carte-bulletin .periode { font-size: .78rem; font-weight: 800; color: var(--or-f); text-transform: uppercase; letter-spacing: .14em; }
.carte-bulletin h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 10px 0; }
.carte-pays { position: relative; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); color: inherit; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.carte-pays:hover { transform: translateY(-4px); box-shadow: var(--ombre-l); border-color: transparent; color: inherit; }
.carte-pays .drapeau { font-size: 2.6rem; line-height: 1; }
.carte-pays h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 12px 0 4px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.mini-stats div { text-align: center; }
.mini-stats b { display: block; font: 600 1.35rem var(--serif); color: var(--nuit); }
.mini-stats span { font-size: .72rem; color: var(--doux); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.carte-leaflet { height: 640px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--ligne); background: #E8F3EB; z-index: 1; }
.leaflet-popup-content { font-family: var(--sans); font-size: .86rem; line-height: 1.5; }
.leaflet-popup-content b { color: var(--nuit); font-size: .95rem; }
.marqueur-p2rs { width: 16px; height: 16px; border-radius: 50%; background: var(--c, var(--bleu)); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.legende-carte { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: .82rem; }
.etapes-inscription { display: grid; gap: 14px; }
.code-api { background: #09170F; color: #D7F4E0; border-radius: 12px; padding: 16px 18px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
.methode { display: inline-block; min-width: 58px; padding: 3px 8px; border-radius: 6px; font: 800 .72rem ui-monospace, monospace; text-align: center; color: #fff; background: var(--bleu); }
.methode.post { background: var(--vert); }
.methode.put { background: var(--or-f); }
.methode.delete { background: var(--rouge); }
.endpoint { border: 1px solid var(--ligne); border-radius: 12px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.endpoint summary { display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.endpoint summary::-webkit-details-marker { display: none; }
.endpoint summary code { font-weight: 700; color: var(--nuit); }
.endpoint .corps-endpoint { padding: 0 16px 16px; border-top: 1px solid var(--ligne); }

/* =====================================================================
   AUTHENTIFICATION
   ===================================================================== */
.page-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.auth-visuel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; color: #fff; background: radial-gradient(800px 500px at 100% 0%, rgba(27, 122, 53, .6), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(47, 125, 50, .5), transparent 60%), var(--nuit); }
.auth-visuel .carte-sahel { margin: 30px -20px; }
.auth-visuel h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.auth-visuel p { color: #C6DCCB; max-width: 480px; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 90px); }
.auth-form .boite-auth { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-form h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-form .sous-titre { color: var(--doux); margin-bottom: 28px; }
.auth-form .btn { width: 100%; min-height: 50px; }
.auth-retour { display: inline-flex; align-items: center; gap: 6px; color: var(--doux); font-weight: 700; font-size: .88rem; margin-bottom: 30px; }
.separateur { display: flex; align-items: center; gap: 12px; color: var(--doux); font-size: .8rem; margin: 22px 0; }
.separateur::before, .separateur::after { content: ''; flex: 1; height: 1px; background: var(--ligne); }
.code-otp { letter-spacing: .6em; text-align: center; font: 700 1.6rem ui-monospace, monospace !important; }

/* =====================================================================
   ESPACE DE TRAVAIL
   ===================================================================== */
.espace { background: #F3F8F4; }
.cote { position: fixed; inset: 0 auto 0 0; z-index: 70; width: 272px; display: flex; flex-direction: column; background: linear-gradient(180deg, #0C2015, var(--nuit) 40%, #1B6C33); color: #fff; }
.cote-marque { display: flex; align-items: center; gap: 12px; padding: 18px 20px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cote-marque img { width: 46px; height: 46px; padding: 4px; background: #fff; border-radius: 12px; }
.cote-marque b { display: block; font-family: var(--serif); font-size: 1.05rem; color: #fff; line-height: 1.15; }
.cote-marque small { display: block; font-size: .7rem; color: var(--feuille); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cote-nav { flex: 1; overflow-y: auto; padding: 12px 12px 20px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.cote-groupe { padding: 18px 12px 6px; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: .55; }
.cote-lien { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: #fff; font-weight: 700; font-size: .9rem; transition: background .2s; }
.cote-lien .ico { width: 19px; height: 19px; opacity: .9; }
.cote-lien:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cote-lien.actif { background: linear-gradient(90deg, rgba(139, 195, 74, .22), rgba(139, 195, 74, .06)); color: #fff; box-shadow: inset 3px 0 0 var(--feuille); }
.cote-lien .compteur { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--or); color: var(--nuit); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.cote-pied { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.cote-pied a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: #fff; font-weight: 700; font-size: .86rem; background: rgba(255, 255, 255, .06); }
.cote-pied a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.zone { margin-left: 272px; min-height: 100vh; display: flex; flex-direction: column; }
.barre-sup { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 12px 28px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--ligne); }
.barre-sup .burger-espace { display: none; }
.recherche-espace { position: relative; flex: 1; max-width: 520px; }
.recherche-espace .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--doux); }
.recherche-espace input { min-height: 44px; padding-left: 44px; border-radius: 999px; background: #F4F9F6; border-color: transparent; }
.barre-sup .outils { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cloche { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #F4F9F6; color: var(--nuit); }
.cloche:hover { background: var(--bleu-c); color: var(--bleu); }
.cloche .point-notif { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rouge); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.menu-util { position: relative; }
.menu-util > button { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--ligne); border-radius: 999px; background: #fff; cursor: pointer; }
.menu-util > button b { display: block; font-size: .86rem; color: var(--nuit); line-height: 1.2; text-align: left; }
.menu-util > button small { display: block; font-size: .72rem; color: var(--doux); text-align: left; }
.deroulant { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; box-shadow: var(--ombre-l); display: none; z-index: 80; }
.deroulant.ouvert { display: block; }
.deroulant a, .deroulant button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--encre); font-weight: 700; font-size: .88rem; cursor: pointer; text-align: left; }
.deroulant a:hover, .deroulant button:hover { background: var(--fond); color: var(--bleu); }
.deroulant .ico { width: 18px; height: 18px; color: var(--doux); }
.deroulant hr { border: 0; border-top: 1px solid var(--ligne); margin: 6px 0; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--bleu), var(--vert)); color: #fff; font-weight: 800; font-size: .85rem; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.grand { width: 96px; height: 96px; font-size: 2rem; }
.avatar.petit { width: 30px; height: 30px; font-size: .72rem; }
.contenu-espace { padding: 28px; flex: 1; }
.tete-espace { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 24px; border-radius: var(--r-l); color: #fff; overflow: hidden;
    background: radial-gradient(500px 220px at 100% 0%, rgba(139, 195, 74, .28), transparent 70%), linear-gradient(120deg, var(--nuit), var(--nuit-3)); }
.tete-espace::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--bande); }
.tete-espace .fil-espace { font-size: .78rem; font-weight: 700; color: var(--feuille); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.tete-espace h1 { color: #fff; font-size: 1.75rem; margin: 0; }
.tete-espace p { margin: 6px 0 0; color: #C6DCCB; max-width: 760px; }
.tete-espace .actions-tete { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.onglets { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; margin-bottom: 20px; }
.onglets a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; color: var(--texte); font-weight: 700; font-size: .88rem; }
.onglets a:hover { background: var(--fond); color: var(--bleu); }
.onglets a.actif { background: var(--nuit); color: #fff; }
.onglets a .badge { padding: 1px 8px; }
.onglets a.actif .badge { background: rgba(255, 255, 255, .2); color: #fff; }
.filtres-espace { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 16px; border-bottom: 1px solid var(--ligne); }
.filtres-espace .champ { margin: 0; flex: 1 1 160px; }
.filtres-espace .champ.large { flex: 2 1 260px; }
.filtres-espace input, .filtres-espace select { min-height: 42px; }
.a-faire { display: grid; gap: 10px; }
.a-faire a { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--ligne); color: var(--encre); transition: border-color .2s, background .2s; }
.a-faire a:hover { border-color: var(--bleu); background: var(--bleu-cc); color: var(--encre); }
.a-faire .ico-rond { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--or-c); color: var(--or-f); flex: none; }
.a-faire b { display: block; font-size: .9rem; line-height: 1.3; }
.a-faire small { color: var(--doux); }
.liste-simple { list-style: none; margin: 0; padding: 0; }
.liste-simple li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid #EEF4F0; font-size: .9rem; }
.liste-simple li:last-child { border-bottom: 0; }
.chrono { list-style: none; margin: 0; padding: 0; }
.chrono li { position: relative; padding: 0 0 16px 22px; font-size: .86rem; }
.chrono li::before { content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px var(--vert-c); }
.chrono li::after { content: ''; position: absolute; left: 4px; top: 18px; bottom: 0; width: 1px; background: var(--ligne); }
.chrono li:last-child::after { display: none; }
.chrono small { color: var(--doux); }
.stat-statuts { display: flex; height: 14px; border-radius: 14px; overflow: hidden; background: #EEF5F0; margin: 6px 0 14px; }
.stat-statuts i { display: block; height: 100%; }
.legende-statuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; font-size: .84rem; }
.legende-statuts span { display: flex; align-items: center; gap: 8px; }
.legende-statuts i { width: 10px; height: 10px; border-radius: 3px; }
.couleur-gris { background: #A9B4C2; } .couleur-bleu { background: var(--bleu); } .couleur-or { background: var(--or); } .couleur-rouge { background: var(--rouge); } .couleur-vert { background: var(--feuille); } .couleur-vert-f { background: var(--vert); }
.rubrique-form { padding: 22px 24px; border-bottom: 1px solid var(--ligne); }
.rubrique-form:last-child { border-bottom: 0; }
.rubrique-form h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 4px; }
.rubrique-form h3 .num-rub { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bleu-c); color: var(--bleu); font-size: .8rem; }
.rubrique-form .consigne { font-size: .84rem; color: var(--doux); margin: 0 0 10px 38px; }
.rubrique-form textarea { margin-left: 0; }
.barre-actions { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 24px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ligne); border-radius: 0 0 var(--r) var(--r); }
.choix-multiples { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-multiples label { position: relative; }
.choix-multiples input { position: absolute; opacity: 0; }
.choix-multiples span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1.5px solid var(--ligne-f); border-radius: 999px; font-weight: 700; font-size: .84rem; cursor: pointer; background: #fff; transition: all .2s; }
.choix-multiples span i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--vert)); }
.choix-multiples input:checked + span { border-color: var(--c, var(--vert)); background: color-mix(in srgb, var(--c, var(--vert)) 12%, #fff); color: var(--nuit); }
.choix-multiples input:focus-visible + span { outline: 3px solid rgba(27, 122, 53, .4); }
.completude { display: flex; align-items: center; gap: 12px; }
.completude .jauge { flex: 1; margin: 0; }
.message-forum { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--ligne); }
.message-forum:last-child { border-bottom: 0; }
.message-forum .entete-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.message-forum .entete-msg b { color: var(--nuit); }
.message-forum .texte { white-space: pre-line; }
.message-forum.masque .texte { color: var(--doux); font-style: italic; }
.message-forum .actions-msg { display: flex; gap: 6px; margin-top: 10px; }
.sujet-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 90px 180px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--ligne); }
.sujet-ligne:last-child { border-bottom: 0; }
.sujet-ligne h3 { font-size: .98rem; margin: 0 0 3px; }
.sujet-ligne h3 a { color: var(--nuit); }
.sujet-ligne small { color: var(--doux); }
.carte-comm { display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); position: relative; overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.carte-comm:hover { box-shadow: var(--ombre-l); transform: translateY(-3px); }
.carte-comm::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c, var(--bleu)); }
.carte-comm h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.carte-comm h3 a { color: var(--nuit); }
.carte-comm p { font-size: .88rem; color: var(--doux); margin-bottom: 14px; }
.carte-comm .pied-comm { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ligne); font-size: .8rem; color: var(--doux); }
.etoiles { display: inline-flex; gap: 2px; }
.etoiles button { border: 0; background: none; padding: 2px; color: #D6DBE2; cursor: pointer; }
.etoiles button.on, .etoiles button:hover, .etoiles button:hover ~ button.on { color: var(--or); }
.etoiles .ico { width: 22px; height: 22px; fill: currentColor; }
.matrice { width: 100%; border-collapse: collapse; font-size: .84rem; }
.matrice th, .matrice td { padding: 9px 10px; border-bottom: 1px solid #EEF4F0; text-align: left; }
.matrice thead th { position: sticky; top: 0; background: #F4F9F6; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nuit); }
.matrice .module td { background: var(--nuit); color: #fff; font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.matrice select { min-height: 34px; padding: 4px 8px; font-size: .8rem; border-radius: 8px; }
.matrice code { font-size: .78rem; color: var(--bleu-f); }
.diff-versions { display: grid; gap: 14px; }
.diff-versions .avant { background: #FFF4F2; border-left: 3px solid var(--rouge); padding: 10px 14px; border-radius: 8px; white-space: pre-line; }
.diff-versions .apres { background: #F1F9EF; border-left: 3px solid var(--vert); padding: 10px 14px; border-radius: 8px; white-space: pre-line; }
.qr-boite { display: grid; place-items: center; width: 220px; height: 220px; padding: 12px; background: #fff; border: 1px solid var(--ligne); border-radius: 16px; }
.codes-secours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font: 700 1rem ui-monospace, monospace; }
.codes-secours span { padding: 8px 12px; background: var(--fond); border-radius: 8px; text-align: center; letter-spacing: .08em; }
.vide-espace { padding: 40px 20px; text-align: center; color: var(--doux); }
.vide-espace .ico { width: 38px; height: 38px; color: var(--ligne-f); display: block; margin: 0 auto 8px; }

/* ---------------------------------------------------------------- Impression */
@media print {
    .bandeau-haut, .entete, .pied, .cote, .barre-sup, .no-print, .tete-espace .actions-tete { display: none !important; }
    .zone { margin: 0; }
    body { background: #fff; font-size: 12pt; }
    .contenu-espace { padding: 0; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1460px) {
    .nav > ul > li > a, .nav > ul > li > button { padding: 9px 8px; font-size: .87rem; }
    .marque small { display: none; }
}
@media (max-width: 1180px) {
    .marque small { display: none; }
    .grille-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1200px) {
    .burger { display: grid; }
    .nav { position: fixed; inset: 0 0 0 auto; z-index: 90; width: min(380px, 88vw); margin: 0; padding: 86px 18px 30px; background: #fff; box-shadow: -20px 0 60px rgba(0, 0, 0, .25); transform: translateX(105%); transition: transform .4s var(--ease); overflow-y: auto; }
    .nav.ouvert { transform: none; }
    .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav > ul > li > a, .nav > ul > li > button { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
    .nav > ul > li.actif > a::after { display: none; }
    .sous-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; display: none; min-width: 0; }
    .nav li.ouvert > .sous-menu { display: block; }
    .nav-cta { margin: 14px 0 0; }
    .nav-cta .btn { width: 100%; }
    .nav-fermer { position: absolute; top: 20px; right: 18px; }
    .voile-nav { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(15, 36, 24, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
    .voile-nav.visible { opacity: 1; visibility: visible; }
    .entete { z-index: 95; }
    .heros .wrap { grid-template-columns: 1fr; padding: 48px 0 110px; }
    .heros .carte-sahel { max-width: 640px; margin: 0 auto; }
    .piliers, .processus { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .processus::before { display: none; }
    .etape-proc { padding: 10px; }
    .grille-fiches, .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bande-pays, .fiche-page, .grille-2-1 { grid-template-columns: 1fr; }
    .encadre-lateral { position: static; }
    .grille-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cote { transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }
    .cote.ouvert { transform: none; }
    .zone { margin-left: 0; }
    .barre-sup .burger-espace { display: grid; }
    .voile-espace { position: fixed; inset: 0; z-index: 65; background: rgba(15, 36, 24, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
    .voile-espace.visible { opacity: 1; visibility: visible; }
    .page-auth { grid-template-columns: 1fr; }
    .auth-visuel { display: none; }
}
@media (max-width: 720px) {
    body { font-size: 15px; }
    .wrap { width: min(100% - 32px, var(--largeur)); }
    .bandeau-haut .gauche .signature-haut, .bandeau-haut .masquer-mobile { display: none; }
    .entete .wrap { min-height: 70px; gap: 12px; }
    .marque img { width: 46px; height: 46px; }
    .marque b { font-size: 1.02rem; }
    .chiffres .grille-chiffres { grid-template-columns: repeat(2, 1fr); }
    .chiffre { padding: 18px; border-bottom: 1px solid var(--ligne); }
    .chiffre:nth-child(2n) { border-right: 0; }
    .chiffre b { font-size: 1.8rem; }
    .section { padding: 60px 0; }
    .titre-section { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
    .piliers, .processus, .grille-fiches, .grille-3, .grille-2, .duo, .liste-pays, .atouts, .grille-form { grid-template-columns: 1fr; }
    .grille-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pied-grille { grid-template-columns: 1fr; gap: 28px; }
    .encart { padding: 24px; }
    .ligne-doc { grid-template-columns: auto minmax(0, 1fr); }
    .ligne-doc > :last-child { grid-column: 1 / -1; }
    .rubrique { padding-left: 0; }
    .rubrique .num-rub { position: static; margin-bottom: 8px; }
    .barre-h { grid-template-columns: 110px minmax(0, 1fr) 34px; }
    .telephone { width: 250px; height: 500px; }
    .carte-leaflet { height: 460px; }
    .barre-sup { padding: 10px 14px; gap: 10px; }
    .menu-util > button span { display: none; }
    .contenu-espace { padding: 16px; }
    .tete-espace { padding: 20px; }
    .tete-espace h1 { font-size: 1.4rem; }
    .grille-kpi { grid-template-columns: 1fr 1fr; gap: 12px; }
    .kpi { padding: 16px; }
    .kpi b { font-size: 1.5rem; }
    .sujet-ligne { grid-template-columns: 1fr; gap: 6px; }
    .message-forum { grid-template-columns: 1fr; }
    .legende-statuts { grid-template-columns: 1fr; }
    .compte-rebours div { min-width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .revele { opacity: 1; transform: none; }
}

/* Grilles : les colonnes ne débordent jamais sur leurs voisines */
.grille-2 > *, .grille-3 > *, .grille-2-1 > *, .grille-kpi > *, .fiche-page > *, .duo > * { min-width: 0; }
.nav > ul > li.nav-cta > a.btn { background: var(--bleu); color: #fff; justify-content: center; border-radius: 999px; }
.nav > ul > li.nav-cta > a.btn::after { display: none; }
@media (max-width: 720px) { .barre-sup .langues { display: none; } .recherche-espace input { min-height: 40px; } }

/* =====================================================================
   REFONTE — couleurs du logo, animations, traçabilité, corbeille, tableaux numérotés
   ===================================================================== */

/* ---- Boutons principaux : vert du laurier (le jaune/or est réservé aux statuts) ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn-ligne::after, .btn-verre::after, .btn-ligne-rouge::after { display: none; }
.btn-or { background: linear-gradient(135deg, var(--vert), #3C9A4A); color: #fff; box-shadow: 0 8px 20px -12px rgba(58, 154, 62, .9); }
.btn-or:hover { background: linear-gradient(135deg, var(--vert-f), var(--vert)); color: #fff; box-shadow: 0 14px 26px -14px rgba(58, 154, 62, .95); }
.btn-ligne-rouge { background: #fff; border-color: #F0C4BF; color: var(--rouge); }
.btn-ligne-rouge:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; box-shadow: 0 10px 22px -12px rgba(192, 57, 43, .7); }
.btn-corbeille:hover { border-color: var(--rouge); color: var(--rouge); background: var(--rouge-c); }
.btn:active { transform: translateY(0) scale(.98); }
.form-inline { display: inline; margin: 0; }
.cote-lien .compteur { background: var(--feuille); color: var(--nuit); }

/* ---- Texte justifié partout ---- */
/* Justification réservée aux textes longs : les textes courts (cartes, intros) restent alignés à gauche pour éviter les blancs entre les mots */
.prose p, .prose, .texte-justifie, blockquote, .texte-cellule { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
p { text-wrap: pretty; }
.centre p, p.centre, .titre-section.centre p, .etape-proc p { text-align: center; }
.centre p, p.centre, .vide p, .vide-espace p, .heros-centre p, .page-erreur p, .boite-cta p, .tete-page.centre p, [style*="text-align:center"] p, [style*="text-align: center"] p { text-align: center; }
.tableau td, .tableau th, .badge, .btn { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
.btn { text-align: center; }
.tableau .num { text-align: right; }

/* ---- Pied de page : puces ---- */
.pied ul li { position: relative; padding-left: 18px; }
.pied ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--feuille); box-shadow: 0 0 0 3px rgba(125, 186, 60, .18); transition: transform .25s var(--ease); }
.pied ul li:hover::before { transform: scale(1.35); }
.pied ul li a { display: inline-block; transition: transform .25s var(--ease), color .2s; }
.pied ul li a:hover { transform: translateX(3px); }
.pied p { color: #A8C4AE; }
.reseaux { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.reseaux a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; font-size: .78rem; font-weight: 800; border: 1px solid rgba(255, 255, 255, .12); transition: background .25s, transform .25s var(--ease); }
.reseaux a:hover { background: var(--vert); color: #fff; transform: translateY(-3px); }

/* ---- Tableaux : numérotation, actions, lisibilité ---- */
.defile-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau .col-no, .matrice .col-no { width: 52px; text-align: center !important; color: var(--doux); font-weight: 800; font-variant-numeric: tabular-nums; }
.tableau td.col-no { font-size: .82rem; }
.tableau td.col-no::before { content: ''; }
.tableau .col-actions { white-space: nowrap; text-align: right !important; width: 1%; }
.tableau .col-actions > * + * { margin-left: 4px; }
.tableau thead th { position: sticky; top: 0; z-index: 1; }
.tableau tbody tr { transition: background .2s; }
.tableau tbody tr:hover { background: var(--bleu-cc); }
.tableau tbody tr:hover td.col-no { color: var(--bleu); }
.texte-cellule { max-width: 360px; font-size: .86rem; color: var(--texte); }
.jauge-mini { display: block; width: 110px; height: 6px; border-radius: 6px; background: #E9F4EC; overflow: hidden; margin-bottom: 4px; }
.jauge-mini i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bleu), var(--vert)); }
.trace-cel { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.trace-cel b { display: block; font-size: .84rem; color: var(--nuit); line-height: 1.25; white-space: nowrap; }
.trace-cel small { display: block; font-size: .74rem; color: var(--doux); }
.avatar.mini { width: 26px; height: 26px; font-size: .64rem; }
.details-audit { display: block; font-size: .78rem; line-height: 1.5; word-break: break-word; color: var(--texte); }
.details-audit b { color: var(--nuit); }

/* ---- Traçabilité ---- */
.trace .carte-tete h2 .ico { color: var(--bleu); }
.trace-resume { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.trace-resume > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--fond-2); border: 1px solid var(--ligne); }
.trace-resume small { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.trace-resume em { font-style: normal; font-size: .8rem; color: var(--doux); }
.trace-qui { display: inline-flex; align-items: center; gap: 8px; color: var(--nuit); }
.trace-liste { list-style: none; margin: 0 0 16px; padding: 0 0 0 22px; position: relative; }
.trace-liste::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--ligne-f), transparent); }
.trace-liste li { position: relative; padding: 0 0 16px 10px; }
.trace-liste li::before { content: ''; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--doux); }
.trace-liste li.vert::before { border-color: var(--vert); }
.trace-liste li.bleu::before { border-color: var(--bleu); }
.trace-liste li.rouge::before { border-color: var(--rouge); }
.trace-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-size: .9rem; }
.trace-ligne b { color: var(--nuit); }
.trace-ligne span { color: var(--texte); }
.trace-ligne time { margin-left: auto; font-size: .78rem; color: var(--doux); font-variant-numeric: tabular-nums; }
.trace-diff { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .8rem; background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 10px; overflow: hidden; }
.trace-diff th { width: 30%; padding: 6px 10px; text-align: left; color: var(--doux); font-weight: 700; border-bottom: 1px solid var(--ligne); }
.trace-diff td { padding: 6px 10px; border-bottom: 1px solid var(--ligne); word-break: break-word; }
.trace-diff td .ico { width: 14px; height: 14px; color: var(--doux); }
.trace-diff tr:last-child th, .trace-diff tr:last-child td { border-bottom: 0; }
.trace-diff del { color: #A33024; text-decoration: line-through; text-decoration-color: rgba(192, 57, 43, .4); }
.trace-diff ins { color: var(--vert-f); text-decoration: none; font-weight: 700; }

/* ---- Formulaires sur page dédiée ---- */
.requis { color: var(--rouge); font-style: normal; }
.barre-actions { align-items: center; border-radius: 0 0 var(--r) var(--r); }
.barre-gauche { margin-right: auto; display: inline-flex; gap: 8px; }
.bloc-corbeille { padding-top: 6px; }
.bloc-corbeille .btn { width: 100%; }
.pile-cartes { display: grid; gap: 22px; }
.barre-collante { position: sticky; bottom: 12px; border-radius: var(--r); box-shadow: var(--ombre-l); }
.champ-photo .photo-saisie, .photo-saisie { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.avatar.grand { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--ligne); }
.identite-logo { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; align-items: center; }
.apercu-logo { display: grid; place-items: center; width: 180px; height: 180px; border-radius: 26px; background: repeating-conic-gradient(#F1F8F3 0 25%, #fff 0 50%) 0 0 / 18px 18px; border: 1px solid var(--ligne); padding: 18px; }
.apercu-logo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.apercu-logo:hover img { transform: scale(1.05) rotate(-2deg); }
.raccourcis-portee { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.matrice select.portee-accordee { border-color: var(--vert); background: var(--vert-c); font-weight: 700; }
.message-recu { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--ligne); transition: background .2s; }
.message-recu:hover { background: var(--fond-2); }
.message-recu.traite { opacity: .7; }
.no-ligne { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bleu-c); color: var(--bleu-f); font-weight: 800; font-size: .82rem; }
.alerte-ok { align-items: center; }
.alerte-ok > span { flex: 1; }
.alerte-action { margin-left: auto; }
.alerte-action .btn { background: #fff; }

/* ---- Colonnes du tableau de bord (jamais de chevauchement) ---- */
.colonne { display: grid; gap: 24px; align-content: start; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.grille-2-1 > [style*="display:grid"] { grid-template-columns: minmax(0, 1fr); }
.graphe-boite { position: relative; width: 100%; min-width: 0; }
.graphe-boite canvas { max-width: 100%; }

/* ---- Espace de travail : couleurs et profondeur ---- */
body.espace { background: radial-gradient(1100px 500px at 100% -10%, rgba(27, 122, 53, .06), transparent 60%), var(--fond); }
.cote { background: linear-gradient(180deg, #0C2015 0%, var(--nuit) 35%, #1B6C33 100%); }
.cote::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(125, 186, 60, .5), rgba(27, 122, 53, .3), transparent); }
.cote-lien { position: relative; transition: background .25s, padding-left .25s var(--ease), color .2s; }
.cote-lien:hover { padding-left: 16px; }
.cote-lien .ico { transition: transform .3s var(--ease); }
.cote-lien:hover .ico { transform: scale(1.12); }
.cote-lien.actif { background: linear-gradient(90deg, rgba(125, 186, 60, .25), rgba(125, 186, 60, .04)); box-shadow: inset 3px 0 0 var(--feuille); }
.cote-marque img { transition: transform .5s var(--ease); }
.cote-marque:hover img { transform: rotate(-6deg) scale(1.05); }
.tete-espace { background: radial-gradient(520px 240px at 100% 0%, rgba(125, 186, 60, .30), transparent 70%), radial-gradient(420px 220px at 0% 120%, rgba(27, 122, 53, .55), transparent 70%), linear-gradient(120deg, var(--nuit), var(--nuit-3)); background-size: 100% 100%, 100% 100%, 200% 200%; animation: fond-mouvant 16s ease-in-out infinite alternate; }
.tete-espace::before { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 30px rgba(255, 255, 255, .03), 0 0 0 60px rgba(255, 255, 255, .02); animation: pulsation 6s ease-in-out infinite; }
.carte, .boite, .kpi { transition: box-shadow .3s var(--ease), border-color .3s, transform .3s var(--ease); }
.carte:hover, .boite:hover { box-shadow: var(--ombre); }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--ombre-l); border-color: transparent; }
.kpi::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c, var(--bleu)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.kpi:hover::after { transform: scaleX(1); }
.onglets a { transition: background .2s, color .2s, transform .2s var(--ease); }
.onglets a:hover { transform: translateY(-1px); }
.onglets a.actif { background: linear-gradient(135deg, var(--nuit), var(--nuit-3)); box-shadow: 0 8px 18px -12px rgba(15, 36, 24, .9); }
.cloche.a-notif .ico { animation: sonnerie 2.8s ease-in-out infinite; transform-origin: 50% 0; }
.menu-util > button { transition: box-shadow .2s, border-color .2s; }
.menu-util > button:hover { border-color: var(--bleu); box-shadow: 0 6px 16px -10px rgba(15, 36, 24, .6); }
.deroulant.ouvert { animation: deroule .22s var(--ease); }

/* ---- Animations ---- */
@keyframes monter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes apparaitre { from { opacity: 0; } to { opacity: 1; } }
@keyframes deroule { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fond-mouvant { from { background-position: 0 0, 0 0, 0% 50%; } to { background-position: 0 0, 0 0, 100% 50%; } }
@keyframes pulsation { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes sonnerie { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 95% { transform: rotate(8deg); } 98% { transform: rotate(-4deg); } }
@keyframes glisser { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes progression { from { transform: scaleX(0); } to { transform: scaleX(.85); } }
.contenu-espace > .tete-espace { animation: monter .55s var(--ease) both, fond-mouvant 16s ease-in-out infinite alternate; }
.contenu-espace > .alerte { animation: glisser .45s var(--ease) both; }
.contenu-espace > .onglets { animation: monter .5s var(--ease) .06s both; }
.tableau tbody tr { animation: apparaitre .45s ease both; }
.tableau tbody tr:nth-child(2) { animation-delay: .03s; } .tableau tbody tr:nth-child(3) { animation-delay: .06s; } .tableau tbody tr:nth-child(4) { animation-delay: .09s; }
.tableau tbody tr:nth-child(5) { animation-delay: .12s; } .tableau tbody tr:nth-child(6) { animation-delay: .15s; } .tableau tbody tr:nth-child(7) { animation-delay: .18s; }
.tableau tbody tr:nth-child(n+8) { animation-delay: .21s; }
.grille-kpi .kpi { animation: monter .6s var(--ease) both; }
.grille-kpi .kpi:nth-child(2) { animation-delay: .07s; } .grille-kpi .kpi:nth-child(3) { animation-delay: .14s; } .grille-kpi .kpi:nth-child(4) { animation-delay: .21s; }
.barre-chargement { position: fixed; left: 0; right: 0; top: 0; z-index: 300; height: 3px; background: var(--bande); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.barre-chargement.active { animation: progression 2.5s cubic-bezier(.1, .8, .2, 1) forwards; }
.heros .carte-sahel { animation: monter 1s var(--ease) .2s both; }
.heros h1, .heros .chapeau, .heros .actions { animation: monter .8s var(--ease) both; }
.heros .chapeau { animation-delay: .12s; } .heros .actions { animation-delay: .24s; }
.carte-fiche, .carte-pays, .carte-bulletin { will-change: transform; }

@media (max-width: 720px) {
    .trace-resume, .identite-logo { grid-template-columns: 1fr; }
    .apercu-logo { width: 140px; height: 140px; }
    .barre-actions { justify-content: stretch; }
    .barre-actions .btn { flex: 1; }
    .barre-gauche { width: 100%; }
    .trace-ligne time { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .tete-espace, .tete-espace::before, .cloche.a-notif .ico { animation: none !important; }
}
@media print { .barre-chargement, .btn-corbeille, .col-actions { display: none !important; } }
.grille-form-page { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }

/* =====================================================================
   MODÈLE DE TABLEAU, DRAPEAUX, BOUTONS D'ACTION, CHIFFRES CLÉS
   ===================================================================== */

/* ---- Drapeaux ---- */
.drapeau-img { display: inline-block; width: 22px; height: 16px; border-radius: 3px; object-fit: cover; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(15, 36, 24, .12), 0 1px 2px rgba(15, 36, 24, .15); flex: none; }
.drapeau-img.moyen { width: 34px; height: 25px; border-radius: 5px; }
.drapeau-img.grand { width: 64px; height: 48px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(15, 36, 24, .1), 0 8px 18px -10px rgba(15, 36, 24, .5); }
.drapeau-img.titre { width: 48px; height: 36px; border-radius: 6px; vertical-align: -2px; margin-right: 6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.drapeau-regional { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--bleu), var(--vert)); color: #fff; }
.drapeau-regional .ico { width: 70%; height: 70%; }
.puce-pays .drapeau, .carte-pays .drapeau { font-size: inherit; display: inline-flex; }
.carte-pays .drapeau { margin-bottom: 4px; }
.pays-tag .drapeau-img { width: 18px; height: 13px; }

/* ---- Pastilles (modèle) ---- */
.pill-pays { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--bleu-cc); border: 1px solid #D2E9D7; color: var(--bleu-f); font-weight: 700; font-size: .82rem; white-space: nowrap; line-height: 1.4; }
.pill-pays .drapeau-img { width: 20px; height: 15px; border-radius: 3px; }
.pill-pays.pill-regional { background: linear-gradient(90deg, var(--bleu-cc), var(--feuille-c)); border-color: #D3E6C7; color: var(--vert-f); }
.pill-pays .drapeau-regional { width: 18px; height: 18px; border-radius: 50%; }
a.pill-pays:hover { border-color: var(--bleu); color: var(--bleu); }
.tableau .badge, .matrice .badge { padding: 5px 13px; font-size: .78rem; border: 1px solid transparent; }
.tableau .badge.vert { background: #EAF7EC; border-color: #BFE3C6; color: #2D7D31; }
.tableau .badge.bleu { background: var(--bleu-cc); border-color: #D2E9D7; color: var(--bleu-f); }
.tableau .badge.or { background: #FFF6E5; border-color: #F1D7A4; color: #8A5B0F; }
.tableau .badge.rouge { background: #FDEEEC; border-color: #F3C6C0; color: #A33024; }
.tableau .badge.gris { background: #F3F8F4; border-color: #DFECE3; color: var(--doux); }
.tableau .badge.violet { background: var(--violet-c); border-color: #DCD0F3; color: var(--violet); }
.tableau .badge:not(.vert):not(.bleu):not(.or):not(.rouge):not(.gris):not(.violet):not(.vert-f):not(.nuit):not(.terre) { background: #F6FBF8; border-color: #DFECE3; }
.badge-ok::before { content: ''; width: 12px; height: 12px; margin-right: 1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- Tableau (modèle) ---- */
.tableau { font-size: .9rem; border-collapse: separate; border-spacing: 0; }
.tableau thead th { padding: 14px 18px; background: linear-gradient(180deg, #F7FCF9, #EFF8F2); color: var(--nuit); font-size: .72rem; letter-spacing: .08em; border-bottom: 1px solid var(--ligne); }
.tableau td { padding: 16px 18px; border-bottom: 1px solid #ECF4EE; }
.tableau tbody tr:hover { background: #EEF8F0; }
.tableau tbody tr:hover td.col-no { color: var(--vert-f); }
.tableau td.col-no { color: #8592A3; font-weight: 700; font-size: .88rem; }
.tableau code, .matrice code, code.code-chip { display: inline-block; padding: 3px 10px; border-radius: 7px; background: #EEF8F0; border: 1px solid #C9E7CF; color: #2D7D31; font: 600 .8rem/1.5 ui-monospace, 'SFMono-Regular', Consolas, monospace; white-space: nowrap; }
.tableau b, .tableau .lien-ligne { color: var(--nuit); }
.tableau small { margin-top: 2px; }
.carte > .defile-x:last-child .tableau tbody tr:last-child td, .carte > div:last-child > .tableau tbody tr:last-child td { border-bottom: 0; }

/* ---- Boutons d'action (modèle) ---- */
.action { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid #E1EDE5; border-radius: 11px; background: #fff; color: var(--doux); cursor: pointer; vertical-align: middle; transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s, box-shadow .2s; }
.action .ico { width: 19px; height: 19px; }
.action:hover { transform: translateY(-2px); }
.action:active { transform: translateY(0) scale(.95); }
.action.voir { color: #1B7A35; }
.action.voir:hover { background: #ECFAF0; border-color: #BBEECA; box-shadow: 0 8px 16px -10px rgba(27, 122, 53, .7); color: #14622A; }
.action.modifier { color: #3A9A3E; }
.action.modifier:hover { background: #EAF7EC; border-color: #B8DFC0; box-shadow: 0 8px 16px -10px rgba(58, 154, 62, .7); }
.action.supprimer { color: #D93A2B; }
.action.supprimer:hover { background: #FDEDEB; border-color: #F2BDB6; box-shadow: 0 8px 16px -10px rgba(217, 58, 43, .7); }
.action.telecharger { color: #6C4AB6; }
.action.telecharger:hover { background: #F2EDFB; border-color: #D6C8F1; box-shadow: 0 8px 16px -10px rgba(108, 74, 182, .7); }
.action.restaurer, .action.valider { color: #3A9A3E; }
.action.restaurer:hover, .action.valider:hover { background: #EAF7EC; border-color: #B8DFC0; box-shadow: 0 8px 16px -10px rgba(58, 154, 62, .7); }
.action.suspendre { color: #C27A0E; }
.action.suspendre:hover { background: #FFF5E3; border-color: #F0D29B; box-shadow: 0 8px 16px -10px rgba(194, 122, 14, .7); }
.tableau .col-actions { display: table-cell; }
.tableau .col-actions .form-inline, .tableau .col-actions > a, .tableau .col-actions > form { margin-left: 6px; }
.tableau .col-actions > :first-child { margin-left: 0; }
.action-groupe { display: inline-flex; gap: 6px; align-items: center; }

/* ---- Chiffres clés de l'accueil (4 cadres) ---- */
.chiffres { margin-top: -84px; }
.chiffres .grille-chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.chiffre { --c: var(--bleu); --c2: #51D378; display: flex; flex-direction: column; padding: 24px 24px 22px; border: 1px solid rgba(255, 255, 255, .7); border-right: 1px solid rgba(255, 255, 255, .7); border-radius: 22px; background: linear-gradient(160deg, #fff 55%, color-mix(in srgb, var(--c) 6%, #fff)); box-shadow: 0 24px 50px -28px rgba(15, 36, 24, .55), 0 2px 6px rgba(15, 36, 24, .06); color: inherit; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s; }
.chiffre:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(15, 36, 24, .6); color: inherit; }
.chiffre::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, var(--c), var(--c2)); transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.chiffre:hover::after { transform: scaleX(1); }
.chiffre-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chiffre .ico-rond { width: 52px; height: 52px; margin: 0; border-radius: 16px; background: linear-gradient(135deg, var(--c), var(--c2)); color: #fff; box-shadow: 0 12px 22px -12px var(--c); }
.chiffre .ico-rond .ico { width: 24px; height: 24px; }
.chiffre-lien { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); transition: transform .3s var(--ease), background .3s, color .3s; }
.chiffre-lien .ico { width: 16px; height: 16px; }
.chiffre:hover .chiffre-lien { background: var(--c); color: #fff; transform: rotate(-45deg); }
.chiffre b { font-size: 2.7rem; color: var(--nuit); }
.chiffre .chiffre-libelle { display: block; margin-top: 8px; font-weight: 800; color: var(--encre); font-size: .95rem; }
.chiffre small { margin-top: 2px; }
.chiffre-fond { position: absolute; right: -18px; bottom: -22px; z-index: -1; color: var(--c); opacity: .07; transition: transform .6s var(--ease), opacity .4s; }
.chiffre-fond .ico { width: 130px; height: 130px; stroke-width: 1.4; }
.chiffre:hover .chiffre-fond { transform: rotate(-8deg) scale(1.08); opacity: .11; }
.chiffre.c-vert { --c: #3A9A3E; --c2: #8CC63F; }
.chiffre.c-bleu { --c: #1B7A35; --c2: #51D378; }
.chiffre.c-terre { --c: #7A4A2A; --c2: #B5784A; }
.chiffre.c-ambre { --c: #C9861A; --c2: #E8B24F; }
@media (max-width: 1100px) { .chiffres .grille-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .chiffres .grille-chiffres { grid-template-columns: 1fr 1fr; gap: 12px; } .chiffre { padding: 18px; border-bottom: 1px solid rgba(255, 255, 255, .7); } .chiffre b { font-size: 2rem; } .chiffre .ico-rond { width: 42px; height: 42px; } .chiffre-lien { display: none; } }
.chiffre .chiffre-tete { display: flex; margin-top: 0; }
.chiffre .ico-rond, .chiffre .chiffre-lien { display: grid; margin-top: 0; }
.chiffre .chiffre-fond { display: block; margin: 0; }

/* ---- Partenaires ---- */
.partenaires { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.partenaire { --c: var(--bleu); position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--ligne); border-radius: 18px; color: var(--nuit); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.partenaire::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); transform: scaleY(.3); transition: transform .4s var(--ease); }
a.partenaire:hover, .partenaire:hover { transform: translateY(-4px); box-shadow: var(--ombre-l); border-color: transparent; color: var(--nuit); }
.partenaire:hover::before { transform: scaleY(1); }
.partenaire img { width: 64px; height: 56px; object-fit: contain; flex: none; transition: transform .4s var(--ease); }
.partenaire:hover img { transform: scale(1.06); }
.partenaire-texte b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--nuit); line-height: 1.15; }
.partenaire-texte span { display: block; font-size: .78rem; color: var(--doux); line-height: 1.35; margin-top: 2px; text-align: left; }
.monogramme { --c: var(--bleu); display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--c); color: #fff; font: 800 1.08rem/1 var(--sans); letter-spacing: .04em; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22), 0 10px 20px -12px var(--c); text-transform: uppercase; -webkit-font-smoothing: antialiased; text-shadow: none; filter: none; }
.partenaire .monogramme { transition: transform .4s var(--ease); }
.partenaire:hover .monogramme { transform: rotate(-6deg) scale(1.05); }
.monogramme.grand { width: 120px; height: 120px; border-radius: 28px; font-size: 2.6rem; }
.logo-cellule { display: grid; place-items: center; width: 64px; height: 46px; border-radius: 10px; background: #fff; border: 1px solid var(--ligne); }
.logo-cellule img { max-width: 56px; max-height: 38px; object-fit: contain; }
.logo-cellule .monogramme { width: 38px; height: 38px; border-radius: 10px; font-size: .9rem; }

/* ---- Tableau de bord de l'espace ---- */
.grille-chiffres-espace { gap: 18px; }
.grille-chiffres-espace .chiffre { position: relative; border: 1px solid var(--ligne); box-shadow: 0 14px 34px -26px rgba(15, 36, 24, .5); }
.grille-chiffres-espace .chiffre b { font-size: 2.3rem; }
.a-faire .tache { position: relative; padding-left: 18px; overflow: hidden; transition: border-color .2s, background .2s, transform .25s var(--ease); }
.a-faire .tache::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--or); }
.a-faire .tache .ico-rond { background: var(--or-c); color: var(--or-f); }
.a-faire .tache.retard::before { background: var(--rouge); }
.a-faire .tache.retard .ico-rond { background: var(--rouge-c); color: var(--rouge); }
.a-faire .tache.publier::before { background: var(--vert); }
.a-faire .tache.publier .ico-rond { background: var(--vert-c); color: var(--vert); }
.a-faire .tache:hover { transform: translateX(4px); }
.tache-fleche { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fond); color: var(--doux); flex: none; transition: background .25s, color .25s, transform .25s var(--ease); }
.tache-fleche .ico { width: 16px; height: 16px; }
.a-faire .tache:hover .tache-fleche { background: var(--bleu); color: #fff; transform: translateX(2px); }
.donut-boite { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; }
.donut { position: relative; width: 170px; height: 170px; }
.donut canvas { width: 170px !important; height: 170px !important; }
.donut-centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-centre b { font: 600 2.1rem/1 var(--serif); color: var(--nuit); }
.donut-centre small { font-size: .74rem; font-weight: 700; color: var(--doux); text-transform: uppercase; letter-spacing: .1em; }
.legende-donut { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .84rem; }
.legende-donut li { display: flex; align-items: center; gap: 9px; padding: 4px 8px; border-radius: 8px; transition: background .2s; }
.legende-donut li:hover { background: var(--fond); }
.legende-donut i { width: 11px; height: 11px; border-radius: 4px; flex: none; }
.legende-donut b { margin-left: auto; color: var(--nuit); font-variant-numeric: tabular-nums; }
.anneaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; padding-bottom: 12px; }
.anneau { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.anneau-cercle { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 8px; }
.anneau-cercle svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.anneau .piste { stroke: #EDF6F0; }
.anneau .valeur { stroke: var(--c); stroke-dasharray: 0 100; animation: anneau-remplir 1.4s var(--ease) .3s forwards; }
@keyframes anneau-remplir { to { stroke-dasharray: var(--p) 100; } }
.anneau-cercle b { position: relative; font: 600 1.25rem var(--serif); color: var(--nuit); }
.anneau small { font-size: .76rem; font-weight: 700; color: var(--texte); line-height: 1.3; text-align: center; }
.anneau em { font-style: normal; font-size: .74rem; color: var(--doux); }
.carte-pied-badges { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px 20px; }
.tableau.compact thead th { padding: 11px 12px; }
.tableau.compact td { padding: 11px 12px; }
.tableau.compact .pill-pays { font-size: .78rem; padding: 3px 10px 3px 5px; }
.barre-valeur { display: inline-flex; align-items: center; gap: 8px; }
.barre-valeur .jauge-mini { width: 70px; margin: 0; }
.barre-valeur b { min-width: 16px; font-variant-numeric: tabular-nums; }
.panneau .carte-tete { padding: 16px 20px; }
.liste-riche { list-style: none; margin: 0; padding: 6px 0; }
.liste-riche li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 20px; transition: background .2s; }
.liste-riche li:hover { background: var(--fond-2); }
.liste-riche li + li { border-top: 1px solid #EFF6F1; }
.liste-riche a { display: block; min-width: 0; flex: 1; color: inherit; }
.liste-riche a b { display: block; font-size: .88rem; color: var(--nuit); line-height: 1.35; transition: color .2s; }
.liste-riche a:hover b { color: var(--bleu); }
.liste-riche small { display: block; color: var(--doux); font-size: .78rem; margin-top: 2px; text-align: left; }
.liste-riche small .drapeau-img { width: 16px; height: 12px; vertical-align: -2px; }
.liste-riche em { display: block; font-style: normal; font-size: .72rem; color: #94A0B1; margin-top: 3px; }
.liste-riche li.non-lue a b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--rouge); vertical-align: 2px; }
.liste-riche .vide-liste { color: var(--doux); font-size: .88rem; align-items: center; }
.liste-riche .vide-liste .ico { width: 18px; height: 18px; color: var(--vert); }
.puce-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; font-size: .62rem; font-weight: 800; letter-spacing: .02em; }
.puce-ico .ico { width: 17px; height: 17px; }
.puce-ico.bleu { background: var(--bleu-c); color: var(--bleu); }
.puce-ico.violet { background: var(--violet-c); color: var(--violet); }
@media (max-width: 1400px) { .anneau-cercle { width: 82px; height: 82px; } .donut-boite { grid-template-columns: 1fr; justify-items: center; } .legende-donut { width: 100%; } }
@media (max-width: 720px) { .anneaux { grid-template-columns: repeat(3, minmax(0, 1fr)); } .anneau-cercle { width: 72px; height: 72px; } .grille-chiffres-espace .chiffre b { font-size: 1.8rem; } }
.tableau .badge.vert-f { background: var(--vert); border-color: var(--vert); color: #fff; }
.tableau .badge.nuit { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.tableau .badge.terre { background: var(--terre-c); border-color: #E4D2C2; color: var(--terre); }
.point-etat { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #C7D5CA; box-shadow: 0 0 0 4px #EEF5F0; }
.point-etat.actif { background: var(--vert); box-shadow: 0 0 0 4px var(--vert-c); animation: pulsation 2.4s ease-in-out infinite; }
.barre-valeur .jauge-mini { width: 48px; }
@media (max-width: 1600px) { .donut-boite { grid-template-columns: 1fr; justify-items: center; } .legende-donut { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cellule-personne b, .cellule-personne small { white-space: nowrap; } .cellule-personne small { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.carte-fiche .visuel .pays-tag .drapeau-img { width: 18px; height: 13px; }
/* Colonne Actions toujours visible, même quand le tableau défile horizontalement */
.tableau th.col-actions, .tableau td.col-actions { position: sticky; right: 0; z-index: 1; background: #fff; }
.tableau thead th.col-actions { background: #F1F8F3; z-index: 2; }
.tableau tbody tr:hover td.col-actions { background: #EEF8F0; }
.defile-x .tableau td.col-actions { box-shadow: -14px 0 16px -16px rgba(15, 36, 24, .45); }

/* =====================================================================
   AJUSTEMENTS : boutons d'action moyens, lignes de tableau resserrées, Select2
   ===================================================================== */
/* ---- Boutons d'action : taille moyenne, fond teinté, icône colorée ---- */
.action { width: 34px; height: 34px; border: 0; border-radius: 10px; box-shadow: none; }
.action .ico { width: 17px; height: 17px; }
.action:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px var(--ac, rgba(15, 36, 24, .5)); }
.action.voir { --ac: #1B7A35; background: #EBFAF0; color: #1B7A35; }
.action.modifier { --ac: #3A9A3E; background: #E5F4E8; color: #3A9A3E; }
.action.supprimer { --ac: #D93A2B; background: #FDECEA; color: #D93A2B; }
.action.telecharger { --ac: #6C4AB6; background: #F0EAFB; color: #6C4AB6; }
.action.restaurer, .action.valider { --ac: #0E7C86; background: #E2F4F5; color: #0E7C86; }
.action.suspendre { --ac: #C27A0E; background: #FFF3DD; color: #C27A0E; }
.action.voir:hover, .action.modifier:hover, .action.supprimer:hover, .action.telecharger:hover, .action.restaurer:hover, .action.valider:hover, .action.suspendre:hover { background: var(--ac); color: #fff; border-color: transparent; }
.tableau .col-actions > a, .tableau .col-actions > form, .tableau .col-actions .form-inline { margin-left: 5px; }
.tableau .col-actions > :first-child { margin-left: 0; }

/* ---- Lignes de tableau : plus serrées, une seule ligne de texte par cellule ---- */
.tableau thead th { padding: 11px 14px; }
.tableau td { padding: 10px 14px; border-bottom-color: #F0F7F2; line-height: 1.45; }
.tableau td small:not(.garder) { display: none; }
.tableau td .pastille-them { display: none; }
.tableau td b { white-space: nowrap; }
.tableau td .lien-ligne { white-space: normal; }
.tableau .trace-cel { min-width: 0; gap: 7px; }
.tableau .trace-cel b { font-weight: 700; font-size: .84rem; }
.tableau .avatar.petit { width: 28px; height: 28px; }
.tableau .pill-pays { padding: 3px 11px 3px 5px; }
.tableau code { padding: 2px 8px; }
.tableau .badge { padding: 3px 11px; }

/* ---- Select2 aux couleurs de la plateforme ---- */
.select2-container { font-size: .95rem; }
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple { min-height: 46px; border: 1.5px solid var(--ligne-f); border-radius: var(--r-s); background: #fff; transition: border-color .2s, box-shadow .2s; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 43px; padding-left: 14px; padding-right: 36px; color: var(--encre); }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #94A0B1; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 43px; width: 34px; right: 4px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border: 0; width: 10px; height: 10px; margin: -6px 0 0 -5px; border-right: 2px solid var(--doux); border-bottom: 2px solid var(--doux); transform: rotate(45deg); transition: transform .25s var(--ease); }
.select2-container--open .select2-selection--single .select2-selection__arrow b { transform: rotate(-135deg); margin-top: -1px; }
.select2-container--focus .select2-selection, .select2-container--open .select2-selection { border-color: var(--bleu) !important; box-shadow: 0 0 0 4px rgba(27, 122, 53, .12); }
.select2-container--default .select2-selection--multiple { padding: 4px 8px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { margin: 4px 6px 0 0; padding: 3px 10px 3px 26px; border: 1px solid #C9E7CF; border-radius: 999px; background: #EEF8F0; color: #2D7D31; font-weight: 700; font-size: .82rem; position: relative; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); border: 0; color: #2D7D31; background: none; font-size: 1rem; padding: 0 4px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { background: none; color: var(--rouge); }
.select2-container .select2-search--inline .select2-search__field { margin-top: 8px; height: 26px; font-family: inherit; }
.select2-dropdown { border: 1px solid var(--ligne); border-radius: 12px; box-shadow: var(--ombre-l); overflow: hidden; z-index: 1100; animation: deroule .18s var(--ease); }
.select2-container--open .select2-dropdown--below { margin-top: 6px; border-top: 1px solid var(--ligne); }
.select2-container--open .select2-dropdown--above { margin-top: -6px; }
.select2-search--dropdown { padding: 10px; }
.select2-search--dropdown .select2-search__field { min-height: 38px; padding: 6px 12px; border: 1.5px solid var(--ligne-f) !important; border-radius: 9px; outline: none; }
.select2-search--dropdown .select2-search__field:focus { border-color: var(--bleu) !important; }
.select2-results__options { padding: 6px; }
.select2-container--default .select2-results > .select2-results__options { max-height: 280px; }
.select2-results__option { padding: 9px 12px; border-radius: 8px; font-size: .9rem; color: var(--encre); }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--bleu-cc); color: var(--bleu-f); }
.select2-container--default .select2-results__option--selected { background: #EEF8F0; color: #2D7D31; font-weight: 700; }
.select2-desactive .select2-selection { background: #F4F9F6 !important; opacity: .8; }
.matrice .select2-container .select2-selection--single { min-height: 38px; }
.matrice .select2-container .select2-selection__rendered { line-height: 35px !important; font-size: .84rem; }
.matrice .select2-container .select2-selection__arrow { height: 35px !important; }
.matrice .select2-container.portee-accordee .select2-selection { border-color: var(--vert); background: var(--vert-c); }
.matrice .select2-container.portee-accordee .select2-selection__rendered { color: #2D7D31; font-weight: 700; }
.filtres-espace .select2-container, .filtres .select2-container { min-width: 160px; }
.apercu-drapeau { display: grid; place-items: center; width: 96px; height: 72px; border-radius: 12px; background: repeating-conic-gradient(#F1F8F3 0 25%, #fff 0 50%) 0 0 / 14px 14px; border: 1px solid var(--ligne); overflow: hidden; color: var(--doux); }
.apercu-drapeau img { width: 100%; height: 100%; object-fit: cover; }
.apercu-drapeau .ico { width: 30px; height: 30px; }

/* ---- Pages « détails » ---- */
.grille-details { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.liste-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.liste-details > div { padding: 14px 24px; border-bottom: 1px solid #F0F7F2; min-width: 0; }
.liste-details > div:nth-child(odd) { border-right: 1px solid #F0F7F2; }
.liste-details > div.plein { grid-column: 1 / -1; border-right: 0; }
.liste-details dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); margin-bottom: 4px; }
.liste-details dd { margin: 0; font-weight: 600; color: var(--nuit); word-break: break-word; }
.texte-long { font-weight: 500; color: var(--texte); line-height: 1.65; text-align: justify; }
.pastille-couleur { display: inline-block; width: 16px; height: 16px; border-radius: 5px; background: var(--c); vertical-align: -3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.apercu-detail { display: inline-grid; place-items: center; width: 120px; height: 90px; border-radius: 12px; border: 1px solid var(--ligne); background: repeating-conic-gradient(#F1F8F3 0 25%, #fff 0 50%) 0 0 / 14px 14px; overflow: hidden; padding: 6px; }
.apercu-detail img { max-width: 100%; max-height: 100%; object-fit: contain; }
.carte-entete-detail { display: flex; align-items: center; gap: 20px; padding: 22px 24px; }
.carte-entete-detail h2 { margin: 0; font-size: 1.35rem; }
.carte-entete-detail p { margin: 4px 0 0; }
@media (max-width: 1100px) { .grille-details { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .liste-details { grid-template-columns: 1fr; } .liste-details > div:nth-child(odd) { border-right: 0; } }
.carte-osm { display: block; width: 100%; height: 320px; border: 0; border-radius: 0 0 var(--r) var(--r); } .liste-fiches-bulletin { margin: 0; padding: 14px 24px 18px 44px; display: grid; gap: 10px; } .liste-fiches-bulletin a { font-weight: 700; color: var(--nuit); margin-right: 8px; }
.completude .jauge { min-width: 60px; } .completude-val { font-size: .82rem; min-width: 42px; color: var(--nuit); }
.liste-details dd, .boite dd { text-align: left; } .liste-details dd .texte-long { text-align: justify; }

/* =====================================================================
   RÉUNIONS EN LIGNE
   ===================================================================== */
.agenda { display: grid; gap: 12px; }
.agenda-jour { margin: 14px 0 2px; font: 800 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.agenda-jour:first-child { margin-top: 0; }
.reunion-carte { --pf: var(--bleu); position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--ligne); border-radius: 16px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.reunion-carte::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pf); }
.reunion-carte:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.reunion-carte.ouverte { border-color: #BFE3C6; box-shadow: 0 0 0 3px rgba(58, 154, 62, .12); }
.reunion-carte.annulee { opacity: .62; }
.reunion-carte.annulee h3 { text-decoration: line-through; }
.reunion-date { display: grid; place-items: center; align-content: center; height: 74px; border-radius: 14px; background: linear-gradient(160deg, var(--nuit), var(--nuit-3)); color: #fff; line-height: 1.05; }
.reunion-date b { font: 600 1.7rem var(--serif); }
.reunion-date span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--feuille); }
.reunion-date small { font-size: .66rem; opacity: .75; text-transform: capitalize; }
.reunion-corps { min-width: 0; }
.reunion-corps h3 { margin: 6px 0 4px; font-size: 1.02rem; }
.reunion-corps h3 a { color: var(--nuit); }
.reunion-corps h3 a:hover { color: var(--bleu); }
.reunion-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-pf { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--pf); background: color-mix(in srgb, var(--pf) 10%, #fff); border: 1px solid color-mix(in srgb, var(--pf) 28%, #fff); }
.badge-pf .ico, .reunion-badges .badge .ico { width: 13px; height: 13px; }
.reunion-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: .84rem; color: var(--doux); text-align: left; }
.reunion-meta .ico { width: 14px; height: 14px; }
.reunion-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.reunion-compte { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--fond); color: var(--doux); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.reunion-compte .ico { width: 14px; height: 14px; }
.point-direct { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: direct 1.4s ease-in-out infinite; }
@keyframes direct { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(58, 154, 62, .5); } 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(58, 154, 62, 0); } }
.texte-direct { color: var(--vert) !important; font-weight: 800; }
.carte-pied-lien { padding: 10px 20px 14px; border-top: 1px solid #EFF6F1; }
.choix-plateformes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choix-plateformes label { --pf: var(--bleu); position: relative; cursor: pointer; }
.choix-plateformes input { position: absolute; opacity: 0; pointer-events: none; }
.choix-plateformes span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px; border: 1.5px solid var(--ligne-f); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.choix-plateformes span .ico { width: 22px; height: 22px; color: var(--pf); margin-bottom: 4px; }
.choix-plateformes b { color: var(--nuit); font-size: .9rem; }
.choix-plateformes small { color: var(--doux); font-size: .76rem; line-height: 1.35; }
.choix-plateformes input:checked + span { border-color: var(--pf); background: color-mix(in srgb, var(--pf) 7%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf) 18%, transparent); }
.choix-plateformes input:focus-visible + span { outline: 3px solid rgba(27, 122, 53, .4); }
.salle-acces { --pf: var(--bleu); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 18px; padding: 22px 24px; border-top: 4px solid var(--pf); }
.salle-acces.ouverte { background: linear-gradient(135deg, #fff 60%, var(--vert-c)); }
.salle-acces-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: color-mix(in srgb, var(--pf) 12%, #fff); color: var(--pf); }
.salle-acces-ico .ico { width: 30px; height: 30px; }
.salle-acces-texte h2 { margin: 8px 0 4px; font-size: 1.2rem; }
.salle-acces-texte p { margin: 0 0 4px; text-align: left; }
.salle-acces-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.salle-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--ligne); border-radius: 16px; }
.salle-barre h1 { margin: 4px 0 0; font-size: 1.25rem; }
.salle-barre p { margin: 0; color: var(--doux); font-size: .86rem; text-align: left; }
.salle-boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.salle-note { font-weight: 500; font-size: .86rem; }
.salle-video { position: relative; height: calc(100vh - 290px); min-height: 460px; border-radius: 18px; overflow: hidden; background: radial-gradient(600px 300px at 50% 0%, rgba(27, 122, 53, .4), transparent 70%), #0D3419; }
.salle-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.salle-chargement, .salle-erreur { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #fff; text-align: center; padding: 20px; }
.salle-erreur[hidden], .salle-chargement[hidden] { display: none; }
.salle-erreur .ico { width: 40px; height: 40px; color: var(--or); }
.salle-erreur p { max-width: 420px; text-align: center; color: #D3ECDA; }
.roue { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--feuille); animation: tourner 1s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
    .reunion-carte { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: start; }
    .reunion-date { height: 62px; }
    .reunion-date b { font-size: 1.35rem; }
    .reunion-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .salle-acces { grid-template-columns: 1fr; }
    .salle-acces-actions { grid-column: 1; }
    .salle-video { height: 70vh; min-height: 360px; }
}
.barre-actions.statique { position: static; background: transparent; }
@media (max-width: 640px) { .form-reunion .barre-actions .btn { min-width: 0; white-space: normal; padding-left: 12px; padding-right: 12px; } }

/* ── Double authentification par courriel ── */
.ico-auth { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--vert-c); color: var(--vert); margin-bottom: 18px; }
.form-code .code-otp { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 1.9rem; font-weight: 800; letter-spacing: .55em; text-align: center; padding: 14px 10px 14px calc(10px + .55em); height: auto; color: var(--nuit); }
.form-code .code-otp::placeholder { color: var(--ligne-f); letter-spacing: .55em; }
.aide-code { font-size: .84rem; margin: -6px 0 14px; line-height: 1.5; }
.renvoi-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; font-size: .9rem; }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--bleu); font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.lien-bouton:hover { text-decoration: underline; }
.lien-bouton:disabled { color: var(--doux); cursor: default; text-decoration: none; }

/* ── Application installable : page hors connexion et bouton d'installation ── */
.page-hors-ligne { min-height: 100vh; display: grid; place-items: center; background: var(--fond); padding: 24px; }
.hors-ligne { max-width: 520px; text-align: center; background: #fff; border-radius: var(--r-l); padding: 40px 32px; box-shadow: var(--ombre); border-top: 6px solid var(--vert); }
.hors-ligne img { border-radius: 18px; margin-bottom: 14px; }
.hors-ligne h1 { font-size: 1.6rem; color: var(--nuit); margin: 0 0 10px; }
.hors-ligne p { color: var(--texte); line-height: 1.6; text-align: center; hyphens: none; }
.hors-ligne-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-installer[hidden] { display: none !important; }
.bandeau-hors-ligne { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 200; background: var(--nuit); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem; box-shadow: var(--ombre-l); display: flex; gap: 8px; align-items: center; }
.bandeau-hors-ligne[hidden] { display: none; }
.lien-installer { background: var(--feuille); color: var(--nuit); border: 0; border-radius: 999px; padding: 3px 12px; font: inherit; font-weight: 800; font-size: .8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lien-installer .ico { width: 14px; height: 14px; }
.deroulant .btn-installer { display: flex; width: 100%; }
/* Tableaux compacts des tableaux de bord : tiennent dans une demi-colonne sans masquer la colonne d'actions */
.tableau.compact thead th { padding: 10px 8px; letter-spacing: .03em; }
.tableau.compact td { padding: 9px 8px; }
.tableau.compact .barre-valeur .jauge-mini { width: 40px; }
.tableau.compact .col-actions { width: 1%; }

/* ── Grilles de carreaux et motifs décoratifs (v3) ── */
.fond-carreaux, .fond-losanges { position: relative; isolation: isolate; }
.fond-carreaux::after, .fond-losanges::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Carreaux clairs : quadrillage fin + carreau majeur tous les 4 */
.fond-carreaux::after {
    background-image:
        linear-gradient(rgba(15, 36, 24, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 36, 24, .07) 1px, transparent 1px),
        linear-gradient(rgba(15, 36, 24, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 36, 24, .035) 1px, transparent 1px);
    background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
    background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
}
/* Carreaux sur fond sombre */
.section-nuit.fond-carreaux::after, .tete-page.fond-carreaux::after, .heros.fond-carreaux::after, .auth-visuel.fond-carreaux::after, .fond-carreaux.sombre::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, .085) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .085) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
}
.tete-page.fond-carreaux::after { -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 45%, #000 100%); mask-image: linear-gradient(100deg, transparent 0%, #000 45%, #000 100%); }
/* Losanges tissés (chaîne de losanges + points or/vert), inspirés des pagnes du Sahel */
.fond-losanges::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23B8A27A' stroke-opacity='.45' stroke-width='1.2'%3E%3Cpath d='M0 18 18 6 36 18 54 6 72 18M0 18 18 30 36 18 54 30 72 18'/%3E%3C/g%3E%3Ccircle cx='18' cy='54' r='2.6' fill='%23E8A33D' fill-opacity='.55'/%3E%3Ccircle cx='54' cy='54' r='2.6' fill='%237DBA3C' fill-opacity='.55'/%3E%3C/svg%3E");
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.35) 120px, transparent 260px, transparent calc(100% - 200px), rgba(0,0,0,.6) 100%);
    mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.35) 120px, transparent 260px, transparent calc(100% - 200px), rgba(0,0,0,.6) 100%);
    opacity: .75;
}
.section-nuit.fond-losanges::after { filter: brightness(1.6); opacity: .55; }
/* Bande décorative courte (séparateur tissé) */
.bande-tissee { height: 46px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='46' viewBox='0 0 48 46'%3E%3Cpath d='M0 23 12 11 24 23 36 11 48 23M0 23 12 35 24 23 36 35 48 23' fill='none' stroke='%23C9B48A' stroke-width='1.3'/%3E%3Ccircle cx='12' cy='23' r='2.4' fill='%23E8A33D'/%3E%3Ccircle cx='36' cy='23' r='2.4' fill='%237DBA3C'/%3E%3C/svg%3E") center/48px 46px repeat-x; opacity: .7; }

/* Vision : 4 piliers équilibrés */
.vision { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.vision .grille-piliers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vision .grille-piliers .pilier { padding: 26px 22px 24px; }
.vision-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.vision-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--texte, #335C3F); }
.vision-points .ico { flex: none; width: 22px; height: 22px; color: var(--vert); margin-top: 2px; }
.vision-chiffres { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ligne); }
.vision-chiffres b { display: block; font: 700 2rem/1 var(--serif); color: var(--nuit); }
.vision-chiffres span { font-size: .82rem; color: var(--doux); }
@media (max-width: 980px) { .vision { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .vision .grille-piliers { grid-template-columns: 1fr; } }

/* ── Authentification (v3) ── */
.page-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #F4FAF6; }
.auth-visuel { padding: 44px clamp(32px, 4vw, 60px); }
.auth-visuel .auth-milieu { display: grid; gap: 22px; }
.auth-visuel h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.2; margin: 0; }
.auth-visuel .carte-sahel { margin: 0; max-height: 38vh; }
.auth-atouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.auth-atouts li { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(4px); }
.auth-atouts .ico { width: 22px; height: 22px; color: var(--feuille); margin-bottom: 8px; display: block; }
.auth-atouts b { display: block; color: #fff; font-size: .9rem; }
.auth-atouts span { display: block; color: #9EBFA6; font-size: .76rem; line-height: 1.35; margin-top: 2px; }
.auth-pied { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #9EBFA6; font-size: .8rem; }
.auth-form { position: relative; padding: 40px clamp(20px, 5vw, 72px); }
.auth-form .boite-auth { max-width: 470px; background: #fff; border: 1px solid var(--ligne); border-radius: 24px; padding: clamp(26px, 3.4vw, 40px); box-shadow: 0 30px 60px -40px rgba(15, 36, 24, .45); position: relative; }
.auth-form .boite-auth::before { content: ''; position: absolute; left: 28px; right: 28px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--bleu), var(--vert) 60%, var(--or)); }
.auth-barre { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-barre .auth-retour { margin: 0; }
.auth-marque-mobile { display: none; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--nuit); }
.auth-marque-mobile img { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--ligne); padding: 3px; }
.auth-marque-mobile b { font-family: var(--serif); font-size: 1.05rem; line-height: 1.1; display: block; }
.auth-marque-mobile small { color: var(--doux); font-size: .75rem; }
.auth-form h1 { font-size: 1.85rem; }
.auth-form .champ input { min-height: 50px; }
.auth-form .champ .avec-ico { position: relative; display: block; }
.auth-form .champ .avec-ico > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--doux); pointer-events: none; }
.auth-form .champ .avec-ico input { padding-left: 42px; }
.auth-securite { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: var(--vert-c, #E4F3E6); color: #2b5b30; font-size: .82rem; line-height: 1.45; }
.auth-securite .ico { flex: none; width: 18px; height: 18px; color: var(--vert); margin-top: 1px; }
.auth-mentions { text-align: center; color: var(--doux); font-size: .78rem; margin: 18px auto 0; max-width: 470px; }
@media (max-width: 980px) {
    .page-auth { grid-template-columns: 1fr; }
    .auth-visuel { display: none; }
    .auth-form { min-height: 100vh; padding: 22px 16px 30px; justify-content: flex-start; }
    .auth-form .boite-auth { margin-top: 8px; }
    .auth-marque-mobile { display: flex; }
}
@media (max-width: 1200px) { .auth-atouts { grid-template-columns: 1fr; } .auth-atouts li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; } .auth-atouts .ico { margin: 0; } }
.auth-form .boite-auth.boite-large { max-width: 680px; }
.auth-form .ico-auth { margin-bottom: 16px; }
.auth-form .ico-auth.bleu { background: var(--bleu-c, #E5F3E8); color: var(--bleu); }
.auth-form .ico-auth.or { background: #FBF0DC; color: #A86B12; }
.auth-form .mt { text-align: center; margin-top: 22px; }
.partenaire .monogramme { --c: inherit; color: #fff; font-size: 1.08rem; max-width: none; line-height: 1; }
.partenaire .monogramme.long { font-size: .86rem; letter-spacing: 0; }
.auth-visuel { position: sticky; top: 0; height: 100vh; align-self: start; }
@media (max-height: 760px) { .auth-visuel .carte-sahel { max-height: 30vh; } .auth-atouts { display: none; } }
@media (min-width: 1461px) { .entete .wrap, .bandeau-haut .wrap { width: min(100% - 40px, 1440px); } }

/* Périmètre géographique (v3.3) : carte encadrée à la hauteur de la liste */
.liste-pays { align-content: start; }
.puce-pays { min-height: 64px; }
.puce-pays > span:nth-child(2) { flex: 1; min-width: 0; }
.puce-pays .puce-fleche { width: 16px; height: 16px; color: var(--doux); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.puce-pays:hover .puce-fleche { opacity: 1; transform: none; color: var(--vert); }
.cadre-carte { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 50px -40px rgba(15, 36, 24, .5); }
.cadre-carte-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--ligne); background: rgba(255, 255, 255, .85); }
.cadre-carte-tete b { display: inline-flex; align-items: center; gap: 8px; color: var(--nuit); font-size: .95rem; }
.cadre-carte-tete b .ico { width: 18px; height: 18px; color: var(--vert); }
.legende-point { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--doux); }
.legende-point::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 3px rgba(221, 162, 58, .25); }
.cadre-carte-corps { flex: 1; display: grid; place-items: center; padding: 10px; }
@media (min-width: 981px) { .cadre-carte-corps { min-height: 260px; } }
.cadre-carte-corps .carte-sahel { width: 100%; }
.cadre-carte-pied { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--ligne); background: rgba(255, 255, 255, .85); }
.cadre-carte-pied b { display: block; font: 700 1.5rem/1 var(--serif); color: var(--nuit); }
.cadre-carte-pied span { font-size: .76rem; color: var(--doux); }
.cadre-carte-pied .btn { margin-left: auto; }

/* Accueil : suppression des vides (v3.3) */
.encart { display: flex; flex-direction: column; align-items: flex-start; }
.encart > p, .encart > h3 { align-self: stretch; }
.encart .encart-action { margin-top: auto; }
.encart-bulletin .liste-simple li { padding-block: 12px !important; }
.periode-challenge { width: 100%; margin: 4px 0 24px; }
.periode-dates { display: flex; justify-content: space-between; font-size: .8rem; color: #C6DCCB; margin-bottom: 8px; }
.periode-dates .ico { width: 14px; height: 14px; vertical-align: -2px; color: var(--or); }
.periode-barre { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.periode-barre span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--or), #F5C97A); }
.periode-challenge small { display: block; margin-top: 6px; color: #9EBFA6; font-size: .75rem; }
.partenaires { align-items: stretch; }
@media (max-width: 900px) { .bande-mobile { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1180px) { .bande-mobile { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } }

/* ── Pagination complète (v3.4) ── */
.barre-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; }
.barre-pagination .pagination { margin: 0; gap: 4px; }
.barre-pagination .pagination a, .barre-pagination .pagination span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: .85rem; }
.pagination-info { margin: 0; font-size: .85rem; color: var(--doux); }
.pagination-info b { color: var(--nuit); }
.par-page label { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--doux); margin: 0; }
.par-page select { width: auto; min-height: 36px; padding: 4px 30px 4px 10px; border-radius: 10px; font-size: .85rem; }
@media (max-width: 720px) { .barre-pagination { justify-content: center; } .pagination-info { width: 100%; text-align: center; } }
.pagination-info:only-child { width: auto; }

/* ══════════════ Communautés en mode messagerie (v3.4) ══════════════ */
.messagerie { --mg-h: calc(100dvh - 130px); display: grid; grid-template-columns: 340px minmax(0, 1fr); height: var(--mg-h); min-height: 540px; background: #fff; border: 1px solid var(--ligne); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px -44px rgba(15, 36, 24, .6); }
.messagerie.infos-ouvertes { grid-template-columns: 340px minmax(0, 1fr) 330px; }
.mg-gav { --c: var(--bleu); display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; font: 800 .95rem/1 var(--sans); letter-spacing: .02em; }
.mg-gav.grand { width: 92px; height: 92px; font-size: 1.9rem; }
.mg-rond { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--doux); cursor: pointer; flex: none; transition: background .2s, color .2s; }
.mg-rond:hover { background: var(--fond, #F1F9F3); color: var(--nuit); }
.mg-rond .ico { width: 20px; height: 20px; }
.mg-rond.plein { background: var(--vert); color: #fff; }
.mg-rond.plein:hover { background: #256b33; color: #fff; }

/* Liste des groupes */
.mg-liste { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--ligne); background: #fff; }
.mg-liste-tete { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px 20px; }
.mg-liste-tete h1 { font-size: 1.35rem; margin: 0; }
.mg-cherche { position: relative; display: block; margin: 0 14px 10px; }
.mg-cherche .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--doux); }
.mg-cherche input { width: 100%; min-height: 40px; padding: 8px 12px 8px 38px; border-radius: 12px; border: 0; background: #F1F9F3; font-size: .9rem; }
.mg-groupes { flex: 1; overflow-y: auto; padding-bottom: 12px; }
.mg-groupe { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--encre); border-left: 3px solid transparent; transition: background .15s; }
.mg-groupe:hover { background: #F6FBF8; color: var(--encre); }
.mg-groupe.actif { background: #EEF7F0; border-left-color: var(--bleu); }
.mg-gtexte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mg-gligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.mg-gligne b, .mg-gtexte > b { font-size: .93rem; color: var(--nuit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-gligne small, .mg-gtexte > small { font-size: .8rem; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-gligne time { flex: none; font-size: .74rem; color: var(--doux); }
.mg-groupe.non-lu time { color: var(--vert); font-weight: 700; }
.mg-groupe.non-lu small { color: var(--encre); font-weight: 600; }
.mg-badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--vert); color: #fff; font: 800 .72rem/22px var(--sans); text-align: center; }
.mg-section { margin: 14px 20px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.mg-decouvrir { padding-right: 12px; }
.mg-groupe-lien { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.mg-decouvrir .mg-gav { width: 40px; height: 40px; font-size: .85rem; opacity: .85; }
.mg-vide-liste { padding: 30px 20px; text-align: center; color: var(--doux); font-size: .9rem; }
.mg-vide-liste .ico { width: 34px; height: 34px; color: var(--ligne); }

/* Conversation */
.mg-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #EFEAE2; position: relative; }
.mg-chat::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23D6CCBC' stroke-width='1'%3E%3Cpath d='M0 15 15 5 30 15 45 5 60 15M0 15 15 25 30 15 45 25 60 15'/%3E%3C/g%3E%3Ccircle cx='15' cy='45' r='1.8' fill='%23E2C38F'/%3E%3Ccircle cx='45' cy='45' r='1.8' fill='%23BFD8A6'/%3E%3C/svg%3E"); }
.mg-chat > * { position: relative; }
.mg-chat-tete { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--ligne); min-height: 66px; }
.mg-retour { display: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--nuit); }
.mg-titre { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; border: 0; background: none; padding: 4px; text-align: left; cursor: pointer; border-radius: 12px; }
.mg-titre:hover { background: #F6FBF8; }
.mg-titre .mg-gav { width: 42px; height: 42px; }
.mg-titre > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.mg-titre b { color: var(--nuit); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-titre small { color: var(--doux); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-actions { display: flex; gap: 2px; }
.mg-onglets { display: flex; gap: 4px; padding: 6px 12px; background: #fff; border-bottom: 1px solid var(--ligne); }
.mg-onglets a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--doux); font-weight: 700; font-size: .86rem; }
.mg-onglets a .ico { width: 16px; height: 16px; }
.mg-onglets a span { min-width: 20px; padding: 0 6px; border-radius: 10px; background: #F1F9F3; font-size: .72rem; text-align: center; }
.mg-onglets a.actif { background: #E7F3E8; color: #22652f; }
.mg-onglets a.actif span { background: #fff; }

.mg-messages { flex: 1; overflow-y: auto; padding: 16px clamp(12px, 4vw, 56px) 10px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; }
.mg-precedents { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 6px 14px; border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mg-precedents .ico { width: 15px; height: 15px; }
.mg-jour { align-self: center; margin: 12px 0 8px; }
.mg-jour span { display: inline-block; padding: 5px 12px; border-radius: 8px; background: rgba(255, 255, 255, .92); color: #54656F; font-size: .76rem; font-weight: 700; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.mg-ligne { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; max-width: 100%; }
.mg-ligne.suite { margin-top: 2px; }
.mg-ligne.moi { justify-content: flex-end; }
.mg-av { width: 30px; flex: none; }
.mg-bulle { position: relative; max-width: min(620px, 78%); padding: 7px 10px 6px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 1px rgba(11, 20, 26, .1); }
.mg-ligne:not(.suite):not(.moi) .mg-bulle { border-top-left-radius: 3px; }
.mg-ligne.moi .mg-bulle { background: #D9FDD3; }
.mg-ligne.moi:not(.suite) .mg-bulle { border-top-right-radius: 3px; }
.mg-ligne.cible .mg-bulle { animation: mg-flash 1.6s ease; }
@keyframes mg-flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(221, 162, 58, .7); } }
.mg-auteur { display: flex; align-items: baseline; gap: 6px; font-size: .82rem; margin-bottom: 2px; }
.mg-auteur small { color: var(--doux); font-weight: 500; font-size: .72rem; }
.mg-texte { font-size: .93rem; line-height: 1.45; color: #112116; white-space: normal; overflow-wrap: anywhere; text-align: left; padding-right: 64px; }
.mg-texte em { color: var(--doux); }
.mg-texte em .ico { width: 14px; height: 14px; vertical-align: -2px; }
.mg-heure { position: absolute; right: 10px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; color: #667781; }
.mg-vu { width: 14px; height: 14px; color: #65D988; }
.mg-alerte .ico { width: 13px; height: 13px; color: var(--rouge); }
.mg-bulle.signale { box-shadow: 0 0 0 2px rgba(200, 50, 50, .35); }
.mg-bulle.masque { opacity: .75; }
.mg-menu { position: relative; }
.mg-bulle > .mg-menu { position: absolute; top: 2px; right: 4px; opacity: 0; transition: opacity .15s; }
.mg-bulle:hover > .mg-menu, .mg-bulle > .mg-menu[open] { opacity: 1; }
.mg-menu > summary { list-style: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; color: var(--doux); background: inherit; }
.mg-menu > summary::-webkit-details-marker { display: none; }
.mg-menu > summary .ico { width: 16px; height: 16px; }
.mg-menu > div { position: absolute; right: 0; top: 28px; z-index: 20; min-width: 210px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(15, 36, 24, .35); border: 1px solid var(--ligne); }
.mg-menu > div button, .mg-menu > div a { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; color: var(--encre); font: 600 .86rem var(--sans); text-align: left; cursor: pointer; }
.mg-menu > div button:hover { background: #F1F9F3; }
.mg-menu > div .ico { width: 16px; height: 16px; }
.mg-menu > div .rouge { color: var(--rouge); }
.mg-vide { margin: auto; text-align: center; color: #54656F; max-width: 360px; }
.mg-vide-chat { padding: 18px 22px; background: rgba(255, 255, 255, .9); border-radius: 14px; }
.mg-vide .ico { width: 34px; height: 34px; color: var(--vert); }
.mg-vide p { margin: 8px 0 0; text-align: center; }

.mg-saisie { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding: 10px 14px 6px; background: #F0F5F2; }
.mg-saisie textarea { min-height: 46px; max-height: 160px; padding: 12px 16px; border-radius: 24px; border: 0; background: #fff; resize: none; font-size: .95rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.mg-envoyer { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--vert); color: #fff; cursor: pointer; transition: transform .15s, background .2s; }
.mg-envoyer:hover { background: #256b33; transform: scale(1.05); }
.mg-envoyer:disabled { opacity: .6; transform: none; }
.mg-envoyer .ico { width: 20px; height: 20px; }
.mg-astuce { grid-column: 1 / -1; padding: 0 16px; font-size: .72rem; color: #8696A0; }
.mg-info-bas { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 14px; background: #F0F5F2; color: #54656F; font-size: .88rem; text-align: center; }
.mg-info-bas .ico { width: 16px; height: 16px; }

.mg-bandeau-sujet { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #FFF8E6; border-bottom: 1px solid #F0E2C2; }
.mg-bandeau-sujet > a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--nuit); }
.mg-bandeau-sujet > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mg-bandeau-sujet b { color: var(--nuit); font-size: .95rem; }
.mg-bandeau-sujet small { color: var(--doux); font-size: .78rem; }
.mg-menu-sujet > div { right: 0; }

/* Onglet Sujets */
.mg-sujets { flex: 1; overflow-y: auto; padding: 14px clamp(12px, 3vw, 32px) 20px; background: #F6FBF8; }
.mg-sujets .barre-pagination { margin-top: 12px; }
.mg-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mg-puces a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne); color: var(--encre); font-size: .84rem; font-weight: 700; }
.mg-puces a span { font-size: .72rem; color: var(--doux); }
.mg-puces a.actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.mg-puces a.actif span { color: #C6DCCB; }
.mg-aide { font-size: .85rem; color: var(--doux); margin: 0 0 12px; }
.mg-nouveau-sujet { margin-bottom: 12px; background: #fff; border: 1px dashed #B9E4C6; border-radius: 14px; }
.mg-nouveau-sujet > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; color: var(--bleu); font-weight: 700; font-size: .9rem; }
.mg-nouveau-sujet > summary::-webkit-details-marker { display: none; }
.mg-nouveau-sujet > summary .ico { width: 18px; height: 18px; }
.mg-nouveau-sujet form { padding: 0 16px 16px; }
.mg-liste-sujets { background: #fff; border: 1px solid var(--ligne); border-radius: 14px; overflow: hidden; }
.mg-sujet { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--encre); border-bottom: 1px solid var(--ligne); }
.mg-sujet:last-child { border-bottom: 0; }
.mg-sujet:hover { background: #F6FBF8; color: var(--encre); }
.mg-sujet-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #EEF7F0; color: var(--bleu); }
.mg-sujet-ico .ico { width: 18px; height: 18px; }
.mg-compte { flex: none; font-size: .72rem; color: var(--doux); }
.mg-liste-sujets .mg-vide { padding: 30px; }

/* Infos du groupe */
.mg-infos { display: none; flex-direction: column; min-height: 0; border-left: 1px solid var(--ligne); background: #fff; }
.messagerie.infos-ouvertes .mg-infos { display: flex; }
.mg-infos-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 12px 18px; min-height: 66px; border-bottom: 1px solid var(--ligne); }
.mg-infos-corps { flex: 1; overflow-y: auto; padding: 18px; }
.mg-identite { text-align: center; }
.mg-identite .mg-gav { margin: 0 auto 10px; }
.mg-identite h2 { font-size: 1.2rem; margin: 0 0 4px; }
.mg-identite p { color: var(--doux); font-size: .85rem; margin: 0; text-align: center; }
.mg-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mg-description { font-size: .88rem; color: var(--texte); background: #F6FBF8; padding: 12px; border-radius: 12px; margin: 14px 0 0; text-align: left; }
.mg-boutons { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mg-titre-bloc { display: flex; align-items: center; gap: 8px; margin: 22px 0 8px; font-size: .9rem; color: var(--nuit); }
.mg-titre-bloc .ico { width: 17px; height: 17px; color: var(--vert); }
.mg-titre-bloc a { margin-left: auto; font-size: .8rem; }
.mg-reunions, .mg-membres { list-style: none; margin: 0; padding: 0; }
.mg-reunions li { padding: 8px 0; border-bottom: 1px solid var(--ligne); font-size: .86rem; }
.mg-reunions a { display: flex; flex-direction: column; color: var(--encre); }
.mg-reunions small { color: var(--doux); }
.mg-reunions em { color: var(--vert); font-weight: 700; font-style: normal; }
.mg-membres li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.mg-membres .avatar.petit { width: 36px; height: 36px; }
.mg-role { flex: none; padding: 2px 8px; border-radius: 6px; background: #E7F3E8; color: #22652f; font-size: .7rem; font-weight: 800; }
.mg-membres .mg-menu > div { right: 0; }
.mg-ajout { display: flex; gap: 8px; margin-bottom: 6px; }
.mg-ajout select { flex: 1; min-height: 40px; }
.mg-infos .mg-nouveau-sujet { margin-top: 18px; }
.mg-cree { font-size: .78rem; color: var(--doux); margin: 16px 0 6px; text-align: center; }
.mg-quitter { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: #FCEDED; color: var(--rouge); font-weight: 700; cursor: pointer; }
.mg-quitter .ico { width: 17px; height: 17px; }

/* Accueil de la messagerie */
.mg-accueil { margin: auto; max-width: 460px; padding: 30px; text-align: center; background: rgba(255, 255, 255, .92); border-radius: 22px; }
.mg-accueil-ico { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #E7F3E8; color: var(--vert); margin-bottom: 12px; }
.mg-accueil-ico .ico { width: 34px; height: 34px; }
.mg-accueil h2 { font-size: 1.4rem; }
.mg-accueil p { color: var(--doux); text-align: center; }
.mg-etapes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.mg-etapes li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.mg-etapes b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--nuit); color: #fff; font-size: .78rem; }

/* Écrans moyens : le panneau d'infos recouvre la conversation */
@media (max-width: 1280px) { .messagerie, .messagerie.infos-ouvertes { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 1600px) {
    .messagerie.infos-ouvertes { grid-template-columns: 340px minmax(0, 1fr); }
    .messagerie.infos-ouvertes .mg-infos { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 100%); z-index: 30; box-shadow: -20px 0 40px -20px rgba(15, 36, 24, .4); }
    .messagerie { position: relative; }
}
/* Mobile : une colonne, comme une application de messagerie */
@media (max-width: 900px) {
    .messagerie { --mg-h: calc(100dvh - 110px); grid-template-columns: minmax(0, 1fr) !important; border-radius: 14px; }
    .messagerie.avec-groupe .mg-liste { display: none; }
    .messagerie:not(.avec-groupe) .mg-chat { display: none; }
    .mg-retour { display: grid; }
    .mg-bulle { max-width: 86%; }
    .mg-astuce { display: none; }
    .messagerie.infos-ouvertes .mg-infos { width: 100%; }
}
.mg-tag-sujet { display: flex; align-items: center; gap: 6px; margin: 2px 0 5px; padding: 5px 9px; border-left: 3px solid var(--or); border-radius: 6px; background: rgba(15, 36, 24, .05); color: var(--nuit); font-size: .76rem; font-weight: 700; }
.mg-tag-sujet .ico { width: 13px; height: 13px; color: var(--or-f, #A86B12); flex: none; }
.mg-ligne.moi .mg-tag-sujet { background: rgba(255, 255, 255, .5); }
@media (max-width: 1280px) { .messagerie.infos-ouvertes { grid-template-columns: 300px minmax(0, 1fr); } }

/* v3.7 — Barre latérale réductible (bureau) */
.cote, .zone { transition: width .3s var(--ease), margin-left .3s var(--ease); }
.cote-tip { position: fixed; z-index: 200; padding: 7px 12px; border-radius: 9px; background: var(--nuit); color: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 30px rgba(15, 36, 24, .3); pointer-events: none; opacity: 0; transform: translate(-4px, -50%); transition: opacity .15s, transform .15s; }
.cote-tip.visible { opacity: 1; transform: translate(0, -50%); }
.cote-tip::before { content: ''; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--nuit); }
@media (min-width: 1201px) {
    .barre-sup .burger-espace { display: grid; margin-left: 0; width: 42px; height: 42px; flex: none; }
    .barre-sup .burger-espace:hover { border-color: var(--nuit); }
    html.cote-reduite .cote { width: 78px; }
    html.cote-reduite .zone { margin-left: 78px; }
    html.cote-reduite .cote .cote-txt { display: none; }
    html.cote-reduite .cote-marque { justify-content: center; padding: 18px 10px; }
    html.cote-reduite .cote-nav { padding: 10px 10px 20px; scrollbar-width: none; }
    html.cote-reduite .cote-nav::-webkit-scrollbar { display: none; }
    html.cote-reduite .cote-groupe { height: 0; padding: 0; margin: 12px 8px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 0; }
    html.cote-reduite .cote-groupe:first-child { margin-top: 4px; border-top-color: transparent; }
    html.cote-reduite .cote-lien { position: relative; justify-content: center; padding: 11px 0; gap: 0; }
    html.cote-reduite .cote-lien:hover { padding-left: 0; }
    html.cote-reduite .cote-lien .ico { width: 21px; height: 21px; }
    html.cote-reduite .cote-lien .compteur { position: absolute; top: 3px; right: 6px; margin: 0; min-width: 17px; height: 17px; padding: 0 4px; font-size: .6rem; border-radius: 9px; }
    html.cote-reduite .cote-pied { padding: 12px 10px; }
    html.cote-reduite .cote-pied a { justify-content: center; padding: 11px 0; gap: 0; }
}

/* ---------------------------------------------------------------- v3.8 : bandeau défilant des composantes P2RS (haut de l'accueil) */
.bande-composantes { position: relative; z-index: 2; padding: 16px 0 14px; background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .12)); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.bande-composantes-tete span { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--feuille); margin-bottom: 10px; }
.bande-composantes-tete span::before { content: ''; width: 26px; height: 2px; background: var(--feuille); }
.defilement { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.defilement-piste { display: flex; gap: 14px; width: max-content; margin: 0; padding: 4px 0; list-style: none; animation: defiler var(--duree, 45s) linear infinite; }
.defilement:hover .defilement-piste, .defilement:focus-within .defilement-piste { animation-play-state: paused; }
@keyframes defiler { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
.composante { --c: var(--vert); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 168px; height: 104px; padding: 10px 12px; background: #fff; border-radius: 14px; border-bottom: 3px solid var(--c); color: var(--nuit); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .6); transition: transform .25s var(--ease), box-shadow .25s; text-align: center; }
a.composante:hover { transform: translateY(-3px); color: var(--nuit); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .7); }
.composante img { max-width: 136px; max-height: 58px; object-fit: contain; }
.composante small { font-size: .72rem; font-weight: 700; color: var(--doux); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.composante-sans-logo { display: flex; align-items: center; gap: 8px; }
.composante-sans-logo .drapeau-img { width: 34px; height: 24px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px var(--ligne); }
.composante-sans-logo .drapeau-regional { display: inline-grid; place-items: center; background: var(--vert-c); color: var(--vert-f); }
.composante-sans-logo b { font-family: var(--serif); font-size: 1.05rem; color: var(--bleu); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .defilement { overflow-x: auto; } .defilement-piste { animation: none; } .defilement-piste li[aria-hidden] { display: none; } }
@media (max-width: 640px) { .composante { width: 140px; height: 92px; } .composante img { max-width: 112px; max-height: 48px; } }

/* ---------------------------------------------------------------- v3.8 : médiathèque (Ressources audio et vidéo) */
.onglets-media { display: flex; flex-wrap: wrap; gap: 8px; margin: -30px 0 16px; position: relative; z-index: 3; }
.onglets-media a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne); color: var(--nuit); font-weight: 700; font-size: .9rem; box-shadow: var(--ombre); }
.onglets-media a span { min-width: 24px; padding: 0 7px; border-radius: 999px; background: var(--fond); font-size: .75rem; text-align: center; }
.onglets-media a.actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.onglets-media a.actif span { background: var(--feuille); color: var(--nuit); }
.onglets-media + .barre-filtres { margin-top: 0; }
.grille-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-bottom: 26px; }
.carte-media { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; color: var(--nuit); transition: transform .3s var(--ease), box-shadow .3s; }
.carte-media:hover { transform: translateY(-4px); box-shadow: var(--ombre-l); color: var(--nuit); }
.carte-media-visuel { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(140deg, var(--nuit), #1F5C2E); display: grid; place-items: center; overflow: hidden; }
.carte-media.audio .carte-media-visuel { background: linear-gradient(140deg, #111, #2D4A1E 70%, #3A9A3E); }
.carte-media-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.carte-media:hover .carte-media-visuel img { transform: scale(1.05); }
.carte-media-motif .ico { width: 64px; height: 64px; color: rgba(255, 255, 255, .16); }
.carte-media-play { position: absolute; inset: 0; display: grid; place-items: center; }
.carte-media-play .ico { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--vert-f); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--ease); }
.carte-media:hover .carte-media-play .ico { transform: scale(1.1); }
.carte-media-type, .carte-media-duree, .carte-media-membres { position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: rgba(0, 0, 0, .62); color: #fff; }
.carte-media-type { left: 10px; top: 10px; } .carte-media-type .ico { width: 13px; height: 13px; }
.carte-media-duree { right: 10px; bottom: 10px; font-variant-numeric: tabular-nums; }
.carte-media-membres { right: 10px; top: 10px; padding: 5px; } .carte-media-membres .ico { width: 13px; height: 13px; }
.carte-media-corps { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.carte-media-corps b { font-size: 1rem; line-height: 1.35; }
.carte-media-corps small { color: var(--doux); font-size: .8rem; }
.grille-lecture { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.lecteur { background: #000; border-radius: 18px; overflow: hidden; box-shadow: var(--ombre-l); }
.lecteur video, .lecteur iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.lecteur-audio { background: linear-gradient(140deg, #0E1A12, var(--nuit) 60%, #2D7D31); padding: 22px; }
.lecteur-audio audio { width: 100%; display: block; }
.lecteur-audio-visuel { display: grid; place-items: center; height: 200px; margin-bottom: 16px; }
.lecteur-audio-visuel img { max-height: 200px; border-radius: 12px; }
.onde { display: flex; align-items: center; gap: 5px; height: 120px; }
.onde i { width: 6px; height: var(--h); border-radius: 3px; background: linear-gradient(var(--feuille), var(--vert)); animation: onde 1.4s ease-in-out var(--d) infinite alternate; opacity: .85; }
@keyframes onde { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.lecteur-externe { display: grid; place-items: center; gap: 10px; padding: 50px 20px; color: #fff; text-align: center; }
.lecteur-externe .ico { width: 48px; height: 48px; color: var(--feuille); }
.fiche-meta h3 { margin-bottom: 12px; }
.fiche-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin: 0 0 18px; font-size: .9rem; }
.fiche-meta dt { color: var(--doux); font-weight: 700; }
.fiche-meta dd { margin: 0; color: var(--nuit); }
.actions-colonne { display: flex; flex-direction: column; gap: 8px; }
.titre-section-petit { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; margin: 26px 0 16px; }
.texte-riche { line-height: 1.75; }
/* Espace : liste et formulaire */
.ressource-ligne { display: flex; align-items: center; gap: 12px; }
.ressource-mini { position: relative; flex: none; width: 64px; height: 40px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--nuit); color: #fff; }
.ressource-mini.audio { background: #1B2A1F; }
.ressource-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.ressource-mini .ico { position: relative; width: 18px; height: 18px; }
.choix-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.choix-carte { cursor: pointer; }
.choix-carte input { position: absolute; opacity: 0; pointer-events: none; }
.choix-carte > span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; height: 100%; padding: 14px; border: 1.5px solid var(--ligne); border-radius: 14px; transition: border-color .2s, background .2s; }
.choix-type.petit .choix-carte > span { flex-direction: row; align-items: center; gap: 8px; padding: 11px 14px; }
.choix-carte .ico { color: var(--vert); }
.choix-carte small { color: var(--doux); font-size: .74rem; }
.choix-carte input:checked + span { border-color: var(--vert); background: var(--vert-c); box-shadow: 0 0 0 3px rgba(58, 154, 62, .15); }
.choix-carte input:focus-visible + span { outline: 3px solid rgba(27, 122, 53, .45); outline-offset: 2px; }
.zone-depot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px 16px; border: 2px dashed var(--ligne-f); border-radius: 16px; text-align: center; cursor: pointer; background: var(--fond-2); transition: border-color .2s, background .2s; }
.zone-depot:hover, .zone-depot:focus-within { border-color: var(--vert); background: var(--vert-c); }
.zone-depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zone-depot .ico { width: 34px; height: 34px; color: var(--vert); }
.zone-depot small { color: var(--doux); }
.apercu-media video, .apercu-media audio { width: 100%; margin-top: 12px; border-radius: 10px; }
.apercu-media video { max-height: 240px; background: #000; }
.apercu-logo.vignette { width: 180px; height: 110px; padding: 0; overflow: hidden; }
.apercu-logo.vignette img { width: 100%; height: 100%; object-fit: cover; }
.apercu-logo.vignette .ico { width: 40px; height: 40px; color: var(--ligne-f); }
.progression-envoi { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; }
.progression-envoi i { display: block; height: 8px; width: 0; max-width: 160px; flex: none; border-radius: 4px; background: linear-gradient(90deg, var(--vert), var(--feuille)); transition: width .2s; }
.progression-envoi b { font-size: .85rem; color: var(--vert-f); }
@media (max-width: 900px) { .grille-lecture { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- v3.8 : modules IA aux couleurs du logo CILSS (vert laurier, noir, blanc) */
:root { --ia-noir: #101512; --ia-vert: #3AAA35; --ia-vert-f: #1B7A35; --ia-degrade: linear-gradient(135deg, #3AAA35, #1B7A35 55%, #101512); }
.nav-ia > button { color: var(--ia-vert-f); }
.nav-ia .ico-ia { width: 16px; height: 16px; color: var(--ia-vert); }
.sous-menu-ia .ico { color: var(--ia-vert-f); }
.heros-ia { position: relative; overflow: hidden; color: #fff; padding: 56px 0 70px; background: radial-gradient(900px 420px at 85% 20%, rgba(58, 170, 53, .35), transparent 60%), linear-gradient(150deg, #0A0F0B, var(--ia-noir) 45%, #17401F); }
.heros-ia h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); max-width: 820px; margin: 14px 0; }
.heros-ia h1 em { color: var(--ia-vert); font-style: italic; }
.heros-ia .chapeau { color: #CFE3D3; max-width: 680px; font-size: 1.08rem; }
.heros-ia .fil { margin-bottom: 18px; }
.heros-ia .actions { margin-top: 22px; }
.grille-ia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.module-ia { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 24px; background: #fff; border: 1px solid var(--ligne); border-radius: 20px; color: var(--texte); overflow: hidden; }
.module-ia::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--ia-degrade); }
.module-ia h2 { font-size: 1.45rem; margin: 0; }
.module-ia p { margin: 0; }
.module-ia .btn { align-self: flex-start; margin-top: auto; }
.module-ia-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--ia-noir); color: var(--ia-vert); box-shadow: inset 0 0 0 1px rgba(58, 170, 53, .35), 0 12px 24px -14px rgba(16, 21, 18, .9); }
.module-ia-ico .ico { width: 28px; height: 28px; }
.module-ia-etiquette { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ia-vert-f); }
.module-ia.compact { transition: transform .3s var(--ease), box-shadow .3s; }
.module-ia.compact:hover { transform: translateY(-4px); box-shadow: var(--ombre-l); color: var(--texte); }
.module-ia.compact b { font-size: 1.12rem; color: var(--nuit); }
.module-ia.compact small { color: var(--doux); font-size: .9rem; line-height: 1.5; }
.liste-coches { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.liste-coches li { position: relative; padding-left: 24px; }
.liste-coches li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--ia-vert); border-bottom: 2.5px solid var(--ia-vert); transform: rotate(-45deg); }
.note-ia { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--vert-c); color: var(--vert-f); font-size: .9rem; }
.bande-ia { background: linear-gradient(180deg, #F3F7F4, #E9F3EB); }
.bande-ia .surtitre { color: var(--ia-vert-f); }
.btn-ia { background: var(--ia-degrade); background-size: 140% 140%; }
.btn-ia:hover { background: var(--ia-noir); box-shadow: 0 10px 22px -12px rgba(16, 21, 18, .8); }
.btn-ia.en-cours { opacity: .7; pointer-events: none; }
.badge-ia { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--ia-noir); color: #fff; font-size: .8rem; font-weight: 800; }
.badge-ia .ico { width: 15px; height: 15px; color: var(--ia-vert); }
@media (max-width: 980px) { .grille-ia { grid-template-columns: 1fr; } }

/* Assistant (chatbot) */
.assistant-ia { position: fixed; right: 22px; bottom: 22px; z-index: 120; font-size: .93rem; }
.assistant-bouton { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border: 0; border-radius: 999px; background: var(--ia-noir); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 16px 34px -12px rgba(16, 21, 18, .75); transition: transform .25s var(--ease); }
.assistant-bouton:hover { transform: translateY(-2px); }
.assistant-bouton-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ia-degrade); }
.assistant-bouton-ico .ico { width: 24px; height: 24px; }
.assistant-ia.ouvert .assistant-bouton { display: none; }
.assistant-panneau { width: min(400px, calc(100vw - 28px)); height: min(620px, calc(100vh - 44px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(16, 21, 18, .55), 0 0 0 1px rgba(16, 21, 18, .06); animation: monter .3s var(--ease); }
.assistant-panneau[hidden] { display: none; }
.assistant-tete { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, var(--ia-noir), #183A20); color: #fff; }
.assistant-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ia-degrade); color: #fff; }
.assistant-avatar .ico, .assistant-avatar svg { width: 22px; height: 22px; }
.assistant-avatar.mini { width: 28px; height: 28px; border-radius: 9px; } .assistant-avatar.mini svg { width: 16px; height: 16px; }
.assistant-titre { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.assistant-titre small { color: #B9D6BF; font-size: .74rem; }
.point-en-ligne { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ia-vert); margin-right: 3px; box-shadow: 0 0 0 3px rgba(58, 170, 53, .25); }
.assistant-action { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.assistant-action:hover { background: rgba(255, 255, 255, .18); }
.assistant-action .ico { width: 17px; height: 17px; }
.assistant-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #F6FAF7; overscroll-behavior: contain; }
.assistant-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.assistant-msg.moi { justify-content: flex-end; }
.assistant-bulle { max-width: 86%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--ligne); color: var(--encre); line-height: 1.5; overflow-wrap: anywhere; }
.assistant-msg.moi .assistant-bulle { border-radius: 16px 16px 4px 16px; background: var(--ia-vert-f); border-color: var(--ia-vert-f); color: #fff; }
.assistant-bulle p { margin: 0 0 .5em; } .assistant-bulle p:last-child { margin-bottom: 0; }
.assistant-bulle ul { margin: .2em 0 .6em; padding-left: 1.1em; }
.assistant-bulle .renvoi { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 1px; border-radius: 6px; background: var(--vert-c); color: var(--vert-f); font-size: .7rem; font-weight: 800; vertical-align: 1px; }
.assistant-sources { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ligne-f); }
.assistant-sources > span { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.assistant-sources a { display: flex; gap: 8px; align-items: flex-start; padding: 7px 9px; border-radius: 10px; background: var(--fond); color: var(--nuit); font-size: .83rem; line-height: 1.3; }
.assistant-sources a:hover { background: var(--vert-c); }
.assistant-sources a b { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--ia-noir); color: var(--ia-vert); font-size: .7rem; }
.assistant-sources small { display: block; color: var(--doux); font-size: .72rem; }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; background: #F6FAF7; }
.assistant-suggestions:not(:empty) { padding-bottom: 10px; }
.assistant-suggestions button { padding: 6px 11px; border: 1px solid var(--ia-vert); border-radius: 999px; background: #fff; color: var(--ia-vert-f); font-size: .78rem; font-weight: 700; cursor: pointer; }
.assistant-suggestions button:hover { background: var(--ia-vert-f); color: #fff; }
.assistant-saisie { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--ligne); background: #fff; }
.assistant-saisie textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; padding: 10px 13px; border: 1.5px solid var(--ligne-f); border-radius: 14px; outline: 0; line-height: 1.4; }
.assistant-saisie textarea:focus { border-color: var(--ia-vert); box-shadow: 0 0 0 3px rgba(58, 170, 53, .15); }
.assistant-envoyer { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 13px; background: var(--ia-degrade); color: #fff; cursor: pointer; }
.assistant-envoyer .ico { width: 19px; height: 19px; }
.assistant-mention { margin: 0; padding: 0 14px 10px; font-size: .68rem; color: var(--doux); background: #fff; }
.points { display: inline-flex; gap: 4px; } .points i { width: 7px; height: 7px; border-radius: 50%; background: var(--ia-vert); animation: rebond 1s infinite ease-in-out; } .points i:nth-child(2) { animation-delay: .15s; } .points i:nth-child(3) { animation-delay: .3s; }
@keyframes rebond { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
.assistant-ia.plein { position: static; }
.assistant-ia.plein .assistant-panneau { width: 100%; height: min(72vh, 760px); border-radius: var(--r); box-shadow: var(--ombre); animation: none; }
.assistant-ia.plein .assistant-bulle { max-width: 75%; }
@media (max-width: 640px) { .assistant-ia { right: 12px; bottom: 12px; } .assistant-bouton-texte { display: none; } .assistant-bouton { padding: 6px; } .assistant-panneau { height: calc(100vh - 24px); } }
@media print { .assistant-ia { display: none !important; } }

/* IA générative */
.grille-ia-atelier { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.actions-ia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.action-ia { cursor: pointer; }
.action-ia input { position: absolute; opacity: 0; pointer-events: none; }
.action-ia > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 11px 12px; border: 1.5px solid var(--ligne); border-radius: 13px; transition: border-color .2s, background .2s; }
.action-ia .ico { width: 19px; height: 19px; color: var(--ia-vert-f); margin-bottom: 3px; }
.action-ia b { font-size: .86rem; color: var(--nuit); line-height: 1.25; }
.action-ia small { font-size: .72rem; color: var(--doux); line-height: 1.3; }
.action-ia input:checked + span { border-color: var(--ia-noir); background: var(--ia-noir); }
.action-ia input:checked + span b { color: #fff; } .action-ia input:checked + span small { color: #B9D6BF; } .action-ia input:checked + span .ico { color: var(--ia-vert); }
.action-ia input:focus-visible + span { outline: 3px solid rgba(58, 170, 53, .45); outline-offset: 2px; }
.action-ia.indisponible { cursor: not-allowed; opacity: .55; }
.resultat-ia { position: sticky; top: 90px; }
.resultat-ia::before { content: ''; display: block; height: 4px; background: var(--ia-degrade); border-radius: var(--r) var(--r) 0 0; }
.actions-resultat { display: flex; gap: 6px; }
.resultat-ia-texte { min-height: 240px; max-height: 62vh; overflow-y: auto; line-height: 1.7; color: var(--encre); }
.resultat-ia-texte h3 { margin: 16px 0 4px; font-size: .98rem; color: var(--ia-vert-f); } .resultat-ia-texte h3:first-child { margin-top: 0; }
.chargement-ia { display: flex; align-items: center; gap: 10px; color: var(--doux); padding: 30px 0; }
@media (max-width: 1100px) { .grille-ia-atelier { grid-template-columns: 1fr; } .resultat-ia { position: static; } .actions-ia { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* IA prédictive */
.grille-prevision { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(250px, 1fr); gap: 24px; align-items: start; }
.legende-prevision { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--doux); }
.legende-prevision span { display: inline-flex; align-items: center; gap: 6px; }
.legende-prevision i { display: inline-block; width: 20px; height: 0; border-top: 2px solid var(--ia-vert-f); }
.legende-prevision i.l-prev { border-top-style: dashed; border-color: var(--ia-vert); }
.legende-prevision i.l-bande { height: 10px; border: 0; border-radius: 3px; background: rgba(58, 170, 53, .2); }
.graphe-prevision { position: relative; }
.graphe-prevision svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.graphe-prevision .grille { stroke: var(--ligne); stroke-width: 1; }
.graphe-prevision .axe { fill: var(--doux); font-size: 11px; }
.graphe-prevision .zone-futur { fill: rgba(58, 170, 53, .05); }
.graphe-prevision .bande { fill: rgba(58, 170, 53, .2); }
.graphe-prevision .trait-hist { fill: none; stroke: var(--ia-vert-f); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.graphe-prevision .trait-prev { fill: none; stroke: var(--ia-vert); stroke-width: 2; stroke-dasharray: 6 5; stroke-linejoin: round; }
.graphe-prevision .pt { fill: var(--ia-vert-f); stroke: #fff; stroke-width: 2; }
.graphe-prevision .pt-prev { fill: #fff; stroke: var(--ia-vert); }
.graphe-prevision .cible { fill: transparent; cursor: crosshair; }
.graphe-prevision .curseur { stroke: var(--ia-noir); stroke-width: 1; stroke-dasharray: 3 3; opacity: .5; pointer-events: none; }
.info-bulle { position: absolute; pointer-events: none; display: flex; flex-direction: column; min-width: 120px; padding: 8px 11px; border-radius: 10px; background: var(--ia-noir); color: #fff; font-size: .8rem; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.info-bulle span { font-size: 1.05rem; font-weight: 800; color: var(--ia-vert); }
.info-bulle small { color: #B9D6BF; }
.jauge-objectif { display: flex; flex-direction: column; gap: 6px; }
.jauge-pct { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ia-vert-f); }
.jauge { height: 10px; border-radius: 6px; background: var(--fond); overflow: hidden; margin: 6px 0; } .jauge i { display: block; height: 100%; border-radius: 6px; background: var(--ia-degrade); }
.analyse-ia h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; } .analyse-ia h3 .ico { color: var(--ia-vert); }
.analyse-ia ul { margin: 0 0 10px; padding-left: 1.1em; display: grid; gap: 6px; font-size: .92rem; }
@media (max-width: 1000px) { .grille-prevision { grid-template-columns: 1fr; } }
/* Dans l'espace : bouton rond, et remonté au-dessus des barres d'actions collées en bas des formulaires */
.assistant-ia.compact .assistant-bouton-texte { display: none; }
.assistant-ia.compact .assistant-bouton { padding: 6px; }
body:has(.barre-actions) .assistant-ia:not(.ouvert):not(.plein) { bottom: 96px; }
.heros .bande-composantes .wrap { display: block; padding: 0; }
.heros .bande-composantes + .wrap { padding-top: 44px; }
.assistant-fil { position: relative; }
.grille-lecture { padding-top: 32px; }
.info-bulle[hidden] { display: none; }
.graphe-prevision .axe { font-size: 13px; }
[hidden] { display: none !important; }
.carte-corps > .case { display: flex; }

/* ---------------------------------------------------------------- v3.8.1 : composantes en cercles reliés (anneau or, liaison en pointillés) */
.defilement-piste { gap: 0; padding: 6px 0 2px; }
.defilement-piste li { position: relative; flex: none; width: 128px; }
.defilement-piste li::after { content: ''; position: absolute; top: 40px; left: calc(50% + 40px); width: calc(100% - 80px); border-top: 2px dashed #E6B53C; opacity: .9; }
@keyframes defiler { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.composante { width: auto; height: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; gap: 8px; color: #fff; }
a.composante:hover { transform: none; box-shadow: none; color: #fff; }
.composante-rond { display: block; width: 80px; height: 80px; padding: 4px; border-radius: 50%; background: #E6B53C; box-shadow: 0 0 0 3px rgba(16, 36, 24, .55), 0 10px 22px -10px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.composante-rond img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.composante-rond.avec-logo img { object-fit: contain; padding: 9px; }
.composante:hover .composante-rond, .composante:focus-visible .composante-rond { transform: scale(1.08); }
.composante-nom { max-width: 124px; font-size: .86rem; font-weight: 700; line-height: 1.2; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); white-space: normal; }
.composante small, .composante-sans-logo { display: none; }
@media (max-width: 640px) { .defilement-piste li { width: 104px; } .composante-rond { width: 66px; height: 66px; } .defilement-piste li::after { top: 33px; left: calc(50% + 33px); width: calc(100% - 66px); } .composante-nom { font-size: .78rem; } }

/* Vérification anti-robot (formulaire de contact) */
.verification-robot { margin: 4px 0 22px; padding: 16px 18px; border: 1.5px solid var(--ligne); border-radius: 14px; background: var(--fond-2); }
.verification-robot.invalide { border-color: #C0392B; background: #FDF3F2; }
.verification-robot > label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 10px; color: var(--nuit); }
.verification-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.verification-ligne img { width: 230px; height: 64px; border-radius: 10px; border: 1px solid var(--ligne); background: #fff; user-select: none; -webkit-user-drag: none; }
.verification-nouveau { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ligne-f); border-radius: 12px; background: #fff; color: var(--vert-f); cursor: pointer; }
.verification-nouveau:hover { background: var(--vert-c); }
.verification-nouveau .ico { width: 18px; height: 18px; }
.verification-ligne input { width: 130px; height: 46px; padding: 0 14px; border: 1.5px solid var(--ligne-f); border-radius: 12px; font-size: 1.1rem; font-weight: 700; text-align: center; letter-spacing: .05em; }
.verification-ligne input:focus { outline: 0; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(58, 154, 62, .18); }
.verification-erreur { margin-top: 8px; color: #B03A2E; font-weight: 700; font-size: .86rem; }
.verification-legende { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: .8rem; color: var(--doux); line-height: 1.45; }
.verification-legende .ico { flex: none; width: 16px; height: 16px; color: var(--vert); margin-top: 1px; }

/* v3.8.1 : barre d'actions du formulaire de fiche (trois boutons alignés, empilés proprement si la colonne est étroite) */
.barre-fiche { container-type: inline-size; padding: 14px 20px; box-shadow: 0 -10px 24px -18px rgba(16, 36, 24, .35); }
.barre-fiche-boutons { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
.barre-fiche-boutons .btn { justify-content: center; min-height: 46px; padding: 0 16px; white-space: nowrap; font-size: .92rem; }
.barre-fiche-note { grid-column: 1 / -1; min-height: 44px; }
.btn-ligne-vert { background: #fff; color: var(--vert-f); border: 1.5px solid var(--vert); box-shadow: none; }
.btn-ligne-vert:hover { background: var(--vert-c); color: var(--vert-f); }
@container (max-width: 600px) {
    .barre-fiche-boutons { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .barre-fiche-annuler { grid-column: 1 / -1; order: 3; min-height: 40px !important; border-color: transparent; }
    .barre-fiche-boutons .btn { white-space: normal; line-height: 1.2; }
}
@container (max-width: 380px) { .barre-fiche-boutons { grid-template-columns: 1fr; } }

/* v3.8.2 : cercles des composantes plus petits */
.bande-composantes { padding: 12px 0 10px; }
.bande-composantes-tete span { margin-bottom: 6px; font-size: .68rem; }
.defilement-piste li { width: 96px; }
.defilement-piste li::after { top: 31px; left: calc(50% + 29px); width: calc(100% - 58px); border-top-width: 1.5px; }
.composante { gap: 5px; }
.composante-rond { width: 58px; height: 58px; padding: 3px; box-shadow: 0 0 0 2px rgba(16, 36, 24, .55), 0 8px 16px -10px rgba(0, 0, 0, .7); }
.composante-rond.avec-logo img { padding: 6px; }
.composante-nom { max-width: 92px; font-size: .74rem; }
@media (max-width: 640px) { .defilement-piste li { width: 82px; } .composante-rond { width: 48px; height: 48px; } .defilement-piste li::after { top: 26px; left: calc(50% + 24px); width: calc(100% - 48px); } .composante-nom { font-size: .68rem; } }
.composante-nom { white-space: nowrap; letter-spacing: .01em; }

/* v3.8.6 : en-tête compact pour les longs titres (page de lecture d'une ressource) */
.tete-page.tete-compacte { padding: 34px 0 38px; }
.tete-page.tete-compacte h1 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.3; max-width: 1050px; }
.tete-page.tete-compacte .fil { margin-bottom: 10px; }

/* =====================================================================
   v3.9 — observations de la plateforme régionale
   ===================================================================== */
/* Composantes : drapeaux rectangulaires (nom du pays dessous) ; logo P2RS pour la composante régionale */
.composante-cadre { display: block; width: 86px; height: 58px; padding: 3px; border-radius: 9px; background: #E6B53C; box-shadow: 0 0 0 3px rgba(16, 36, 24, .55), 0 10px 22px -10px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.composante-cadre img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 6px; object-fit: cover; background: #fff; }
.composante-cadre.avec-logo img { object-fit: contain; padding: 3px; }
.composante:hover .composante-cadre, .composante:focus-visible .composante-cadre { transform: scale(1.07); }
.defilement-piste li::after { top: 29px; left: calc(50% + 46px); width: calc(100% - 92px); }
@media (max-width: 640px) {
    .composante-cadre { width: 72px; height: 48px; }
    .defilement-piste li::after { top: 24px; left: calc(50% + 39px); width: calc(100% - 78px); }
}

/* Actualités : cartes, liste, article */
.section-actus { background: linear-gradient(180deg, #fff, var(--fond)); }
.grille-actus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carte-actu .visuel { display: block; height: 180px; }
.carte-actu h3 a { color: var(--nuit); }
.carte-actu h3 a:hover { color: var(--bleu); }
.carte-actu p { text-align: justify; hyphens: auto; }
.actu-date { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--bleu); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.actu-date .ico { width: 14px; height: 14px; }
.btn-lire { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--bleu-c); color: var(--bleu-f); font-weight: 800; font-size: .8rem; transition: background .2s, color .2s, gap .2s; }
.btn-lire .ico { width: 15px; height: 15px; }
.btn-lire:hover { background: var(--bleu); color: #fff; gap: 10px; }
.filtres-actu { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 14px; align-items: end; padding: 18px 20px; margin-bottom: 28px; }
.filtres-actu .champ { margin: 0; }
.filtres-actions { display: flex; gap: 8px; }
.article-actu { overflow: hidden; padding: 0; }
.article-image { display: block; width: 100%; max-height: 440px; object-fit: cover; }
.article-corps { padding: 28px 34px 30px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .84rem; color: var(--doux); font-weight: 600; margin-bottom: 18px; }
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ico { width: 15px; height: 15px; }
.article-chapeau { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: var(--nuit); padding-left: 16px; border-left: 4px solid var(--feuille); }
.article-texte { text-align: justify; hyphens: auto; }
.article-texte img { border-radius: 10px; }
.article-partage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ligne); font-size: .84rem; }
.article-partage span { font-weight: 800; color: var(--nuit); margin-right: 4px; }
.article-partage a { padding: 5px 12px; border: 1px solid var(--ligne); border-radius: 999px; font-weight: 700; }
.article-partage a:hover { border-color: var(--bleu); }
.boite-newsletter { background: var(--bleu-cc); border-color: var(--bleu-c); }
.boite-newsletter h3 { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1000px) { .grille-actus { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filtres-actu { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grille-actus, .filtres-actu { grid-template-columns: 1fr; } .article-corps { padding: 22px 20px; } }

/* Newsletter */
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-newsletter { position: relative; display: grid; gap: 10px; }
.newsletter-champs { display: flex; gap: 8px; }
.newsletter-champs input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--ligne-f); background: #fff; color: var(--encre); }
.newsletter-champs .btn { border-radius: 999px; white-space: nowrap; }
.newsletter-consentement { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; line-height: 1.45; cursor: pointer; }
.newsletter-consentement input { margin-top: 2px; accent-color: var(--feuille); }
.newsletter-merci { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(140, 198, 63, .18); color: #E7F5D6; font-weight: 700; font-size: .86rem; }
.newsletter-merci .ico { width: 17px; height: 17px; flex: none; }
.newsletter-erreur { margin: 0; color: #FFC9C2; font-size: .82rem; font-weight: 700; }
.form-newsletter-boite .newsletter-champs { flex-direction: column; }
.form-newsletter-boite .newsletter-consentement { color: var(--doux); }
.form-newsletter-boite .newsletter-erreur { color: var(--rouge); }
.pied-newsletter { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; padding: 26px 30px; margin-bottom: 46px; border-radius: var(--r-l); background: linear-gradient(120deg, rgba(255, 255, 255, .07), rgba(140, 198, 63, .1)); border: 1px solid rgba(255, 255, 255, .1); }
.pied-newsletter-texte { display: flex; gap: 16px; align-items: center; }
.pied-newsletter-texte .ico-rond { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--feuille); color: var(--nuit); }
.pied-newsletter-texte h4 { margin: 0 0 4px; }
.pied-newsletter-texte p { margin: 0; font-size: .88rem; }
.pied-newsletter .newsletter-champs input { border-color: transparent; }
.pied-newsletter .newsletter-consentement { color: #A8C4AE; }
@media (max-width: 900px) { .pied-newsletter { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 480px) { .newsletter-champs { flex-direction: column; } }

/* Logos CILSS et BAD en bas du pied de page */
.pied-bas { align-items: center; }
.pied-logos { display: inline-flex; align-items: center; gap: 10px; }
.pied-logos a { display: inline-flex; align-items: center; height: 46px; padding: 3px 8px; border-radius: 10px; background: #fff; transition: transform .2s var(--ease); }
.pied-logos a:hover { transform: translateY(-2px); }
.pied-logos img { display: block; width: auto; height: 40px; }
/* Formulaire d'actualité (espace membre) */
.bloc-image-actu { display: grid; gap: 8px; }
.bloc-image-actu .champ-titre { font-weight: 700; font-size: .88rem; color: var(--nuit); }
.bloc-image-actu .doux { margin: 0; font-size: .82rem; }
.apercu-logo.apercu-actu { width: 100%; height: 170px; border-radius: 12px; padding: 0; overflow: hidden; }
.apercu-logo.apercu-actu img { width: 100%; height: 100%; object-fit: cover; }
.bloc-image-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Partenaires : 3 par ligne sur grand écran (6 partenaires = 2 lignes complètes) */
.partenaires { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

/* =====================================================================
   v3.9.1 — titres plus mesurés, textes nets, galerie des actualités
   ===================================================================== */
/* Textes nets : rendu des polices, pas de calque GPU sur les cartes (texte flou sous Chrome),
   serif sans adoucissement des formes ; textes secondaires un peu plus contrastés. */
:root { --doux: #56665C; }
body { -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, .titre-serif { font-variation-settings: 'SOFT' 0, 'WONK' 0; }
.carte-fiche, .carte-pays, .carte-bulletin { will-change: auto; }
.anim .revele.visible { transform: none; will-change: auto; }
.btn-verre { backdrop-filter: none; background: rgba(255, 255, 255, .14); }

/* Titres réduits */
.heros h1 { font-size: clamp(2rem, 3.5vw, 2.9rem); line-height: 1.1; }
.titre-section h2, .titre-mobile { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.tete-page h1 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.chiffre b { font-size: 2.2rem; }
.carte-fiche h3 { font-size: 1.08rem; }
.prose h2 { font-size: 1.35rem; }
@media (max-width: 720px) { .chiffre b { font-size: 1.8rem; } }

/* Galerie des actualités */
.carte-fiche .visuel .photos-tag { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 36, 24, .72); color: #fff; font-size: .76rem; font-weight: 800; }
.carte-fiche .visuel .photos-tag .ico { width: 14px; height: 14px; }
.galerie-actu { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--ligne); }
.galerie-actu h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 16px; }
.galerie-actu h2 .ico { color: var(--bleu); }
.galerie-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.galerie-vignette { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--fond); }
.galerie-vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.galerie-vignette:hover img { transform: scale(1.05); }
.galerie-vignette span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.3; }
.visionneuse { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 50px 70px; background: rgba(8, 20, 12, .94); }
.visionneuse[hidden] { display: none; }
.visionneuse figure { margin: 0; text-align: center; }
.visionneuse img { max-width: min(1100px, 100%); max-height: calc(100vh - 140px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.visionneuse figcaption { margin-top: 12px; color: #E6F0E8; font-size: .95rem; }
.visionneuse button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.visionneuse button:hover { background: rgba(255, 255, 255, .26); }
.visionneuse-fermer { top: 16px; right: 16px; }
.visionneuse-nav.prec { left: 14px; top: 50%; transform: translateY(-50%); }
.visionneuse-nav.suiv { right: 14px; top: 50%; transform: translateY(-50%); }
.visionneuse-compteur { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: #C6DCCB; font-size: .85rem; font-weight: 700; }
@media (max-width: 640px) { .visionneuse { padding: 60px 10px; } .visionneuse-nav.prec { left: 6px; } .visionneuse-nav.suiv { right: 6px; } }
/* Galerie dans le formulaire (espace membre) */
.galerie-admin-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.galerie-admin-tete h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 4px; }
.galerie-admin-tete p { margin: 0; font-size: .84rem; }
.galerie-admin-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.galerie-admin-photo { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--fond-2); }
.galerie-admin-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.galerie-admin-photo input[type=text] { width: 100%; padding: 6px 8px; font-size: .8rem; border: 1px solid var(--ligne-f); border-radius: 8px; }
.galerie-admin-photo.nouvelle { border-style: dashed; border-color: var(--feuille); }
.galerie-admin-photo small { font-size: .74rem; color: var(--doux); word-break: break-all; }
.galerie-admin-pied { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .78rem; }
.galerie-admin-pied label:first-child { display: inline-flex; align-items: center; gap: 4px; }
.galerie-admin-pied .ico { width: 14px; height: 14px; color: var(--doux); }
.galerie-admin-pied input[type=number] { width: 54px; padding: 4px 6px; border: 1px solid var(--ligne-f); border-radius: 6px; font-size: .8rem; }
.galerie-admin-vide { margin: 4px 0 0; font-size: .85rem; }
.case-rouge { color: var(--rouge); }
.encart h3 { font-size: 1.3rem; }

/* v3.9.2 — titres des vidéos, images sans têtes coupées, partage avec icônes */
.carte-media-corps b { font-size: .92rem; font-weight: 700; line-height: 1.42; text-align: justify; hyphens: auto; -webkit-hyphens: auto; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
/* Photos de personnes : cadrage vers le haut sur les cartes, image entière (sans recadrage) dans l'article */
.carte-actu .visuel > img { object-position: 50% 18%; }
.article-image { width: 100%; height: auto; max-height: 640px; object-fit: contain; background: #0F2418; }
.partage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.partage-libelle { font-weight: 800; color: var(--nuit); font-size: .88rem; margin-right: 4px; }
.partage-btn { --c: var(--bleu); display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px; border: 1px solid var(--ligne); border-radius: 999px; background: #fff; color: var(--nuit); font: 700 .82rem/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.partage-btn svg, .partage-btn .ico { width: 18px; height: 18px; color: var(--c); flex: none; transition: color .2s; }
.partage-btn:hover { background: var(--c); border-color: var(--c); color: #fff; transform: translateY(-2px); }
.partage-btn:hover svg, .partage-btn:hover .ico { color: #fff; }
.partage-btn.facebook { --c: #1877F2; }
.partage-btn.linkedin { --c: #0A66C2; }
.partage-btn.x { --c: #111; }
.partage-btn.whatsapp { --c: #1FA855; }
.partage-btn.courriel { --c: var(--or-f); }
.partage-btn.copier { --c: var(--vert-f); }
.partage-btn.copie { background: var(--vert-f); border-color: var(--vert-f); color: #fff; }
.partage-btn.copie .ico { color: #fff; }
@media (max-width: 520px) { .partage-btn span { display: none; } .partage-btn { padding: 9px; } }

/* =====================================================================
   v3.10 — portail sur téléphone
   ===================================================================== */
.barre-mobile { display: none; }
.nav-ia > button .chevron { margin-left: auto; }
@media (max-width: 720px) {
    /* Rythme plus serré */
    .section { padding: 46px 0; }
    .section-serree { padding: 36px 0; }
    .titre-section { margin-bottom: 22px; gap: 10px; }
    .titre-section p { font-size: .94rem; margin: 0; }
    .masquer-mobile { display: none !important; }

    /* Barre de navigation du bas, façon application */
    body:has(.barre-mobile) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--ligne); box-shadow: 0 -8px 24px -14px rgba(15, 36, 24, .35); backdrop-filter: saturate(1.4); }
    .barre-mobile a, .barre-mobile button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; border: 0; border-radius: 12px; background: none; color: var(--doux); font: 700 .7rem/1.1 var(--sans); cursor: pointer; }
    .barre-mobile .ico { width: 22px; height: 22px; }
    .barre-mobile .actif { color: var(--bleu); background: var(--bleu-cc); }
    body:has(.barre-mobile) .assistant-ia:not(.ouvert):not(.plein) { bottom: calc(76px + env(safe-area-inset-bottom)); }
    .assistant-ia.ouvert { bottom: 8px; z-index: 130; }

    /* Accueil : listes en carrousel horizontal (balayage), au lieu de longues colonnes */
    .carrousel-mobile { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px !important; padding: 4px 16px 14px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .carrousel-mobile::-webkit-scrollbar { display: none; }
    .carrousel-mobile > * { flex: 0 0 82%; max-width: 330px; scroll-snap-align: start; }
    .carrousel-mobile.piliers > *, .carrousel-mobile.grille-ia > * { flex-basis: 74%; }
    .anim .carrousel-mobile .revele { opacity: 1; transform: none; }

    /* Cartes plus compactes */
    .carte-fiche .visuel { height: 120px; }
    .carte-actu .visuel { height: 170px; }
    .carte-fiche .corps { padding: 16px 16px 18px; }
    .carte-fiche p, .carte-actu p, .article-texte { text-align: left; }
    .telephone { display: none; }
    .grille-themes { gap: 10px; }

    /* Partenaires : deux colonnes, logo et sigle */
    .partenaires { grid-template-columns: 1fr 1fr; gap: 10px; }
    .partenaire { flex-direction: column; text-align: center; gap: 8px; padding: 14px 10px; }
    .partenaire-texte span { display: none; }
    .partenaire img { width: 72px; height: 44px; }

    /* Filtres par thématique : une ligne qui défile */
    .puces-filtre { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 2px 16px 6px; scrollbar-width: none; }
    .puces-filtre::-webkit-scrollbar { display: none; }
    .puces-filtre a { flex: none; }

    /* Article d'actualité */
    .article-corps { padding: 20px 18px; }
    .article-chapeau { font-size: 1.05rem; }
    .galerie-grille { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* Pied de page : liens sur deux colonnes */
    .pied .wrap { padding-top: 40px; }
    .pied-grille { grid-template-columns: 1fr 1fr; gap: 26px 16px; padding-bottom: 30px; }
    .pied-grille > div:first-child, .pied-grille > div:last-child { grid-column: 1 / -1; }
    .pied-newsletter { margin-bottom: 30px; }
    .pied-bas { flex-direction: column; align-items: flex-start; }

    /* Menu ouvert : ligne IA alignée comme les autres */
    .nav-ia > button { justify-content: flex-start !important; gap: 8px; }
}
@media (max-width: 720px) {
    .processus { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
    .etape-proc .disque { width: 62px; height: 62px; }
    .etape-proc p { font-size: .84rem; }
    .theme { padding: 14px; }
}

/* =====================================================================================
   v3.11 — couleur jaune-orangé du CILSS, assistant sur téléphone, drapeaux, RASMI,
   documents partagés, éditeur de texte, fenêtre de confirmation
   ===================================================================================== */
:root {
    --cilss: #DDB216; --cilss-f: #A7820A; --cilss-ff: #7A5E05; --cilss-c: #FBF4D8; --cilss-cc: #FDFAEC;
    --or: #DDB216; --or-f: #A7820A; --or-c: #FBF4D8;
    --bande: linear-gradient(90deg, var(--bleu) 0 30%, var(--vert) 30% 55%, var(--feuille) 55% 75%, var(--cilss) 75%);
}
/* boutons « or » : jaune-orangé du logo CILSS, texte sombre */
.btn-or { background: linear-gradient(135deg, #E8C02A, var(--cilss)); color: var(--nuit); box-shadow: 0 10px 22px -12px rgba(221, 178, 22, .95); }
.btn-or:hover { background: linear-gradient(135deg, var(--cilss), #C99D0C); color: var(--nuit); box-shadow: 0 14px 26px -14px rgba(201, 157, 12, .95); }
.btn-rouge { background: var(--rouge); color: #fff; }
.btn-rouge:hover { background: #A93226; color: #fff; box-shadow: 0 10px 22px -12px rgba(192, 57, 43, .8); }
.badge.or { background: var(--cilss-c); color: var(--cilss-ff); }
.req, .requis { color: #D92D20; font-weight: 800; }

/* bandeau du haut, en-tête, accroches */
.bandeau-haut { border-bottom: 2px solid var(--cilss); }
.bandeau-haut .ico { color: var(--cilss); }
.bandeau-haut a:hover { color: var(--cilss); }
.bandeau-haut .droite { gap: 12px; }
.lien-rasmi, .lien-appli { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.lien-rasmi { background: var(--cilss); color: var(--nuit) !important; }
.lien-rasmi .ico { color: var(--nuit) !important; }
.lien-rasmi:hover { background: #F0CB3A; }
.lien-appli { border: 1px solid rgba(221, 178, 22, .55); }
.lien-appli:hover { background: rgba(221, 178, 22, .14); }
.nav > ul > li.actif > a::after { background: linear-gradient(90deg, var(--vert), var(--cilss)); }
.nav-appli-mobile { display: none; }
.heros .surtitre, .section-nuit .surtitre, .bande-composantes-tete span { color: var(--cilss); }
.heros h1 em { color: var(--cilss); }
.surtitre-or { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cilss-f); margin-bottom: 6px; }
.surtitre-or::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--cilss); }
.pied { border-top: 0; }
.pied h4::after { content: ''; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--cilss); }
.pied a:hover { color: var(--cilss); }

/* espace de travail : touches jaune-orangé */
.tete-espace .fil-espace { color: var(--cilss); }
.cote-groupe { color: var(--cilss); opacity: .8; }
.cote-lien.actif { box-shadow: inset 3px 0 0 var(--cilss); }
.cote-lien .compteur { background: var(--cilss); }
.carte-tete h2 .ico, .carte-tete h3 .ico { color: var(--cilss-f); }
.rubrique-form h3 .num-rub, .rubrique .num-rub { background: var(--cilss-c); color: var(--cilss-ff); }

/* drapeaux des composantes : pause en fin de tour (la liste revient au début, s'arrête, puis repart) */
@keyframes defiler { 0%, 4% { transform: translateX(0); } 92%, 100% { transform: translateX(-50%); } }
.defilement-piste { animation-duration: var(--duree, 55s); }

/* assistant sur téléphone : plein écran, en-tête toujours visible, rien de caché */
@media (max-width: 640px) {
    .assistant-ia.ouvert { position: fixed; inset: 0; right: 0; bottom: 0; z-index: 400; }
    .assistant-ia.ouvert .assistant-panneau { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; animation: none;
        padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    .assistant-tete { padding: 12px; position: sticky; top: 0; z-index: 2; }
    .assistant-suggestions { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
    .assistant-suggestions::-webkit-scrollbar { display: none; }
    .assistant-suggestions button { flex: none; white-space: nowrap; }
    .assistant-mention { font-size: .64rem; padding-bottom: 8px; }
    html.assistant-ouvert, html.assistant-ouvert body { overflow: hidden; }
    html.assistant-ouvert .barre-mobile { display: none; }
    .assistant-saisie textarea { font-size: 16px; } /* pas de zoom automatique sur iPhone */
}

/* menu du téléphone : application mobile et RASMI bien visibles */
@media (max-width: 1200px) {
    .nav-appli-mobile { display: block; margin-top: 10px; }
    .nav > ul > li.nav-appli-mobile > a { display: flex !important; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px !important; border-radius: 999px; background: var(--cilss); color: var(--nuit) !important; font-weight: 800; }
    .nav > ul > li.nav-appli-mobile > a::after { display: none !important; }
    body:has(.nav.ouvert) .assistant-ia { display: none; }
}
@media (max-width: 640px) {
    .bandeau-haut .droite { gap: 8px; }
    .lien-appli { padding: 3px 9px; font-size: .74rem; }
    .lien-rasmi { padding: 3px 9px; font-size: .74rem; }
    .bandeau-haut .langues a { padding: 2px 8px; }
}

/* page API : interopérabilité et application */
.interop { border-top: 4px solid var(--cilss); }
.interop-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.interop-grille div { padding: 14px; border-radius: 12px; background: var(--cilss-cc); border: 1px solid #F1E3A8; }
.interop-grille b { display: block; color: var(--nuit); margin-bottom: 4px; }
.interop-grille span { font-size: .86rem; color: var(--texte); }
.interop-partenaire { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--nuit); color: #C6DCCB; }
.interop-partenaire .ico-rond { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cilss); color: var(--nuit); flex: none; }
.interop-partenaire div { flex: 1; display: flex; flex-direction: column; }
.interop-partenaire b { color: #fff; }
.interop-partenaire span { font-size: .85rem; }
.boite-appli h3 { display: flex; align-items: center; gap: 8px; }
.boutons-appli { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
@media (max-width: 720px) { .interop-grille { grid-template-columns: 1fr; } .interop-partenaire { flex-wrap: wrap; } }

/* fenêtre de confirmation (suppression, corbeille, soumission) */
.confirm-voile { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(9, 22, 14, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.confirm-voile.visible { opacity: 1; }
.confirm-boite { width: min(440px, 100%); padding: 28px 26px 22px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); transform: translateY(12px) scale(.97); transition: transform .2s var(--ease); border-top: 5px solid var(--cilss); }
.confirm-voile.visible .confirm-boite { transform: none; }
.confirm-boite.danger { border-top-color: var(--rouge); }
.confirm-ico { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 12px; border-radius: 50%; background: var(--cilss-c); color: var(--cilss-f); }
.confirm-boite.danger .confirm-ico { background: var(--rouge-c); color: var(--rouge); box-shadow: 0 0 0 8px rgba(192, 57, 43, .06); }
.confirm-ico svg { width: 30px; height: 30px; }
.confirm-boite h2 { font-size: 1.3rem; margin: 0 0 8px; }
.confirm-boite p { margin: 0 0 6px; color: var(--texte); overflow-wrap: anywhere; }
.confirm-note { font-size: .84rem; color: var(--doux) !important; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.confirm-actions .btn { min-width: 140px; justify-content: center; }
@media (max-width: 480px) { .confirm-actions { flex-direction: column-reverse; } .confirm-actions .btn { width: 100%; } }

/* dépôt de fichiers (plusieurs à la fois, glisser-déposer) */
.depot-fichiers { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px 16px; border: 2px dashed #D9C98A; border-radius: 16px; background: var(--cilss-cc); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.depot-fichiers.petit { padding: 14px; }
.depot-fichiers:hover, .depot-fichiers.survol { border-color: var(--cilss); background: var(--cilss-c); }
.depot-fichiers input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.depot-fichiers .ico { width: 30px; height: 30px; color: var(--cilss-f); }
.depot-fichiers b { color: var(--nuit); }
.depot-fichiers small { color: var(--doux); font-size: .8rem; }
.liste-fichiers { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.liste-fichiers:empty { display: none; }
.liste-fichiers li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--ligne); border-radius: 12px; background: #fff; }
.liste-fichiers .ext { display: grid; place-items: center; min-width: 44px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--nuit); color: var(--cilss); font-size: .7rem; font-weight: 800; }
.liste-fichiers .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.liste-fichiers small { color: var(--doux); }
.liste-fichiers li input[type=text] { grid-column: 1 / -1; width: 100%; padding: 8px 12px; border: 1.5px solid var(--ligne-f); border-radius: 10px; font: inherit; }
.liste-fichiers li input[type=text]:focus { outline: 0; border-color: var(--vert); }
.erreur-champ { display: block; margin-top: 6px; color: var(--rouge); font-weight: 600; }

/* documents : qui peut voir */
.choix-visibilite span { padding: 10px 16px; }
.choix-visibilite input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--nuit); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.bloc-destinataires { padding: 16px; border-radius: 16px; background: var(--fond-2); border: 1px solid var(--ligne); }
.options-destinataires { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-dest { position: relative; cursor: pointer; }
.option-dest input { position: absolute; opacity: 0; }
.option-dest > span { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; height: 100%; padding: 12px 14px; border: 1.5px solid var(--ligne-f); border-radius: 14px; background: #fff; transition: all .2s; }
.option-dest .ico { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--doux); }
.option-dest b { color: var(--nuit); }
.option-dest small { color: var(--doux); font-size: .8rem; line-height: 1.35; }
.option-dest input:checked + span { border-color: var(--cilss); background: var(--cilss-cc); box-shadow: 0 0 0 3px rgba(221, 178, 22, .2); }
.option-dest input:checked + span .ico { color: var(--cilss-f); }
.option-dest input:focus-visible + span { outline: 2px solid var(--vert); outline-offset: 2px; }
.choix-utilisateurs { margin-top: 12px; }
.partage-avec { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-util { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--fond); font-size: .84rem; font-weight: 600; }
.puce-util small { color: var(--doux); font-weight: 700; }
.avatar.avatar-mini { width: 22px; height: 22px; font-size: .6rem; }
@media (max-width: 720px) { .options-destinataires { grid-template-columns: 1fr; } }

/* éditeur de texte mis en forme (rubriques des fiches) */
.editeur { border: 1.5px solid var(--ligne-f); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.editeur:not(.actif) { border: 0; }
.editeur.focus { border-color: var(--vert); box-shadow: 0 0 0 3px rgba(58, 154, 62, .15); }
.editeur-outils { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--ligne); background: var(--fond-2); }
.editeur-outils[hidden] { display: none; }
.editeur-outils button { display: grid; place-items: center; min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--texte); font-size: .98rem; cursor: pointer; }
.editeur-outils button:hover { background: var(--cilss-c); color: var(--nuit); }
.editeur-outils button.actif { background: var(--nuit); color: var(--cilss); }
.editeur-outils .ico { width: 18px; height: 18px; }
.editeur-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--ligne-f); }
.editeur-zone { min-height: 130px; max-height: 480px; overflow-y: auto; padding: 12px 14px; outline: 0; line-height: 1.6; color: var(--encre); }
.editeur-zone:empty::before { content: attr(aria-label); color: #A3B0A7; }
.editeur-zone p { margin: 0 0 .6em; }
.editeur-zone ul, .editeur-zone ol, .texte-riche ul, .texte-riche ol { margin: .3em 0 .8em; padding-left: 1.4em; }
.editeur + .aide, .editeur ~ small.aide { display: block; margin-top: 6px; }
.texte-riche { white-space: normal !important; }
.texte-riche p { margin: 0 0 .8em; }
.texte-riche strong { color: var(--encre); }
.legende-requis { margin: -6px 0 14px; font-size: .82rem; color: var(--doux); }
.ajout-fichiers > span:first-child { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 8px; }
.seulement-mobile { display: none; }
@media (max-width: 720px) { .seulement-mobile { display: inline; } }
.choix-utilisateurs .select2-container .select2-selection--multiple { min-height: 48px; }

/* =====================================================================
   v3.11.1 — Charte CILSS : panneaux verts + tuiles jaune-orangé
   (inspiré des listes de liens du site cilss.int) — portail ET espace
   ===================================================================== */
:root { --cilss-tuile: #F2C022; --cilss-tuile-h: #F7CF45; --cilss-plus: #6CC63F; --cilss-plus-f: #4FA526; --cilss-panneau: #155E00; --cilss-panneau-c: #1E7A0A; }

.panneau-cilss { position: relative; overflow: hidden; padding: 22px 20px 20px; border-radius: 18px; color: #fff;
    background: radial-gradient(120% 80% at 100% 0%, rgba(108, 198, 63, .22), transparent 60%), linear-gradient(160deg, var(--cilss-panneau-c), var(--cilss-panneau) 70%);
    box-shadow: 0 18px 40px -22px rgba(10, 60, 0, .55); }
.panneau-cilss::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgba(242, 192, 34, .08); pointer-events: none; }
.panneau-cilss-titre { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding-bottom: 12px; font-family: var(--sans); font-size: 1rem; font-weight: 800; color: #fff; letter-spacing: .01em; border-bottom: 2px solid rgba(242, 192, 34, .55); }
.panneau-cilss-titre .ico { color: var(--cilss-tuile); width: 20px; height: 20px; }
.tuiles-cilss { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tuile-cilss { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 5px 12px 5px 5px; border-radius: 4px; background: var(--cilss-tuile); color: #1D2A12; font-weight: 700; font-size: .9rem; line-height: 1.25; text-decoration: none;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .12); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.tuile-cilss:hover, .tuile-cilss:focus-visible { background: var(--cilss-tuile-h); color: #0F1A08; transform: translateX(4px); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); }
.tuile-cilss:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tuile-plus { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 3px; background: var(--cilss-plus); color: #fff; transition: background .18s ease; }
.tuile-plus svg, .tuile-plus .ico { width: 18px; height: 18px; }
.tuile-cilss:hover .tuile-plus { background: var(--cilss-plus-f); }
.tuile-texte { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tuile-externe { font-size: .85rem; opacity: .55; }

/* Section d'accueil « Accès rapides » */
.acces-cilss { background: linear-gradient(180deg, #0A7D00 0%, #0B6E02 100%); position: relative; }
.acces-cilss::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.4px); background-size: 22px 22px; pointer-events: none; }
.acces-cilss .wrap { position: relative; }
.acces-cilss .titre-section { justify-content: center; text-align: center; margin-bottom: 32px; }
.acces-cilss .titre-section h2 { color: #fff; }
.acces-cilss .surtitre { color: var(--cilss-tuile); }
.acces-cilss .surtitre::before { background: var(--cilss-tuile); }
.grille-panneaux-cilss { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .grille-panneaux-cilss { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grille-panneaux-cilss { grid-template-columns: 1fr; } .panneau-cilss { padding: 18px 14px 16px; } }

/* Espace de travail : panneau d'accès rapides dans le tableau de bord */
.panneau-cilss-espace { margin-bottom: 22px; }
.panneau-cilss-espace .tuile-cilss { min-height: 42px; font-size: .86rem; }
.panneau-cilss-espace .tuile-plus { flex-basis: 32px; width: 32px; height: 32px; }

/* --- Côté espace / administration : touches jaune-orangé cohérentes --- */
.carte-tete { position: relative; }
.carte-tete::after { content: ""; position: absolute; left: 24px; bottom: -1px; width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cilss-tuile), var(--cilss)); }
.tableau thead th { background: linear-gradient(180deg, #FFFBEB, #FBF2D2); color: #4A3A06; border-bottom: 2px solid var(--cilss-tuile); }
.tableau thead th.col-actions { background: #FBF2D2; }
.tableau tbody tr:hover td { background: #FFFCF0; }
.onglets a.actif { background: var(--cilss-panneau); color: #fff; box-shadow: inset 0 -3px 0 var(--cilss-tuile); }
.onglets a:hover:not(.actif) { background: #FFF7DC; color: #4A3A06; }
.cote-lien.actif { background: linear-gradient(90deg, rgba(242, 192, 34, .2), rgba(242, 192, 34, .04)); color: #fff; }
.cote-lien.actif .ico { color: var(--cilss-tuile); }
.pagination .actif, .pagination [aria-current] span { background: var(--cilss-tuile); border-color: var(--cilss-tuile); color: #1D2A12; }
.badge.or { background: var(--cilss-tuile); color: #1D2A12; }

/* Pied de page public : listes de liens en mini-tuiles au survol */
.pied ul a:hover { color: var(--cilss-tuile); }

@media (prefers-reduced-motion: reduce) { .tuile-cilss, .tuile-cilss:hover { transition: none; transform: none; } }

/* =====================================================================
   v3.11.2 — Sections jaune-orangé du CILSS (accueil) + bandeau du haut
   ===================================================================== */
.section-or { position: relative; isolation: isolate; color: #3D3409;
    background: radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, .28), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(197, 134, 0, .22), transparent 60%), linear-gradient(135deg, #F7CF45 0%, #F2C022 45%, #E6AE14 100%); }
.section-or.fond-or::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(21, 94, 0, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 94, 0, .06) 1px, transparent 1px); background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.section-or::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #155E00, #6CC63F 50%, #155E00); z-index: -1; }
.section-or h2, .section-or h3 { color: #12240A; }
.section-or .surtitre, .section-or .surtitre-sombre { color: #155E00; }
.section-or .titre-section p { color: #2B2405; }
.section-or .btn-or { background: #155E00; color: #fff; border-color: #155E00; box-shadow: 0 10px 24px -12px rgba(21, 94, 0, .8); }
.section-or .btn-or:hover { background: #0E4600; color: #fff; }

/* Mémoire institutionnelle : processus */
.section-or .processus::before { background: repeating-linear-gradient(90deg, rgba(21, 94, 0, .55) 0 8px, transparent 8px 16px); }
.section-or .etape-proc .disque { background: #155E00; color: #F7CF45; border-color: rgba(255, 255, 255, .6); box-shadow: 0 14px 30px -14px rgba(21, 94, 0, .9), 0 0 0 6px rgba(255, 255, 255, .35); }
.section-or .etape-proc:hover .disque { background: #6CC63F; color: #fff; }
.section-or .etape-proc .disque::after { background: #fff; color: #155E00; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); }
.section-or .etape-proc h3 { color: #12240A; }
.section-or .etape-proc p { color: #4A3E0A; }
.section-or .objectif-proc { background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 16px 34px -22px rgba(90, 60, 0, .7); }
.section-or .objectif-proc .ico { color: #155E00; }
.section-or .objectif-proc p { color: #2A2406; }

/* Application mobile : atouts */
.section-or .titre-mobile { color: #12240A; }
.section-or .atout .ico-rond { background: #155E00; color: #F7CF45; box-shadow: 0 8px 18px -10px rgba(21, 94, 0, .9); }
.section-or .atout b { color: #12240A; }
.section-or .atout span { color: #5A4C0C; }
.section-or .telephone { filter: drop-shadow(0 30px 40px rgba(90, 60, 0, .45)); }

/* Engagement des communautés : la carte bulletin reste claire, la carte challenge reste verte */
.section-or .encart { box-shadow: 0 20px 44px -26px rgba(90, 60, 0, .8); }

/* Bandeau du haut en jaune-orangé */
.bandeau-haut { background: linear-gradient(90deg, #F2C022, #F7CF45 50%, #F2C022); color: #2A2406; border-bottom: 2px solid #155E00; }
.bandeau-haut a { color: #12240A; }
.bandeau-haut a:hover { color: #155E00; text-decoration: underline; text-underline-offset: 3px; }
.bandeau-haut .ico { color: #155E00; }
.signature-haut { color: #12240A; }
.bandeau-haut .lien-appli { border-color: rgba(21, 94, 0, .55); color: #12240A; }
.bandeau-haut .lien-appli:hover { background: rgba(21, 94, 0, .1); text-decoration: none; }
.bandeau-haut .lien-rasmi { background: #155E00; color: #fff !important; }
.bandeau-haut .lien-rasmi .ico { color: #F7CF45 !important; }
.bandeau-haut .lien-installer { background: #155E00; color: #fff; }
.bandeau-haut .lien-installer .ico { color: #F7CF45; }
.bandeau-haut .langues { border-color: rgba(21, 94, 0, .35); }
.bandeau-haut .langues a { color: #3D3409; }
.bandeau-haut .langues a.actif { background: #155E00; color: #fff; }
.objectif-proc b { color: #fff; }
.section-or .objectif-proc b { color: #155E00; }
.section-or .encart-challenge { color: #C6DCCB; }
.section-or .encart-challenge h3 { color: #fff; }
.section-or .encart-challenge p, .section-or .encart-challenge .doux { color: #C6DCCB; }
.section-or .encart-challenge { box-shadow: 0 24px 48px -26px rgba(21, 60, 0, .9); }

/* v3.11.2 — lisibilité renforcée sur fond jaune-orangé (contraste ≥ 7:1, norme AAA) */
.section-or { color: #2B2405;
    background: radial-gradient(80% 100% at 100% 0%, rgba(255, 255, 255, .35), transparent 55%), linear-gradient(160deg, #FAD866 0%, #F5C935 55%, #F2C022 100%); }
.section-or.fond-or::before { background-image: linear-gradient(rgba(14, 59, 0, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 59, 0, .035) 1px, transparent 1px); }
.section-or h2, .section-or .titre-mobile { color: #0F1F07; font-weight: 700; letter-spacing: -.01em; }
.section-or h3 { color: #0F1F07; }
.section-or .titre-section p, .section-or .bande-mobile > .revele > p { color: #2B2405; font-weight: 500; }
/* Surtitres : étiquette verte institutionnelle, texte doré */
.section-or .surtitre, .section-or .surtitre-sombre { display: inline-flex; padding: 6px 14px 6px 12px; border-radius: 999px; background: #0E3B00; color: #F7CF45; letter-spacing: .14em; box-shadow: 0 6px 16px -8px rgba(14, 59, 0, .7); }
.section-or .surtitre::before, .section-or .surtitre-sombre::before { width: 18px; background: #F7CF45; }
/* Processus */
.section-or .etape-proc h3 { color: #0F1F07; font-weight: 800; }
.section-or .etape-proc p { color: #2B2405; font-weight: 500; }
.section-or .etape-proc .disque { background: #0E3B00; color: #F7CF45; }
.section-or .etape-proc .disque::after { color: #0E3B00; font-weight: 800; }
.section-or .objectif-proc { background: #FFFDF4; border: 1px solid rgba(14, 59, 0, .12); border-left: 5px solid #0E3B00; }
.section-or .objectif-proc p { color: #1F1A04; font-weight: 500; }
.section-or .objectif-proc b, .section-or .objectif-proc .ico { color: #0E3B00; }
/* Atouts de l'application */
.section-or .atout .ico-rond { background: #0E3B00; color: #F7CF45; }
.section-or .atout b { color: #0F1F07; font-weight: 800; }
.section-or .atout span { color: #3A3006; font-weight: 500; }
.section-or .btn-or { background: #0E3B00; border-color: #0E3B00; }
/* Les cartes gardent leurs propres couleurs */
/* Bandeau du haut */
.bandeau-haut { background: linear-gradient(90deg, #F5C935, #FAD866 50%, #F5C935); color: #1F1A04; font-weight: 600; border-bottom: 2px solid #0E3B00; }
.bandeau-haut a, .signature-haut { color: #0F1F07; }
.bandeau-haut .ico { color: #0E3B00; }
.bandeau-haut .lien-appli { border-color: #0E3B00; color: #0E3B00; }
.bandeau-haut .langues a { color: #1F1A04; }
.bandeau-haut .langues a.actif, .bandeau-haut .lien-rasmi, .bandeau-haut .lien-installer { background: #0E3B00; color: #fff !important; }

/* =====================================================================
   v3.11.3 — Fonds : blanc pur ou blanc + motif de losanges dorés (CILSS)
   Les dégradés pâles peu visibles sont remplacés.
   ===================================================================== */
.fond-blanc { background: #fff !important; }
.fond-blanc::after, .fond-blanc::before { display: none !important; }
.motif-cilss { position: relative; isolation: isolate; background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23DDB216' stroke-width='1.4' stroke-opacity='.22'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3Cg fill='%23DDB216' fill-opacity='.22'%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='56' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='56' r='2.2'/%3E%3Ccircle cx='56' cy='56' r='2.2'/%3E%3Ccircle cx='28' cy='28' r='1.8'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-size: 56px 56px !important; }
.motif-cilss::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0) 86%, #fff 100%); }
.motif-cilss::after { display: none !important; }
/* Les cartes posées sur le motif restent bien détachées */
.motif-cilss .carte, .motif-cilss .carte-fiche, .motif-cilss .carte-actu, .motif-cilss .pilier, .motif-cilss .pays-ligne, .motif-cilss .carte-carte, .motif-cilss .partenaire { background-color: #fff; }
/* Portail public : fond blanc pur (plus de vert pâle peu visible) */
body:not(.espace) { background: #fff; }
body:not(.espace) .section-sable, body:not(.espace) .section-actus:not(.motif-cilss) { background: #fff; }

/* =====================================================================
   v3.12 — Archivage (fiches et documents) : sélection par lot
   ===================================================================== */
.col-case { width: 44px; text-align: center; padding-left: 14px !important; padding-right: 4px !important; }
.col-case input { width: 18px; height: 18px; accent-color: #155E00; cursor: pointer; vertical-align: middle; }
.tableau tr.ligne-choisie td { background: #FFF8DD !important; }
.tableau tr.ligne-archivee td { color: #6B7280; }
.tableau tr.ligne-archivee .lien-ligne { color: #4B5563; }
.badge-archive { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; vertical-align: 2px; font-size: .7rem; }
.badge-archive .ico { width: 12px; height: 12px; }
.barre-lot { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px;
    background: #0E3B00; color: #fff; box-shadow: 0 14px 30px -16px rgba(14, 59, 0, .8); animation: lot-entree .2s ease; }
.barre-lot[hidden] { display: none; }
.barre-lot-compte { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.barre-lot-compte .ico { width: 18px; height: 18px; color: #F7CF45; }
.barre-lot-compte b { font-size: 1.05rem; color: #F7CF45; }
.barre-lot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.barre-lot .btn-ligne { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.barre-lot .btn-ligne:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-archiver, .barre-lot .btn-archiver { background: #F2C022; color: #1F1A04; border: 0; font-weight: 800; }
.btn-archiver:hover { background: #F7CF45; color: #1F1A04; }
@keyframes lot-entree { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.action.archiver { color: #8F6200; }
.action.archiver:hover { background: #FFF6D6; border-color: #F2D37A; box-shadow: 0 8px 16px -10px rgba(143, 98, 0, .7); }
.action.restaurer { color: #155E00; }
.action.restaurer:hover { background: #EAF7EC; border-color: #B8DFC0; }
.btn-archive-plein { width: 100%; margin-bottom: 10px; color: #8F6200; border-color: #F2D37A; }
.btn-archive-plein:hover { background: #FFF6D6; color: #6B4A00; }
.alerte-archive { border-left: 4px solid #8F6200; }
@media (max-width: 720px) { .barre-lot { top: 64px; } .barre-lot-actions { width: 100%; } .barre-lot-actions .btn { flex: 1; justify-content: center; } }

/* =====================================================================
   v3.12 — Sections or : textes BLANCS sur jaune-orangé profond (ocre CILSS)
   Contraste du blanc ≥ 4,8:1 sur tout le dégradé (norme AA, gros titres AAA).
   ===================================================================== */
.section-or { color: #fff;
    background: radial-gradient(70% 90% at 100% 0%, rgba(247, 207, 69, .28), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(14, 59, 0, .22), transparent 60%), linear-gradient(150deg, #9A6900 0%, #8C5F00 55%, #7F5600 100%); }
.section-or.fond-or::before { background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); }
.section-or::after { background: linear-gradient(90deg, #F7CF45, #6CC63F 50%, #F7CF45); }
.section-or h2, .section-or .titre-mobile, .section-or > .wrap > .titre-section h2 { color: #fff; text-shadow: 0 2px 14px rgba(60, 35, 0, .35); }
.section-or .titre-section p, .section-or .bande-mobile > .revele > p { color: #fff; font-weight: 500; }
.section-or .surtitre, .section-or .surtitre-sombre { background: #F7CF45; color: #0E3B00; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.section-or .surtitre::before, .section-or .surtitre-sombre::before { background: #0E3B00; }
/* Processus */
.section-or .processus::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 8px, transparent 8px 16px); }
.section-or .etape-proc .disque { background: #0E3B00; color: #F7CF45; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7), 0 0 0 6px rgba(247, 207, 69, .3); }
.section-or .etape-proc .disque::after { background: #F7CF45; color: #0E3B00; }
.section-or .etape-proc h3 { color: #fff; }
.section-or .etape-proc p { color: #fff; font-weight: 500; }
.section-or .objectif-proc { background: #FFFDF4; border: 0; border-left: 5px solid #F7CF45; }
/* Application mobile */
.section-or .atout .ico-rond { background: #0E3B00; color: #F7CF45; }
.section-or .atout b { color: #fff; }
.section-or .atout span { color: #fff; opacity: .92; }
.section-or .btn-or { background: #F7CF45; color: #0E3B00; border-color: #F7CF45; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.section-or .btn-or:hover { background: #FAD866; color: #0E3B00; }
.section-or .telephone { filter: drop-shadow(0 30px 40px rgba(40, 20, 0, .5)); }
/* Bandeau du haut : même ocre, textes blancs */
.bandeau-haut { background: linear-gradient(90deg, #8C5F00, #9A6900 50%, #8C5F00); color: #fff; border-bottom: 2px solid #F7CF45; }
.bandeau-haut a, .signature-haut { color: #fff; }
.bandeau-haut a:hover { color: #FAD866; }
.bandeau-haut .ico { color: #F7CF45; }
.bandeau-haut .lien-appli { border-color: rgba(255, 255, 255, .7); color: #fff; }
.bandeau-haut .lien-appli:hover { background: rgba(255, 255, 255, .12); }
.bandeau-haut .langues { border-color: rgba(255, 255, 255, .45); }
.bandeau-haut .langues a { color: #fff; }
.bandeau-haut .langues a.actif { background: #fff; color: #0E3B00 !important; }
.bandeau-haut .lien-rasmi, .bandeau-haut .lien-installer { background: #F7CF45; color: #0E3B00 !important; }
.bandeau-haut .lien-rasmi .ico, .bandeau-haut .lien-installer .ico { color: #0E3B00 !important; }

/* =====================================================================
   v3.12 — « Les domaines de la résilience » : panneau d'introduction + tuiles
   ===================================================================== */
.domaines { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.domaines-intro { position: sticky; top: 110px; overflow: hidden; padding: 34px 30px 30px; border-radius: 22px; color: #fff;
    background: radial-gradient(90% 70% at 100% 0%, rgba(108, 198, 63, .25), transparent 60%), linear-gradient(160deg, #155E00, #0E3B00 75%);
    box-shadow: 0 30px 60px -34px rgba(14, 59, 0, .85); }
.domaines-intro::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 190px; height: 190px; border-radius: 50%; border: 30px solid rgba(247, 207, 69, .12); pointer-events: none; }
.domaines-intro .surtitre { color: #F7CF45; }
.domaines-intro .surtitre::before { background: #F7CF45; }
.domaines-intro h2 { margin: 12px 0 12px; color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.15; }
.domaines-intro p { margin: 0 0 22px; color: #fff; opacity: .92; font-size: .98rem; }
.domaines-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.domaines-chiffres div { padding: 14px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.domaines-chiffres b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: #F7CF45; }
.domaines-chiffres span { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: #fff; opacity: .9; line-height: 1.3; }
.domaines-intro .btn-or { position: relative; z-index: 1; }

.domaines-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.domaine { position: relative; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 16px 16px 16px 18px; border-radius: 16px; background: #fff; color: var(--nuit);
    border: 1px solid #E7ECE8; box-shadow: 0 1px 0 rgba(15, 36, 24, .04); overflow: hidden; text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.domaine::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); transition: width .3s var(--ease); }
.domaine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 9%, #fff), transparent 70%); opacity: 0; transition: opacity .3s; z-index: 0; }
.domaine > * { position: relative; z-index: 1; }
.domaine:hover, .domaine:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: 0 20px 36px -24px color-mix(in srgb, var(--c) 80%, #000); }
.domaine:hover::after, .domaine:focus-visible::after { opacity: 1; }
.domaine:hover::before { width: 6px; }
.domaine-num { position: absolute; top: 8px; right: 12px; font-family: var(--serif); font-size: .78rem; font-weight: 700; color: #B6C2B9; letter-spacing: .04em; }
.domaine-ico { flex: 0 0 50px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); transition: background .25s, color .25s; }
.domaine-ico .ico { width: 24px; height: 24px; }
.domaine:hover .domaine-ico { background: var(--c); color: #fff; }
.domaine-texte { flex: 1; min-width: 0; }
.domaine-texte b { display: block; font-size: .95rem; line-height: 1.25; color: #0F1F07; }
.domaine-texte small { display: inline-flex; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, #000); background: color-mix(in srgb, var(--c) 12%, #fff); }
.domaine-texte small.vide { color: #6B7280; background: #F2F4F3; }
.domaine-fleche { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); transform: translateX(-4px); opacity: .7; transition: transform .25s, opacity .25s; }
.domaine-fleche .ico { width: 15px; height: 15px; }
.domaine:hover .domaine-fleche { transform: none; opacity: 1; }
@media (max-width: 1180px) { .domaines { grid-template-columns: 1fr; } .domaines-intro { position: relative; top: 0; } .domaines-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .domaines-grille { grid-template-columns: 1fr; } .domaine { min-height: 78px; } .domaines-intro { padding: 26px 20px; } }
.section-or .encart-bulletin, .section-or .encart-bulletin a { color: #1F2A22; }
.section-or .encart-bulletin a:hover { color: #155E00; }

/* =====================================================================
   v3.12.1 — Retour à la couleur exacte du logo CILSS (jaune-orangé #F2C022 → #DDB216)
   Textes vert foncé du logo (contraste ≥ 7,8:1 — le blanc n'est pas lisible sur ce jaune).
   ===================================================================== */
.section-or { color: #0A2A00;
    background: radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(150deg, #F2C022 0%, #E8B81C 55%, #DDB216 100%); }
.section-or.fond-or::before { background-image: linear-gradient(rgba(10, 42, 0, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 42, 0, .04) 1px, transparent 1px); }
.section-or::after { background: linear-gradient(90deg, #155E00, #6CC63F 50%, #155E00); }
.section-or h2, .section-or .titre-mobile, .section-or > .wrap > .titre-section h2 { color: #0A2A00; text-shadow: none; }
.section-or .titre-section p, .section-or .bande-mobile > .revele > p { color: #0A2A00; font-weight: 500; }
.section-or .surtitre, .section-or .surtitre-sombre { background: #0E3B00; color: #F2C022; box-shadow: 0 6px 16px -8px rgba(14, 59, 0, .7); }
.section-or .surtitre::before, .section-or .surtitre-sombre::before { background: #F2C022; }
.section-or .processus::before { background: repeating-linear-gradient(90deg, rgba(10, 42, 0, .5) 0 8px, transparent 8px 16px); }
.section-or .etape-proc .disque { background: #0E3B00; color: #F2C022; box-shadow: 0 14px 30px -14px rgba(14, 59, 0, .9), 0 0 0 6px rgba(255, 255, 255, .35); }
.section-or .etape-proc .disque::after { background: #fff; color: #0E3B00; }
.section-or .etape-proc h3 { color: #0A2A00; }
.section-or .etape-proc p { color: #0A2A00; font-weight: 500; }
.section-or .objectif-proc { background: #FFFDF4; border-left: 5px solid #0E3B00; }
.section-or .atout .ico-rond { background: #0E3B00; color: #F2C022; }
.section-or .atout b { color: #0A2A00; }
.section-or .atout span { color: #0A2A00; opacity: .9; }
.section-or .btn-or { background: #0E3B00; color: #fff; border-color: #0E3B00; box-shadow: 0 10px 24px -12px rgba(14, 59, 0, .8); }
.section-or .btn-or:hover { background: #155E00; color: #fff; }
.section-or .telephone { filter: drop-shadow(0 30px 40px rgba(110, 80, 0, .45)); }
/* Bandeau du haut : jaune du logo, textes vert foncé */
.bandeau-haut { background: linear-gradient(90deg, #E8B81C, #F2C022 50%, #E8B81C); color: #0A2A00; border-bottom: 2px solid #0E3B00; }
.bandeau-haut a, .signature-haut { color: #0A2A00; }
.bandeau-haut a:hover { color: #155E00; }
.bandeau-haut .ico { color: #0E3B00; }
.bandeau-haut .lien-appli { border-color: #0E3B00; color: #0A2A00; }
.bandeau-haut .lien-appli:hover { background: rgba(14, 59, 0, .1); }
.bandeau-haut .langues { border-color: rgba(14, 59, 0, .4); }
.bandeau-haut .langues a { color: #0A2A00; }
.bandeau-haut .langues a.actif { background: #0E3B00; color: #fff !important; }
.bandeau-haut .lien-rasmi, .bandeau-haut .lien-installer { background: #0E3B00; color: #fff !important; }
.bandeau-haut .lien-rasmi .ico, .bandeau-haut .lien-installer .ico { color: #F2C022 !important; }
.section-or .encart-bulletin a.btn, .section-or .encart-bulletin a.btn:hover { color: #fff; }

/* =====================================================================
   v3.12.2 — Pages intérieures du portail : charte CILSS (vert du logo + jaune-orangé)
   ===================================================================== */
/* En-tête de page */
.tete-page { background: radial-gradient(70% 120% at 100% 0%, rgba(108, 198, 63, .28), transparent 60%), linear-gradient(140deg, #0E3B00 0%, #155E00 55%, #1E7A0A 100%); padding: 50px 0 74px; }
.tete-page::before { background: radial-gradient(420px 260px at 92% 10%, rgba(242, 192, 34, .20), transparent 70%); }
.tete-page.fond-carreaux::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23F2C022' stroke-width='1.2' stroke-opacity='.16'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 56px 56px; opacity: 1; }
.tete-page > .wrap::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 20px; border-radius: 4px; background: linear-gradient(90deg, #F2C022, #DDB216); }
.tete-page.tete-compacte > .wrap::after { margin-top: 14px; }
.tete-page h1 { letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .18); }
.tete-page p { color: #fff; opacity: .92; }
.fil { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-weight: 600; margin-bottom: 16px; }
.fil a { color: #F7CF45; }
.fil a:hover { color: #fff; }
.fil span::before { color: #F2C022; opacity: .9; }
.tete-page + .section, .tete-page + .section-serree { position: relative; }

/* Fond des contenus : blanc + losanges dorés très légers (comme l'accueil) */
body:not(.espace) main > .tete-page ~ .section:not(.section-or):not(.section-nuit):not(.fond-blanc) {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23DDB216' stroke-width='1.2' stroke-opacity='.12'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 56px 56px; }

/* Barre de filtres */
.barre-filtres { position: relative; border: 0; border-top: 4px solid #F2C022; border-radius: 18px; box-shadow: 0 24px 50px -30px rgba(14, 59, 0, .55), 0 0 0 1px rgba(14, 59, 0, .07); padding: 20px 22px 22px; }
.barre-filtres .champ > span { color: #0E3B00; font-weight: 800; font-size: .8rem; letter-spacing: .02em; }
.barre-filtres .btn, .barre-filtres button[type=submit] { background: #155E00; border-color: #155E00; color: #fff; }
.barre-filtres .btn:hover, .barre-filtres button[type=submit]:hover { background: #0E3B00; }
.barre-filtres .compteur-resultats, .barre-filtres .btn-nuit { background: #0E3B00; }

/* Puces de filtre */
.puces-filtre a { border-color: #E5E9E2; box-shadow: 0 1px 0 rgba(14, 59, 0, .04); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.puces-filtre a:hover { border-color: #F2C022; background: #FFFBEA; color: #0E3B00; transform: translateY(-1px); }
.puces-filtre a.actif { background: #0E3B00; border-color: #0E3B00; color: #fff; box-shadow: inset 0 -3px 0 #F2C022; }

/* Compteur de résultats */
.resultats-info > span:first-child { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #FFF6D6; color: #5A4300; font-weight: 800; font-size: .82rem; border: 1px solid #F5DE8E; }

/* Cartes de fiches */
.carte-fiche { border-color: #E7EBE4; border-radius: 18px; }
.carte-fiche::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #F2C022, #DDB216); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.carte-fiche:hover { box-shadow: 0 26px 50px -30px rgba(14, 59, 0, .6); }
.carte-fiche:hover::after { transform: scaleX(1); }
.carte-fiche h3 { color: #0F1F07; }

/* Cartographie */
.carte-leaflet { border: 0; border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(14, 59, 0, .6), 0 0 0 1px rgba(14, 59, 0, .08), 0 0 0 6px #fff, 0 0 0 7px rgba(242, 192, 34, .5); }
.legende-carte { gap: 8px; padding: 16px 18px; margin-top: 22px; background: #fff; border-radius: 16px; border: 1px solid #ECEFE9; }
.legende-carte .pastille-them { padding: 5px 12px 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 8%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); font-weight: 700; color: #1F2A22; }

/* Pagination */
.pagination a:hover { border-color: #F2C022; color: #0E3B00; background: #FFFBEA; }
.pagination .actif { background: #0E3B00; border-color: #0E3B00; color: #F7CF45; }

/* Titres de sections intérieures */
body:not(.espace) .section:not(.section-nuit):not(.section-or) > .wrap > .titre-section h2 { color: #0F1F07; }
.filtres-actu { position: relative; z-index: 2; margin-top: -36px; border: 0; border-top: 4px solid #F2C022; border-radius: 18px; box-shadow: 0 24px 50px -30px rgba(14, 59, 0, .55), 0 0 0 1px rgba(14, 59, 0, .07); }
.filtres-actu .champ > span { color: #0E3B00; font-weight: 800; font-size: .8rem; }
.filtres-actu .btn[type=submit] { background: #155E00; border-color: #155E00; color: #fff; }

/* v3.12.2 — Bouton « Télécharger l'application mobile » du bandeau (ordinateur et mobile) */
.lien-telecharger { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; background: #0E3B00; color: #fff !important; font-size: .8rem; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(14, 59, 0, .8); transition: background .2s, transform .2s; }
.lien-telecharger .ico { width: 15px; height: 15px; color: #F2C022 !important; }
.lien-telecharger:hover { background: #155E00; transform: translateY(-1px); text-decoration: none !important; }
@media (max-width: 720px) { .lien-telecharger { padding: 4px 11px; font-size: .74rem; } }
/* Page « Application mobile » */
.page-appli { display: grid; place-items: center; }
.page-appli-carte { position: relative; z-index: 2; margin-top: -36px; max-width: 760px; width: 100%; padding: 34px 34px 28px; border: 0; border-top: 4px solid #F2C022; border-radius: 20px; box-shadow: 0 24px 50px -30px rgba(14, 59, 0, .55), 0 0 0 1px rgba(14, 59, 0, .07); text-align: center; }
.page-appli-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #0E3B00; color: #F2C022; margin-bottom: 14px; }
.page-appli-ico .ico { width: 30px; height: 30px; }
.page-appli-carte h2 { color: #0F1F07; margin: 0 0 10px; }
.page-appli-carte > p { color: #3A4A3E; max-width: 600px; margin: 0 auto 22px; }
.page-appli-carte .boutons-appli { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.btn-appli { background: #0E3B00; border-color: #0E3B00; color: #fff; padding: 13px 22px; }
.btn-appli .ico { color: #F2C022; }
.btn-appli:hover { background: #155E00; color: #fff; }
.page-appli-carte .alerte { text-align: left; margin-bottom: 22px; }
.page-appli-atouts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.page-appli-atouts li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FFFBEA; border: 1px solid #F5E3A0; color: #1F2A22; font-weight: 600; font-size: .88rem; }
.page-appli-atouts .ico { flex: none; width: 18px; height: 18px; color: #155E00; }
@media (max-width: 640px) { .page-appli-atouts { grid-template-columns: 1fr; } .page-appli-carte { padding: 26px 18px 22px; } }

/* =====================================================================
   v3.12.3 — Accueil et portail : typographie nette et contrastée
   ===================================================================== */
body:not(.espace) { --texte: #1F2A22; --doux: #46554B; font-size: 16px; color: var(--texte); }
body:not(.espace) p { font-weight: 500; }
body:not(.espace) h1, body:not(.espace) h2 { font-weight: 700; letter-spacing: -.015em; }
body:not(.espace) .titre-section h2 { font-size: clamp(1.75rem, 2.6vw, 2.35rem); line-height: 1.15; }
body:not(.espace) .titre-section p { font-size: 1.02rem; line-height: 1.65; }
body:not(.espace) .surtitre { font-weight: 800; font-size: .78rem; letter-spacing: .16em; }
body:not(.espace) small, body:not(.espace) .meta, body:not(.espace) .carte-fiche .pied { font-weight: 600; }
body:not(.espace) .carte-fiche p, body:not(.espace) .carte-actu p { font-size: .93rem; color: #3F4D43; }
body:not(.espace) .carte-fiche h3 { font-weight: 700; }

/* Domaines de la résilience : tuiles qui s'adaptent à la largeur */
.domaines-grille { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.domaine { padding-right: 14px; }
.domaine-texte b { padding-right: 22px; font-size: .96rem; font-weight: 800; }
/* Domaines : bandeau d'introduction horizontal puis 4 tuiles par ligne */
.domaines { grid-template-columns: 1fr; gap: 22px; }
.domaines-intro { position: relative; top: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto; align-items: center; gap: 28px; padding: 30px 34px; }
.domaines-intro h2 { margin: 10px 0 8px; }
.domaines-intro p { margin: 0; max-width: 560px; }
.domaines-chiffres { margin: 0; grid-template-columns: 130px 150px; }
.domaines-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .domaines-intro { grid-template-columns: 1fr; gap: 18px; } .domaines-chiffres { grid-template-columns: 1fr 1fr; max-width: 360px; } .domaines-intro .btn-or { justify-self: start; } .domaines-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .domaines-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .domaines-grille { grid-template-columns: 1fr; } }

/* Lisibilité : plus de texte justifié/césuré dans les cartes de l'accueil et des listes */
.carte-actu p, .carte-media-corps b { text-align: left; -webkit-hyphens: none; hyphens: none; }
.pied p { color: #D2E2D5; }
.pied a { color: #E6EFE8; }
.domaine-fleche { display: none; }
.domaine-texte b { padding-right: 18px; }
@media (max-width: 560px) {
    .domaines-grille { grid-template-columns: 1fr 1fr; gap: 10px; }
    .domaine { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px 12px 14px 14px; }
    .domaine-ico { flex-basis: auto; width: 40px; height: 40px; border-radius: 12px; }
    .domaine-ico .ico { width: 20px; height: 20px; }
    .domaine-texte b { font-size: .86rem; padding-right: 0; }
    .domaine-texte small { font-size: .7rem; }
}

/* =====================================================================
   v3.12.4 — Espacements resserrés partout + textes d'introduction en gras
   ===================================================================== */
.section { padding: 56px 0; }
.section-serree { padding: 40px 0; }
.section + .section:not(.section-or):not(.section-nuit):not(.bande-ia) { padding-top: 28px; }
.section-or + .section, .section + .section-or, .section-nuit + .section, .section + .section-nuit, .bande-ia, .section + .bande-ia { padding-top: 56px; }
.titre-section { margin-bottom: 26px; gap: 20px; }
.titre-section h2 { margin-bottom: 0; }
.titre-section p { margin-top: 6px; }
.tete-page { padding: 40px 0 64px; }
.tete-page.tete-compacte { padding: 32px 0 58px; }
.fil { margin-bottom: 12px; }
main > .tete-page + .section { padding-top: 36px; }
.motif-cilss::before { background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, 0) 92%, #fff 100%); }

/* Textes d'introduction en gras, bien lisibles */
body:not(.espace) .titre-section p { font-weight: 650; color: #1F2A22; font-size: 1.04rem; }
body:not(.espace) .section-or .titre-section p, body:not(.espace) .section-nuit .titre-section p { color: inherit; }
body:not(.espace) .tete-page p { font-weight: 600; }
/* Chiffres et légendes (pays membres, fiches publiées…) */
.chiffre-carte span, .stats-carte span, .resume-carte span, .compteurs-carte span { font-weight: 700; color: #2B3A30; }
.pays-ligne small, .pays-ligne .doux { font-weight: 700; color: #3F4D43; }
.pays-ligne b, .pays-ligne strong { font-weight: 800; }
.carte-fiche .pied, .carte-fiche .pied span { font-weight: 700; color: #3F4D43; }
.domaines-chiffres span { font-weight: 700; }

@media (max-width: 900px) {
    .section { padding: 40px 0; }
    .section + .section:not(.section-or):not(.section-nuit):not(.bande-ia) { padding-top: 20px; }
    .section-serree { padding: 30px 0; }
    .titre-section { margin-bottom: 20px; }
    .tete-page { padding: 30px 0 56px; }
}
.puce-pays b { font-weight: 800; color: #0F1F07; }
.puce-pays small { font-weight: 700; color: #3F4D43; }
.cadre-carte-pied span, .cadre-carte-pied small { font-weight: 700; color: #2B3A30; }
.liste-pays { gap: 10px; }
.puce-pays { padding-top: 12px; padding-bottom: 12px; }

/* =====================================================================
   v3.13 — Formulaires en une seule colonne pleine largeur, éditeur complet
   ===================================================================== */
.form-plein { display: grid; gap: 20px; max-width: 1080px; }
.form-plein > .carte, form.form-plein { width: 100%; }
.form-plein .carte-corps { display: grid; gap: 16px; }
.form-plein .carte-corps > .champ, .form-plein .carte-corps > .case { margin: 0; }
.form-plein .legende-requis { margin: 0; }
.grille-3-champs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grille-2-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grille-3-champs, .grille-2-champs { grid-template-columns: 1fr; } }
.ligne-image-actu .bloc-image-actu { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 20px; align-items: start; }
.ligne-image-actu .bloc-image-actu .champ-titre { grid-column: 1 / -1; }
.ligne-image-actu .apercu-actu { grid-row: 2 / 4; }
@media (max-width: 700px) { .ligne-image-actu .bloc-image-actu { grid-template-columns: 1fr; } .ligne-image-actu .apercu-actu { grid-row: auto; } }
/* Éditeur complet */
.editeur-zone h3 { font-family: var(--serif); font-size: 1.2rem; margin: 14px 0 6px; color: #0F1F07; }
.editeur-zone a { color: #155E00; text-decoration: underline; }
.editeur-outils .bouton-texte { width: auto; padding: 0 10px; font-weight: 800; font-size: .8rem; }
.editeur-complet .editeur-zone { min-height: 320px; }
.texte-riche h3, .prose h3 { font-family: var(--serif); margin: 18px 0 8px; }
/* Choix de visibilité en cartes + invités */
.choix-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.choix-cartes legend { grid-column: 1 / -1; margin-bottom: 8px; font-weight: 700; font-size: .9rem; color: var(--nuit); }
.choix-cartes .choix-carte { position: relative; }
.choix-carte input:checked + span { border-color: #155E00; background: #F2F9EF; box-shadow: 0 0 0 3px rgba(21, 94, 0, .12); }
.choix-carte > span b { color: #0F1F07; }
.choix-carte > span small { color: #46554B; }
@media (max-width: 640px) { .choix-cartes { grid-template-columns: 1fr; } }
.bloc-invites { padding: 16px; border-radius: 14px; background: #FFFBEA; border: 1px solid #F5E3A0; display: grid; gap: 8px; }
.bloc-invites .champ { margin: 0; }
.editeur-complet .editeur-zone { max-height: 70vh; }
.liste-docs-reunion { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste-docs-reunion li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--ligne); border-radius: 10px; background: #fff; }
.liste-docs-reunion li > a:first-of-type { flex: 1; font-weight: 700; }
.fichiers-existants li { display: flex; align-items: center; gap: 10px; }
.fichiers-existants .case { margin-left: auto; }
.grille-4-champs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grille-4-champs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grille-4-champs { grid-template-columns: 1fr; } }
.form-fiche .choix-multiples { display: flex; flex-wrap: wrap; gap: 8px; }
.form-fiche .rubrique-form { padding-left: 24px; padding-right: 24px; }
.form-plein > .alerte { margin: 0; }
/* Pages de détail et formulaires empilés : une seule colonne pleine largeur */
.pile-details, .pile-colonne { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.pile-colonne > [style*="position:sticky"], .pile-colonne > [style*="position: sticky"] { position: static !important; }
/* Journal d'audit : filtres alignés sur une grille régulière */
.filtres-audit { display: grid !important; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.filtres-audit .champ { margin: 0; min-width: 0; }
.filtres-audit .champ > span { display: block; min-height: 1.3em; }
.filtres-audit input, .filtres-audit select, .filtres-audit .select2-container { width: 100% !important; }
@media (max-width: 1300px) { .filtres-audit { grid-template-columns: repeat(4, minmax(0, 1fr)); } .filtres-audit .champ.large { grid-column: span 2; } }
@media (max-width: 700px) { .filtres-audit { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   v3.13 — Connexion : panneau vert pleine hauteur, charte CILSS
   ===================================================================== */
.page-auth { background: #fff; }
@media (min-width: 981px) { .page-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.auth-visuel { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; gap: 24px; justify-content: space-between; padding: clamp(28px, 4vh, 48px) clamp(28px, 4vw, 60px);
    background: radial-gradient(70% 60% at 100% 0%, rgba(108, 198, 63, .25), transparent 60%), linear-gradient(160deg, #155E00 0%, #0E3B00 60%, #0A2A00 100%); }
.auth-visuel.fond-carreaux::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23F2C022' stroke-width='1.2' stroke-opacity='.10'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 56px 56px; opacity: 1; }
.auth-visuel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #F2C022, #6CC63F 50%, #F2C022); z-index: 2; }
.auth-visuel > * { position: relative; z-index: 1; }
.auth-visuel .marque small { color: #F2C022 !important; }
.auth-visuel .auth-milieu { display: flex; flex-direction: column; gap: 18px; min-height: 0; flex: 1; justify-content: center; }
.auth-visuel .carte-sahel { margin: 0; max-height: 30vh; display: flex; justify-content: center; overflow: hidden; }
.auth-visuel .carte-sahel svg { max-height: 30vh; width: auto; max-width: 100%; height: auto; }
.auth-citation { margin: 0; padding: 4px 0 4px 18px; border-left: 4px solid #F2C022; font-family: var(--serif); font-weight: 700; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.22; color: #fff; quotes: none; }
.auth-intro { margin: 0; color: #fff !important; opacity: .9; font-weight: 500; max-width: 520px; }
.auth-atouts li { background: rgba(255, 255, 255, .07); border-color: rgba(242, 192, 34, .22); }
.auth-atouts .ico { color: #F2C022; }
.auth-atouts span { color: #D3E6D7; }
.auth-pied { color: #C6DCCB; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; }

.auth-form { background: #fff; }
.auth-form.fond-carreaux::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23DDB216' stroke-width='1.2' stroke-opacity='.13'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 56px 56px; opacity: 1; }
.auth-form .boite-auth { border: 0; box-shadow: 0 30px 70px -40px rgba(14, 59, 0, .55), 0 0 0 1px rgba(14, 59, 0, .08); }
.auth-form .boite-auth::before { left: 0; right: 0; top: 0; height: 5px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, #155E00, #6CC63F 55%, #F2C022); }
.auth-form .ico-auth { background: #FFF6D6; color: #8F6200; border: 1px solid #F5DE8E; }
.auth-form .ico-auth.bleu { background: #EAF5E5; color: #155E00; border-color: #CFE8C5; }
.auth-form h1 { color: #0F1F07; }
.auth-form .sous-titre { color: #3F4D43; font-weight: 500; }
.auth-form .champ > span, .auth-form label > span { font-weight: 700; color: #0F1F07; }
.auth-form .btn:not(.btn-ligne) { background: #155E00; border-color: #155E00; }
.auth-form .btn:not(.btn-ligne):hover { background: #0E3B00; }
.auth-mentions { font-weight: 500; }
@media (max-width: 980px) { .page-auth { grid-template-columns: 1fr; } .auth-visuel { display: none; } }
.auth-citation { text-align: left; -webkit-hyphens: none; hyphens: none; }

/* v3.13.1 — Emblème des pages de connexion (logo dans un anneau vert-or + pastille d'action) */
.embleme-auth { position: relative; width: 78px; height: 78px; margin: 4px 0 20px; }
.embleme-logo { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: #fff; padding: 7px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #F2C022, 0 0 0 9px rgba(21, 94, 0, .14), 0 18px 34px -16px rgba(14, 59, 0, .55); }
.embleme-logo img { width: 100%; height: 100%; object-fit: contain; }
.embleme-pastille { position: absolute; right: -8px; bottom: -6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(145deg, #1E7A0A, #0E3B00); color: #F2C022; border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(14, 59, 0, .8); }
.embleme-pastille .ico { width: 16px; height: 16px; }
@media (max-width: 980px) { .auth-marque-mobile img { display: none; } }
/* Emblème, titre et sous-titre centrés */
.embleme-auth { margin: 8px auto 22px; }
.auth-form .embleme-auth ~ h1, .auth-form .embleme-auth + h1 { text-align: center; }
.auth-form .embleme-auth ~ h1 + .sous-titre, .auth-form .embleme-auth ~ .sous-titre { text-align: center; }

/* v3.13.2 — Médiathèque : aperçu de la vidéo et lecture dans la carte */
.carte-media-apercu { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; background: #0E3B00; }
.carte-media:hover .carte-media-apercu { transform: scale(1.04); transition: transform .5s var(--ease); }
button.carte-media-play { border: 0; background: transparent; cursor: pointer; padding: 0; }
.carte-media-play:focus-visible .ico { outline: 3px solid #F2C022; outline-offset: 3px; }
.carte-media-visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 35%, transparent 65%, rgba(0, 0, 0, .35)); pointer-events: none; }
.carte-media.en-lecture .carte-media-visuel::after, .carte-media.en-lecture .carte-media-type, .carte-media.en-lecture .carte-media-duree { display: none; }
.carte-media-lecteur { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 3; }
audio.carte-media-lecteur { inset: auto 10px 10px 10px; width: calc(100% - 20px); height: 44px; background: transparent; }
.carte-media.en-lecture:hover { transform: none; }
a.carte-media-corps { color: var(--nuit); text-decoration: none; }
a.carte-media-corps:hover b { color: #155E00; }

/* v3.13.3 — Connexion : carte des pays dans un panneau soigné */
.auth-visuel .auth-milieu { gap: 20px; }
.auth-carte { margin: 0; padding: 16px 18px 14px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
    border: 1px solid rgba(242, 192, 34, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -36px rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
.auth-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.auth-carte-tete span { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; color: #fff; letter-spacing: .01em; }
.auth-carte-tete span .ico { width: 18px; height: 18px; color: #F2C022; }
.auth-carte-tete small { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: rgba(242, 192, 34, .14); color: #FAD866; font-weight: 700; font-size: .74rem; }
.auth-point { width: 8px; height: 8px; border-radius: 50%; background: #F2C022; box-shadow: 0 0 0 3px rgba(242, 192, 34, .3); }
.auth-visuel .auth-carte .carte-sahel { max-height: none; height: clamp(150px, 30vh, 330px); display: block; overflow: visible; }
.auth-visuel .auth-carte .carte-sahel svg { width: 100%; height: 100%; max-height: none; max-width: none; overflow: visible; }
.auth-carte .carte-sahel .voisin { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .10); }
.auth-carte .carte-sahel .membre { fill: rgba(108, 198, 63, .34); stroke: #CDEBAA; stroke-width: 1.3; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.auth-carte .carte-sahel .point { fill: #F2C022; stroke: #fff; }
.auth-carte .carte-sahel .halo { fill: #F2C022; }
.auth-carte .carte-sahel .siege { fill: #fff; stroke: #F2C022; stroke-width: 3; }
.auth-carte .carte-sahel .etiquette { font-size: 15px; stroke: rgba(10, 42, 0, .85); }
.auth-drapeaux { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 6px; }
.auth-drapeaux li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .74rem; font-weight: 700; }
.auth-drapeaux .drapeau-img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.auth-visuel .auth-atouts { display: none; }
@media (max-height: 700px) { .auth-drapeaux { display: none; } .auth-visuel .auth-carte .carte-sahel { height: clamp(120px, 26vh, 220px); } }

/* =====================================================================
   v3.13.3 — Listes de choix (Select2) : design unifié dans tous les formulaires
   ===================================================================== */
.select2-container { font-size: .95rem; }
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple {
    min-height: 48px; border: 1.5px solid #D5DDD2; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.select2-container--default:hover .select2-selection { border-color: #A8C49E; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 45px; padding-left: 14px; padding-right: 58px; color: #1F2A22; font-weight: 500; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #7B887E; font-weight: 400; }
/* flèche : chevron dans une pastille */
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; right: 8px; width: 28px; height: 28px; margin-top: -14px; border-radius: 8px; background: #F2F6F0; transition: background .2s, transform .2s; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border: 0; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px; border-right: 2px solid #155E00; border-bottom: 2px solid #155E00; transform: rotate(45deg); }
.select2-container--open .select2-selection--single .select2-selection__arrow { background: #155E00; }
.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: #F2C022; transform: rotate(-135deg); margin-top: -2px; }
/* bouton « effacer » */
.select2-container--default .select2-selection--single .select2-selection__clear { position: absolute; right: 42px; top: 50%; transform: translateY(-50%); height: 22px; width: 22px; margin: 0; padding: 0; border-radius: 50%; background: #F1F3F1; color: #6B776D; font-size: 1rem; line-height: 21px; text-align: center; }
.select2-container--default .select2-selection--single .select2-selection__clear:hover { background: #FDE8E7; color: #D92D20; }
/* focus / ouverture */
.select2-container--focus .select2-selection, .select2-container--open .select2-selection { border-color: #155E00 !important; box-shadow: 0 0 0 4px rgba(21, 94, 0, .12); }
/* choix multiples : pastilles */
.select2-container--default .select2-selection--multiple { padding: 5px 10px 5px 8px; cursor: text; }
.select2-container--default .select2-selection--multiple .select2-selection__rendered { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; margin: 0; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px 4px 28px; border: 1px solid #CFE4C6; border-radius: 999px; background: #F2F9EF; color: #0F3B05; font-size: .84rem; font-weight: 700; max-width: 100%; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #155E00; font-size: .95rem; line-height: 1; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { background: #FDE8E7; color: #D92D20; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__display { padding: 0; }
.select2-container .select2-search--inline { flex: 1; min-width: 140px; }
.select2-container .select2-search--inline .select2-search__field { margin: 0; height: 30px; font-family: inherit; font-size: .92rem; width: 100% !important; }
.select2-container .select2-search--inline .select2-search__field::placeholder { color: #7B887E; }
/* menu déroulant */
.select2-dropdown { border: 0 !important; border-radius: 14px !important; background: #fff; box-shadow: 0 24px 50px -20px rgba(14, 59, 0, .45), 0 0 0 1px rgba(14, 59, 0, .08); overflow: hidden; z-index: 1100; animation: deroule .16s var(--ease); }
.select2-container--open .select2-dropdown--below { margin-top: 6px; }
.select2-container--open .select2-dropdown--above { margin-top: -6px; }
.select2-search--dropdown { padding: 10px 10px 6px; border-bottom: 1px solid #EEF2EC; }
.select2-search--dropdown .select2-search__field { min-height: 40px; padding: 6px 12px 6px 36px; border: 1.5px solid #D5DDD2 !important; border-radius: 10px; outline: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237B887E' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
.select2-search--dropdown .select2-search__field:focus { border-color: #155E00 !important; box-shadow: 0 0 0 3px rgba(21, 94, 0, .1); }
.select2-results__options { padding: 6px; }
.select2-container--default .select2-results > .select2-results__options { max-height: 300px; scrollbar-width: thin; }
.select2-results__option { position: relative; padding: 9px 34px 9px 12px; border-radius: 9px; font-size: .9rem; color: #1F2A22; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: #FFF6D6; color: #0F1F07; }
.select2-container--default .select2-results__option--selected { background: #F2F9EF; color: #0F3B05; font-weight: 700; }
.select2-container--default .select2-results__option--selected::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 11px; margin-top: -7px; border-right: 2px solid #155E00; border-bottom: 2px solid #155E00; transform: rotate(45deg); }
.select2-container--default .select2-results__group { padding: 10px 12px 6px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8F6200; }
.select2-container--default .select2-results__option .select2-results__option { padding-left: 14px; }
.select2-results__message { color: #6B776D; font-style: italic; }
/* options enrichies */
.s2-option { display: inline-flex; align-items: center; gap: 9px; }
.s2-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(145deg, #1E7A0A, #0E3B00); color: #F2C022; font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .02em; flex: none; }
.select2-selection__choice .s2-avatar { width: 18px; height: 18px; font-size: .55rem; }
.select2-selection__choice:has(.s2-avatar) { padding-left: 26px !important; }
.s2-point { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 0 3px rgba(0, 0, 0, .08); }
/* désactivé */
.select2-desactive .select2-selection { background: #F4F6F3 !important; opacity: .8; cursor: not-allowed; }
@media (max-width: 640px) { .select2-dropdown { border-radius: 12px !important; } .select2-container--default .select2-results > .select2-results__options { max-height: 46vh; } }
/* la recherche intégrée des choix multiples est un textarea : on neutralise le style des zones de texte */
.select2-container .select2-search--inline textarea.select2-search__field, .select2-container .select2-search--inline .select2-search__field { min-height: 0 !important; height: 30px !important; max-height: 30px; padding: 4px 2px !important; border: 0 !important; box-shadow: none !important; resize: none; overflow: hidden; background: transparent; line-height: 22px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { margin: -5px 0 0 -4px; }
.select2-container--open .select2-selection--single .select2-selection__arrow b { margin-top: -2px; margin-left: -4px; }
.select2-container--open .select2-selection--single .select2-selection__arrow { background: #FFF6D6; }
.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: #155E00; }
/* La liste native cachée par Select2 ne doit jamais apparaître ni capter les clics */
select.select2-hidden-accessible { pointer-events: none !important; opacity: 0 !important; }
.boite-carte-action { position: relative; display: flex; }
.boite-carte-action > .carte-bulletin { flex: 1; }
.carte-action-modifier { position: absolute; top: 12px; right: 12px; z-index: 2; background: #fff; }

/* v3.13.4 — Bouton de l'assistant (espace de travail) : plus discret et ne cache plus le contenu */
.contenu-espace { padding-bottom: 96px; }
.assistant-ia.compact { right: 18px; bottom: 18px; }
.assistant-ia.compact .assistant-bouton { padding: 4px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); opacity: .92; transition: opacity .2s, transform .2s; }
.assistant-ia.compact .assistant-bouton:hover, .assistant-ia.compact .assistant-bouton:focus-visible { opacity: 1; }
.assistant-ia.compact .assistant-bouton-ico { width: 40px; height: 40px; }
.assistant-ia.compact .assistant-bouton-ico .ico { width: 21px; height: 21px; }
/* pages de discussion (communautés, sujets) : le bouton passe au-dessus de la zone de saisie */
body:has(.mg-saisie) .assistant-ia.compact:not(.ouvert) { bottom: auto; top: 50%; right: 10px; transform: translateY(-50%); }
body:has(.mg-saisie) .assistant-ia.compact:not(.ouvert) .assistant-bouton { opacity: .75; }
@media (max-width: 640px) { body:has(.mg-saisie) .assistant-ia.compact:not(.ouvert) { display: none; } }
