/* ****** Partie 1 Styles du Sélecteur de Langue (Glassmorphism Premium) ******** */
.furzo-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    user-select: none;
    z-index: 9999999;
}

.furzo-lang-switcher .current-lang {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    transition: all 0.25s ease;
    outline: none;
}

.furzo-lang-switcher:hover .current-lang,
.furzo-lang-switcher .current-lang:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.18);
}

.furzo-lang-switcher .current-lang img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.furzo-lang-switcher .lang-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: inherit;
}

.furzo-lang-switcher .lang-arrow {
    font-size: 10px;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.furzo-lang-switcher:hover .lang-arrow {
    transform: rotate(180deg);
}

/* ****** Partie 2 Dropdown du Sélecteur ******** */
.furzo-lang-switcher .lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 140px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 9999999;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.furzo-lang-switcher.open .lang-dropdown,
.furzo-lang-switcher:hover .lang-dropdown,
.furzo-lang-switcher:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.furzo-lang-switcher .lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #2d2d2d;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s;
}

.furzo-lang-switcher .lang-item:hover {
    background: #f0f7ff;
    color: #4a90e2;
}

.furzo-lang-switcher .lang-item:first-child {
    border-radius: 14px 14px 0 0;
}

.furzo-lang-switcher .lang-item:last-child {
    border-radius: 0 0 14px 14px;
}

.furzo-lang-switcher .lang-item img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ****** Partie 3 Bouton "Voir le texte original" ******** */
.furzo-show-original {
    font-size: 12px !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    background: #f5f7fa !important;
    border: 1px solid #dde2ed !important;
    color: #666 !important;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.furzo-show-original:hover {
    background: #e6edf8 !important;
    color: #333 !important;
    border-color: #4a90e2 !important;
}

.furzo-show-original.loading {
    opacity: 0.55;
    pointer-events: none;
}


@media (max-width: 1024px) {
    .furzo-lang-switcher .lang-dropdown {
        position: absolute !important;
        top: calc(100% + 5px) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-8px) scale(0.97) !important;
        min-width: 160px !important;
        width: auto !important;
        right: auto !important;
    }
    .furzo-lang-switcher.open .lang-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }
}
