/* ============================================================
   PNEE — Plateforme Numérique des Évaluations Environnementales
   Charte Officielle : République du Mali — MEADD
   Harmonisation : Design System PNEE & Portail Primature du Mali
   ============================================================ */

:root {
  /* Nuances Institutionnelles & Identité Applicative PNEE */
  --navy: #0F1F3D;              /* Bleu Nuit profond de la sidebar applicative (#0F1F3D) */
  --navy-dark: #0A1428;         /* Fond très sombre institutionnel */
  --navy-soft: #182C52;         /* Variante adoucie de la sidebar */
  --navy-card: #14213D;         /* Fond des cartes territoriales */

  /* Bleu Action officiel de l'Application (Boutons "+ Nouvelle étude" & Actions primaires) */
  --blue-app: #1E5FD9;          /* Bleu vif officiel extrait de l'application (#1E5FD9) */
  --blue-app-hover: #164BB0;    /* Hover bleu renforcé */
  --blue-app-active: #123C8C;   /* Active state */

  /* Couleurs issues du Sceau Officiel de la République du Mali */
  --seal-blue: #5EB1F2;         /* Bleu Ciel officiel du fond du Sceau (#5EB1F2) */
  --seal-blue-soft: #EBF5FE;    /* Teinte douce bleu ciel pour fonds d'icônes et badges */
  --seal-yellow: #EED11B;       /* Jaune Soleil radieux du Sceau du Mali (#EED11B) */

  /* Palette complémentaire & drapeaux */
  --blue: #1E5FD9;              /* Harmonisé sur le bleu applicatif */
  --blue-azure: #3D87E8;        /* Bleu azur d'accent intermédiaire */
  --blue-soft: #EEF4FD;         /* Fond très doux bleuté */
  --gold: #C89B3C;              /* Or républicain / dorure de prestige */
  --gold-hover: #D8AA49;
  --gold-soft: #FBF7EE;
  --green: #1F6F54;             /* Vert de l'Environnement et du drapeau */
  --green-soft: #E8F3EE;
  --red-flag: #D9381E;
  --bg: #F4F6FA;                /* Fond neutre clair identique à l'application (#F4F6FA) */
  --paper: #FFFFFF;
  --ink: #0F1F3D;
  --ink-soft: #4A5568;
  --line: #DCE3EC;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Légèreté d'arrondi : 6px à 8px (conforme à l'application et au Design System) */
  --radius: 4px;
  --radius-sm: 2px;

  /* Ombres Institutionnelles : Nettes, discrètes, pas de flou "nuageux" typique IA */
  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.08);
  --shadow: 0 1px 3px rgba(15, 31, 61, 0.1), 0 1px 2px rgba(15, 31, 61, 0.06);
  --shadow-lg: 0 4px 6px rgba(15, 31, 61, 0.1), 0 2px 4px rgba(15, 31, 61, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2.5px solid var(--blue-app); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---------- Buttons (Légèreté d'arrondi : 6px - Identiques à l'Application) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Bouton Bleu Applicatif Officiel (remplace le jaune pour parfaite cohérence avec l'application) */
.btn-primary,
.btn-blue,
.btn-gold {
  background: var(--blue-app);
  color: #FFFFFF;
  border-color: var(--blue-app);
  font-weight: 600;
  box-shadow: 0 4px 14px -2px rgba(30, 95, 217, 0.38);
}
.btn-primary:hover,
.btn-blue:hover,
.btn-gold:hover {
  background: var(--blue-app-hover);
  border-color: var(--blue-app-hover);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -4px rgba(30, 95, 217, 0.55);
  transform: translateY(-1px);
}
.btn-primary:active,
.btn-blue:active,
.btn-gold:active {
  background: var(--blue-app-active);
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--blue-app);
  border-color: var(--blue-app);
}
.btn-outline:hover {
  background: var(--blue-app);
  color: #fff;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--blue-app);
  border-color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-ghost { display: none; }

/* ============ BANDEAU SUPÉRIEUR GOUVERNEMENTAL ============ */
.top-ribbon {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
}
.top-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-ribbon-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mali-tricolor {
  display: inline-flex;
  height: 12px;
  width: 21px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.mali-green { flex: 1; background: #1F6F54; }
.mali-gold { flex: 1; background: #FCD116; }
.mali-red { flex: 1; background: #CE1126; }

.top-motto {
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}
.top-motto em {
  font-style: normal;
  color: var(--gold);
}
.top-ribbon-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .88;
}
.top-sep { opacity: .4; }



/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-seal-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-seal {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(20, 33, 61, 0.15));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .03em;
  color: var(--navy);
}
.brand-text em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--blue);
  font-weight: 600;
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 104px 0 0 0;
  z-index: 49;
  background: var(--paper);
  padding: 24px 28px;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
}
.mobile-nav.open { display: flex; }
.mobile-nav .btn { margin-top: 16px; }

#menuToggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
#menuToggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 84px 0 60px;
  overflow: hidden;
  background-color: var(--navy-dark);
  color: #fff;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(0.68) contrast(1.1);
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(13, 22, 41, 0.98) 0%,
    rgba(20, 33, 61, 0.94) 42%,
    rgba(20, 33, 61, 0.74) 75%,
    rgba(20, 33, 61, 0.52) 100%
  );
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  font-size: 0.88rem;
  color: var(--seal-yellow);
  font-weight: 700;
  margin: 0 0 18px;
  line-height: 1.45;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  max-width: 15ch;
  margin-bottom: 22px;
  color: #FFFFFF;
}
.hero-accent { color: var(--seal-blue); }
.hero-lede {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
  margin: 0 0 34px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* Audiences / Profils usagers (différenciés des boutons d'action) */
.hero-audiences {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audience-lead {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--seal-blue);
  opacity: .95;
}
.audience-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(94, 177, 242, 0.3);
  border-radius: 20px;
  padding: 5px 14px;
  backdrop-filter: blur(4px);
}
.audience-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal-yellow);
  box-shadow: 0 0 0 2px rgba(238, 209, 27, 0.35);
}


