/* =========================================================
   Afiale — Bandeau d'annonce global (top bar)
   Barre de notification fixe placée au-dessus de la navbar.
   La hauteur réelle est mesurée en JS et exposée via
   --afiale-topbar-h afin de décaler proprement la navbar
   (position: fixed) et le contenu de la page.
   ========================================================= */

:root {
    --afiale-topbar-h: 44px;
}

/* La navbar Webflow est en position: fixed (top: 0).
   On la repousse sous le bandeau. */
.navbar1_component {
    top: var(--afiale-topbar-h);
}

/* On réserve l'espace du bandeau en haut du document. */
body {
    padding-top: var(--afiale-topbar-h);
}

.afiale-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100; /* au-dessus de la navbar (.w-nav => z-index: 1000) */
    /* Légèrement plus clair que la navbar (#101119) pour un contraste net */
    background: #1c1e25;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: "Inter", "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.afiale-topbar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    max-width: 1280px;
    min-height: 44px;
    margin: 0 auto;
    /* padding-droite élargi pour ne jamais passer sous le bouton fermer */
    padding: 0.5rem 3.25rem 0.5rem 1.25rem;
}

/* Petit badge sobre servant d'ancrage visuel (remplace l'ancien point) */
.afiale-topbar__badge {
    flex: 0 0 auto;
    padding: 0.22rem 0.65rem;
    border: 1px solid rgba(0, 240, 160, 0.32);
    border-radius: 999px;
    background: rgba(0, 240, 160, 0.07);
    color: #00f0a0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1;
}

.afiale-topbar__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    letter-spacing: 0.005em;
    color: #e6e8ec;
    text-align: center;
}

.afiale-topbar__text strong {
    color: #ffffff;
    font-weight: 700;
}

.afiale-topbar__link {
    color: #2ff5b0;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid rgba(47, 245, 176, 0.35);
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.afiale-topbar__link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.afiale-topbar__sep {
    margin: 0 0.1rem;
    color: rgba(255, 255, 255, 0.3);
}

.afiale-topbar__close {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #b6bac2;
    cursor: pointer;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.afiale-topbar__close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.afiale-topbar__close:focus-visible {
    outline: 2px solid #00f0a0;
    outline-offset: 2px;
}

.afiale-topbar__close svg {
    display: block;
}

/* ----------------------- Responsive ----------------------- */
@media screen and (max-width: 767px) {
    .afiale-topbar__inner {
        justify-content: flex-start;
        gap: 0.6rem;
        padding: 0.5rem 2.75rem 0.5rem 0.95rem;
    }

    .afiale-topbar__text {
        font-size: 0.78rem;
        line-height: 1.42;
        text-align: left;
    }

    .afiale-topbar__close {
        right: 0.6rem;
        width: 26px;
        height: 26px;
    }
}

@media screen and (max-width: 479px) {
    .afiale-topbar__badge {
        display: none; /* on libère de l'espace sur très petits écrans */
    }

    .afiale-topbar__text {
        font-size: 0.74rem;
    }
}
