/* =========================================
   STYLE.CSS - GLOBAL (NAVBAR, FOOTER, FONTS)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- 1. VARIABLES & RESET --- */
:root {
    --primary-blue: #006AA7;
    --primary-orange: #F37021;
    --dark-blue: #001e30;      /* Fond du footer */
    --text-grey: #4a4a4a;
    --light-bg: #EEF6FC;       /* Fond du site */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-grey);
    overflow-x: hidden; /* Empêche le scroll horizontal indésirable */
}

/* --- 2. NAVIGATION (HEADER) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky; /* Reste collé en haut */
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.logo-container img {
    height: 50px;
    display: block;
    transition: transform 0.3s;
}
.logo-container:hover img { transform: scale(1.05); }

/* Liens du menu Desktop */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

/* Animation soulignement */
.nav-links > li > a:not(.btn-contact)::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    transition: width 0.4s ease-in-out;
    border-radius: 2px;
}
.nav-links > li > a:not(.btn-contact):hover::before { width: 100%; left: 0; }
.nav-links a:hover { color: var(--primary-orange); }

/* --- MENU DÉROULANT (DROPDOWN) --- */
.dropdown { position: relative; padding-bottom: 10px; margin-bottom: -10px; }
.dropdown .arrow-icon { font-size: 0.8em; margin-left: 5px; transition: transform 0.3s; }
.dropdown:hover .arrow-icon { transform: rotate(180deg); }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    z-index: 1001;
    border-top: 3px solid var(--primary-orange);
    animation: fadeIn 0.3s ease;
}
.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li a {
    display: block; padding: 12px 20px; color: var(--text-grey); font-size: 14px; border-bottom: 1px solid #f5f5f5;
}
.dropdown-menu li a:hover { background-color: #f9fcff; color: var(--primary-orange); padding-left: 25px; }
.dropdown-menu li a::before { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Bouton Contact */
.btn-contact {
    background: linear-gradient(135deg, var(--primary-blue), #005082);
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 106, 167, 0.3);
    transition: all 0.3s ease !important;
}
.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(243, 112, 33, 0.4);
    background: linear-gradient(135deg, var(--primary-orange), #d95e16);
}

/* Burger Menu (Caché sur Desktop) */
.burger { display: none; cursor: pointer; }
.burger div {
    width: 25px; height: 3px; background-color: var(--primary-blue);
    margin: 5px; transition: all 0.3s ease; border-radius: 2px;
}

/* --- 3. FOOTER --- */
footer {
    background-color: var(--dark-blue);
    color: #e0e0e0;
    margin-top: 80px;
    position: relative;
}
.footer-divider { height: 4px; background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange), var(--primary-blue)); width: 100%; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive Grid */
    gap: 40px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img { height: 60px; background: white; padding: 10px; border-radius: 8px; margin-bottom: 20px; }
.footer-desc { font-size: 14px; line-height: 1.6; color: #a0bacc; }

.footer-title {
    color: var(--white); font-size: 18px; margin-bottom: 25px; position: relative; padding-bottom: 10px; font-weight: 700; text-transform: uppercase;
}
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background-color: var(--primary-orange); }

.footer-services ul { list-style: none; }
.footer-services li { margin-bottom: 15px; }
.footer-services a { color: #cbd5e1; text-decoration: none; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.footer-services a:hover { color: var(--primary-orange); transform: translateX(5px); }

.contact-item { display: flex; align-items: center; gap: 15px; color: #cbd5e1; text-decoration: none; font-size: 15px; margin-bottom: 20px; transition: 0.3s; }
.icon-box { width: 35px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--primary-orange); }
.contact-item:hover { color: white; }
.contact-item:hover .icon-box { background: var(--primary-orange); color: white; }

.footer-bottom { background-color: #001522; padding: 20px; text-align: center; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.05); }


/* =========================================
   4. RESPONSIVE MOBILE (CORRECTIF FINAL)
   ========================================= */

@media screen and (max-width: 1024px) {
    
    body { overflow-x: hidden; }
    
    /* Classe pour bloquer le scroll quand menu ouvert */
    body.no-scroll { overflow: hidden; }

    .navbar {
        padding: 0 20px;
        justify-content: space-between;
    }

    /* BURGER VISIBLE */
    .burger {
        display: block !important; /* Force l'affichage */
        cursor: pointer;
        z-index: 2000; /* Au-dessus de tout */
    }

    /* MENU LATÉRAL (Caché par défaut) */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%; /* Prend tout l'écran */
        max-width: 100%;
        background-color: var(--white);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        
        /* Transition fluide */
        transform: translateX(100%); 
        transition: transform 0.4s ease-in-out;
        
        z-index: 1500;
        box-shadow: none;
        padding-top: 60px;
    }

    /* CLASSE ACTIVE (Quand on clique - LIÉE AU JS) */
    .nav-links.nav-mobile-active {
        transform: translateX(0%) !important; /* Force l'ouverture */
    }

    /* Liens (Texte plus gros) */
    .nav-links li {
        opacity: 1 !important; /* Force la visibilité */
        margin: 10px 0;
    }
    .nav-links a {
        font-size: 20px;
        display: block;
    }

    /* Dropdown Mobile (Toujours visible pour simplifier) */
    .dropdown { padding-bottom: 0; margin-bottom: 0; }
    .dropdown-menu {
        position: static;
        display: block; /* Toujours affiché sous "Pôles" sur mobile */
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        text-align: center;
        transform: none;
        padding: 10px 0;
        margin-top: 10px;
    }
    
    .dropdown-menu li a { font-size: 16px; color: #666; }

    /* Footer Mobile */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-services a, .contact-item { justify-content: center; }
    .footer-logo { align-items: center; }

    /* ANIMATION DU BOUTON BURGER (Croix) */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--primary-orange);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--primary-orange);
    }
}