/* ════════════════════════════════════════════════════════════════════
   assets/css/region-anosy/presentation.css
   Page    : region-anosy/presentation.php
   Version : 3.2.1 — MOBILE GRID FIX
   ────────────────────────────────────────────────────────────────────
   Corrections v3.2.1 (2026-05-14) — par rapport à v3.2.0 :
   - §8 : FIX CRITIQUE — les media queries "globales" de fin de fichier
          (≤1100px et ≤1280px) écrasaient les règles mobiles déclarées
          plus tôt par cascade CSS, forçant le dashboard et les piliers
          en 2 colonnes même sur smartphone (≤575px).
          Résultat : valeurs longues ("~859 000", "~1 Md USD") coupées
          par le viewport droit.
          Solution : borner ces media queries avec `min-width: 768px`
          pour qu'elles n'affectent QUE la plage tablette (768-1280px).
   - §2 / §4 : ajout de `min-width: 0` défensif sur .pres-dash-block,
               .pres-dash-item__label et .pres-pillar pour permettre
               le flex shrinking correct en grid (évite tout débordement
               horizontal si valeur très longue).
   - §4 : .pres-dash-item__value : `overflow-wrap: anywhere` en backup
          si un mot très long apparaissait sur une carte étroite.
   ────────────────────────────────────────────────────────────────────
   Corrections v3.2.0 (inchangées) :
   - §2 : Leaflet CSS chargé avant ce fichier (voir PHP pageHeadExtras)
   - §2 : .pres-identity__map-wrap conserve height fixe par breakpoint
   - §2 : suppression de tout aspect-ratio sur le wrapper (source de h=0)
   - §2 : z-index Leaflet revus pour ne jamais entrer en conflit
   - §8 : breakpoints consolidés, règle fondamentale documentée
════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   §1 · BANNIÈRE
══════════════════════════════════════════════════════════════ */

.pres-banner {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
}

.pres-banner__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.pres-banner__overlay--dark {
    z-index: 1;
    background: rgba(6, 47, 74, 0.60);
}
.pres-banner__overlay--grad {
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(6, 47, 74, 0.72) 0%,
        rgba(0, 120, 90, 0.22) 60%,
        transparent 100%
    );
}
.pres-banner__grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.32;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
}
.pres-banner__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}
.phero-particle {
    fill: rgba(255, 255, 255, 0.18);
    animation: particleFloat 7s ease-in-out infinite;
}
.phero-particle--1 { animation-duration: 7s;   animation-delay: 0s;   }
.phero-particle--2 { animation-duration: 9s;   animation-delay: 1.5s; }
.phero-particle--3 { animation-duration: 6s;   animation-delay: 0.8s; }
.phero-particle--4 { animation-duration: 8s;   animation-delay: 2s;   }
.phero-particle--5 { animation-duration: 10s;  animation-delay: 0.4s; }
.phero-particle--6 { animation-duration: 7.5s; animation-delay: 3s;   }

.pres-banner__inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 3.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.pres-banner__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pres-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nature-300, #86efac);
}
.pres-banner__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.45);
}
.pres-banner__title-accent { color: var(--amber-300, #fcd34d); }
.pres-banner__subtitle {
    font-size: clamp(0.88rem, 1.6vw, 1.05rem);
    color: rgba(255, 255, 255, 0.80);
    max-width: 580px;
    line-height: 1.65;
    margin: 0;
}
.pres-banner__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11;
    line-height: 0;
}
.pres-banner__wave svg {
    display: block;
    width: 100%;
    height: 56px;
}


/* ══════════════════════════════════════════════════════════════
   §2 · SECTION IDENTITÉ + CARTE LEAFLET
   ─────────────────────────────────────────────────────────────
   RÈGLE FONDAMENTALE (rappel) :
   ▸ La hauteur est définie sur .pres-identity__map-wrap (wrapper).
   ▸ #anosy-map utilise position:absolute; inset:0 → suit le wrapper.
   ▸ Jamais d'aspect-ratio sur le wrapper (retourne height=0 si la
     largeur du parent n'est pas encore calculée au moment du paint).
   ▸ Leaflet CSS est chargé AVANT ce fichier (voir PHP pageHeadExtras)
     pour éviter les conflits de z-index sur les contrôles de carte.
══════════════════════════════════════════════════════════════ */

.pres-section--identity { padding: var(--s20) 0; }

.pres-identity-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

.pres-identity__lead {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: var(--s5);
    font-weight: 500;
}
.pres-identity__lead strong { color: var(--sea-700); }

.pres-identity__body {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: var(--s5);
}
.pres-identity__body strong { color: var(--gray-800); }

/* Tags */
.pres-identity__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-top: var(--s5);
    margin-bottom: var(--s6);
}
.pres-id-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: 0.4rem 0.9rem;
    border-radius: var(--r-full);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.pres-id-tag:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pres-id-tag--sea    { background: var(--sea-50);    color: var(--sea-700);    border: 1px solid var(--sea-200);    }
