/* --- Style du Header pour ton compte Lolo26DIR --- */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    font-family: 'Segoe UI', Roboto, sans-serif; /* Police fixe du header, identique à l'accueil */
    background: rgba(14, 17, 31, 0.75); /* Fond sombre transparent */
    backdrop-filter: blur(12px); /* Effet flou ultra moderne */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.25); /* Bordure fine violette */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000; /* Toujours au-dessus de tout */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Zone Logo */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-decoration: none;
}

.purple-text {
    color: #8A2BE2;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #b2b6c6;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

/* Bouton Live */
.live-button {
    border: 1px solid #8A2BE2;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(138, 43, 226, 0.05);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}

.live-button:hover {
    background: #8A2BE2;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-1px);
}

/* --- Style du Menu Déroulant (Trois points) --- */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-btn {
    background: none;
    border: none;
    color: #b2b6c6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

.dropdown-content {
    display: none; /* Cache par défaut */
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(20, 15, 38, 0.98); /* Fond opaque plus solide pour contrer le flou */
    min-width: 160px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.8), 0 0 15px rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 8px;
    
    /* --- LES DEUX LIGNES COMPORTEMENTALES ESSENTIELLES --- */
    z-index: 100005 !important; /* Passe largement au-dessus du fond du header */
    margin-top: 15px; /* Décale la bulle proprement en dessous du bouton */
    
    overflow: hidden;
}

.dropdown-content a {
    color: #b2b6c6;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(138, 43, 226, 0.3);
    color: #ffffff;
}

/* Classe d'activation déclenchée au clic par le JS */
.dropdown-content.show {
    display: block !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }
    .nav-links {
        gap: 15px;
    }
    .nav-links a span {
        display: none;
    }
}

/* Live button active state (when stream is detected) */
body.is-live .live-button {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    position: relative;
}

body.is-live .live-button::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}