/* ============================================================
   population.css — Région Anosy
   Fichier  : assets/css/region-anosy/population.css
   Version  : 1.0.2 — HERO HARMONISÉ (banner + breadcrumb pill)
   Date     : 2026-05-14
   Périmètre: Page population complète — autonome et indépendant
              de histoire-culture.css et geographie.css
   Auteur   : TAKALOU SARL | Partenaire : SMGC Company

   ────────────────────────────────────────────────────────────
   v1.0.2 — Harmonisation hero sur le reste du portail
   ────────────────────────────────────────────────────────────
   Mêmes corrections que celles déjà appliquées à
   region-anosy/geographie.css v1.0.3 :

   1) BANNIÈRE — alignement vertical sur presentation.css :
      .hc-banner :
        • min-height           : 340px      (au lieu de 480px)
        • background-position  : center 30% (au lieu de center)
        • isolation: isolate ajouté

      .hc-banner__inner :
        • padding              : 2rem 2rem 3.75rem
                                 (au lieu de 3rem 2rem 2.5rem)

      Paliers responsives (mêmes valeurs que presentation.css) :
        • ≤ 768 : min-height 260px · padding 1.5rem 1.25rem 3rem
                  + background-position: center 40%
                  + subtitle masqué
        • ≤ 600 : min-height 220px · padding 1.25rem 1rem 2.5rem
        • ≤ 480 : padding 1rem .9rem 2.2rem (Galaxy Fold)
                  + breadcrumb compact (icônes seulement)

   2) BREADCRUMB — style "pill" glassmorphism (inspiré
      tourisme/plages-cotes.css §8) :
        • __list : pill arrondi 999px, fond rgba(0,0,0,.28),
                   backdrop-blur 8px, bordure subtile, ombre.
                   display:inline-flex (ne span pas 100%).
        • __link : padding .2rem .4rem, border-radius 6px,
                   hover background rgba(255,255,255,.10).
                   focus-visible : outline gold pour a11y.
        • __sep  : opacité réduite, pointer-events:none.
        • __item--current : mini-pill blanc rgba(255,255,255,.12),
                            icône gold #e0c97f.

   ────────────────────────────────────────────────────────────
   CORRECTIFS v1.0.1 (par rapport à v1.0.0) — conservés
   ────────────────────────────────────────────────────────────
   MÊME BUG QUE geographie.css v1.0.0 :
   La combinaison `min-height: 220px` + `aspect-ratio: 16/9` sur
   .hc-people__img-wrap imposait une largeur minimale de
   220 × 16/9 ≈ 391 px, ce qui forçait la colonne CSS Grid `1fr`
   à dépasser la largeur du viewport sur mobile (≤440 px).

   La largeur excessive se propageait à .hc-people__body-col
   (même colonne grid), créant un débordement horizontal du
   contenu (titre, badges, textes des blocs, listes
   d'indicateurs, valeurs longues comme "42 %", "275 397", etc.).

   APPLIQUÉ ICI :
   1. Suppression du `min-height` mobile sur .hc-people__img-wrap
   2. Ajout de `min-width: 0` sur tous les grid items
   3. Ajout de `max-width: 100%` + `box-sizing: border-box`
      défensifs sur .hc-people et ses enfants en mobile
   4. Ajout de `overflow-wrap: break-word` sur les textes
   5. RENFORTS SPÉCIFIQUES POPULATION :
      • .pop-district-card__head : flex avec `min-width: 0` sur
        le titre pour éviter qu'un texte long pousse "42 %"
        hors viewport
      • .pop-indic-list__item : grid items avec min-width: 0
      • .pop-evolution-note__cols : protection des cartes 3-col
      • .pop-timeline__body : overflow-wrap sur textes
      • .pop-chart-table-wrap : overflow-x: auto renforcé
      • .pop-ruralite-note__item : sécurité flex
   ============================================================ */

/* ── Variables locales ───────────────────────────────────────── */
:root {
  --pop-gold:         #C8952A;
  --pop-gold-light:   #F5E6C2;
  --pop-green:        #2E7D32;
  --pop-green-light:  #C8E6C9;
  --pop-red:          #B71C1C;
  --pop-red-light:    #FFCDD2;
  --pop-sky:          #0284c7;
  --pop-sky-light:    #e0f2fe;
  --pop-neutral:      #455A64;
  --pop-bg:           #FAFAF8;
  --pop-radius:       10px;
  --pop-shadow:       0 4px 18px rgba(0,0,0,.10);
  --pop-shadow-hover: 0 8px 28px rgba(0,0,0,.14);
  --pop-transition:   .28s ease;
}

/* ═══════════════════════════════════════════════════════════════
   §1 — BANNIÈRE
   ───────────────────────────────────────────────────────────────
   v1.0.2 — Alignement vertical sur presentation.css :
     • min-height           : 340px (au lieu de 480px)
     • background-position  : center 30% (au lieu de center)
     • padding inner        : 2rem 2rem 3.75rem (au lieu de 3rem 2rem 2.5rem)
     • isolation: isolate ajouté pour stacking context propre
   → Distance nav-bar → breadcrumb identique à celle de
     region-anosy/presentation.php et region-anosy/geographie.php.
   ═══════════════════════════════════════════════════════════════ */