/* ============ STATS BAND (ÉLÉGANTE CARTE INSTITUTIONNELLE) ============ */
.stats-wrapper {
  position: relative;
  z-index: 10;
  margin-top: -38px;
  padding: 0;
}
.stats-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 3.5px solid var(--blue-app);
  box-shadow: 0 16px 36px -8px rgba(15, 31, 61, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 26px 32px 20px;
  position: relative;
  overflow: hidden;
}
.stats-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 220px;
  background-image: url("assets/topo-stats.svg");
  background-size: cover;
  background-position: right center;
  opacity: 0.06;
  pointer-events: none;
}
.stats-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 6px 14px;
}
.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(30, 95, 217, 0.08);
  border: 1px solid rgba(30, 95, 217, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-app);
  flex-shrink: 0;
  transition: transform .22s ease, background .22s ease;
}
.stat-item:hover .stat-icon-wrap {
  background: var(--blue-app);
  color: #FFFFFF;
  border-color: var(--blue-app);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(30, 95, 217, 0.35);
}
.stat-data {
  display: flex;
  flex-direction: column;
}
.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-suffix {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue-azure);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.35;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 46px;
  background: var(--line);
  flex-shrink: 0;
}

/* ============ SECTION HEAD ============ */
.section-head { max-width: 68ch; margin: 0 0 46px; position: relative; z-index: 1; }
.section-head-between {
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue-azure);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.25rem);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0;
  line-height: 1.6;
}
.section-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.2);
}

section { padding: 92px 0; }

/* Cartographic decorative shapes */
.regions, .etudes, .actualites {
  position: relative;
  overflow: hidden;
}
.carto-decor-bg {
  position: absolute;
  width: 380px;
  height: 380px;
  background-image: url("assets/decor-carto.svg");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
}
.decor-regions-top { top: -60px; right: -40px; }
.decor-etudes-right { top: -40px; left: -60px; transform: rotate(45deg); }