.pres-id-tag--nature { background: var(--nature-50); color: var(--nature-700); border: 1px solid var(--nature-200); }
.pres-id-tag--amber  { background: var(--amber-100); color: #92400e;           border: 1px solid #fde68a;           }
.pres-id-tag--purple { background: #f5f3ff;          color: var(--purple-500); border: 1px solid #ddd6fe;           }

/* Sous-navigation */
.pres-identity__subnav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    margin-top: var(--s4);
}
.pres-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sea-700);
    background: var(--sea-50);
    border: 1px solid var(--sea-200);
    border-radius: var(--r-full);
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast),
                transform var(--t-fast), box-shadow var(--t-fast);
}
.pres-subnav-link:hover {
    background: var(--sea-600);
    color: #fff;
    border-color: var(--sea-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.22);
}
.pres-subnav-link i { font-size: 0.78rem; }

/* ── Panneau droit ─────────────────────────────────────────
   flex-direction:column garantit que map-wrap et data-grid
   s'empilent proprement sans que l'un n'affecte la hauteur de l'autre.
──────────────────────────────────────────────────────────── */
.pres-identity__panel {
    display: flex;
    flex-direction: column;
    gap: var(--s5);
    min-width: 0; /* empêche le débordement dans CSS grid */
}

/* ── Wrapper carte — HAUTEUR FIXE EXPLICITE ────────────────
   ⚠️  La hauteur est définie ICI, PAS sur #anosy-map.
       #anosy-map utilise position:absolute; inset:0 pour remplir
       exactement ce wrapper, garantissant offsetHeight > 0 pour Leaflet.
   ⚠️  PAS d'aspect-ratio : cette propriété retourne height=0
       si le navigateur n'a pas encore calculé la largeur du parent.
   ⚠️  flex-shrink:0 : empêche la compression dans le contexte flex.
──────────────────────────────────────────────────────────── */
.pres-identity__map-wrap {
    position:      relative;     /* CRITIQUE : ancre les enfants absolus        */
    width:         100%;
    height:        460px;        /* hauteur fixe desktop par défaut              */
    min-height:    300px;        /* plancher de sécurité                         */
    overflow:      hidden;       /* CRITIQUE : clip propre des tiles Leaflet     */
    border-radius: 1.25rem;
    box-shadow:
        0 4px 24px rgba(6, 47, 74, 0.14),
        0 1px 4px  rgba(6, 47, 74, 0.08);
    transition: transform var(--t-slow), box-shadow var(--t-slow);
    background:    #e8f4f8;      /* fond visible pendant le chargement           */
    flex-shrink:   0;            /* ne se compresse pas dans flexbox              */
    /* PAS d'aspect-ratio ici — source de height=0 avant layout calculé */
}
.pres-identity__map-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(6, 47, 74, 0.18);
}

/* ── Carte Leaflet — remplit entièrement le wrapper ────────
   position:absolute + inset:0 = width:100% + height:100%
   du parent .pres-identity__map-wrap.
   Leaflet lira correctement offsetWidth et offsetHeight.
   display:block !important : jamais display:none (Leaflet ne
   peut pas initialiser sur un élément invisible).
──────────────────────────────────────────────────────────── */
.pres-identity__leaflet-map,
#anosy-map {
    position:   absolute !important;
    inset:      0        !important;  /* top:0; right:0; bottom:0; left:0 */
    width:      100%     !important;
    height:     100%     !important;
    z-index:    1;
    background: #e8f4f8;
    display:    block    !important;  /* jamais display:none               */
}

/* ── Z-index Leaflet interne ───────────────────────────────
   Les panes Leaflet partent de z-index:1 à l'intérieur du
   contexte local créé par position:relative sur map-wrap.
   On les élève suffisamment pour qu'ils soient au-dessus
   du fond #e8f4f8 mais sous le badge .pres-identity__map-pin.
──────────────────────────────────────────────────────────── */
.pres-identity__leaflet-map .leaflet-pane,
#anosy-map .leaflet-pane               { z-index: 4;  }
.pres-identity__leaflet-map .leaflet-top,
.pres-identity__leaflet-map .leaflet-bottom,
#anosy-map .leaflet-top,
#anosy-map .leaflet-bottom             { z-index: 10; }

