/* OVC AI Translate v1.1.8 — compact flags, AuraPost header alignment */
.ovc-ai-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(128,128,128,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
    font-family: inherit;
    white-space: nowrap;
}
.ovc-ai-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    border-radius: 999px;
    text-decoration: none !important;
    color: #232323 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.ovc-ai-switcher a:hover { background: #fff3dc; }
.ovc-ai-switcher a.is-active { background: #f59e0b !important; color: #151515 !important; }
.ovc-ai-switcher.ovc-ai-compact { padding: 3px; }
.ovc-ai-switcher.ovc-ai-compact a { padding: 8px; }
/* Keep the accessible names in aria-label, but hide visible FR / EN labels on ALL screens. */
.ovc-ai-switcher a > span { display: none !important; }
/* Do not let nav-item wrappers stretch the header. */
.ovc-ai-menu-item { display: flex; align-items: center; justify-content: center; width: auto; }
.ovc-ai-menu-item .ovc-ai-switcher { white-space: nowrap; }

/* AuraPost (Aigocy header2) desktop: selector immediately LEFT of "Se connecter". */
@media screen and (min-width: 992px) {
    .tf-header.header2 .header-inner > .ovc-ai-switcher {
        flex: 0 0 auto !important;
        margin-left: 10px !important;
        margin-right: 9px !important;
        max-width: max-content;
        order: 7;
    }
    .tf-header.header2 .header-inner > a.tf-btn:not(.open-mb-menu) { order: 8; }
}

/* AuraPost mobile/tablet: logo LEFT, selector + hamburger RIGHT. */
@media screen and (max-width: 991px) {
    .tf-header.header2 .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
    .tf-header.header2 .header-inner > .logo-site {
        flex: 0 0 auto !important;
        margin-right: 0 !important;
    }
    .tf-header.header2 .header-inner > .box-navigation { display: none !important; }
    .tf-header.header2 .header-inner > .ovc-ai-switcher,
    .tf-header.header2 .header-inner > .ovc-ai-menu-item {
        display: inline-flex !important;
        width: auto !important;
        max-width: max-content !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        margin-right: 6px !important;
        order: 8;
        gap: 3px !important;
        padding: 5px 7px !important;
        white-space: nowrap;
    }
    .tf-header.header2 .ovc-ai-switcher a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 25px !important;
        min-height: 26px !important;
        padding: 9px !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap;
    }
    .tf-header.header2 .header-inner > a.open-mb-menu {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        order: 9;
    }
}
/* Very narrow mobiles: avoid overflow, while keeping all 2 flags clickable. */
@media screen and (max-width: 380px) {
    .tf-header.header2 .header-inner > .ovc-ai-switcher {
        padding: 3px 4px !important;
        margin-right: 4px !important;
        gap: 2px !important;
    }
    .tf-header.header2 .ovc-ai-switcher a { padding: 6px !important; }
}