/* ============ REGIONS (TERRITOIRE DU MALI) ============ */
.region-explorer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Carte interactive avec la silhouette officielle du Mali */
.region-map {
  position: relative;
  background-color: #F1F4F8;
  background-image: url("assets/mali-map-contour.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 96% 96%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  height: 580px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-legend-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  z-index: 5;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--navy);
}
.legend-chip { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-river { background: var(--seal-blue); }
.dot-region { background: var(--blue-app); }
.dot-capital { background: #C89B3C; }


/* ============ NOEUDS CARTOGRAPHIQUES SIG RÉGALIEN ============ */
.region-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  z-index: 2;
  transition: transform .2s ease, z-index .2s ease, opacity .2s ease;
  white-space: nowrap;
}

/* Le point d'ancrage géographique précis (Pin Dot) */
.pin-dot-wrap {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-app);
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(14, 29, 56, 0.4);
  transition: all .2s ease;
}
.pin-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(30, 95, 217, 0.35);
  transform: scale(0.8);
  opacity: 0;
  transition: all .25s ease;
}

/* Label cartographique épuré & moderne */
.pin-label-pill {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  color: #0E1D38;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(30, 95, 217, 0.22);
  border-radius: 14px;
  padding: 2.5px 8px;
  box-shadow: 0 2px 6px rgba(14, 29, 56, 0.08);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Capitale Bamako distincte avec étoile dorée */
.is-capital .pin-dot {
  background: #C89B3C;
  border-color: #FFFFFF;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 2px rgba(200, 155, 60, 0.4);
}
.is-capital .capital-badge {
  color: #C89B3C;
  font-weight: 800;
  margin-right: 2px;
}
.is-capital .pin-label-pill {
  border-color: rgba(200, 155, 60, 0.45);
  font-weight: 800;
}

/* Alignements directionnels pour éliminer les chevauchements */
.region-node.pos-right {
  flex-direction: row;
}
.region-node.pos-right .pin-label-pill {
  margin-left: 6px;
}

.region-node.pos-left {
  flex-direction: row-reverse;
}
.region-node.pos-left .pin-label-pill {
  margin-right: 6px;
}

.region-node.pos-top {
  flex-direction: column-reverse;
}
.region-node.pos-top .pin-label-pill {
  margin-bottom: 5px;
}

.region-node.pos-bottom {
  flex-direction: column;
}
.region-node.pos-bottom .pin-label-pill {
  margin-top: 5px;
}

/* États Survol / Focus / Actif */
.region-node:hover,
.region-node:focus-visible,
.region-node.active {
  z-index: 10;
  transform: translate(-50%, -50%) scale(1.08);
}
.region-node:hover .pin-dot,
.region-node:focus-visible .pin-dot,
.region-node.active .pin-dot {
  background: var(--blue-app);
  transform: scale(1.3);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(30, 95, 217, 0.35);
}
.region-node:hover .pin-pulse,
.region-node:focus-visible .pin-pulse,
.region-node.active .pin-pulse {
  transform: scale(1.8);
  opacity: 1;
  animation: radarPulse 1.8s infinite ease-out;
}
@keyframes radarPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

.region-node:hover .pin-label-pill,
.region-node:focus-visible .pin-label-pill,
.region-node.active .pin-label-pill {
  background: var(--blue-app);
  color: #FFFFFF;
  border-color: var(--blue-app);
  box-shadow: 0 4px 14px rgba(30, 95, 217, 0.45);
}
.region-node.active.is-capital .pin-label-pill {
  background: #0E1D38;
  color: #FCD116;
  border-color: #C89B3C;
}

/* Panneau d'information régional riche (Fond Navy Institutionnel) */
.region-panel {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: #FFFFFF;
  border: 1.5px solid var(--navy-soft);
  border-top: 4px solid var(--blue-app);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.panel-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--seal-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.badge-icon-dr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--seal-blue);
  flex-shrink: 0;
}
.badge-icon-dr svg {
  display: block;
}
.region-panel-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px;
}
.region-panel h3 {
  font-size: 2.1rem;
  color: #FFFFFF;
  margin-bottom: 22px;
  letter-spacing: .02em;
}