.hc-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, #0d1b2a 0%, #1b3a4b 60%, #2d6a4f 100%);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.hc-banner__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hc-banner__overlay--dark { background: rgba(0,0,0,.45); }
.hc-banner__overlay--grad {
  background: linear-gradient(to top,
    rgba(0,0,0,.70) 0%,
    rgba(0,0,0,.20) 55%,
    transparent 100%
  );
}
.hc-banner__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: .5;
}
.hc-banner__particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.phc-particle { fill: rgba(255,255,255,.18); }
.phc-particle--1 { animation: pop-float 6s   ease-in-out infinite;       }
.phc-particle--2 { animation: pop-float 8s   ease-in-out infinite 1s;    }
.phc-particle--3 { animation: pop-float 7s   ease-in-out infinite 2s;    }
.phc-particle--4 { animation: pop-float 9s   ease-in-out infinite .5s;   }
.phc-particle--5 { animation: pop-float 6.5s ease-in-out infinite 1.5s;  }
.phc-particle--6 { animation: pop-float 8.5s ease-in-out infinite 3s;    }
@keyframes pop-float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-8px);}
}
/* Inner — z-index 2 pour passer au-dessus des overlays
   v1.0.2 : padding aligné sur presentation.css (2rem haut, 3.75rem bas).
   Note : on ne passe PAS .hc-banner__inner en display:flex/gap car ses
   enfants (.hc-breadcrumb, .hc-banner__content) utilisent margin-bottom
   pour l'espacement vertical. Passer en flex+gap doublerait l'écart. */
.hc-banner__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 3.75rem;
}
/* Breadcrumb — v1.0.2 : style "pill" glassmorphism inspiré de plages-cotes.css
   ─────────────────────────────────────────────────────────────────────
   La liste devient un pill arrondi avec fond noir translucide + blur,
   chaque lien obtient un padding + hover-background, et la page actuelle
   reçoit son propre mini-pill blanc translucide. Accent gold sur l'icône
   de la page courante (cohérent avec le thème population gold/red/green). */
.hc-breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.hc-breadcrumb__list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  list-style: none;
  margin: 0;
  padding: .4rem 1rem;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.hc-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.hc-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  padding: .2rem .4rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color var(--pop-transition),
              background var(--pop-transition);
}
.hc-breadcrumb__link i { font-size: .65rem; }
.hc-breadcrumb__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .10);
}
.hc-breadcrumb__link:focus-visible {
  outline: 2px solid #e0c97f;   /* gold accent (cohérent population) */
  outline-offset: 2px;
}
.hc-breadcrumb__sep {
  color: rgba(255, 255, 255, .28);
  font-size: .50rem;
  pointer-events: none;
  user-select: none;
  padding: 0 .1rem;
}
.hc-breadcrumb__item--current {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  white-space: nowrap;
}
.hc-breadcrumb__item--current i {
  font-size: .65rem;
  color: #e0c97f;   /* gold accent — cohérent population */
}
/* Contenu bannière */
.hc-banner__content { max-width: 720px; }
.hc-banner__eyebrow {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #e0c97f; margin: 0 0 .7rem;
}
.hc-banner__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; color: #fff;
  line-height: 1.1; margin: 0 0 .9rem;
}
.hc-banner__title-accent { color: #e0c97f; }
.hc-banner__subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,.82);
  line-height: 1.6; margin: 0 0 1.2rem; max-width: 580px;
}
.hc-banner__pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.hc-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; white-space: nowrap;
  backdrop-filter: blur(4px);
}
.hc-pill--amber  { background: rgba(200,149,42,.22); color: #fde68a; border: 1.5px solid rgba(200,149,42,.4); }
.hc-pill--nature { background: rgba(46,125,50,.22);  color: #bbf7d0; border: 1.5px solid rgba(46,125,50,.4); }
.hc-pill--sea    { background: rgba(183,28,28,.22);  color: #fecaca; border: 1.5px solid rgba(183,28,28,.4); }
.hc-pill--sky    { background: rgba(2,132,199,.22);  color: #bae6fd; border: 1.5px solid rgba(2,132,199,.4); }
/* Vague */
.hc-banner__wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  pointer-events: none;
}
.hc-banner__wave svg { display: block; width: 100%; height: 60px; }

/* ═══════════════════════════════════════════════════════════════
   §2 — STRUCTURE GÉNÉRALE
   ═══════════════════════════════════════════════════════════════ */
.section          { padding: 4rem 0; }
.hc-section--nav  { padding: 3rem 0; }
.bg-white         { background: #ffffff; }
.bg-gray-50       { background: #f9fafb; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* Eyebrow */
.mc-eyebrow {
  display: flex; align-items: center;
  gap: .7rem; margin-bottom: .8rem;
}
.mc-eyebrow__line {
  flex: 1; max-width: 40px; height: 2px;
  background: var(--pop-gold); border-radius: 1px;
}
.mc-eyebrow__text {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--pop-gold);
}
/* Titres */
.mc-section-head        { margin-bottom: 2.5rem; }
.mc-section-head--center { text-align: center; }
.mc-section-head--center .mc-eyebrow { justify-content: center; }
.mc-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: #1a1a1a;
  line-height: 1.2; margin: 0 0 .8rem;
}
.mc-section-title--alt { color: var(--pop-gold); }
.mc-section-lead {
  font-size: 1rem; color: #555;
  line-height: 1.7; max-width: 680px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   §3 — INTRO GRID
   ═══════════════════════════════════════════════════════════════ */
.hc-intro-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}
.hc-intro__lead {
  font-size: 1.12rem; line-height: 1.75;
  color: #333; margin-bottom: 1rem;
}
.hc-intro__lead strong { color: var(--pop-gold); }
.hc-intro__body {
  font-size: .97rem; line-height: 1.72;
  color: #555; margin-bottom: 1.8rem;
}
.hc-intro__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.hc-intro-stat {
  background: #f4f4f2; border-radius: var(--pop-radius);
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--pop-gold);
  min-width: 0; /* v1.0.1 */
}
.hc-intro-stat__value {
  display: block; font-size: 1.6rem;
  font-weight: 900; color: var(--pop-gold);
  line-height: 1.1; margin-bottom: .2rem;
}
.hc-intro-stat__label { font-size: .8rem; color: #666; line-height: 1.4; }
/* Carte visuelle */
.hc-flacourt-card {
  border-radius: var(--pop-radius);
  overflow: hidden;
  box-shadow: var(--pop-shadow);
  background: #fff;
}
.hc-flacourt-card__img-wrap { position: relative; overflow: hidden; }
.hc-flacourt-card__img-wrap img { width: 100%; display: block; object-fit: cover; }
.hc-flacourt-card__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.45));
}
.hc-flacourt-card__year {
  position: absolute; bottom: .9rem; right: 1rem;
  font-size: 1.3rem; font-weight: 900;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5);
  letter-spacing: .05em;
}
.hc-flacourt-card__quote {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex; gap: .8rem; align-items: flex-start;
}
.hc-flacourt-card__quote-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pop-gold-light); color: var(--pop-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .9rem;
}
.hc-flacourt-card__quote blockquote {
  margin: 0; padding: 0;
  font-size: .88rem; line-height: 1.6;
  color: #444; font-style: italic;
}
.hc-flacourt-card__quote blockquote p { margin: 0 0 .4rem; }
.hc-flacourt-card__quote cite {
  font-size: .78rem; font-style: normal;
  font-weight: 600; color: var(--pop-gold);
}

