/* ══════════════════════════════════════
   I18N — Sélecteur de langue
   ══════════════════════════════════════ */

.i18n-switcher {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9997;
}

.i18n-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1.5px solid rgba(26, 115, 232, 0.25);
    border-radius: 50px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    white-space: nowrap;
}

.i18n-btn:hover {
    border-color: #1a73e8;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.2);
}

.i18n-btn .fa-globe {
    color: #1a73e8;
    font-size: 15px;
}

.i18n-chevron {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s;
}

.i18n-btn.i18n-open .i18n-chevron {
    transform: rotate(180deg);
}

/* ── Dropdown ── */
.i18n-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 180px;
    transform: scale(0.92) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom left;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.i18n-dropdown.i18n-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* ── Options ── */
.i18n-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    color: #374151;
    text-align: left;
    transition: background 0.15s;
    white-space: nowrap;
}

.i18n-option:hover {
    background: rgba(26, 115, 232, 0.07);
    color: #1a73e8;
}

.i18n-option.i18n-active {
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
    font-weight: 700;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .i18n-switcher {
        bottom: 16px;
        left: 10px;
    }

    .i18n-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
}
