/* Navigation */
.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;              /* Ajouté */
    align-items: center;        /* Ajouté */
    justify-content: center;
    padding: 0 24px;           /* Modifié */
    height: 60px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.05);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f1f1f;
    min-width: 220px;
    border: 1px solid #333;
    border-top: 2px solid #00d9ff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;  
}

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

.nav-item:hover .nav-link {
    border-bottom-color: transparent;
}

.dropdown-item {
    border-bottom: 1px solid #2a2a2a;
    margin: 0;               /* Ajouté */
    padding: 0;              /* Ajouté */
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid #2a2a2a;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box; 
}

.dropdown-link:hover {
    background: rgba(0, 217, 255, 0.1);
    color: #00d9ff;
    padding-left: 28px;
}

.dropdown-link.disabled {
    color: #666;
    cursor: not-allowed;
}

.dropdown-link.disabled:hover {
    background: transparent;
    padding-left: 20px;
}

/* Switch langue */
.lang-switch {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #b0b0b0;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    font-weight: 500;
    border-right: 1px solid #333;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:last-child {
    border-right: none;
}

.lang-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    color: #00d9ff;
}

.lang-btn.active {
    background: #00d9ff;
    color: #0a0a0a;
}

/* Responsive pour la navigation */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        padding: 12px 16px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-top: 1px solid #333;
        border-left: 3px solid #00d9ff;
        margin-left: 1rem;
    }

    .nav-item:hover .dropdown-menu {
        display: block;
    }
}