/* ── Badge Fort-Dauphin ────────────────────────────────────
   Superposé au bas du wrapper, au-dessus de la carte Leaflet.
   z-index:20 > z-index:10 (contrôles Leaflet).
   pointer-events:none pour ne pas bloquer les interactions.
──────────────────────────────────────────────────────────── */
.pres-identity__map-pin {
    position:        absolute;
    bottom:          0.75rem;
    left:            50%;
    transform:       translateX(-50%);
    z-index:         20;              /* au-dessus des contrôles Leaflet */
    display:         inline-flex;
    align-items:     center;
    gap:             0.45rem;
    background:      rgba(6, 47, 74, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color:           #fff;
    font-size:       0.78rem;
    line-height:     1.3;
    padding:         0.45rem 0.85rem;
    border-radius:   2rem;
    white-space:     nowrap;
    pointer-events:  none;            /* ne bloque pas les interactions carte */
    border:          1px solid rgba(255, 255, 255, 0.18);
}
.pres-identity__map-pin .fas { color: #fbbf24; font-size: 0.9rem; }
.pres-identity__map-pin small {
    display:     block;
    font-size:   0.62rem;
    opacity:     0.65;
    font-weight: 400;
}

/* ── Loader carte ──────────────────────────────────────────
   Overlay affiché pendant le fetch Overpass.
   Injecté dynamiquement par JS dans .pres-identity__map-wrap.
   z-index:800 pour rester au-dessus des tiles Leaflet (z:4–10)
   mais le JS le supprime proprement via hideLoader().
──────────────────────────────────────────────────────────── */
.anosy-map-loader {
    position:        absolute;
    inset:           0;
    z-index:         800;
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             10px;
    background:      rgba(10, 20, 15, 0.60);
    backdrop-filter: blur(4px);
    color:           #fff;
    font-size:       0.875rem;
    font-weight:     500;
    border-radius:   inherit;
    pointer-events:  none;
    transition:      opacity 0.4s ease;
}
.anosy-map-loader__spinner {
    width:            22px;
    height:           22px;
    border:           3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #3b82f6;
    border-radius:    50%;
    flex-shrink:      0;
    animation:        anosySpin 0.8s linear infinite;
}
@keyframes anosySpin { to { transform: rotate(360deg); } }

/* ── Grille 4 indicateurs rapides ──────────────────────── */
.pres-identity__data-grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   var(--s3);
}
.pres-id-data {
    display:        flex;
    flex-direction: column;
    gap:            0.25rem;
    padding:        var(--s4);
    background:     var(--white);
    border:         1px solid var(--gray-200);
    border-radius:  var(--r-lg);
    transition:     box-shadow var(--t-fast), border-color var(--t-fast);
    min-width:      0; /* v3.2.1 : empêche débordement en grid */
}
.pres-id-data:hover {
    box-shadow:   var(--shadow-sm);
    border-color: var(--sea-200);
}
.pres-id-data__value {
    font-family: var(--font-condensed);
    font-size:   1.15rem;
    font-weight: 800;
    color:       var(--sea-600);
    line-height: 1;
    overflow-wrap: anywhere; /* v3.2.1 : autorise wrap si vraiment trop long */
}
.pres-id-data__label {
    font-size:   0.66rem;
    color:       var(--gray-400);
    line-height: 1.35;
}


/* ══════════════════════════════════════════════════════════════
   §3 · SECTION PILIERS
══════════════════════════════════════════════════════════════ */

.pres-section--pillars { padding: var(--s20) 0; }

.pres-pillars-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   1.5rem;
    margin-top:            var(--s10);
}
.pres-pillar {
    display:        flex;
    flex-direction: column;
    gap:            var(--s4);
    padding:        var(--s6);
    background:     var(--white);
    border:         1px solid var(--gray-200);
    border-radius:  1.25rem;
    transition:     transform var(--t-base), box-shadow var(--t-base),
                    border-color var(--t-base);
    min-width:      0; /* v3.2.1 : empêche débordement en grid */
}
.pres-pillar:hover {
    transform:    translateY(-5px);
    box-shadow:   var(--shadow-md);
    border-color: var(--sea-200);
}
.pres-pillar__icon {
    width:           52px;
    height:          52px;
    border-radius:   var(--r-lg);
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       1.3rem;
    background:      var(--nature-50);
    color:           var(--nature-600);
    flex-shrink:     0;
    transition:      transform var(--t-base);
}
.pres-pillar:hover .pres-pillar__icon { transform: scale(1.1) rotate(-4deg); }
.pres-pillar__icon--amber { background: var(--amber-100); color: #92400e;        }
.pres-pillar__icon--sea   { background: var(--sea-50);    color: var(--sea-600); }
.pres-pillar__icon--sky   { background: var(--sky-50);    color: var(--sky-600); }

.pres-pillar__title {
    font-family: var(--font-heading);
    font-size:   1rem;
    font-weight: 700;
    color:       var(--gray-900);
    line-height: 1.3;
}
.pres-pillar__text {
    font-size:   0.82rem;
    color:       var(--gray-500);
    line-height: 1.75;
    flex:        1;
}
.pres-pillar__text strong { color: var(--gray-800); }
.pres-pillar__tags {
    display:   flex;
    flex-wrap: wrap;
    gap:       var(--s1);
}
.pres-pillar__tags span {
    font-size:     0.66rem;
    font-weight:   700;
    padding:       0.2rem 0.5rem;
    background:    var(--nature-50);
    color:         var(--nature-700);
    border:        1px solid var(--nature-200);
    border-radius: var(--r-full);
}
.pres-pillar__link {
    display:         inline-flex;
    align-items:     center;
    gap:             0.4rem;
    font-size:       0.8rem;
    font-weight:     700;
    color:           var(--nature-600);
    text-decoration: none;
    border-bottom:   1px solid var(--nature-200);
    padding-bottom:  2px;
    width:           fit-content;
    transition:      gap var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.pres-pillar__link:hover             { gap: 0.65rem; color: var(--nature-700); border-color: var(--nature-500); }
.pres-pillar__link--amber            { color: #92400e;           border-color: #fde68a;           }
.pres-pillar__link--amber:hover      { color: #78350f;           border-color: #d97706;           }
.pres-pillar__link--sea              { color: var(--sea-600);    border-color: var(--sea-200);    }
.pres-pillar__link--sea:hover        { color: var(--sea-800);    border-color: var(--sea-500);    }
.pres-pillar__link--sky              { color: var(--sky-600);    border-color: var(--sky-200);    }
.pres-pillar__link--sky:hover        { color: var(--sky-800);    border-color: var(--sky-500);    }


/* ══════════════════════════════════════════════════════════════
   §4 · SECTION DASHBOARD CHIFFRES CLÉS
══════════════════════════════════════════════════════════════ */

.pres-section--dashboard {
    position: relative;
    overflow: hidden;
    padding: var(--s24) 0;
    background: linear-gradient(
        135deg,
        var(--sky-900)     0%,
        var(--sea-900)    50%,
        var(--nature-900) 100%
    );
    color: var(--white);
}
.pres-section--dashboard::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,216,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.pres-section--dashboard::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,136,63,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.pres-section--dashboard > .container { position: relative; z-index: 1; }

.pres-dashboard-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   var(--s5);
    margin-bottom:         var(--s10);
}
.pres-dash-block {
    padding:       var(--s5);
    border-radius: 1.25rem;
    background:    rgba(255, 255, 255, 0.06);
    border:        1px solid rgba(255, 255, 255, 0.10);
    transition:    background var(--t-base), transform var(--t-base);
    min-width:     0; /* v3.2.1 : empêche débordement en grid */
}
.pres-dash-block:hover {
    background: rgba(255, 255, 255, 0.10);
    transform:  translateY(-3px);
}
.pres-dash-block__header {
    display:        flex;
    align-items:    center;
    gap:            var(--s3);
    margin-bottom:  var(--s4);
    padding-bottom: var(--s3);
    border-bottom:  1px solid rgba(255, 255, 255, 0.10);
}
.pres-dash-block__header h3 {
    font-size:      0.78rem;
    font-weight:    800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color:          rgba(255, 255, 255, 0.75);
}
.pres-dash-block__header-icon         { font-size: 1rem; color: var(--sea-300);    }
.pres-dash-block__header-icon--amber  {                  color: var(--amber-100);  }
.pres-dash-block__header-icon--nature {                  color: var(--nature-300); }
.pres-dash-block__header-icon--sea    {                  color: var(--sea-300);    }

.pres-dash-list {
    display:        flex;
    flex-direction: column;
    gap:            var(--s3);
    list-style:     none;
    margin:         0;
    padding:        0;
}
.pres-dash-item {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             var(--s2);
    padding-bottom:  var(--s2);
    border-bottom:   1px solid rgba(255, 255, 255, 0.06);
}
.pres-dash-item:last-child { border-bottom: none; padding-bottom: 0; }
.pres-dash-item__label {
    font-size:   0.72rem;
    color:       rgba(255, 255, 255, 0.50);
    line-height: 1.4;
    flex:        1;
    min-width:   0; /* v3.2.1 : autorise le shrink en flex */
}
.pres-dash-item__value {
    font-family:   var(--font-condensed);
    font-size:     0.9rem;
    font-weight:   800;
    color:         var(--white);
    white-space:   nowrap;
    text-align:    right;
    flex-shrink:   0;       /* v3.2.1 : la valeur ne se compresse pas */
    overflow-wrap: anywhere; /* v3.2.1 : fallback si nowrap saute */
}
.pres-dash-item__value--alert    { color: #fca5a5;           }
.pres-dash-item__value--positive { color: var(--nature-300); }

.pres-dashboard-sources {
    font-size:   0.72rem;
    color:       rgba(255, 255, 255, 0.35);
    text-align:  center;
    line-height: 1.7;
    margin-top:  var(--s6);
}
.pres-dashboard-sources a       { color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--t-fast); }
.pres-dashboard-sources a:hover { color: var(--white); }


/* ══════════════════════════════════════════════════════════════
   §5 · CTA FINAL
══════════════════════════════════════════════════════════════ */

.pres-cta-final {
    position: relative;
    overflow: hidden;
    padding: var(--s24) 0;
}
.pres-cta-final__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.pres-cta-final__bg .img-responsive,
.pres-cta-final__bg picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}
.pres-cta-final__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(6,  47,  74, 0.93) 0%,
        rgba(14, 92,  47, 0.88) 50%,
        rgba(6,  47,  74, 0.93) 100%
    );
}
.pres-cta-final > .container { position: relative; z-index: 2; }

