/* ============================================================
   home.css — Page d'accueil
   ============================================================ */

/* ══════════════════════════════════════════════
   SECTION 1 — HERO
══════════════════════════════════════════════ */

.home-hero {
    background: linear-gradient(135deg, #1B3A6B 0%, #1B5EA7 60%, #3A7FCA 100%);
    position: relative;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    align-items: center;
}

/* Motif de fond discret */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(245,166,35,.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 40%);
    pointer-events: none;
}

.home-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Box gauche : texte */
.home-hero-text {
    flex: 1;
    min-width: 0;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(245,166,35,.18);
    border: 1px solid rgba(245,166,35,.35);
    color: #F5A623;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    margin-bottom: 20px;
}

.home-hero-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 14px;
}

.home-hero-slogan {
    font-size: 1.15rem;
    font-weight: 700;
    color: #F5A623;
    font-style: italic;
    margin-bottom: 16px;
}

.home-hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,.80);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 32px;
}

.home-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Box droite : image */
.home-hero-image {
    flex: 0 0 420px;
    position: relative;
}

.home-hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

.home-hero-img-placeholder {
    width: 100%;
    height: 380px;
    background: rgba(255,255,255,.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255,255,255,.2);
}

.home-hero-img-placeholder i {
    font-size: 80px;
    color: rgba(255,255,255,.25);
}

@keyframes cade-ring-pulse {
    0%   { transform: scale(1);   opacity: .5; }
    100% { transform: scale(2.2); opacity: 0; }
}
@keyframes cade-badge-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}
@keyframes cade-badge-float-alt {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(5px); }
}

.home-hero-badge-float {
    position: absolute;
    bottom: -18px;
    left: 24px;
}
.home-hero-badge-float-ring {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid #F5A623;
    animation: cade-ring-pulse 2s ease-out infinite;
    pointer-events: none;
}
.home-hero-badge-float-ring--delay {
    animation-delay: .7s;
}
.home-hero-badge-float-inner {
    position: relative;
    background: #F5A623;
    color: #1B3A6B;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 8px 24px rgba(245,166,35,.4);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    animation: cade-badge-float 3s ease-in-out infinite;
    z-index: 1;
}

.home-hero-badge-float-1 {
    position: absolute;
    top: -18px;
    right: 24px;
    background: rgba(27,58,107,.65);
    border: 1px solid rgba(255,255,255,.25);
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    animation: cade-badge-float-alt 3.5s ease-in-out infinite;
    animation-delay: .5s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.badge-float-number {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Playfair Display', Georgia, serif;
    color: #1B3A6B;
}
.badge-float-label {
    font-size: 12px;
    font-weight: 700;
    opacity: .85;
    color: #1B3A6B;
}

.badge-float-number-1 {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Playfair Display', Georgia, serif;
    color: #F5A623;
}
.badge-float-label-1 {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
}

/* ══════════════════════════════════════════════
   SECTION 2 — STATS + CARTE
══════════════════════════════════════════════ */

.home-stats-section {
    background: #F0F4F8;
    padding: 80px 0;
}

.home-stats-inner {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Box stats */
.home-stats-box {
    flex: 1;
}

.home-stats-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1.6rem;
    color: #1B3A6B;
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 3px solid #F5A623;
    display: inline-block;
}

.home-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(27,58,107,.08);
    transition: all 200ms ease;
}

.home-stat-item:hover {
    transform: translateX(6px);
    border-color: #F5A623;
    box-shadow: 0 4px 16px rgba(27,58,107,.08);
}

.home-stat-icon {
    width: 52px;
    height: 52px;
    background: #1B3A6B;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-stat-icon i {
    font-size: 22px;
    color: #F5A623;
}

.home-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1B3A6B;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1;
}

.home-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #1B5EA7;
}

.home-stat-desc {
    font-size: 11px;
    color: #444;
}

/* Box carte */
.home-map-box {
    flex: 1;
    position: relative;
}

