/* Empêche le scroll quand le pop-up est affiché */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
    touch-action: none; /* Désactive le scroll sur mobile */
}

.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 0.96) 35%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}



/* Pop-up centré */
.age-popup {
    background: #000;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
}

.age-popup h2 {
    color: #ff4a57;
}

.warning-icon {
    margin-right: 15px;

}


.age-popup button {
    background: #ff4a57;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

.age-popup button:hover {
    background: #ff2e3f;
}



p.popup {
    font-size: 20px;
}
@media (max-width: 768px) {
    .age-popup h2 {
        font-size: 24px;
    }
    
    p.popup {
        font-size: 16px;
    }

    /* Fixe l'overlay en haut mais garde l'effet de fond */
    .age-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-end; /* Fixe le pop-up en bas */
        justify-content: center;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0) 100%);
        z-index: 9999;
        padding-bottom: 20px; /* Petit espace pour le confort visuel */
    }

    /* Pop-up bien positionné en bas */
    .age-popup {
        background: #000;
        color: white;
        padding: 20px;
        text-align: center;
        border-radius: 12px 12px 0 0; /* Effet arrondi en haut */
        width: 90%;
        max-width: 400px;
        box-shadow: 0px -4px 15px rgba(255, 255, 255, 0.2);
        position: relative;
        bottom: 0;
        animation: slideUp 0.3s ease-in-out;
    }

    /* Animation fluide du pop-up */
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    /* Empêche totalement le scroll sur mobile */
    body.no-scroll {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
        touch-action: none;
    }
}
