@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* --- STYLES GÉNÉRAUX (DESKTOP) --- */
.main-header {
    background-color: #0d0d0d;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff88;
    position: relative; /* Important pour le positionnement du menu mobile */
    z-index: 1001;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.logo img {
    height: 60px; /* Taille légèrement réduite pour mobile */
    width: auto;
    filter: drop-shadow(0 0 6px #00ff88);
    transition: transform 0.3s ease;
}

.led-text {
    font-size: 1.5rem;
    margin: 0;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
}

/* Cacher le bouton menu sur ordinateur */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgb(0, 255, 136);
    font-size: 2.5rem; /* Plus grand pour le tactile */
    cursor: pointer;
    line-height: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00ffaa;
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Apparaît sur mobile */
        order: 2; /* Force la position à droite */
    }

    .logo {
        order: 1;
    }

    .nav-links {
        display: none; /* Caché par défaut */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Se colle juste sous le header */
        left: 0;
        width: 100%;
        background-color: #0d0d0d;
        padding: 2rem 0;
        border-bottom: 2px solid rgba(0, 255, 136, 0);
        z-index: 1000;
        text-align: center;
        gap: 2rem;
    }

    /* Affiché quand on clique sur le bouton via le JS d'index.php */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        width: 100%;
    }
}