.home-map-leaflet{
    height: 80%;
}
.home-map-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1.6rem;
    color: #1B3A6B;
    margin-bottom: 8px;
    padding-bottom: 14px;
    border-bottom: 3px solid #1A6B5A;
    display: inline-block;
}

.home-map-subtitle {
    font-size: 13px;
    color: #444;
    margin-bottom: 24px;
}

.home-map-container {
    position: relative;
    width: 100%;
    height: 440px;
    min-height: 440px;
    background: #EBF4FF;
    border-radius: 14px;
    overflow: hidden;
}

/* Globe / placeholder carte */
.home-map-globe {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(27,58,107,.1);
    padding: 32px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-map-globe-inner {
    text-align: center;
    width: 100%;
}

.home-map-globe-icon {
    font-size: 72px;
    color: #1B5EA7;
    opacity: .3;
    display: block;
    margin-bottom: 12px;
}

.home-map-globe-text {
    font-size: 14px;
    font-weight: 700;
    color: #1B3A6B;
    margin-bottom: 20px;
}

.home-map-countries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.home-map-country-btn {
    padding: 6px 14px;
    border-radius: 20px;
    background: #EBF4FF;
    color: #1B5EA7;
    border: 1.5px solid #8AB4D9;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 200ms ease;
    font-family: 'Nunito Sans', system-ui, sans-serif;
}

.home-map-country-btn:hover {
    background: #1B5EA7;
    color: #ffffff;
    border-color: #1B5EA7;
    transform: translateY(-2px);
}

/* Popup pays */
.home-map-popup {
    position: absolute;
    top: 0;
    right: -10px;
    width: 280px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(27,58,107,.18);
    border: 1px solid rgba(27,58,107,.1);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.97);
    transition: all 250ms ease;
}

.home-map-popup.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.home-map-popup-inner {
    padding: 20px;
}

.home-map-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F5A623;
}

.home-map-popup-country {
    font-size: 15px;
    font-weight: 800;
    color: #1B3A6B;
    margin: 0;
}

.home-map-popup-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F0F4F8;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #444444;
    transition: all 200ms ease;
    flex-shrink: 0;
}

.home-map-popup-close:hover {
    background: #1B3A6B;
    color: #ffffff;
}

.home-map-popup-orgs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.home-map-popup-orgs li {
    font-size: 13px;
    color: #1B3A6B;
    padding: 8px 12px;
    background: #F8FAFC;
    border-radius: 8px;
    border-left: 3px solid #3A7FCA;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-map-popup-orgs li a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}
.home-map-popup-orgs li a:hover {
    color: #1B5EA7;
}

/* ══════════════════════════════════════════════
   SECTION 3 — MISSION & VISION
══════════════════════════════════════════════ */

.home-mission-section {
    padding: 80px 0;
    background: #ffffff;
}

.home-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(27,58,107,.1);
}

/* Mission — fond blanc */
.home-mission-box {
    background: #ffffff;
    padding: 52px 48px;
    border-right: 1px solid rgba(27,58,107,.08);
}

.home-mission-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1B5EA7;
    background: #EBF4FF;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.home-mission-label--light {
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.15);
}

.home-mission-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1B3A6B;
    font-style: italic;
    border-left: 4px solid #F5A623;
    padding-left: 20px;
    margin: 0 0 28px;
}

.home-mission-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.home-mission-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #444;
    line-height: 1.55;
}

