/* --- BANDEAU CONTACT SUPÉRIEUR --- */
#contactMe {
    background-color: #002c5e; 
    border-bottom: none;
    /* On verrouille la hauteur de force */
    height: 35px !important; 
    min-height: 35px !important;
    max-height: 35px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important; /* Coupe tout ce qui essaierait de l'agrandir de l'intérieur */
    display: block !important;
}

#contactMe .contact-bar-inner {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    height: 100% !important; /* S'adapte exactement aux 35px du parent */
    padding: 0 20px !important;
    margin: 0 auto !important;
}

.contact-info {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: 1px !important;
}

.contact-info i {
    color: #ffffff !important;
}

/* --- NAVIGATION PRINCIPALE --- */
.main-navbar {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); /* Ombre beaucoup plus douce et diffuse */
    position: sticky; /* Permet à la navbar de rester en haut lors du scroll */
    top: 0;
    z-index: 1000;
}

.main-navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.fullNavBar {
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 20px !important;
    height: 85px; /* Navbar légèrement plus haute pour respirer */
}

/* Logo */
#logo {
    margin-right: auto;
}

#logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#logo img {
    height: 85px; /* Augmenté de 45px à 65px pour plus de visibilité */
    width: auto;  /* Conserve les proportions de l'image */
    display: block; /* Évite les petits espaces sous l'image */
}
/* Liens principaux */
.nav-item > a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 0 18px;
    height: 85px; /* Prend toute la hauteur pour faciliter le survol */
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.nav-item > a:hover {
    color: #2b6b8c;
}

/* --- LE MENU DÉROULANT (DROPDOWN) --- */
.dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i,
.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 85px; /* Se place exactement sous la navbar */
    left: 0;
    background-color: #ffffff;
    min-width: 280px; /* Assez large pour les titres longs */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 8px 8px;
    border-top: 2px solid #2b6b8c; /* Belle ligne bleue au-dessus */
    
    /* Animation d'apparition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    color: #2b6b8c;
    background-color: #f7f9fa;
    padding-left: 30px; /* Petit effet de glissement vers la droite très élégant */
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- BOUTONS SPÉCIAUX (Blog / Privé) --- */


/* Réseaux sociaux */
.social-icon a {
    display: flex;
    align-items: center;
    padding: 0 0 0 20px;
    font-size: 1.5rem;
    color: #0077b5;
    transition: opacity 0.3s ease;
}

.social-icon a:hover {
    opacity: 0.7;
}

/* --- SIDEBAR MOBILE --- */
/* --- SIDEBAR MOBILE --- */
.burger-menu a {
    font-size: 1.5rem;
    color: #333;
    padding: 0 10px;
}

.sidebar {
    position: fixed;
    top: 0;
    /* ASTUCE ANTI-BUG : On cache la sidebar loin à droite de l'écran au lieu de display: none */
    right: -100%; 
    height: 100vh;
    width: 300px;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.98); /* Un peu plus opaque pour la lisibilité */
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    
    /* On la laisse toujours en flex, c'est sa position 'right' qui la cache */
    display: flex; 
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 20px;
    
    /* Animation de glissement fluide */
    transition: right 0.4s ease; 
}

/* La classe ajoutée par le Javascript pour ouvrir le menu */
.sidebar.open {
    right: 0;
}

.close-sidebar {
    align-self: flex-end;
    margin-bottom: 20px;
}

.close-sidebar a {
    font-size: 1.8rem;
    padding: 10px 25px;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
}

/* --- LE DROPDOWN MOBILE --- */
.mobile-dropdown-toggle i {
    float: right; /* Pousse la flèche tout à droite */
    margin-top: 4px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* La liste cachée par défaut */
.mobile-dropdown-menu {
    display: none;
    background-color: #f4f5f7; /* Petit fond gris pour différencier le sous-menu */
    flex-direction: column;
    padding: 10px 0;
}

.mobile-dropdown-menu a {
    padding: 12px 25px 12px 40px; /* Plus de décalage à gauche pour montrer la hiérarchie */
    font-size: 0.95rem;
    font-weight: 500;
    color: #2b6b8c;
}

/* Quand on clique sur "Notre Expertise" (la classe .active est ajoutée) */
.mobile-dropdown.active .mobile-dropdown-menu {
    display: flex;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}
/* -------------------------------- */

/* --- RESPONSIVE --- */
@media(max-width: 1150px) {
    .hideOnMobile {
        display: none !important;
    }
}

@media(min-width: 1151px) {
    .hideOnPC {
        display: none !important;
    }
}

/* --- PAGE ACTIVE --- */
.active-page {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 6px !important;
    color: #2b6b8c !important; /* Garde ton bleu de thème */
}