/* ═══════════════════════════════════════════════════════════════
   §4 — RÉPARTITION PAR DISTRICT
   ═══════════════════════════════════════════════════════════════ */
.pop-districts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.pop-district-card {
  background: #fff;
  border-radius: var(--pop-radius);
  box-shadow: var(--pop-shadow);
  padding: 1.4rem 1.4rem 1.5rem;
  border-top: 4px solid var(--pop-gold);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease,
              box-shadow var(--pop-transition);
  min-width: 0; /* v1.0.1 : grid item peut shrink */
}
.pop-district-card.pop-district-card--visible {
  opacity: 1; transform: none;
}
.pop-district-card:hover { box-shadow: var(--pop-shadow-hover); }
.pop-district-card--amber  { border-top-color: var(--pop-gold);  }
.pop-district-card--sea    { border-top-color: var(--pop-red);   }
.pop-district-card--nature { border-top-color: var(--pop-green); }

.pop-district-card__head {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: .9rem;
}
.pop-district-card__emoji { font-size: 1.6rem; flex-shrink: 0; }
.pop-district-card__title {
  font-size: 1rem; font-weight: 800;
  color: #1a1a1a; margin: 0;
  flex: 1;
  min-width: 0; /* v1.0.1 : autorise le titre à wrapper si trop long */
  overflow-wrap: break-word; /* v1.0.1 */
}
.pop-district-card__ethnies {
  font-size: .76rem; color: #888; margin: .15rem 0 0;
  overflow-wrap: break-word; /* v1.0.1 */
}
.pop-district-card__part {
  font-size: 1.45rem; font-weight: 900;
  color: var(--pop-gold); white-space: nowrap;
  flex-shrink: 0;
}
.pop-district-card--sea    .pop-district-card__part { color: var(--pop-red);   }
.pop-district-card--nature .pop-district-card__part { color: var(--pop-green); }