.home-mission-point i {
    color: #2E8B3A;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Vision — fond bleu navy */
.home-vision-box {
    background: #1B3A6B;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
}

.home-vision-text {
    font-family: 'Open Sans', Georgia, serif;
    font-size: 1.2rem;
    color: rgba(255,255,255,.9);
    line-height: 1.75;
    font-style: italic;
    flex: 1;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════
   SECTION 4 — VALEURS
══════════════════════════════════════════════ */

.home-values-section {
    background: #F0F4F8;
}

.home-values-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-top: 0;
}

.home-value-card {
    aspect-ratio: 1;
    perspective: 800px;
    cursor: pointer;
}

.home-value-front,
.home-value-back {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    backface-visibility: hidden;
    transition: transform 450ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

/* Fix : le card doit être relatif pour que front/back soient absolus */
.home-value-card {
    position: relative;
}

.home-value-front {
    background: #ffffff;
    border: 1px solid rgba(27,58,107,.08);
    transform: rotateY(0deg);
}

.home-value-back {
    transform: rotateY(180deg);
    color: #ffffff;
}

.home-value-card:hover .home-value-front {
    transform: rotateY(-180deg);
}

.home-value-card:hover .home-value-back {
    transform: rotateY(0deg);
}

.home-value-icon {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1;
}

.home-value-name {
    font-size: 11px;
    font-weight: 800;
    color: #1B3A6B;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.home-value-back-icon {
    font-size: 22px;
    opacity: .4;
    margin-bottom: 8px;
}

.home-value-desc {
    font-size: 11px;
    line-height: 1.55;
    opacity: .92;
    margin: 0;
}

/* ══════════════════════════════════════════════
   SECTION 5 — ACTUALITÉS
══════════════════════════════════════════════ */

.home-news-section {
    background: #ffffff;
}

.home-news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    margin-top: 0;
}

/* Grande carte featured */
.home-news-featured {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(27,58,107,.1);
    overflow: hidden;
    transition: all 250ms ease;
    display: flex;
    flex-direction: column;
}

.home-news-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(27,58,107,.12);
}

.home-news-featured-img {
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.home-news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.home-news-featured:hover .home-news-featured-img img {
    transform: scale(1.04);
}

.home-news-featured-img--placeholder {
    background: #EBF4FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-news-featured-img--placeholder i {
    font-size: 56px;
    color: #8AB4D9;
}

.home-news-featured-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-news-featured-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1B3A6B;
    margin: 10px 0 12px;
    line-height: 1.35;
}

.home-news-featured-title a {
    color: inherit;
    text-decoration: none;
}

.home-news-featured-title a:hover {
    color: #1B5EA7;
}

.home-news-featured-excerpt {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 0;
}

.home-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(27,58,107,.08);
}

.home-news-date {
    font-size: 12px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-news-read-more {
    font-size: 13px;
    font-weight: 700;
    color: #1B5EA7;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: gap 200ms ease;
}

.home-news-read-more:hover {
    gap: 9px;
    color: #1B3A6B;
}

/* Petites cartes */
.home-news-others {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-news-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(27,58,107,.1);
    overflow: hidden;
    display: flex;
    transition: all 250ms ease;
}

.home-news-card:hover {
    border-color: #3A7FCA;
    box-shadow: 0 6px 20px rgba(27,58,107,.08);
    transform: translateX(4px);
}

.home-news-card-img {
    width: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.home-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-card-img--placeholder {
    background: #EBF4FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-news-card-img--placeholder i {
    font-size: 24px;
    color: #8AB4D9;
}

.home-news-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-news-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1B3A6B;
    margin: 0;
    line-height: 1.4;
}

.home-news-card-title a {
    color: inherit;
    text-decoration: none;
}

.home-news-card-title a:hover { color: #1B5EA7; }

.home-news-footer {
    text-align: center;
    margin-top: 40px;
}

/* ══════════════════════════════════════════════
   SECTION 6 — DOMAINES D'ACTION
══════════════════════════════════════════════ */

.home-domains-section {
    background: #F0F4F8;
}

.home-domains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0;
}

.home-domain-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(27,58,107,.08);
    transition: all 250ms ease;
    position: relative;
    overflow: hidden;
}

.home-domain-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--domain-color, #1B5EA7);
    transform: scaleX(0);
    transition: transform 300ms ease;
    transform-origin: left;
}

.home-domain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(27,58,107,.12);
}

.home-domain-card:hover::before {
    transform: scaleX(1);
}

