/* Bloc sélecteur de langue - version moderne */
.bsl {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    z-index: 1000;
}

.bsl__dropdown {
    position: relative;
}

.bsl__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: #222;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bsl__toggle:hover,
.bsl__toggle:focus-visible {
    color: #222;
    border-color: rgba(0, 0, 0, .20);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .10);
    transform: translateY(-1px);
}

.bsl__flag {
    width: 23px;
    height: 16px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.bsl__code {
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
}

.bsl__chevron {
    width: 6px;
    height: 6px;
    margin-left: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .65;
    transition: transform .2s ease;
}

.bsl__dropdown:hover .bsl__chevron,
.bsl__dropdown:focus-within .bsl__chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.bsl__menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    min-width: 155px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.bsl__menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 11px;
    height: 11px;
    background: #fff;
    border-left: 1px solid rgba(0, 0, 0, .08);
    border-top: 1px solid rgba(0, 0, 0, .08);
    transform: rotate(45deg);
}

.bsl__dropdown:hover .bsl__menu,
.bsl__dropdown:focus-within .bsl__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bsl__item {
    position: relative;
}

.bsl__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    color: #333;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}

.bsl__link:hover,
.bsl__link:focus-visible {
    background: #f5f5f5;
    color: #111;
}

.bsl__link--active {
    font-weight: 700;
}

.bsl__check {
    margin-left: auto;
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 575px) {
    .bsl__toggle {
        min-height: 36px;
        padding: 5px 9px;
    }

    .bsl__menu {
        right: 0;
        min-width: 145px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bsl__toggle,
    .bsl__chevron,
    .bsl__menu,
    .bsl__link {
        transition: none;
    }
}
