/* =============================================================
   AGE GATE CUSTOM — Overlay de verification d'age
   Taille cible : < 3 Ko
   ============================================================= */

/* Overlay plein ecran */
.agc-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: agcFadeIn 300ms ease-out;
}

/* Bloquer le scroll quand l'overlay est visible */
body.agc-locked {
    overflow: hidden !important;
}

/* Flou sur le contenu du site */
body.agc-locked > *:not(.agc-overlay) {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* Modal central */
.agc-modal {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    padding: 40px 36px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Titre */
.agc-title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px;
    letter-spacing: 0.5px;
}

/* Texte descriptif */
.agc-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0 0 12px;
}

.agc-text:last-of-type {
    margin-bottom: 32px;
}

/* Bouton principal "Entrer" */
.agc-btn-enter {
    display: inline-block;
    background: #ffffff;
    color: #1a1a1a;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 150ms ease;
    letter-spacing: 0.3px;
}

.agc-btn-enter:hover {
    opacity: 0.85;
}

.agc-btn-enter:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Lien "Quitter" */
.agc-link-leave {
    display: block;
    margin-top: 20px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: color 150ms ease;
}

.agc-link-leave:hover {
    color: #999999;
}

/* Animation fade-in */
@keyframes agcFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation fade-out (ajoutee par JS) */
.agc-overlay.agc-fade-out {
    animation: agcFadeOut 200ms ease-out forwards;
}

@keyframes agcFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* =============================================================
   RESPONSIVE — Mobile
   ============================================================= */

@media (max-width: 540px) {
    .agc-modal {
        padding: 32px 20px;
        margin: 0 20px;
    }

    .agc-title {
        font-size: 20px;
    }

    .agc-text {
        font-size: 14px;
    }

    .agc-btn-enter {
        width: 100%;
        padding: 14px 20px;
    }
}