.home-domain-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    transition: all 250ms ease;
}

.home-domain-card:hover .home-domain-icon {
    transform: scale(1.1);
}

.home-domain-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1B3A6B;
    margin-bottom: 10px;
    line-height: 1.3;
}

.home-domain-text {
    font-size: 13px;
    color: #111;
    line-height: 1.7;
    margin: 0;
}

/* ══════════════════════════════════════════════
   SECTION 8 — CALL TO ACTION
══════════════════════════════════════════════ */

.home-cta-section {
    background: #1B3A6B;
    position: relative;
    overflow: hidden;
}

.home-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(245,166,35,.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(58,127,202,.12) 0%, transparent 50%);
    pointer-events: none;
}

.home-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 96px 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-cta-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #ffffff;
    margin-bottom: 18px;
    line-height: 1.25;
}

.home-cta-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 36px;
    line-height: 1.7;
}

.home-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.home-cta-contact {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
}

.home-cta-contact a {
    color: rgba(255,255,255,.6);
    transition: color 200ms ease;
}

.home-cta-contact a:hover {
    color: #F5A623;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .home-values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .home-hero-inner {
        flex-direction: column;
        padding: 56px 24px;
        gap: 40px;
    }
    .home-hero-image {
        flex: none;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    .home-stats-inner {
        flex-direction: column;
        padding: 0 24px;
    }
    .home-mission-grid {
        grid-template-columns: 1fr;
    }
    .home-vision-box {
        padding: 40px 32px;
    }
    .home-news-grid {
        grid-template-columns: 1fr;
    }
    .home-news-others {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .home-domains-grid {
        grid-template-columns: 1fr 1fr;
    }
    .home-values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .home-map-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(.97);
        width: 90vw;
        max-width: 340px;
    }
    .home-map-popup.is-open {
        transform: translate(-50%, -50%) scale(1);
    }
    .home-domains-grid {
        grid-template-columns: 1fr;
    }
    .home-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-news-others {
        grid-template-columns: 1fr;
    }
    .home-hero-actions {
        flex-direction: column;
    }
}
/* ══════════════════════════════════════════════
   CARTE LEAFLET
══════════════════════════════════════════════ */

.home-map-leaflet {
    width: 100%;
    height: 490px;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1;
}

/* Supprimer les tuiles de fond trop visibles */
.leaflet-tile-pane {
    opacity: 0.15 !important;
}

/* Légende */
.home-map-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1B3A6B;
}

.legend-item::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.8);
    flex-shrink: 0;
}

