/* Styles pour le sélecteur de langue */
#language-selector {
    display: inline-block;
    margin-left: 20px;
}

.language-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2px;
    margin-top: 5px;
}

.lang-btn {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #333333;
    border-radius: 18px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-btn img {
    margin-right: 4px;
    border-radius: 2px;
}

.lang-btn:hover {
    background: rgba(24, 81, 136, 0.1);
    color: #185188;
}

.lang-btn.active {
    background: #185188;
    color: white;
    box-shadow: 0 2px 4px rgba(24, 81, 136, 0.3);
}

.lang-btn.active img {
    filter: brightness(1.2);
}

/* Responsive pour mobile */
@media only screen and (max-width: 767px) {
    #language-selector {
        margin: 0;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .language-switch {
        justify-content: center;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .lang-btn {
        color: #333333;
    }
    
    .lang-btn:hover {
        background: rgba(24, 81, 136, 0.1);
        color: #185188;
    }
    
    .lang-btn.active {
        background: #185188;
        color: white;
    }

    /* Pour la navbar mobile collapsée */
    .navbar-collapse .language-switch {
        margin-top: 15px;
        margin-bottom: 10px;
    }
}

/* Style pour la navbar transparente */
.header-fixed.header-transparent .navbar:not(.affix) .lang-btn {
    color: #333333;
}

.header-fixed.header-transparent .navbar:not(.affix) .lang-btn:hover {
    background: rgba(24, 81, 136, 0.1);
    color: #185188;
}

.header-fixed.header-transparent .navbar:not(.affix) .lang-btn.active {
    background: #185188;
    color: white;
}

/* Animation pour le changement de langue */
[data-translate] {
    transition: opacity 0.2s ease;
}

.translating [data-translate] {
    opacity: 0.7;
}