/* ================================================
   STYLES DU NOUVEAU SÉLECTEUR DE LANGUE
   ================================================ */

/* Conteneur principal */
.language-switcher {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

/* Bouton toggle rond */
.lang-btn-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color, #D4AF37);
    color: var(--primary-color, #D4AF37);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn-toggle:hover {
    background: var(--primary-color, #D4AF37);
    color: #1a1a1a;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.lang-btn-toggle:active {
    transform: scale(0.98);
}

/* Texte de la langue courante */
.lang-current {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Flèche */
.lang-arrow {
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.lang-btn-toggle:hover .lang-arrow {
    opacity: 1;
}

/* Dropdown menu */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border: 2px solid var(--primary-color, #D4AF37);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Options de langue */
.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color, #D4AF37);
}

.lang-option.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-color, #D4AF37);
    font-weight: 600;
}

/* Drapeau emoji */
.lang-flag {
    font-size: 20px;
    line-height: 1;
}

/* Nom de la langue */
.lang-name {
    font-size: 14px;
    font-weight: 500;
}

.lang-option.active .lang-name {
    font-weight: 700;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .lang-btn-toggle {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
    
    .lang-current {
        font-size: 10px;
    }
    
    .lang-dropdown {
        right: -10px;
        min-width: 140px;
    }
    
    .lang-option {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .lang-flag {
        font-size: 18px;
    }
    
    .lang-name {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .lang-btn-toggle {
        width: 23px;
        height: 23px;
        font-size: 7px;
        border-width: 1px;
        padding: 2px;
    }
    
    .lang-current {
        font-size: 7px;
        letter-spacing: 0;
    }
    
    .lang-arrow {
        display: none;
    }
    
    .language-switcher {
        position: relative;
        z-index: 9999;
    }
    
    .lang-dropdown {
        bottom: auto;
        top: calc(100% + 5px);
        right: 0;
        min-width: 120px;
        padding: 5px;
    }
    
    .lang-option {
        padding: 6px 7px;
        font-size: 11px;
        gap: 8px;
    }
    
    .lang-flag {
        font-size: 14px;
    }
    
    .lang-name {
        font-size: 11px;
    }
    
    .lang-dropdown.show {
        transform: translateY(0);
    }
}