.legend-member::before    { background: #3A7FCA; }
.legend-non-member::before { background: #C8D8E8; }

/* Message erreur carte */
.map-error {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #444444;
    text-align: center;
    padding: 24px;
    background: #EBF4FF;
    border-radius: 14px;
}
.map-error i { font-size: 40px; color: #F5A623; }
.map-error p { margin: 0; font-size: 13px; line-height: 1.6; }

.map-geojson-error {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FFF4E0;
    color: #B8730A;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1000;
}

/* ══════════════════════════════════════════════
   RESPONSIVE – SECTION STATS + CARTE (MOBILE)
══════════════════════════════════════════════ */

@media (max-width: 575px) {
    /* ---------- Conteneur principal ---------- */
    .home-stats-section {
        padding: 60px 0;
        overflow-x: hidden;
    }

    .home-stats-inner {
        flex-direction: column;
        padding: 0 16px;
        gap: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    /* ---------- Titres (stats & carte) centrés ---------- */
    .home-stats-title,
    .home-map-title,
    .home-map-subtitle {
        text-align: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .home-stats-title {
        font-size: 1.4rem;
        border-bottom: 2px solid #F5A623;
        padding-bottom: 8px;
        width: fit-content;
    }

    .home-map-title {
        font-size: 1.4rem;
        border-bottom: 2px solid #1A6B5A;
        padding-bottom: 8px;
        width: fit-content;
    }

    .home-map-subtitle {
        font-size: 12px;
        margin-bottom: 16px;
    }

    /* ---------- Blocs statistiques (largeur pleine) ---------- */
    .home-stats-box {
        width: 100%;
        box-sizing: border-box;
    }

    .home-stats-grid {
        width: 100%;
        gap: 16px;
    }

    .home-stat-item {
        width: 100%;
        padding: 16px;
        gap: 12px;
        box-sizing: border-box;
        margin: 0;
        transform: none !important; /* évite le décalage au hover qui pourrait créer débordement */
    }

    .home-stat-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .home-stat-icon i {
        font-size: 18px;
    }

    .home-stat-value {
        font-size: 1.5rem;
    }

    .home-stat-label {
        font-size: 12px;
    }

    .home-stat-desc {
        font-size: 10px;
    }

    /* ---------- Carte ---------- */
    .home-map-box {
        width: 100%;
        box-sizing: border-box;
    }

    .home-map-leaflet {
        height: 380px;
        border-radius: 12px;
        width: 100%;
    }

    /* Légende centrée */
    .home-map-legend {
        justify-content: center;
        gap: 12px;
        margin-top: 12px;
    }

    .legend-item {
        font-size: 11px;
    }

    /* Popup réajusté pour rester dans l'écran */
    .home-map-popup {
        width: 85vw;
        max-width: 300px;
        left: 50%;
        right: auto;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.97);
    }

    .home-map-popup.is-open {
        transform: translate(-50%, -50%) scale(1);
    }

    .home-map-popup-inner {
        padding: 16px;
    }

    .home-map-popup-orgs {
        max-height: 180px;
    }

    .home-map-popup-orgs li {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Écrans très petits (≤ 400px) */
@media (max-width: 400px) {
    .home-stats-inner {
        padding: 0 12px;
    }

    .home-stat-item {
        padding: 12px;
    }

    .home-stat-value {
        font-size: 1.3rem;
    }

    .home-stat-label {
        font-size: 10px;
    }

    .home-map-leaflet {
        height: 320px;
    }

    .home-stats-title,
    .home-map-title {
        font-size: 1.2rem;
    }
}
/* ══════════════════════════════════════════════
   RESPONSIVE – TABLEttes (768px à 1024px)
══════════════════════════════════════════════ */

@media (min-width: 768px) and (max-width: 1024px) {
    /* --- HERO : centrage du texte --- */
    .home-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 32px;
    }

    .home-hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .home-hero-badge {
        align-self: center;
    }

    .home-hero-title {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-slogan {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-desc {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }

    /* Image hero : largeur réduite et centrée */
    .home-hero-image {
        flex: none;
        width: 70%;
        max-width: 500px;
        margin: 0 auto;
    }

    /* --- STATS : passage en colonne --- */
    .home-stats-inner {
        flex-direction: column;
        gap: 48px;
        padding: 0 32px;
    }

    .home-stats-box {
        width: 100%;
    }

    .home-stats-title {
        text-align: center;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .home-stats-grid {
        width: 100%;
    }

    .home-stat-item {
        width: 100%;
        box-sizing: border-box;
    }

    /* Carte Afrique : largeur pleine */
    .home-map-box {
        width: 100%;
    }

    .home-map-title {
        text-align: center;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .home-map-subtitle {
        text-align: center;
    }

    .home-map-leaflet {
        height: 450px;
    }
}

/* Pour les très grandes tablettes (820px, 912px) – complément */
@media (min-width: 820px) and (max-width: 1024px) {
    .home-hero-image {
        width: 60%;
        max-width: 550px;
    }

    .home-hero-title,
    .home-hero-slogan,
    .home-hero-desc {
        max-width: 90%;
    }
}

/* Ajustements pour les écrans entre 768px et 820px */
@media (min-width: 768px) and (max-width: 820px) {
    .home-hero-image {
        width: 80%;
    }
}