.region-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.fact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(94, 177, 242, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.fact-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #FFFFFF;
  font-weight: 700;
}
.fact-zone {
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--seal-yellow);
  font-weight: 600;
}

.region-dr-block {
  background: rgba(30, 95, 217, 0.15);
  border-left: 3.5px solid var(--seal-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin-bottom: 26px;
}
.dr-title {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--seal-blue);
  margin-bottom: 4px;
}
.dr-name {
  display: block;
  font-size: 1.1rem;
  color: #FFFFFF;
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.dr-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.45;
}

.panel-action-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.region-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

/* ============ FILTRES TERRITORIAUX RÉGALIENS (SIG) ============ */
.region-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.reg-filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: var(--shadow-sm);
}
.reg-filter-btn:hover {
  border-color: var(--blue-app);
  color: var(--blue-app);
}
.reg-filter-btn.active {
  background: var(--blue-app);
  border-color: var(--blue-app);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(30, 95, 217, 0.3);
}

/* ============ ÉTUDES (RÉFÉRENTIEL DES 5 PROCÉDURES) ============ */
.etude-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.etude-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
.etude-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.etude-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.1);
  transform: translateY(-2px);
}
.etude-card:focus-within {
  outline: 3px solid var(--seal-blue);
}
.etude-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.etude-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.etude-card:hover .etude-thumb img {
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.05);
}
.etude-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 33, 61, 0.15) 0%,
    rgba(20, 33, 61, 0.65) 100%
  );
  mix-blend-mode: multiply;
}
.etude-thumb::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 100%);
}
.etude-law-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 31, 61, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  letter-spacing: .02em;
}
.etude-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.etude-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.etude-card h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--navy);
}
.etude-delay-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(31, 111, 84, 0.25);
  padding: 2px 7px;
  border-radius: 12px;
}
.etude-full {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.35;
}
.etude-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.5;
  flex-grow: 1;
}
.etude-footer-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.etude-auth {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.etude-issued {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}

/* ============ PARCOURS / TIMELINE ============ */
.parcours {
  position: relative;
  background-color: var(--green-soft);
  background-image: url("assets/topo-parcours.svg");
  background-repeat: repeat;
  background-size: 580px auto;
  overflow: hidden;
}
.timeline {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.timeline li {
  position: relative;
  padding: 0 18px 0 0;
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(100% - 10px);
  width: calc(100% - 16px);
  height: 1.5px;
  background: var(--green);
  opacity: .4;
}
.timeline-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px -2px rgba(20, 33, 61, 0.25);
  border: 1.5px solid #fff;
}
.timeline h3 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; max-width: 26ch; line-height: 1.5; }

/* ============ ACTUALITÉS & COMMUNIQUÉS ============ */
.actualites {
  background: #FFFFFF;
}

.actu-slider-wrapper { position: relative; }

/* Flèches de navigation globales (Desktop : côte à côte en haut à droite) */
.slider-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(30, 95, 217, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-app); cursor: pointer; transition: all 0.2s ease;
  z-index: 10;
  position: absolute;
  top: -80px; /* Aligné avec le titre de la section */
}
.slider-arrow:hover {
  background: var(--blue-app);
  color: #FFF;
  border-color: var(--blue-app);
  box-shadow: 0 6px 16px rgba(30, 95, 217, 0.2);
}
.slider-arrow.prev { right: 54px; }
.slider-arrow.next { right: 0; }

.actu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.actu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.actu-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-azure);
  box-shadow: var(--shadow);
}
.actu-media {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  background-color: var(--navy);
}
.actu-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.actu-card:hover .actu-media img {
  transform: scale(1.05);
}
.actu-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.tag-primary { background: var(--navy); }
.tag-gold { background: var(--gold); color: var(--navy); }
.tag-green { background: var(--green); }

.actu-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.actu-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 10px;
}
.actu-body h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--navy);
}
.actu-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}
.actu-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: color .18s ease;
}
.actu-link:hover { color: var(--gold); }

