/* --- VARIABLES ET THÈMES --- */
:root {
    --primary-blue: #1a3a7a;
    --gold: #d4af37;
    --black: #0d0d0d;
    --white: #ffffff;
    --light-grey: #f8f9fa;
    --text-color: #333333;
    --nav-bg: #ffffff;
    --transition: all 0.3s ease;
}

/* Mode Nuit Manuel */
body.dark-theme {
    --nav-bg: #0a0e27;
    --text-color: #f4f4f4;
    --white: #0a0e27;
    --light-grey: #161b33;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: var(--white); color: var(--text-color); transition: var(--transition); }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--black);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-left a { color: white; text-decoration: none; margin-right: 15px; }
.top-right { display: flex; align-items: center; }
.social-icons a { color: white; margin-left: 12px; font-size: 1rem; transition: var(--transition); }
.social-icons a:hover { color: var(--gold); }

#theme-toggle {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 20px;
    transition: var(--transition);
}

#theme-toggle:hover { background: var(--gold); color: var(--black); }

/* --- NAVBAR --- */
.navbar {
    background: var(--nav-bg);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 55px; width: auto; margin-right: 12px; }
.brand-name { 
    font-weight: 700; 
    font-size: 1.3rem; 
    color: var(--primary-blue); 
    letter-spacing: 0.5px;
}

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { position: relative; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text-color); 
    padding: 10px 15px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .active { color: var(--gold); }

/* --- DROPDOWN DESKTOP --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nav-bg);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    display: none;
    list-style: none;
    border-top: 3px solid var(--gold);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { padding: 10px 20px; font-size: 0.9rem; display: block; }
.dropdown-menu li:hover { background: var(--light-grey); }

/* --- RESPONSIVE MOBILE --- */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--primary-blue); margin: 5px; transition: var(--transition); }

@media screen and (max-width: 1024px) {
    .contact-info { display: none; } /* Cache tel/mail */
    .top-bar .container { justify-content: center; } /* Centre les icônes */
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 75%;
        background: var(--nav-bg);
        flex-direction: column;
        padding-top: 100px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links li { width: 100%; text-align: left; }
    .nav-links a { display: block; padding: 15px 30px; border-bottom: 1px solid var(--light-grey); }
    
    .burger { display: block; z-index: 1001; }
    .nav-links-active { transform: translateX(0); }

    /* Accordéon Mobile */
    .dropdown-menu {
        position: static;
        display: none;
        background: var(--light-grey);
        box-shadow: none;
        width: 100%;
    }
    .dropdown-menu.show { display: block; }

    /* Animation Burger */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
}

/* Force le nom en blanc quand le body a la classe dark-theme */
body.dark-theme .brand-name {
    color: #ffffff !important;
}

/* On s'assure aussi que le bouton de menu (burger) reste visible */
body.dark-theme .burger div {
    background-color: var(--gold) !important;
}


.nav-btn-login {
    background-color: #007bff; /* Ajustez selon votre charte graphique */
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-btn-login:hover {
    background-color: #0056b3;
}