/* ============================================================
   SWITCH DE LANGUE - Diamond Close Protection
   À placer dans /css/lang-switch.css
   ============================================================ */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 1.2rem;
    padding-left: 1.2rem;
    border-left: 1px solid rgba(179, 155, 94, 0.3);
    list-style: none;
}

.lang-switch .flag {
    display: block;
    width: 28px;
    height: 18px;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 0.55;
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.lang-switch .flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-switch .flag:hover,
.lang-switch .flag:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
    border-color: var(--accent-gold, #b39b5e);
}

.lang-switch .flag.active {
    opacity: 1;
    border-color: var(--accent-gold, #b39b5e);
    cursor: default;
    pointer-events: none;
    box-shadow: 0 0 0 1px var(--accent-gold, #b39b5e);
}

/* ============================================================
   RESPONSIVE — adaptation pour mobile (menu hamburger ouvert)
   ============================================================ */

@media (max-width: 992px) {
    .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 1.2rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(179, 155, 94, 0.3);
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
    }

    .lang-switch .flag {
        width: 36px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .lang-switch .flag {
        width: 32px;
        height: 20px;
    }
}