/* ============ BANDEAU COMMUNIQUÉS (IMAGE DE FOND + OVERLAY COULEUR + ICÔNE 3D BENTO) ============ */
.communique-banner {
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 340px 1fr;
  box-shadow: var(--shadow);
  border: 1px solid var(--navy-soft);
}
.communique-title-block {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 26px;
}
.communique-title-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.communique-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) contrast(1.1);
  transform: scale(1.04);
}
/* Couleur d'opacité de couverture sur l'image de fond (Haute lisibilité, Contraste certifié) */
.communique-title-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,
    rgba(14, 23, 43, 0.94) 0%,
    rgba(20, 33, 61, 0.91) 60%,
    rgba(30, 51, 87, 0.88) 100%
  );
}
.communique-title-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #FFFFFF;
}
/* Icône vectorielle épurée, noble et institutionnelle (Sceau / Actes officiels) */
.communique-icon-clean {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(30, 95, 217, 0.18);
  border: 1.5px solid var(--seal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--seal-blue);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform .25s ease, background-color .25s ease;
}
.communique-banner:hover .communique-icon-clean {
  transform: translateY(-3px) scale(1.05);
  background: var(--blue-app);
  border-color: var(--blue-app);
  color: #FFFFFF;
}

.communique-title-head {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: .01em;
}
.communique-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--seal-blue);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.communique-list {
  padding: 22px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
}
.communique-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.communique-item:last-child { border-bottom: none; }
.communique-item:hover {
  background: rgba(30, 95, 217, 0.18);
  color: var(--seal-blue);
}
.communique-arrow { color: var(--seal-blue); font-weight: bold; }
.communique-text { flex-grow: 1; }
.communique-date {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  background: var(--navy-dark);
  padding: 78px 0;
  overflow: hidden;
  border-top: 3px solid var(--blue-app);
}
.cta-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.6) contrast(1.15);
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(13, 22, 41, 0.96) 0%,
    rgba(20, 33, 61, 0.9) 50%,
    rgba(30, 51, 87, 0.86) 100%
  );
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  font-size: 1.95rem;
  margin-bottom: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  font-size: 1.05rem;
  max-width: 48ch;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ FOOTER (PORTAIL GOUVERNEMENTAL) ============ */
.site-footer {
  background: #0B1323;
  color: rgba(255, 255, 255, 0.85);
  padding: 68px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-seal-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
/* ============ SCHÉMA STATIQUE DES ÉTUDES (Ancien Orbit, Rendu Sober) ============ */
.orbit-field {
  position: relative;
  width: 420px;
  height: 420px;
  max-width: 100%;
  margin: 0 auto;
}
.orbit-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.orbit-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1px;
}
.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 120px;
  height: 120px;
  background: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--seal-blue);
  color: #FFF;
  text-align: center;
  padding: 10px;
}
.orbit-core-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.orbit-core-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.35;
  color: #FFF;
}
.orbit-node {
  position: absolute;
  z-index: 5;
  width: 70px;
  height: 70px;
  background: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translate(-50%, -50%);
}
.orbit-node span { display: block; }
/* Placement régulier pour 5 bulles (Pentagone régulier, R = 33.333% autour du centre 50%, 50%) */
.orbit-node.n1 { top: 16.67%; left: 50%; border: 2.5px solid var(--blue-app); color: var(--blue-app); }
.orbit-node.n2 { top: 39.7%; left: 81.7%; border: 2.5px solid var(--seal-yellow); color: var(--navy); }
.orbit-node.n3 { top: 77.0%; left: 69.6%; border: 2.5px solid var(--gold); color: var(--navy); }
.orbit-node.n4 { top: 77.0%; left: 30.4%; border: 2.5px solid var(--green); color: var(--green); }
.orbit-node.n5 { top: 39.7%; left: 18.3%; border: 2.5px solid var(--seal-blue); color: var(--navy); }
.footer-seal-block strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  display: block;
}
.footer-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 2px 0 0;
}
.footer-mission {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--seal-blue);
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 0.88rem;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}
.footer-col a:hover {
  color: var(--seal-blue);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-sep { opacity: .4; }
.mali-motto-gold {
  color: var(--seal-yellow);
  font-weight: 700;
  letter-spacing: .06em;
}

/* ============ MODAL ACTUALITÉS (UX READING) ============ */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.article-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(8px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.article-modal.open .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--navy);
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.12); }
.modal-content-wrap {
  padding: 40px 32px 24px;
  overflow-y: auto;
  flex-grow: 1;
}
.modal-content-wrap img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 20px; }
.modal-content-wrap h3 { font-size: 1.6rem; margin-bottom: 12px; }
.modal-content-wrap p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin-bottom: 16px; }
.modal-nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.modal-nav-btn {
  background: transparent;
  border: none;
  color: var(--blue-app);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}
