/* =========================================================
   Azur Theme — agegate.css
   Porte de vérification d'âge 18+ (contenu adulte, conformité légale)
   ========================================================= */

/* Anti-flash + masquage : si l'utilisateur est déjà vérifié, le script de
   tête pose html.azur-age-ok → l'overlay est masqué avant le paint. */
html.azur-age-ok .azur-agegate { display: none !important; }

/* Verrouillage du scroll tant que la porte est active. */
html.azur-age-gated,
html.azur-age-gated body { overflow: hidden !important; }

/* Garde-fou attribut hidden. */
.azur-agegate[hidden] { display: none !important; }

/* ============= Overlay ============= */
.azur-agegate {
    position: fixed;
    inset: 0;
    z-index: 100000;            /* au-dessus des cookies (9998) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    font-family: var(--font-sans);
    -webkit-overflow-scrolling: touch;
}

.azur-agegate__backdrop {
    position: fixed;
    inset: 0;
    background: radial-gradient(120% 120% at 50% 0%, rgba(31, 38, 87, .92), rgba(13, 18, 48, .96));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* ============= Carte ============= */
.azur-agegate__card {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: auto;
    background: var(--white);
    border-radius: 22px;
    padding: 40px 34px 30px;
    text-align: center;
    box-shadow: 0 40px 110px -30px rgba(0, 0, 0, .6);
    animation: azur-agegate-in .32s cubic-bezier(.16, 1, .3, 1);
}
@keyframes azur-agegate-in {
    from { transform: translateY(18px) scale(.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);     opacity: 1; }
}

/* ============= Badge 18+ ============= */
.azur-agegate__badge {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--majorelle);
    box-shadow: 0 14px 30px -10px rgba(0, 63, 163, .6),
                inset 0 0 0 4px rgba(255, 213, 74, .25);
    line-height: 1;
}
.azur-agegate__badge-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    color: var(--gold);
    align-self: center;
}
.azur-agegate__badge-plus {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--gold);
    align-self: center;
}

/* ============= Texte ============= */
.azur-agegate__title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 25px;
    line-height: 1.2;
    color: var(--ink);
}
.azur-agegate__desc {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-muted);
}
.azur-agegate__desc strong { color: var(--ink); }
.azur-agegate__desc a {
    color: var(--majorelle);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.azur-agegate__desc a:hover { color: var(--majorelle-deep); }

/* ============= Actions ============= */
.azur-agegate__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.azur-agegate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 22px;
    border-radius: 14px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background-color .18s ease, box-shadow .18s ease;
}
.azur-agegate__btn:active { transform: scale(.98); }

.azur-agegate__btn--enter {
    border: none;
    background: var(--majorelle);
    color: var(--white);
    box-shadow: 0 16px 32px -12px rgba(0, 63, 163, .55);
}
.azur-agegate__btn--enter:hover { background: var(--majorelle-deep); }

.azur-agegate__btn--exit {
    background: transparent;
    color: var(--ink-muted);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 14px;
    min-height: 46px;
}
.azur-agegate__btn--exit:hover {
    background: #f4f6fb;
    color: var(--ink);
}

/* Focus visible accessibilité */
.azur-agegate__btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ============= Fineprint ============= */
.azur-agegate__fineprint {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--ink-muted);
    opacity: .8;
}

/* ============= Mobile ============= */
@media (max-width: 480px) {
    .azur-agegate { padding: 16px; align-items: flex-start; }
    .azur-agegate__card { padding: 32px 22px 24px; border-radius: 18px; }
    .azur-agegate__badge { width: 80px; height: 80px; margin-bottom: 18px; }
    .azur-agegate__badge-num { font-size: 34px; }
    .azur-agegate__title { font-size: 22px; }
}

/* ============= Reduced motion ============= */
@media (prefers-reduced-motion: reduce) {
    .azur-agegate__card { animation: none; }
    .azur-agegate__btn { transition: none; }
}
