.locale-switcher { width: 100%; padding: 0.5rem 0.75rem 0.75rem; }
.locale-switcher__label {
    margin: 0 0 0.4rem;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.locale-switcher__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
}
.locale-switcher__form {
    margin: 0;
    display: flex;
    justify-content: center;
    width: auto;
}
.locale-switcher__btn {
    min-width: 3.25rem;
    border-radius: 0.65rem;
    padding: 0.45rem 0.7rem;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #334155;
    cursor: pointer;
}
.locale-switcher__btn.is-active {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #fff;
}
.locale-switcher__hint {
    margin: 0.35rem 0 0;
    text-align: center;
    font-size: 10px;
    color: #94a3b8;
}
.locale-switcher--auth {
    max-width: 430px;
    width: 100%;
    margin: 1.15rem auto 0;
    padding: 0 16px;
    box-sizing: border-box;
}
.locale-switcher--admin {
    padding-bottom: 0.25rem;
}
.locale-switcher--admin .locale-switcher__buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.locale-switcher--admin .locale-switcher__form {
    width: 100%;
}
.locale-switcher__word-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.2rem 0.35rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.14s ease, opacity 0.14s ease;
}
.locale-switcher__word-btn:hover {
    color: #64748b;
}
.locale-switcher__word-btn.is-active {
    color: #0f172a;
    font-weight: 800;
}
.dark .locale-switcher__word-btn {
    color: #64748b;
}
.dark .locale-switcher__word-btn:hover {
    color: #94a3b8;
}
.dark .locale-switcher__word-btn.is-active {
    color: #f8fafc;
}
.locale-switcher--menu {
    margin: 0.75rem 1rem 0;
    padding: 0.65rem 0.75rem;
    border: 1px dashed rgba(45, 26, 14, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
}

.locale-switcher__flag-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    opacity: 0.72;
    transition: transform 0.16s ease, opacity 0.16s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    overflow: visible;
    width: auto;
    height: auto;
}
.locale-switcher__flag-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}
.locale-switcher__flag-btn:active {
    transform: scale(0.96);
}
.locale-switcher__flag-btn.is-active {
    opacity: 1;
    transform: none;
    box-shadow: none;
}

/* Ratio source exact : 777 × 760. Réduction par hauteur, largeur calculée, jamais de crop. */
img.locale-flag {
    --locale-flag-h: 28px;
    --locale-flag-w: calc(var(--locale-flag-h) * 777 / 760);
    display: block;
    height: var(--locale-flag-h) !important;
    width: var(--locale-flag-w) !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0;
    flex-shrink: 0;
    object-fit: contain !important;
    object-position: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    overflow: visible;
    vertical-align: top;
}
img.locale-flag--bar {
    --locale-flag-h: 22px;
}
img.locale-flag--menu {
    --locale-flag-h: 28px;
}
img.locale-flag--switcher {
    --locale-flag-h: 34px;
}
.locale-switcher--admin img.locale-flag--switcher {
    --locale-flag-h: 30px;
}

.fsm-locale-dropdown {
    position: relative;
}
.fsm-locale-dropdown__trigger {
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
}
.fsm-locale-dropdown.is-open .fsm-locale-dropdown__trigger .fsm-bottom-bar__pill {
    background: var(--fsm-bottom-active, #2f180c);
    color: #fff;
    box-shadow: 0 5px 12px rgba(47, 24, 12, 0.2);
}
.fsm-locale-dropdown__flag-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    overflow: visible;
    background: transparent;
}
.fsm-locale-dropdown__trigger .fsm-bottom-bar__pill {
    padding-top: 6px;
    padding-bottom: 6px;
}
.fsm-locale-dropdown__menu {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(45, 26, 14, 0.12);
    box-shadow: 0 10px 28px rgba(20, 12, 8, 0.18);
    z-index: 30;
}

.fsm-locale-dropdown__menu[hidden] {
    display: none !important;
}

.fsm-locale-dropdown.is-open .fsm-locale-dropdown__menu {
    display: flex;
}
.fsm-locale-dropdown__option-form {
    margin: 0;
    width: auto;
}
.fsm-locale-dropdown__option {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    opacity: 0.72;
    transition: opacity 0.14s ease, transform 0.14s ease;
    box-shadow: none;
    overflow: visible;
    width: auto;
    height: auto;
}
.fsm-locale-dropdown__option:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    background: transparent;
}
.fsm-locale-dropdown__option.is-active {
    opacity: 1;
    transform: none;
    background: transparent;
    box-shadow: none;
}
