/* ============================================================
   STELLANTIS AUTO POISSY – Styles Sélecteur de Langue
   ============================================================ */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    letter-spacing: 0.03em;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.lang-switcher__btn:hover,
.lang-switcher__btn[aria-expanded="true"] {
    border-color: rgba(255, 77, 48, 0.6);
    background: rgba(255, 77, 48, 0.08);
}
.site-header--light .lang-switcher__btn {
    border-color: rgba(0, 0, 0, 0.18);
    color: #1a1a2e;
}
.site-header--light .lang-switcher__btn:hover {
    border-color: #FF4D30;
    background: rgba(255, 77, 48, 0.06);
}
.lang-switcher__flag {
    font-size: 16px;
    line-height: 1;
}
.lang-switcher__code {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.lang-switcher__arrow {
    transition: transform 0.2s ease;
    opacity: 0.7;
}
.lang-switcher__btn[aria-expanded="true"] .lang-switcher__arrow {
    transform: rotate(180deg);
}
.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.lang-switcher__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
    cursor: pointer;
}
.lang-switcher__option:hover {
    background: #f5f5f8;
    color: #FF4D30;
}
.lang-switcher__option--active {
    background: rgba(255, 77, 48, 0.06);
    color: #FF4D30;
    font-weight: 600;
}
.lang-switcher__name {
    flex: 1;
}
.lang-switcher__check {
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .lang-switcher__code {
        display: none;
    }
    .lang-switcher__btn {
        padding: 7px 10px;
    }
    .lang-switcher__dropdown {
        right: -10px;
    }
}
.lang-switcher--inline {
    position: static;
}
.lang-switcher--inline .lang-switcher__btn {
    display: none;
}
.lang-switcher--inline .lang-switcher__dropdown {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
}
.lang-switcher--inline .lang-switcher__option {
    padding: 6px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
}
.lang-switcher--inline .lang-switcher__option--active {
    border-color: #FF4D30;
    background: rgba(255, 77, 48, 0.08);
}
