/* Header */
:root {
    --toxine-green: #00CC00;
    --dark: #1A1B26; /* Ajout d'une variable pour le noir si non définie globalement */
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: transparent;
    height: 45px;
    box-shadow: transparent;
}

.wrapper {
    max-width: 100%;
    margin:0;
    padding: 0;
    display: 0;
    align-items: center;
    justify-content: space-between;
    height: 45px;
}

/* Navigation principale */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 45px;
    background: transparent;
    border-radius: 60px;
    padding: 0 5px;
    max-width: 50%;
    width: 100%;
    position: fixed; /* Fixe la barre en haut */
    top: 0%; /* Place la barre en haut de la page */
    
}


.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    height: 45px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-button:hover {
    background: transparent;
    color: #3498db;
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-button:hover::after {
    width: 100%;
}

.nav-button i {
    font-size: 14px;
    color: #3498db;
}

/* Menu utilisateur */
.user-menu {
    position: relative;
    height: 45px;
    display: flex;
    align-items: center;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    height: 35px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-button:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.avatar-img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

/* Menu déroulant */
.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: #1a2735;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(52, 152, 219, 0.1);
}

.menu-item i {
    color: #3498db;
    width: 20px;
    text-align: center;
}

/* Bouton de connexion */
.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 35px;
    background: var(--toxine-green);
    color: var(--dark) !important; /* Utilisation de la couleur sombre */
    border-radius: 18px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #00A000; /* Une nuance de vert plus foncée au survol */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 204, 0, 0.3); /* Ajuster l'ombre */
}

/* Ajoutez ces styles pour le bouton de connexion */
.nav-button.login-button {
    background: var(--toxine-green);
    color: var(--dark);
    margin-left: auto; /* Pour le pousser à droite */
}

.nav-button.login-button:hover {
    background: #00A000; /* Une nuance de vert plus foncée au survol */
}

/* Responsive */
@media (max-width: 768px) {
    .wrapper {
        padding: 0 10px;
    }

    .nav-button {
        padding: 0 10px;
        font-size: 12px;
    }

    .nav-button span {
        display: none;
    }

    .nav-button i {
        font-size: 16px;
    }
} 