/* --- SÉCURITÉ ANTI-DÉBORDEMENT MOBILE --- */
* {
    box-sizing: border-box; /* Force le calcul correct des largeurs avec padding */
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Coupe tout ce qui dépasse à droite de l'écran */
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   CHARTE GRAPHIQUE & VARIABLES
   ========================================================================== */
:root {
    --helix-teal: #7499A1;       /* Bleu canard principal */
    --helix-light-blue: #C4E1E6;  /* Bleu clair footer */
    --helix-dark: #2C2C2C;       /* Texte anthracite */
    --helix-gold: #E2A923;       /* Doré Helix */
    --header-height: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   HEADER (Commun à toutes les pages)
   ========================================================================== */
.custom-navbar {
    /* CORRECTION Z-INDEX : Force le header à rester au premier plan */
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 9999 !important; 

    /* Fond semi-transparent avec flou (Glassmorphism) */
    background: rgba(116, 153, 161, 0.85) !important; 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    
    height: 80px !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

.custom-navbar .container {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.logo-text img {
    height: 55px !important; 
    width: auto !important;
    display: block;
    margin: 0 !important; /
}

.logo-text {
    font-weight: 600;
    letter-spacing: 2px;
    color: white !important;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Style des liens plus épuré */
.nav-link {
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: white !important;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--helix-gold) !important;
    transform: translateY(-1px);
}

/* Ajustements spécifiques pour le Menu Mobile (Collapse) */
@media (max-width: 991px) {
    .navbar-collapse {
        /* CORRECTION Z-INDEX : Pour que le menu ouvert passe aussi devant */
        position: relative;
        z-index: 10000 !important;
        background-color: var(--helix-teal); 
        padding: 1.5rem;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .nav-link {
        margin-left: 0 !important;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}
@media (min-width: 992px) {
    .logo-text img {
        height: 80px !important; /* Plus imposant sur ordinateur */
    }
}

/* ==========================================================================
   FOOTER (Commun à toutes les pages)
   ========================================================================== */
/* --- FOOTER HELIX PREMIUM --- */
.helix-footer {
    background: #0D1B1E; /* Ton bleu très sombre */
    padding: 80px 0 30px;
    color: white;
}

.footer-logo {
    height: 100px;
    width: auto;
}

.footer-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--helix-teal);
}

.footer-links, .footer-docs {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-docs li {
    margin-bottom: 12px;
}

.footer-links a, .footer-docs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover, .footer-docs a:hover {
    color: var(--helix-teal);
    padding-left: 5px;
}

/* Style spécifique pour les documents */
.text-orange { color: #E2A923 !important; }

.footer-docs a i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-docs a:hover i {
    transform: scale(1.2);
}

.footer-socials a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: #E2A923;
    transform: translateY(-3px);
}

.footer-hr {
    margin: 50px 0 30px;
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-outline-teal {
    border: 1px solid var(--helix-teal);
    color: var(--helix-teal);
}

.btn-outline-teal:hover {
    background: var(--helix-teal);
    color: white;
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%; 
    max-width: 800px;
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 0;
    z-index: 10001; /* Doit être au-dessus du header même en mobile */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none; 
    animation: slideUpCentered 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-text p {
    font-size: 0.9rem;
    font-weight: 300;
}

.btn-helix-light {
    background-color: #769EA6;
    color: white;
    border: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-helix-light:hover {
    background-color: #5d8289;
    color: white;
}

@keyframes slideUpCentered {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}