/* VARIABLES GLOBALES */
:root {
    --deep-blue: #0a192f;
    --hydro-cyan: #0dcaf0;
    --text-muted: #6c757d;
    --white-pure: #ffffff;
    --bg-light: #fcfcfc;
}

/* BASE */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--deep-blue);
}

/* NAVIGATION */
.custom-nav {
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* HERO & HEADERS */
.hero-section {
    min-height: 75vh;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), 
                url('https://images.unsplash.com/photo-1511316430157-19412976f452?auto=format&fit=crop&w=1600&q=80') center/cover;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.controverse-header {
    height: 40vh;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), 
                url('https://images.unsplash.com/photo-1473800348333-97ad9059e99a?auto=format&fit=crop&w=1600&q=80') center/cover;
    background-color: var(--deep-blue);
}

/* IMAGES & LOGOS */
.card-img-top {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* TITRES DÉCORATIFS */
h2.display-6 {
    color: var(--deep-blue);
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

h2.display-6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--hydro-cyan);
}

/* SECTION STATISTIQUES (AMÉLIORÉE) */
.stats-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.stat-item {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    position: relative;
    flex: 1;
}

/* Séparateurs verticaux (Desktop) */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #ddd;
}

.stat-number {
    color: var(--hydro-cyan);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--deep-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* Encapsulation globale pour éviter que le contenu touche les bords */
.container, .container-fluid {
    padding-left: 5%;  /* Espace à gauche */
    padding-right: 5%; /* Espace à droite */
}

/* Si tu veux que le texte des sections soit encore plus centré */
section {
    max-width: 1400px; /* Largeur maximale du site */
    margin-left: auto; /* Centre le bloc */
    margin-right: auto; /* Centre le bloc */
}

/* Subtitle span pour les parenthèses (d-block) */
.stat-label span.d-block {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.2rem;
    text-transform: none;
}

/* SECTION ACTEURS */
.header-line {
    width: 60px;
    height: 4px;
    background-color: var(--hydro-cyan);
    margin: -10px auto 20px auto; /* Centré par défaut */
}

.actor-card {
    background: var(--white-pure);
    padding: 2rem;
    border-radius: 0;
    border: none;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.actor-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.actor-details {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
    border-top: 1px solid #f1f1f1;
    padding-top: 1rem;
    margin-top: 1rem;
}

.border-info-top {
    border-top: 4px solid var(--hydro-cyan) !important;
}

/* CONTROVERSE & VIDÉO */
.enjeu-box {
    background: white;
    border-radius: 8px;
    height: 100%;
    transition: 0.3s ease;
}

.enjeu-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.video-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(13, 202, 240, 0.3);
    background: #000;
}

/* FOOTER DYNAMIQUE */
#dynamic-footer {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--hydro-cyan);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2000;
    display: flex;
    align-items: center;
}

#dynamic-footer.visible {
    bottom: 0;
}

.texte_footer {
    color: #f0f2f5;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.f-link {
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: 0.3s;
}

.f-link:hover {
    opacity: 1;
    color: var(--hydro-cyan);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* --- RESPONSIVE ACCUEIL --- */
@media (max-width: 991px) {
    /* Réduire la hauteur du Hero sur mobile */
    .hero-section {
        min-height: auto;
        padding-bottom: 60px;
        text-align: center;
    }

    /* Rendre la vidéo responsive */
    .video-wrapper iframe {
        height: 300px; /* Moins haut sur mobile */
    }

    /* Ajustement des titres */
    h1.display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Stats : on retire les bordures et on espace */
    .stat-item::after {
        display: none;
    }
    
    .stat-item {
        border-bottom: 1px solid #ddd;
        padding-bottom: 2rem;
        margin-bottom: 1rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }

    /* Footer : empilement des éléments */
    #dynamic-footer {
        height: auto;
        padding: 15px 0;
        text-align: center;
        flex-direction: column;
    }
    
    #dynamic-footer .col-md-4 {
        margin-bottom: 10px;
        text-align: center !important;
        border: none !important; /* Enlève les bordures latérales */
    }
}