/* Reset CSS basique */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif; /* Police par défaut propre */
    background-color: #f5f5f5;
}

/* --- STYLE NAV BARRE STYLE LE MONDE --- */

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #dcdcdc; /* La fameuse ligne grise fine du Monde */
    position: sticky; /* La barre reste collée en haut */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Légère ombre moderne */
    height: 70px; /* Hauteur fixe pour la stabilité */
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO & TITRE --- */

.brand-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 12px;
}

.logo-img {
    height: 45px; /* Ajusté pour bien rentrer dans la barre */
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title {
    font-family: 'Georgia', 'Times New Roman', serif; /* Police Serif style journal */
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #000;
}

.site-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    color: #666;
    margin-top: 3px;
    text-transform: uppercase;
}

/* --- NAVIGATION --- */

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #111;
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

/* Effet au survol : un soulignement coloré (bleu/vert comme le logo) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #2e5c46, #6db33f); /* Dégradé inspiré de votre logo */
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #2e5c46;
}

/* --- BURGER MENU (MOBILE) --- */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    /* Cache le sous-titre sur mobile pour gagner de la place */
    .site-subtitle {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 70px; /* Juste en dessous du header */
        left: 0;
        width: 100%;
        background-color: white;
        border-bottom: 1px solid #dcdcdc;
        padding: 20px 0;
        transform: translateY(-150%); /* Caché par défaut vers le haut */
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateY(0);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* --- STYLE SPÉCIFIQUE BOUTON QUIZZ --- */

.nav-links a.btn-quizz {
    background: linear-gradient(135deg, #2e5c46, #6db33f); /* Le même dégradé que votre logo */
    color: white; /* Texte en blanc */
    padding: 10px 25px; /* Espace interne pour donner du corps au bouton */
    border-radius: 30px; /* Bords très arrondis (style pilule) */
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(46, 92, 70, 0.2); /* Légère ombre portée */
    transition: all 0.3s ease; /* Animation fluide */
    
    /* Annule le padding-bottom par défaut des autres liens */
    padding-bottom: 10px; 
}

/* On désactive le soulignement (la barre verte) qui s'applique aux autres liens */
.nav-links a.btn-quizz::after {
    display: none;
}

/* Effet au survol du bouton */
.nav-links a.btn-quizz:hover {
    transform: translateY(-2px); /* Le bouton remonte légèrement */
    box-shadow: 0 6px 12px rgba(46, 92, 70, 0.3); /* L'ombre s'accentue */
    color: white; /* S'assure que le texte reste blanc */
    filter: brightness(1.1); /* Éclaircit légèrement le bouton */
}