/* Sélecteur de langue */
.language-selector {
    position: relative;
    margin-left: 1rem;
    z-index: 9999;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    user-select: none;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.language-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 10000;
    min-width: 150px;
    overflow: hidden;
    padding: 0;
}

.language-selector.active .language-dropdown,
.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    width: 100%;
    border: none;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    margin: 0;
}

.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.language-option:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
}

.language-option.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-color);
    font-weight: 500;
}

.language-name {
    font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-selector {
        width: 100%;
        margin: 1rem 0;
        margin-left: 0;
        order: -1;
    }
    
    .language-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: rgba(255, 215, 0, 0.1);
        border: 1px solid rgba(255, 215, 0, 0.2);
        border-radius: 10px;
        font-size: 1.1rem;
    }
    
    .language-toggle .language-name {
        display: inline-block;
    }
    
    .language-dropdown {
        background: #1a1a1a !important;
        border: 1px solid rgba(255, 215, 0, 0.3);
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .language-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .language-option {
        background: #1a1a1a;
        color: #ffffff !important;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .language-option:hover {
        background: rgba(255, 215, 0, 0.2) !important;
    }
    
    .language-option.active {
        background: rgba(255, 215, 0, 0.15) !important;
        color: var(--primary-color) !important;
    }
    
    .language-flag {
        font-size: 1.5rem;
    }
}