/* ===================== */
/*        HEADER         */
/* ===================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
}

/* ===================== */
/*        LOGO           */
/* ===================== */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px; /* Taille ajustée */
    width: auto;
    display: block;
}

.logo a {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin-left: 10px;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

/* ===================== */
/*        NAVIGATION     */
/* ===================== */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 25px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #ffe600;
}

/* ===================== */
/*    UTILISATEUR        */
/* ===================== */
.auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===================== */
/*      MENU USER        */
/* ===================== */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* MENU DÉROULANT */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #ffffff;
    color: black;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
    padding: 10px 0;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: black;
    font-size: 14px;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #ffcc00;
}

/* ===================== */
/*      SOLDE            */
/* ===================== */
.solde-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.solde-info i {
    color: #ffd700;
    font-size: 16px;
}

/* ===================== */
/*        BOUTONS        */
/* ===================== */
.btn {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

/* Bouton Connexion */
.login {
    background: #4CAF50;
}

.login:hover {
    background: #388E3C;
}

/* Bouton Inscription */
.register {
    background: #FF9800;
}

.register:hover {
    background: #E68900;
}

/* Bouton Déconnexion */
.logout {
    background: #FFD700;
    color: black;
    font-weight: bold;
}

.logout:hover {
    background: #FFC107;
}

/* ===================== */
/*    RESPONSIVE         */
/* ===================== */
@media screen and (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    nav {
        justify-content: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .auth-section {
        flex-direction: column;
        gap: 10px;
    }

    .user-menu {
        flex-direction: column;
        gap: 5px;
    }

    .dropdown-menu {
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 🎤 NEWS BANNER */
.news-banner {
    width: 40%;
    height: 38px;
    overflow: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 2.2%;
    margin-top: 0px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
}

.news-content {
    white-space: nowrap;
    font-size: 16px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
}

