:root {
    --deep-blue: #0a192f;
    --hydro-cyan: #0dcaf0;
}

body { font-family: 'Open Sans', sans-serif; background: #fdfdfd; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; }

/* Header & Nav Style */
.custom-nav {
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-img-top{
    width: 100px;      /* Votre taille */
    height: 100px;
    border-radius: 50%; /* Transforme le carré de l'image en cercle */
    object-fit: cover;  /* S'assure que le logo est bien centré */
}


.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);
}

/* Enjeux Boxes */
/* Agrandissement des cases */
.enjeu-box {
    background: white;
    border-radius: 12px;
    height: 100%;
    min-height: 250px; /* Plus grand */
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.enjeu-box:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--deep-blue) !important;
    background-color: #f8fdff;
}

.sub-enjeu-box {
    background: #ffffff;
    transition: all 0.3s ease;
    min-height: 120px; /* Hauteur minimale cohérente */
    height: auto;      /* Permet à la case de s'agrandir si le texte est long */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-enjeu-box:hover {
    transform: scale(1.02);
    border-color: #0dcaf0 !important;
    background-color: #f8fdff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

.sub-enjeu-box h4 {
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Style des modales pour correspondre au site */
.modal-content {
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(10, 25, 47, 0.2);
}

.modal-header .btn-close {
    background-color: var(--hydro-cyan);
    opacity: 1;
    border-radius: 50%;
    padding: 0.5rem;
}

/* Footer Dynamique avec liens */
#dynamic-footer {
    position: fixed;
    bottom: -100px; /* Caché par défaut */
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 25, 47, 0.98); /* Bleu très profond */
    backdrop-filter: blur(15px);
    border-top: 2px solid #0dcaf0; /* La ligne cyan du visuel */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2000;
}

.texte_footer {
    color: #f0f2f5;
}

/* Classe ajoutée par le JavaScript au scroll */
#dynamic-footer.visible {
    bottom: 0;
}

.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: #0dcaf0;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* --- RESPONSIVE CONTROVERSE --- */
@media (max-width: 991px) {
    .controverse-header {
        height: auto;
        padding: 100px 0 60px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* PDF Viewer responsive */
    embed {
        height: 400px; /* Moins haut sur mobile */
        width: 100%;
    }
    
    /* Titres des colonnes (Environnement, Eco, Humain) */
    .h3.border-bottom {
        font-size: 1.5rem;
        margin-top: 30px;
    }
    
    /* Réajustement du footer */
    #dynamic-footer {
        height: auto;
        padding: 10px 0;
    }
    
    #dynamic-footer .row {
        flex-direction: column;
        gap: 10px;
    }
    
    #dynamic-footer .col-md-4 {
        text-align: center !important;
        border: none !important;
    }
}