/* AlloyGator — carte de confirmation de langue (dark, accent #92C516).
 * z-index sous les backdrops offcanvas globaux (cf. piège backdrop z-index)
 * mais au-dessus du contenu et du header sticky. */
.ag-lang-geo {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1035;
    max-width: 360px;
    padding: 16px;
    border: 1px solid rgba(146, 197, 22, 0.45);
    border-radius: 10px;
    background: #14171a;
    color: #e8ecef;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.ag-lang-geo--visible {
    opacity: 1;
    transform: translateY(0);
}
.ag-lang-geo__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ag-lang-geo__head svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #92C516;
}
.ag-lang-geo__msg {
    margin: 0;
    flex: 1 1 auto;
}
.ag-lang-geo__close {
    flex: 0 0 auto;
    background: none;
    border: 0;
    padding: 2px;
    color: #9aa4ad;
    cursor: pointer;
}
.ag-lang-geo__close:hover {
    color: #e8ecef;
}
.ag-lang-geo__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.ag-lang-geo__go {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: #92C516;
    color: #14171a;
    font-weight: 600;
    text-decoration: none;
}
.ag-lang-geo__go:hover {
    background: #a4d92a;
    color: #14171a;
    text-decoration: none;
}
.ag-lang-geo__stay {
    padding: 8px 14px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid #3a4148;
    color: #c6cdd3;
    cursor: pointer;
}
.ag-lang-geo__stay:hover {
    border-color: #9aa4ad;
    color: #ffffff;
}
@media (max-width: 480px) {
    .ag-lang-geo {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

/* ================== Sélecteur de langue ================== */

/* Sélecteur natif Odoo (apparu automatiquement en multilingue) : masqué,
   le nôtre (drapeaux) le remplace. Les liens restent dans le DOM (SEO). */
body.theme-alloygator .js_language_selector {
    display: none !important;
}

/* Drapeaux SVG : coins arrondis + liseré discret. */
.ag-flag {
    border-radius: 2.5px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
    flex: 0 0 auto;
}

/* --- Header desktop (bandeau haut) --- */
.ag-lang-switch {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
}
.ag-lang-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 4px 6px;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
}
.ag-lang-switch__btn:hover,
.ag-lang-switch.is-open .ag-lang-switch__btn {
    color: #92C516;
}
.ag-lang-switch__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1050;
    min-width: 150px;
    padding: 6px;
    border: 1px solid rgba(146, 197, 22, 0.35);
    border-radius: 8px;
    background: #14171a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.ag-lang-switch.is-open .ag-lang-switch__menu {
    display: block;
}
.ag-lang-switch__menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #c6cdd3;
    font-size: 13px;
    text-decoration: none;
}
.ag-lang-switch__menu a:hover {
    background: rgba(146, 197, 22, 0.12);
    color: #ffffff;
}
.ag-lang-switch__menu a.active {
    color: #92C516;
    font-weight: 700;
}

/* --- Menu mobile (offcanvas) --- */
.ag-lang-mobile {
    margin-top: 18px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(146, 197, 22, 0.25);
}
.ag-lang-mobile__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #92C516;
    margin-bottom: 10px;
}
.ag-lang-mobile__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ag-lang-mobile__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid #3a4148;
    text-decoration: none;
    line-height: 0;
}
.ag-lang-mobile__links a:hover {
    border-color: #9aa4ad;
}
.ag-lang-mobile__links a.active {
    border-color: #92C516;
    box-shadow: 0 0 0 1px #92C516;
}

/* --- Footer --- */
.ag-lang-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ag-lang-footer__links a {
    display: inline-flex;
    opacity: 0.7;
    line-height: 0;
    text-decoration: none;
}
.ag-lang-footer__links a:hover {
    opacity: 1;
}
.ag-lang-footer__links a.active {
    opacity: 1;
}
.ag-lang-footer__links a.active .ag-flag {
    box-shadow: 0 0 0 1.5px #92C516;
}