/* Barre de proportion */
.pop-bar-wrap {
  height: 8px; background: #eee;
  border-radius: 999px; overflow: hidden;
  margin-bottom: 1.1rem;
}
.pop-bar {
  height: 100%; width: 0;
  border-radius: 999px;
  background: var(--pop-gold);
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.pop-bar.pop-bar--animated { width: var(--target-w, 100%); }
.pop-district-card--amber  .pop-bar { background: var(--pop-gold);  }
.pop-district-card--sea    .pop-bar { background: var(--pop-red);   }
.pop-district-card--nature .pop-bar { background: var(--pop-green); }

/* DL tableau */
.pop-district-card__dl {
  display: flex; flex-direction: column;
  gap: .4rem; margin: 0;
}
.pop-dl-row {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: .6rem;
  padding: .3rem 0;
  border-bottom: 1px dashed #eee;
}
.pop-dl-row:last-child { border-bottom: none; }
.pop-dl-row dt {
  font-size: .8rem; color: #777;
  display: flex; align-items: center; gap: .35rem;
  flex-shrink: 0;
  min-width: 0; /* v1.0.1 */
}
.pop-dl-row dt i { font-size: .72rem; flex-shrink: 0; }
.pop-dl-row dd {
  font-size: .85rem; font-weight: 700;
  color: #1a1a1a; margin: 0;
  text-align: right;
  overflow-wrap: anywhere; /* v1.0.1 : valeur longue peut wrapper si nécessaire */
}

/* Note ruralité */
.pop-ruralite-note {
  background: #fff;
  border-radius: var(--pop-radius);
  box-shadow: var(--pop-shadow);
  padding: 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.pop-ruralite-note__cols {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; margin-bottom: .75rem;
  flex-wrap: wrap;
}
.pop-ruralite-note__item {
  display: flex; align-items: center; gap: .9rem;
  min-width: 0; /* v1.0.1 */
}
.pop-ruralite-note__item i { font-size: 1.8rem; flex-shrink: 0; }
.pop-ruralite-note__item--rural i    { color: var(--pop-green); }
.pop-ruralite-note__item--urbain i   { color: var(--pop-sky);   }
.pop-ruralite-note__item div {
  display: flex; flex-direction: column;
  min-width: 0; /* v1.0.1 */
}
.pop-ruralite-note__item strong {
  font-size: 1.8rem; font-weight: 900; line-height: 1.1;
  color: #1a1a1a;
}
.pop-ruralite-note__item--rural  strong { color: var(--pop-green); }
.pop-ruralite-note__item--urbain strong { color: var(--pop-sky);   }
.pop-ruralite-note__item span { font-size: .85rem; color: #555; }
.pop-ruralite-note__item em   { font-size: .78rem; color: #999; font-style: normal; }
.pop-ruralite-note__sep {
  font-size: 1rem; color: #ccc; font-weight: 700;
}
.pop-ruralite-note__src {
  font-size: .78rem; color: #aaa; text-align: center;
  margin: 0; font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   §5 — GROUPES ETHNIQUES (réutilise .hc-people de geographie.css)
   ═══════════════════════════════════════════════════════════════ */
.hc-people {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.5rem;
  background: #fff;
  border-radius: var(--pop-radius);
  box-shadow: var(--pop-shadow);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border-top: 4px solid var(--pop-gold);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease,
              box-shadow var(--pop-transition);
}
.hc-people.hc-people--visible { opacity: 1; transform: none; }
.hc-people:hover { box-shadow: var(--pop-shadow-hover); }
.hc-people--amber  { border-top-color: var(--pop-gold);  }
.hc-people--nature { border-top-color: var(--pop-green); }
.hc-people--sea    { border-top-color: var(--pop-red);   }
/* Alternance */
.hc-people--left  { direction: rtl; }
.hc-people--left .hc-people__body-col { direction: ltr; }
/* Col image */
.hc-people__img-col {
  display: flex; flex-direction: column;
  min-width: 0; /* v1.0.1 : autorise le shrink en grid */
}
.hc-people__img-wrap {
  position: relative; overflow: hidden;
  flex: 1; min-height: 320px;
}
.hc-people__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.hc-people:hover .hc-people__img-wrap img { transform: scale(1.04); }
.hc-people__img-badge {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.88); backdrop-filter: blur(4px);
  padding: .28rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: #333;
}
.hc-people__emoji { font-size: 1rem; }
/* Stat strip */
.geo-stat-strip {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 3px solid var(--pop-gold); background: #fff;
}
.geo-stat-strip--nature { border-top-color: var(--pop-green); }
.geo-stat-strip--sea    { border-top-color: var(--pop-red);   }
.geo-stat-strip--amber  { border-top-color: var(--pop-gold);  }
.geo-stat-strip__item {
  display: flex; flex-direction: column; align-items: center;
  padding: .85rem .5rem;
  border-right: 1px solid #eee; border-bottom: 1px solid #eee;
  text-align: center; gap: .18rem;
  min-width: 0; /* v1.0.1 */
}
.geo-stat-strip__item:nth-child(even)  { border-right: none; }
.geo-stat-strip__item:nth-child(3),
.geo-stat-strip__item:nth-child(4)     { border-bottom: none; }
.geo-stat-strip__item i {
  font-size: .95rem; color: var(--pop-gold); margin-bottom: .05rem;
}
.geo-stat-strip--nature .geo-stat-strip__item i { color: var(--pop-green); }
.geo-stat-strip--sea    .geo-stat-strip__item i { color: var(--pop-red);   }
.geo-stat-strip__item strong {
  font-size: .98rem; font-weight: 800; color: #1a1a1a; line-height: 1.15;
  overflow-wrap: anywhere; /* v1.0.1 */
}
.geo-stat-strip__item span {
  font-size: .7rem; color: #777; line-height: 1.3;
  overflow-wrap: break-word; /* v1.0.1 */
}
/* Col corps */
.hc-people__body-col {
  padding: 2rem 2rem 2rem 0;
  display: flex; flex-direction: column;
  min-width: 0; /* v1.0.1 : autorise le shrink en grid */
}
.hc-people--left .hc-people__body-col { padding: 2rem 0 2rem 2rem; }
.hc-people__meta { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .6rem; }
.hc-people__subtitle {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--pop-neutral);
}
.hc-people__zone {
  font-size: .83rem; color: #888;
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.hc-people__zone i { font-size: .75rem; }
.hc-people__name {
  font-size: 1.55rem; font-weight: 800;
  margin: 0 0 .8rem; color: #1a1a1a;
  overflow-wrap: break-word; /* v1.0.1 */
}
.hc-people--amber  .hc-people__name { color: var(--pop-gold);  }
.hc-people--nature .hc-people__name { color: var(--pop-green); }
.hc-people--sea    .hc-people__name { color: var(--pop-red);   }
.hc-people__intro {
  font-size: .97rem; line-height: 1.72;
  color: #444; margin-bottom: 1.1rem;
  overflow-wrap: break-word; /* v1.0.1 */
}
/* Blocs */
.hc-people__block {
  background: #f7f7f5; border-radius: 8px;
  padding: .9rem 1.1rem; margin-bottom: .8rem;
  max-width: 100%; /* v1.0.1 */
}
.hc-people__block-title {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  display: flex; align-items: center; gap: .4rem;
  margin: 0 0 .5rem; color: var(--pop-neutral);
}
.hc-people__block-title i { font-size: .85rem; flex-shrink: 0; }
.hc-people--amber  .hc-people__block-title { color: var(--pop-gold);  }
.hc-people--nature .hc-people__block-title { color: var(--pop-green); }
.hc-people--sea    .hc-people__block-title { color: var(--pop-red);   }
.hc-people__block p {
  font-size: .9rem; line-height: 1.68; color: #444; margin: 0;
  overflow-wrap: break-word; /* v1.0.1 */
}
/* Tags */
.hc-people__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.hc-people__tag {
  font-size: .75rem; font-weight: 600;
  padding: .22rem .65rem; border-radius: 999px;
  border: 1.5px solid currentColor;
  max-width: 100%; /* v1.0.1 */
}
.hc-people__tag--amber  { color: var(--pop-gold);  }
.hc-people__tag--nature { color: var(--pop-green); }
.hc-people__tag--sea    { color: var(--pop-red);   }

/* ═══════════════════════════════════════════════════════════════
   §6 — INDICATEURS SOCIAUX
   ═══════════════════════════════════════════════════════════════ */
.pop-indic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.pop-indic-card {
  background: #fff;
  border-radius: var(--pop-radius);
  box-shadow: var(--pop-shadow);
  overflow: hidden;
  border-top: 4px solid var(--pop-gold);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease,
              box-shadow var(--pop-transition);
  min-width: 0; /* v1.0.1 */
}
.pop-indic-card.pop-indic-card--visible { opacity: 1; transform: none; }
.pop-indic-card:hover { box-shadow: var(--pop-shadow-hover); }
.pop-indic-card--amber  { border-top-color: var(--pop-gold);  }
.pop-indic-card--sea    { border-top-color: var(--pop-red);   }
.pop-indic-card--nature { border-top-color: var(--pop-green); }
.pop-indic-card--sky    { border-top-color: var(--pop-sky);   }

.pop-indic-card__head {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.1rem 1.3rem .9rem;
  border-bottom: 1px solid #f0f0ee;
}
.pop-indic-card__icon-wrap {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pop-gold-light); color: var(--pop-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.pop-indic-card--sea    .pop-indic-card__icon-wrap { background: var(--pop-red-light);   color: var(--pop-red);   }
.pop-indic-card--nature .pop-indic-card__icon-wrap { background: var(--pop-green-light); color: var(--pop-green); }
.pop-indic-card--sky    .pop-indic-card__icon-wrap { background: var(--pop-sky-light);   color: var(--pop-sky);   }
.pop-indic-card__title {
  font-size: 1rem; font-weight: 800;
  color: #1a1a1a; margin: 0;
  min-width: 0; /* v1.0.1 */
  overflow-wrap: break-word; /* v1.0.1 */
}

.pop-indic-list {
  list-style: none; margin: 0; padding: .5rem 1.3rem;
  display: flex; flex-direction: column; gap: 0;
}
.pop-indic-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: .1rem .6rem;
  padding: .5rem 0;
  border-bottom: 1px dashed #eee;
  min-width: 0; /* v1.0.1 */
}
.pop-indic-list__item:last-child { border-bottom: none; }
.pop-indic-list__label {
  font-size: .83rem; color: #555;
  grid-column: 1; grid-row: 1;
  min-width: 0; /* v1.0.1 */
  overflow-wrap: break-word; /* v1.0.1 */
}
.pop-indic-list__value {
  font-size: .92rem; font-weight: 800;
  color: var(--pop-gold); white-space: nowrap;
  grid-column: 2; grid-row: 1;
  text-align: right;
}
.pop-indic-list__value--sea    { color: var(--pop-red);   }
.pop-indic-list__value--nature { color: var(--pop-green); }
.pop-indic-list__value--sky    { color: var(--pop-sky);   }
.pop-indic-list__note {
  font-size: .74rem; color: #aaa;
  grid-column: 1 / -1; grid-row: 2;
  font-style: italic;
  overflow-wrap: break-word; /* v1.0.1 */
}
.pop-indic-card__source {
  font-size: .74rem; color: #bbb;
  padding: .55rem 1.3rem .8rem;
  display: flex; align-items: center; gap: .35rem;
  background: #fafaf8; margin: 0; font-style: italic;
  border-top: 1px solid #f0f0ee;
}
.pop-indic-card__source i { font-size: .68rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   §7 — TIMELINE DÉMOGRAPHIQUE
   ═══════════════════════════════════════════════════════════════ */
.pop-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}
.pop-timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--pop-gold) 5%,
    var(--pop-gold) 95%,
    transparent 100%
  );
}
.pop-timeline__item {
  display: flex; gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  opacity: 0; transform: translateX(-16px);
  transition: opacity .5s ease, transform .5s ease;
}
.pop-timeline__item.pop-timeline__item--visible {
  opacity: 1; transform: none;
}
.pop-timeline__marker {
  width: 90px; flex-shrink: 0;
  display: flex; justify-content: flex-end;
  padding-right: 1rem; padding-top: .3rem;
  position: relative;
}
.pop-timeline__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pop-gold);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--pop-gold);
  position: relative; z-index: 1;
  flex-shrink: 0;
  transition: transform var(--pop-transition);
}
.pop-timeline__item--sea    .pop-timeline__dot { background: var(--pop-red);   box-shadow: 0 0 0 2px var(--pop-red);   }
.pop-timeline__item--nature .pop-timeline__dot { background: var(--pop-green); box-shadow: 0 0 0 2px var(--pop-green); }
.pop-timeline__item--sky    .pop-timeline__dot { background: var(--pop-sky);   box-shadow: 0 0 0 2px var(--pop-sky);   }
.pop-timeline__item:hover .pop-timeline__dot { transform: scale(1.3); }