.modal-nav-btn:hover { color: var(--gold); }
.modal-nav-btn:disabled { color: var(--ink-soft); opacity: 0.4; cursor: not-allowed; }

/* ============ RESPONSIVE & MOBILE FIRST ADAPTATIONS ============ */
@media (max-width: 980px) {
  .top-ribbon-right { display: none; }
  .main-nav { display: none; }
  #menuToggle { display: flex; }
  .mobile-nav { inset: 76px 0 0 0; }
  .hero { padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-bg-img { object-position: center; }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(10, 20, 40, 0.94) 0%,
      rgba(15, 31, 61, 0.97) 100%
    );
  }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-copy h1 { margin-left: auto; margin-right: auto; max-width: 800px; }
  .hero-lede { margin-left: auto; margin-right: auto; max-width: 700px; }
  .hero-actions { justify-content: center; }
  .audience-tags { justify-content: center; }
  .hero-console-wrap { max-width: 540px; margin: 0 auto; width: 100%; }
  .gov-quick-access-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid { flex-wrap: wrap; gap: 20px; }
  .stat-item { flex: 1 1 40%; min-width: 220px; }
  .stat-divider { display: none; }
  .region-explorer { grid-template-columns: 1fr; }
  .region-map { height: 440px; }
  .etude-grid { grid-template-columns: repeat(2, 1fr); }
  .etude-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .timeline li:not(:last-child)::after { display: none; }
  .actu-grid { grid-template-columns: 1fr; }
  .communique-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top-ribbon { display: none; }
  .header-inner { height: 68px; }
  .mobile-nav { inset: 68px 0 0 0; }

  .brand-text strong { font-size: 1.1rem; }
  .brand-text em { display: none; }
  .brand-seal { width: 38px; height: 38px; }

  section { padding: 50px 0; }

  .hero { padding: 30px 0 60px; }
  .hero-grid { gap: 30px; }
  .hero-copy h1 { font-size: 1.85rem; max-width: 100%; margin-bottom: 16px; line-height: 1.25; padding: 0 10px; }
  .hero-lede { font-size: 1rem; margin-bottom: 24px; max-width: 100%; padding: 0 10px; }
  .hero-actions { flex-direction: column; width: 100%; gap: 12px; padding: 0 10px; }
  .hero-actions .btn { width: 100%; }

  .audience-tags { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
  .audience-tag { width: auto; justify-content: center; font-size: 0.75rem; padding: 6px 12px; }


  .stats-wrapper { margin-top: -30px; }
  .stats-card { padding: 24px 20px; }
  .stats-grid { flex-direction: column; align-items: stretch; gap: 24px; }
  .stat-item { padding: 0; align-items: center; text-align: center; flex-direction: column; gap: 12px; }
  .stat-icon-wrap { width: 48px; height: 48px; margin-bottom: 4px; }
  .stat-data { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
  .stat-num-row { justify-content: center; width: 100%; margin-bottom: 4px; }
  .stat-num { font-size: 2.2rem; }
  .stat-suffix { font-size: 0.95rem; }
  .stat-label { margin-top: 0; font-size: 0.9rem; }

  .section-head { margin-bottom: 32px; text-align: center; }
  .section-head h2 { font-size: 1.65rem; }
  .section-head-between { flex-direction: column; align-items: center; gap: 16px; text-align: center; }

  /* --- REGIONS : Transformation UX (Map -> Chips) --- */
  .region-explorer { display: flex; flex-direction: column; gap: 24px; }
  .region-map {
    height: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    justify-content: center;
  }
  .map-legend-overlay { display: none; }
  .region-node {
    position: static !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    font-size: 0.88rem !important;
    padding: 10px 18px !important;
    border-radius: 30px !important;
    background: #FFFFFF !important;
    border: 1.5px solid var(--line) !important;
    color: var(--navy) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
  }
  .region-node.active, .region-node:focus-visible {
    background: var(--blue-app) !important;
    color: #FFFFFF !important;
    border-color: var(--blue-app) !important;
    box-shadow: 0 4px 12px rgba(30, 95, 217, 0.4) !important;
  }
  .region-node .pin-dot-wrap { margin-right: 8px; }
  .region-node .pin-label-pill { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; color: inherit !important; }

  .region-panel { padding: 28px 20px; border-radius: 16px; text-align: center; }
  .region-panel-hint { font-size: 0; margin-bottom: 12px; }
  .region-panel-hint::after { content: "Région sélectionnée"; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--seal-blue); font-weight: 700; }
  .region-facts-grid { grid-template-columns: 1fr; gap: 12px; }

  /* --- ETUDES --- */
  .etude-grid { grid-template-columns: 1fr; gap: 20px; }
  .etude-thumb { height: 140px; } /* Moins haut sur mobile */

  /* --- TIMELINE : Verticale UX --- */
  .timeline { grid-template-columns: 1fr; row-gap: 0; padding-left: 20px; border-left: 2px solid rgba(31, 111, 84, 0.2); margin-left: 10px; }
  .timeline li { padding: 0 0 32px 24px; }
  .timeline li:last-child { padding-bottom: 0; border-left: 2px solid var(--green-soft); margin-left: -2px; } /* Cache la ligne de fin */
  .timeline-index { position: absolute; left: -23px; top: 0; width: 42px; height: 42px; margin-bottom: 0; font-size: 1rem; }
  .timeline h3 { margin-top: 8px; font-size: 1.25rem; }

  /* --- ACTUALITES & COMMUNIQUES --- */
  .actu-slider-wrapper {
    position: relative;
    margin-bottom: 32px;
  }
  .slider-arrow { top: 50%; width: 44px; height: 44px; transform: translateY(-50%); }
  .slider-arrow.prev { left: -10px; right: auto; }
  .slider-arrow.next { right: -10px; }
  .actu-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 16px;
    scrollbar-width: none; /* Firefox */
  }
  .actu-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }


  .actu-card { flex: 0 0 85%; scroll-snap-align: center; }
  .actu-media { height: 160px; }

  .communique-title-block { min-height: 160px; padding: 24px 20px; text-align: center; align-items: center; }
  .communique-list { padding: 12px; }
  .communique-item { flex-direction: row; align-items: center; gap: 12px; padding: 14px 10px; }
  .communique-arrow { display: block; opacity: 0.5; }
  .communique-date { opacity: 0.8; font-size: 0.7rem; }

  /* --- FOOTER & CTA --- */
  .cta-inner { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .cta-band h2 { font-size: 1.7rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }

  /* --- MODAL MOBILE --- */
  .modal-dialog { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; transform: translateY(40px); }
  .modal-content-wrap { padding: 50px 20px 24px; }
  .modal-nav { padding: 20px 20px 32px; border-radius: 0; }
  .modal-close { top: 12px; right: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; text-align: center; }
  .footer-seal-block { flex-direction: column; gap: 12px; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .footer-bottom-left { flex-direction: column; align-items: center; gap: 8px; }
  .footer-sep { display: none; }
}

/* ============ ANIMATIONS AU SCROLL IMMERSIVES ============ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrolling sur l'ensemble de la page */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

/* Indicateur de lien actif dans la barre de navigation */
.main-nav a.nav-active {
  color: var(--blue-app);
}
.main-nav a.nav-active::after {
  width: 100%;
  background: var(--blue-app);
}

.footer-seal { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