.pres-cta-final__inner {
    text-align: center;
    max-width:  760px;
    margin:     0 auto;
}
.pres-cta-final__badge {
    display:         inline-flex;
    align-items:     center;
    gap:             var(--s2);
    padding:         0.4rem 1rem;
    background:      rgba(255, 255, 255, 0.10);
    border:          1px solid rgba(255, 255, 255, 0.20);
    border-radius:   var(--r-full);
    color:           rgba(255, 255, 255, 0.70);
    font-size:       0.72rem;
    font-weight:     700;
    letter-spacing:  0.10em;
    text-transform:  uppercase;
    margin-bottom:   var(--s6);
    backdrop-filter: blur(6px);
}
.pres-cta-final__badge i { color: var(--nature-300); }

.pres-cta-final__title {
    font-family:    var(--font-heading);
    font-size:      clamp(2.2rem, 5vw, 4rem);
    font-weight:    700;
    color:          var(--white);
    line-height:    1.05;
    margin-bottom:  var(--s5);
    letter-spacing: -0.02em;
}
.pres-cta-final__accent {
    display: block;
    background: linear-gradient(90deg, var(--nature-300), var(--sea-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}
.pres-cta-final__lead {
    font-size:    1rem;
    color:        rgba(255, 255, 255, 0.72);
    line-height:  1.85;
    max-width:    560px;
    margin:       0 auto var(--s10);
}
.pres-cta-final__links {
    display:         flex;
    justify-content: center;
    gap:             var(--s4);
    flex-wrap:       wrap;
    margin-bottom:   var(--s10);
}
.pres-cta-link {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             var(--s2);
    text-decoration: none;
    transition:      transform var(--t-base);
}
.pres-cta-link:hover { transform: translateY(-4px); }
.pres-cta-link__icon {
    width:           60px;
    height:          60px;
    border-radius:   1.1rem;
    background:      rgba(255, 255, 255, 0.10);
    border:          1px solid rgba(255, 255, 255, 0.20);
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       1.4rem;
    color:           var(--white);
    backdrop-filter: blur(8px);
    transition:      background var(--t-base), border-color var(--t-base),
                     box-shadow var(--t-base);
}
.pres-cta-link:hover .pres-cta-link__icon {
    background:   rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow:   0 8px 24px rgba(0, 0, 0, 0.22);
}
.pres-cta-link__label {
    font-size:      0.72rem;
    font-weight:    700;
    color:          rgba(255, 255, 255, 0.70);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition:     color var(--t-fast);
}
.pres-cta-link:hover .pres-cta-link__label { color: var(--white); }

.pres-cta-final__actions {
    display:         flex;
    gap:             var(--s4);
    justify-content: center;
    flex-wrap:       wrap;
}
.btn--cta-ghost {
    display:         inline-flex;
    align-items:     center;
    gap:             var(--s2);
    padding:         0.75rem 1.75rem;
    background:      transparent;
    color:           var(--white);
    border:          2px solid rgba(255, 255, 255, 0.45);
    border-radius:   var(--r-full);
    font-size:       0.875rem;
    font-weight:     700;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition:      background var(--t-base), border-color var(--t-base),
                     transform var(--t-base);
}
.btn--cta-ghost:hover {
    background:   rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    transform:    translateY(-2px);
}
.btn--cta-whatsapp {
    display:         inline-flex;
    align-items:     center;
    gap:             var(--s2);
    padding:         0.75rem 1.75rem;
    background:      #25d366;
    color:           var(--white);
    border:          2px solid #25d366;
    border-radius:   var(--r-full);
    font-size:       0.875rem;
    font-weight:     700;
    text-decoration: none;
    transition:      background var(--t-base), transform var(--t-base),
                     box-shadow var(--t-base);
}
.btn--cta-whatsapp:hover {
    background:   #1ebe5d;
    border-color: #1ebe5d;
    transform:    translateY(-2px);
    box-shadow:   0 8px 24px rgba(37, 211, 102, 0.40);
}


/* ══════════════════════════════════════════════════════════════
   §6 · COMPOSANTS PARTAGÉS
══════════════════════════════════════════════════════════════ */

/* ── Fil d'Ariane ─────────────────────────────────────────── */
.pres-breadcrumb { display: flex; align-items: center; }
.pres-breadcrumb__list {
    display:         inline-flex;
    align-items:     center;
    flex-wrap:       wrap;
    gap:             var(--s1);
    list-style:      none;
    margin:          0;
    padding:         0.4rem 1rem;
    background:      rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border:          1px solid rgba(255, 255, 255, 0.14);
    border-radius:   var(--r-full);
    box-shadow:      0 2px 12px rgba(0, 0, 0, 0.18);
}
.pres-breadcrumb__item { display: flex; align-items: center; }
.pres-breadcrumb__link {
    display:         inline-flex;
    align-items:     center;
    gap:             0.35rem;
    color:           rgba(255, 255, 255, 0.65);
    font-size:       0.78rem;
    font-weight:     500;
    text-decoration: none;
    padding:         0.2rem 0.4rem;
    border-radius:   var(--r-sm);
    white-space:     nowrap;
    transition:      color var(--t-fast), background var(--t-fast);
}
.pres-breadcrumb__link i { font-size: 0.65rem; }
.pres-breadcrumb__link:hover {
    color:      var(--white);
    background: rgba(255, 255, 255, 0.10);
}
.pres-breadcrumb__link:focus-visible {
    outline:        2px solid var(--sea-300);
    outline-offset: 2px;
}
.pres-breadcrumb__sep {
    color:          rgba(255, 255, 255, 0.28);
    font-size:      0.50rem;
    pointer-events: none;
    user-select:    none;
    padding:        0 0.1rem;
}
.pres-breadcrumb__item--current {
    display:       inline-flex;
    align-items:   center;
    gap:           0.35rem;
    color:         var(--white);
    font-size:     0.78rem;
    font-weight:   700;
    padding:       0.2rem 0.5rem;
    border-radius: var(--r-sm);
    background:    rgba(255, 255, 255, 0.12);
    white-space:   nowrap;
}
.pres-breadcrumb__item--current i { font-size: 0.65rem; color: var(--sea-300); }

/* ── Popups Leaflet ───────────────────────────────────────── */
.anosy-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 0.70rem;
    box-shadow:    0 4px 20px rgba(6, 47, 74, 0.18);
    border:        1px solid rgba(30, 136, 229, 0.18);
    padding:       0;
    font-family:   inherit;
    overflow:      hidden;
}
.anosy-popup-wrap .leaflet-popup-content { margin: 0; padding: 0; }
.anosy-popup-wrap .leaflet-popup-tip     { background: #fff; }

.anosy-popup {
    padding:     0.70rem 1rem;
    font-size:   0.82rem;
    line-height: 1.55;
    color:       #0f2830;
}
.anosy-popup strong {
    display:       block;
    font-size:     0.90rem;
    color:         #1E88E5;
    margin-bottom: 0.15rem;
}
.anosy-popup small { color: #2597a0; font-size: 0.73rem; }

/* ── Icône capitale (marker Leaflet) ──────────────────────── */
.anosy-capital-icon { background: transparent; border: none; }
.anosy-capital-icon__dot {
    width:           28px;
    height:          28px;
    background:      #1E88E5;
    border:          3px solid #fff;
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    box-shadow:      0 2px 10px rgba(30, 136, 229, 0.55);
    cursor:          pointer;
    transition:      transform 0.2s ease, box-shadow 0.2s ease;
}
.anosy-capital-icon__dot:hover {
    transform:  scale(1.18);
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.70);
}
.anosy-capital-icon__dot .fas { color: #fcd34d; font-size: 0.68rem; }

/* ── Label central "Région Anosy" ─────────────────────────── */
.anosy-region-label          { pointer-events: none; background: transparent; border: none; }
.anosy-region-label span {
    display:         inline-block;
    background:      rgba(30, 136, 229, 0.82);
    color:           #fff;
    font-size:       0.70rem;
    font-weight:     700;
    letter-spacing:  0.10em;
    text-transform:  uppercase;
    padding:         0.25rem 0.65rem;
    border-radius:   1rem;
    white-space:     nowrap;
    box-shadow:      0 2px 8px rgba(6, 47, 74, 0.25);
    border:          1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Contrôles zoom Leaflet ───────────────────────────────── */
#anosy-map .leaflet-control-zoom a {
    color:       #1E88E5 !important;
    font-weight: 700;
}
#anosy-map .leaflet-control-zoom a:hover {
    background: #e3f2fd !important;
    color:      #1565C0 !important;
}
#anosy-map .leaflet-control-attribution {
    font-size:  0.62rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
}


/* ══════════════════════════════════════════════════════════════
   §7 · ANIMATIONS
══════════════════════════════════════════════════════════════ */

@keyframes particleFloat {
    0%,  100% { transform: translateY(0)     scale(1);    opacity: 0.18; }
    50%        { transform: translateY(-14px) scale(1.15); opacity: 0.45; }
}

.mc-reveal {
    will-change: transform, opacity;
    transition:  opacity 0.55s ease, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.mc-reveal--fade-up    { opacity: 0; transform: translateY(28px);  }
.mc-reveal--fade-down  { opacity: 0; transform: translateY(-28px); }
.mc-reveal--fade-left  { opacity: 0; transform: translateX(28px);  }
.mc-reveal--fade-right { opacity: 0; transform: translateX(-28px); }
.mc-reveal--scale-in   { opacity: 0; transform: scale(0.93);       }
.mc-reveal--visible    { opacity: 1; transform: none;              }


/* ══════════════════════════════════════════════════════════════
   §8 · RESPONSIVE — CORRIGÉ v3.2.1
   ─────────────────────────────────────────────────────────────
   RÈGLE FONDAMENTALE :
   ▸ La hauteur de la carte est TOUJOURS définie sur le WRAPPER
     (.pres-identity__map-wrap), jamais sur #anosy-map.
   ▸ #anosy-map = position:absolute inset:0 → suit le wrapper.
   ▸ Pas d'aspect-ratio sur le wrapper (source de height=0).
   ─────────────────────────────────────────────────────────────
   FIX v3.2.1 — Cascade CSS :
   Les anciens overrides en fin de fichier (`@media (max-width:1280px)`)
   écrasaient les règles mobiles déclarées plus tôt par cascade.
   Désormais, chaque override est BORNÉ avec `min-width: 768px`
   pour qu'il n'affecte QUE la plage tablette/desktop intermédiaire.
══════════════════════════════════════════════════════════════ */

/* ── ≥ 1200px (xl Bootstrap) ───────────────────────────── */
@media (min-width: 1200px) {
    .pres-identity__map-wrap { height: 500px; }
}

/* ── 992px – 1199px (lg Bootstrap) ─────────────────────── */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pres-identity__map-wrap { height: 460px; }
}

/* ── 768px – 991px (md Bootstrap) ──────────────────────── */
@media (min-width: 768px) and (max-width: 991.98px) {
    .pres-identity__map-wrap { height: 400px; }
    .pres-dashboard-grid     { grid-template-columns: repeat(2, 1fr); }
    .pres-pillars-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* ── 576px – 767px (sm Bootstrap) ──────────────────────── */
@media (min-width: 576px) and (max-width: 767.98px) {
    .pres-identity__map-wrap   { height: 340px; }
    .pres-banner               { min-height: 260px; background-position: center 40%; }
    .pres-banner__inner        { padding: 1.5rem 1.25rem 3rem; }
    .pres-banner__subtitle     { display: none; }
    .pres-pillars-grid         { grid-template-columns: 1fr; }
    .pres-dashboard-grid       { grid-template-columns: 1fr; }
    .pres-identity-grid        { grid-template-columns: 1fr; gap: var(--s10); }
    .pres-identity__panel      { max-width: 560px; margin: 0 auto; }
    .pres-cta-final            { padding: var(--s16) 0; }
    .pres-cta-final__links     { gap: var(--s3); }
    .pres-cta-link__icon       { width: 50px; height: 50px; font-size: 1.2rem; }
    .pres-cta-final__actions   { flex-direction: column; align-items: center; }
    .pres-cta-final__actions .btn--cta-ghost,
    .pres-cta-final__actions .btn--cta-whatsapp {
        width: 100%; max-width: 320px; justify-content: center;
    }
}

/* ── < 576px (xs Bootstrap) ─────────────────────────────── */
@media (max-width: 575.98px) {
    .pres-identity__map-wrap   { height: 300px; min-height: 260px; }
    .pres-banner               { min-height: 220px; }
    .pres-banner__inner        { padding: 1.25rem 1rem 2.5rem; }
    .pres-banner__subtitle     { display: none; }
    .pres-pillars-grid         { grid-template-columns: 1fr; }
    .pres-dashboard-grid       { grid-template-columns: 1fr; }
    .pres-identity-grid        { grid-template-columns: 1fr; gap: var(--s8); }
    .pres-identity__panel      { max-width: 100%; }
    .pres-identity__data-grid  { grid-template-columns: 1fr 1fr; }
    .pres-identity__subnav     { flex-direction: column; }
    .pres-subnav-link          { justify-content: center; }
    /* Breadcrumb : icônes seules sur très petits écrans */
    .pres-breadcrumb__link span,
    .pres-breadcrumb__item--current span { display: none; }
    .pres-breadcrumb__link i,
    .pres-breadcrumb__item--current i    { font-size: 0.85rem; }
    .pres-breadcrumb__list               { padding: 0.35rem 0.75rem; }
    /* CTA */
    .pres-cta-link__icon     { width: 44px; height: 44px; font-size: 1.1rem; }
    .pres-cta-link__label    { font-size: 0.62rem; }
    .pres-cta-final__title   { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .pres-cta-final__actions { flex-direction: column; align-items: center; }
    .pres-cta-final__actions .btn--cta-ghost,
    .pres-cta-final__actions .btn--cta-whatsapp {
        width: 100%; max-width: 280px; justify-content: center;
    }
    /* v3.2.1 : valeurs autorisées à wrap si vraiment trop longues */
    .pres-dash-item__value {
        white-space: normal;
        line-height: 1.2;
    }
}

/* ── 768px – 1100px : grille identité en colonne unique ────
   FIX v3.2.1 — `min-width: 768px` AJOUTÉ pour ne PAS écraser
   les règles mobiles ci-dessus.
──────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1100px) {
    .pres-identity-grid   { grid-template-columns: 1fr; gap: var(--s10); }
    .pres-identity__panel { max-width: 560px; margin: 0 auto; }
}

/* ── 768px – 1280px : dashboard + piliers sur 2 colonnes ───
   FIX v3.2.1 — `min-width: 768px` AJOUTÉ. Sans ça, la règle
   gagnait par cascade sur les rules mobiles → 2 colonnes
   forcées sur smartphone → débordement horizontal des valeurs
   longues ("~859 000", "~1 Md USD", etc.).
──────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1280px) {
    .pres-dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .pres-pillars-grid   { grid-template-columns: repeat(2, 1fr); }
}


/* ══════════════════════════════════════════════════════════════
   §9 · NAVIGATION SOUS-RUBRIQUES (anciennement §7 doublonné)
══════════════════════════════════════════════════════════════ */

.hc-section--nav { padding: var(--s16) 0; }

.hc-subnav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: var(--s8);
}

.hc-subnav-card {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s4) var(--s5);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-xl);
    text-decoration: none;
    transition:
        border-color var(--t-fast),
        box-shadow var(--t-fast),
        transform var(--t-fast),
        background var(--t-fast);
    min-width: 0; /* v3.2.1 : défensif */
}
.hc-subnav-card:hover {
    border-color: var(--sea-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}
.hc-subnav-card--current {
    background: var(--amber-100);
    border-color: var(--amber-400);
    pointer-events: none;
}

.hc-subnav-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--sea-50);
    color: var(--sea-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform var(--t-fast);
}
.hc-subnav-card:hover .hc-subnav-card__icon { transform: scale(1.08); }
.hc-subnav-card__icon--amber  { background: var(--amber-100); color: #92400e;           }
.hc-subnav-card__icon--sky    { background: var(--sky-50);    color: var(--sky-600);    }
.hc-subnav-card__icon--nature { background: var(--nature-50); color: var(--nature-700); }
.hc-subnav-card__icon--sea    { background: var(--sea-50);    color: var(--sea-600);    }

.hc-subnav-card__body { flex: 1; min-width: 0; }
.hc-subnav-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hc-subnav-card__text {
    font-size: 0.68rem;
    color: var(--gray-400);
    margin-top: 0.1rem;
}
.hc-subnav-card--current .hc-subnav-card__title { color: var(--amber-800); }
.hc-subnav-card--current .hc-subnav-card__text  { color: var(--amber-600); }

.hc-subnav-card__arrow {
    font-size: 0.75rem;
    color: var(--gray-300);
    flex-shrink: 0;
    transition: color var(--t-fast), transform var(--t-fast);
}
.hc-subnav-card:hover .hc-subnav-card__arrow {
    color: var(--sea-500);
    transform: translateX(3px);
}
.hc-subnav-card--current .hc-subnav-card__arrow { color: var(--amber-600); }

/* ── Subnav responsive ── */
/* ≤ 1280px : 3 colonnes */
@media (max-width: 1280px) {
    .hc-subnav-grid   { grid-template-columns: repeat(3, 1fr); }
}

/* ≤ 1100px : 2 colonnes */
@media (max-width: 1100px) {
    .hc-subnav-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ≤ 768px : 1 colonne */
@media (max-width: 768px) {
    .hc-subnav-grid   { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   FIN presentation.css v3.2.1 — MOBILE GRID FIX
════════════════════════════════════════════════════════════════════ */