.pop-timeline__body {
  flex: 1;
  min-width: 0; /* v1.0.1 : flex item peut shrink */
  background: #fff;
  border-radius: var(--pop-radius);
  box-shadow: var(--pop-shadow);
  padding: 1.1rem 1.4rem 1.2rem;
  border-left: 4px solid var(--pop-gold);
  transition: box-shadow var(--pop-transition);
}
.pop-timeline__item--sea    .pop-timeline__body { border-left-color: var(--pop-red);   }
.pop-timeline__item--nature .pop-timeline__body { border-left-color: var(--pop-green); }
.pop-timeline__item--sky    .pop-timeline__body { border-left-color: var(--pop-sky);   }
.pop-timeline__item:hover .pop-timeline__body { box-shadow: var(--pop-shadow-hover); }

.pop-timeline__annee {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--pop-gold); margin-bottom: .3rem;
}
.pop-timeline__item--sea    .pop-timeline__annee { color: var(--pop-red);   }
.pop-timeline__item--nature .pop-timeline__annee { color: var(--pop-green); }
.pop-timeline__item--sky    .pop-timeline__annee { color: var(--pop-sky);   }
.pop-timeline__titre {
  font-size: 1rem; font-weight: 700;
  color: #1a1a1a; margin: 0 0 .4rem;
  overflow-wrap: break-word; /* v1.0.1 */
}
.pop-timeline__texte {
  font-size: .88rem; line-height: 1.65;
  color: #555; margin: 0;
  overflow-wrap: break-word; /* v1.0.1 */
}
.pop-timeline__texte strong { color: #1a1a1a; }

/* ═══════════════════════════════════════════════════════════════
   §8 — SECTION MÉMORIALE
   ═══════════════════════════════════════════════════════════════ */
.hc-memorial {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
.hc-memorial__bg { position: absolute; inset: 0; z-index: 0; }
.hc-memorial__bg img { width: 100%; height: 100%; object-fit: cover; }
.hc-memorial__overlay {
  position: absolute; inset: 0;
  background: rgba(10,20,30,.72); z-index: 1;
}
.hc-memorial__inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hc-memorial__icon {
  font-size: 2.5rem;
  color: rgba(255,255,255,.25);
  margin-bottom: .8rem;
}
.hc-memorial__quote {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700; color: #fff;
  line-height: 1.45; margin: 0 0 .7rem;
}
.hc-memorial__author {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  font-style: italic;
  margin: 0 0 2.5rem;
}
/* Sites clés */
.hc-sites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-top: 1rem;
}
.hc-site-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--pop-radius);
  padding: 1.2rem 1rem 1.3rem; text-align: left;
  transition: background var(--pop-transition);
  min-width: 0; /* v1.0.1 */
}
.hc-site-card:hover { background: rgba(255,255,255,.16); }
.hc-site-card__icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; margin-bottom: .7rem;
}
.hc-site-card__icon--amber  { background: rgba(200,149,42,.35); color: #fde68a; }
.hc-site-card__icon--nature { background: rgba(46,125,50,.35);  color: #bbf7d0; }
.hc-site-card__icon--sea    { background: rgba(183,28,28,.35);  color: #fecaca; }
.hc-site-card__icon--sky    { background: rgba(2,132,199,.35);  color: #bae6fd; }
.hc-site-card__title {
  font-size: .93rem; font-weight: 700;
  color: #fff; margin: 0 0 .35rem;
}
.hc-site-card__text {
  font-size: .83rem; color: rgba(255,255,255,.72);
  line-height: 1.55; margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   §9 — SOURCES
   ═══════════════════════════════════════════════════════════════ */
.hc-sources-grid { max-width: 860px; margin: 0 auto; }
.hc-sources-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.hc-sources-list li {
  font-size: .875rem; color: #555;
  line-height: 1.55; padding-left: 1.1rem;
  position: relative;
}
.hc-sources-list li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--pop-gold); font-weight: 700;
}
.hc-sources-list a {
  color: var(--pop-sky); text-decoration: none;
  transition: color var(--pop-transition);
  overflow-wrap: anywhere; /* v1.0.1 : URLs longues peuvent wrapper */
}
.hc-sources-list a:hover { color: var(--pop-gold); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   §10 — NAVIGATION SOUS-RUBRIQUES
   ═══════════════════════════════════════════════════════════════ */
.hc-subnav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-top: 1rem;
}
.hc-subnav-card {
  display: flex; align-items: center; gap: .9rem;
  background: #fff; border: 1.5px solid #e5e5e3;
  border-radius: var(--pop-radius);
  padding: 1rem 1.1rem;
  text-decoration: none; color: inherit;
  transition: border-color var(--pop-transition),
              box-shadow var(--pop-transition),
              transform var(--pop-transition);
  min-width: 0; /* v1.0.1 */
}
.hc-subnav-card:hover {
  border-color: var(--pop-gold);
  box-shadow: 0 4px 16px rgba(200,149,42,.15);
  transform: translateY(-2px);
}
.hc-subnav-card--current {
  border-color: var(--pop-sky);
  background: var(--pop-sky-light);
  pointer-events: none;
}
.hc-subnav-card__icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #f0f0ee;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--pop-neutral);
  flex-shrink: 0;
  transition: background var(--pop-transition), color var(--pop-transition);
}
.hc-subnav-card:hover .hc-subnav-card__icon {
  background: var(--pop-gold-light); color: var(--pop-gold);
}
.hc-subnav-card__icon--amber  { background: var(--pop-gold-light);  color: var(--pop-gold);  }
.hc-subnav-card__icon--nature { background: var(--pop-green-light); color: var(--pop-green); }
.hc-subnav-card__icon--sea    { background: var(--pop-red-light);   color: var(--pop-red);   }
.hc-subnav-card__icon--sky    { background: var(--pop-sky-light);   color: var(--pop-sky);   }
.hc-subnav-card__body { flex: 1; min-width: 0; }
.hc-subnav-card__title {
  font-size: .9rem; font-weight: 700; color: #1a1a1a;
  margin: 0 0 .1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hc-subnav-card__text { font-size: .78rem; color: #888; margin: 0; }
.hc-subnav-card--current .hc-subnav-card__title { color: var(--pop-sky); }
.hc-subnav-card__arrow {
  font-size: .78rem; color: #ccc; flex-shrink: 0;
  transition: color var(--pop-transition), transform var(--pop-transition);
}
.hc-subnav-card:hover .hc-subnav-card__arrow {
  color: var(--pop-gold); transform: translateX(3px);
}
.hc-subnav-card--current .hc-subnav-card__arrow { color: var(--pop-sky); }

/* ═══════════════════════════════════════════════════════════════
   §11 — REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.mc-reveal { will-change: transform, opacity; }
.mc-reveal--fade-up    { opacity:0; transform:translateY(28px);  transition:opacity .55s ease,transform .55s ease; }
.mc-reveal--fade-down  { opacity:0; transform:translateY(-28px); transition:opacity .55s ease,transform .55s ease; }
.mc-reveal--fade-left  { opacity:0; transform:translateX(28px);  transition:opacity .55s ease,transform .55s ease; }
.mc-reveal--fade-right { opacity:0; transform:translateX(-28px); transition:opacity .55s ease,transform .55s ease; }
.mc-reveal--scale-in   { opacity:0; transform:scale(.94);        transition:opacity .55s ease,transform .55s ease; }
.mc-reveal--visible    { opacity:1; transform:none; }

/* ═══════════════════════════════════════════════════════════════
   §12 — BACK-TO-TOP
   ═══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--pop-gold); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.20);
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 999;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: #b07a1e; }
.btt-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.btt-ring circle {
  fill: none; stroke: rgba(255,255,255,.45);
  stroke-width: 2.5; stroke-dashoffset: 94.25;
  transition: stroke-dashoffset .1s linear;
}

/* ═══════════════════════════════════════════════════════════════
   §13 — RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* ≤ 1280px */
@media (max-width: 1280px) {
  .hc-people { grid-template-columns: 320px 1fr; }
  .hc-sites-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≤ 1100px */
@media (max-width: 1100px) {
  .hc-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hc-intro__visual { display: none; }
  .pop-districts-grid { grid-template-columns: repeat(2, 1fr); }
  .pop-indic-grid { grid-template-columns: 1fr; }
}

/* ≤ 900px — FIX CRITIQUE v1.0.1 */
@media (max-width: 900px) {
  .hc-people {
    grid-template-columns: 1fr;
    direction: ltr !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hc-people__img-col,
  .hc-people__body-col {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hc-people__body-col {
    padding: 1.5rem !important;
    direction: ltr !important;
  }
  /* v1.0.1 — CORRECTION CRITIQUE :
     L'ancienne règle `min-height: 220px; aspect-ratio: 16/9;`
     forçait width ≥ 220 * 16/9 ≈ 391px sur le wrapper d'image.
     Combiné à `min-width: auto` du grid item, la colonne grid
     `1fr` ne pouvait pas se réduire sous 391 px, dépassant la
     largeur du conteneur sur les viewports < 440 px.
     La largeur excessive se propageait à la body-col (même
     colonne grid), créant un débordement horizontal du contenu
     (titre, badges, textes des blocs, listes d'indicateurs,
     pourcentages comme "42 %", valeurs longues comme "275 397").
     SOLUTION : on supprime le min-height en mobile ; l'aspect-ratio
     16/9 suffit pour dimensionner l'image proportionnellement
     à la largeur de colonne. */
  .hc-people__img-wrap {
    min-height: 0;
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 100%;
  }
  .pop-timeline::before { left: 70px; }
  .pop-timeline__marker { width: 70px; }
}

/* ≤ 768px */
@media (max-width: 768px) {
  /* Banner aligné sur presentation.css */
  .hc-banner          { min-height: 260px; background-position: center 40%; }
  .hc-banner__inner   { padding: 1.5rem 1.25rem 3rem; }
  .hc-banner__subtitle{ display: none; }

  .pop-districts-grid { grid-template-columns: 1fr; }
  .geo-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .hc-subnav-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-sites-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-intro__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ≤ 600px */
@media (max-width: 600px) {
  /* Banner aligné sur presentation.css (palier <576) */
  .hc-banner          { min-height: 220px; }
  .hc-banner__inner   { padding: 1.25rem 1rem 2.5rem; }

  .hc-sites-grid   { grid-template-columns: 1fr; }
  .hc-subnav-grid  { grid-template-columns: 1fr; }
  .hc-intro__stats { grid-template-columns: 1fr; }
  .pop-ruralite-note__cols { flex-direction: column; gap: 1rem; }
  .section { padding: 2.5rem 0; }
  .hc-memorial { padding: 3rem 0; }
  .pop-timeline::before { display: none; }
  .pop-timeline__item { flex-direction: column; gap: .6rem; }
  .pop-timeline__marker { width: auto; padding: 0; }
  /* v1.0.1 : container plus serré sur très petits écrans */
  .container { padding: 0 1rem; }
  .hc-people__body-col { padding: 1.25rem !important; }
  .pop-ruralite-note { padding: 1.25rem 1.25rem; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  /* Banner : padding inner encore réduit (Galaxy Fold etc.) */
  .hc-banner__inner   { padding: 1rem .9rem 2.2rem; }

  /* Breadcrumb compact : icônes seulement, texte masqué
     (HTML doit avoir <span> autour du texte de chaque lien) */
  .hc-breadcrumb__link span,
  .hc-breadcrumb__item--current span { display: none; }
  .hc-breadcrumb__link i,
  .hc-breadcrumb__item--current i    { font-size: .85rem; }
  .hc-breadcrumb__list  { padding: .35rem .75rem; }

  .hc-banner__pills .hc-pill { font-size: .72rem; padding: .22rem .6rem; }
  .pop-district-card__part { font-size: 1.2rem; }
  .geo-stat-strip__item { padding: .6rem .4rem; }
  .geo-stat-strip__item strong { font-size: .88rem; }
  .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 40px; height: 40px; }
  /* v1.0.1 : sur très petits écrans, valeurs très longues peuvent wrap */
  .pop-indic-list__value { white-space: normal; line-height: 1.3; }
  .pop-dl-row dd { white-space: normal; line-height: 1.3; }
}

/* ═══════════════════════════════════════════════════════════════
   §6b — COURBE D'ÉVOLUTION DÉMOGRAPHIQUE
   ═══════════════════════════════════════════════════════════════ */

/* Conteneur principal */
.pop-chart-wrap {
  margin-top: 1rem;
  max-width: 100%; /* v1.0.1 */
}

/* Légende */
.pop-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.pop-chart-legend__item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: #555;
  font-weight: 500;
}
.pop-chart-legend__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--pop-gold);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--pop-gold);
  flex-shrink: 0;
}
.pop-chart-legend__dot--proj {
  background: var(--pop-sky);
  box-shadow: 0 0 0 1.5px var(--pop-sky);
}
.pop-chart-legend__item--region i {
  color: var(--pop-sky); font-size: .78rem;
}

/* Figure graphique */
.pop-chart-figure {
  position: relative;
  margin: 0 0 1.5rem;
  background: #fff;
  border-radius: var(--pop-radius);
  box-shadow: var(--pop-shadow);
  padding: 1.2rem 1rem .8rem;
  overflow: hidden;
  max-width: 100%; /* v1.0.1 */
}

/* SVG responsive */
.pop-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Animation ligne au chargement */
.pop-chart-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1);
}
.pop-chart-figure.pop-chart--animated .pop-chart-line {
  stroke-dashoffset: 0;
}

/* Points interactifs */
.pop-chart-dot {
  cursor: pointer;
  transition: r .2s ease, filter .2s ease;
}
.pop-chart-dot:hover {
  filter: url(#dotShadow) brightness(1.1);
}

/* Labels valeurs — masquer sur petits écrans */
.pop-chart-label {
  pointer-events: none;
}

/* Tooltip */
.pop-chart-tooltip {
  position: absolute;
  background: rgba(26,26,26,.92);
  color: #fff;
  border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .82rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  white-space: nowrap;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transform: translate(-50%, -120%);
  max-width: calc(100vw - 2rem); /* v1.0.1 : tooltip ne dépasse jamais le viewport */
}
.pop-chart-tooltip.pop-chart-tooltip--visible { opacity: 1; }
.pop-chart-tooltip__year {
  font-size: .88rem;
  font-weight: 700;
  color: #fde68a;
}
.pop-chart-tooltip__pop { font-size: .82rem; color: #fff; }
.pop-chart-tooltip__src { font-size: .74rem; color: rgba(255,255,255,.6); }

/* Légende sous graphique */
.pop-chart-caption {
  font-size: .75rem;
  color: #aaa;
  text-align: center;
  margin: .4rem 0 0;
  line-height: 1.5;
  font-style: italic;
}

/* ── Tableau de données ──────────────────────────────────────── */
.pop-chart-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* v1.0.1 : scroll fluide iOS */
  margin-bottom: 2rem;
  border-radius: var(--pop-radius);
  box-shadow: var(--pop-shadow);
  max-width: 100%; /* v1.0.1 */
}
.pop-chart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .87rem;
}
.pop-chart-table__caption {
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  color: #888;
  padding: .7rem 1rem .4rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  caption-side: top;
}
.pop-chart-table thead tr {
  background: #f4f4f2;
  border-bottom: 2px solid #e5e5e3;
}
.pop-chart-table th {
  padding: .65rem 1rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  color: #555;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pop-chart-table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid #f0f0ee;
  color: #444;
}
.pop-chart-table tbody tr:last-child td { border-bottom: none; }
.pop-chart-table tbody tr:hover { background: #fafaf8; }
.pop-chart-tr--census { }
.pop-chart-tr--proj   { background: #f8fafd; }
.pop-chart-td--num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1a1a1a;
}

/* Badges type */
.pop-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.pop-badge--census {
  background: var(--pop-gold-light);
  color: var(--pop-gold);
  border: 1px solid rgba(200,149,42,.25);
}
.pop-badge--proj {
  background: var(--pop-sky-light);
  color: var(--pop-sky);
  border: 1px solid rgba(2,132,199,.25);
}

/* ── Note évolution ──────────────────────────────────────────── */
.pop-evolution-note {
  background: #fff;
  border-radius: var(--pop-radius);
  box-shadow: var(--pop-shadow);
  padding: 1.5rem 2rem;
  margin-top: .5rem;
  max-width: 100%; /* v1.0.1 */
}
.pop-evolution-note__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pop-evolution-note__item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  min-width: 0; /* v1.0.1 */
}
.pop-evolution-note__icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pop-evolution-note__icon--amber  { background: var(--pop-gold-light);  color: var(--pop-gold);  }
.pop-evolution-note__icon--nature { background: var(--pop-green-light); color: var(--pop-green); }
.pop-evolution-note__icon--sky    { background: var(--pop-sky-light);   color: var(--pop-sky);   }
.pop-evolution-note__item > div {
  min-width: 0; /* v1.0.1 : autorise le wrap du texte */
}
.pop-evolution-note__item strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: .35rem;
  overflow-wrap: break-word; /* v1.0.1 */
}
.pop-evolution-note__item p {
  font-size: .86rem;
  line-height: 1.65;
  color: #555;
  margin: 0;
  overflow-wrap: break-word; /* v1.0.1 */
}

/* Responsive courbe */
@media (max-width: 768px) {
  .pop-chart-label { display: none; }
  .pop-evolution-note__cols { grid-template-columns: 1fr; }
  .pop-evolution-note { padding: 1.2rem 1.2rem; }
}
@media (max-width: 600px) {
  .pop-chart-legend { gap: .7rem; }
  .pop-chart-figure { padding: .8rem .4rem .6rem; }
  .pop-chart-table th,
  .pop-chart-table td { padding: .5rem .7rem; font-size: .8rem; }
}

/* ═══════════════════════════════════════════════════════════════
   FIN population.css v1.0.2 — HERO HARMONISÉ
   ═══════════════════════════════════════════════════════════════ */