/* Ajout du fond flou derrière la popup */
#popup-blur {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

/* Styles de la popup */
.popup {
    display: none;
    position: fixed;
    width: 90%;
    max-width: 400px;
    height: auto;
    padding: 20px;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    box-shadow: 0px 0px 15px #00ff00, 0px 0px 50px rgba(0, 255, 0, 0.5);
    backdrop-filter: blur(8px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    border-radius: 10px;
    animation: glow 2s infinite alternate ease-in-out;
    z-index: 10000;
}

/* Effet néon va-et-vient */
@keyframes glow {
    from {
        box-shadow: 0px 0px 10px #00ff00, 0px 0px 30px rgba(0, 255, 0, 0.5);
    }
    to {
        box-shadow: 0px 0px 15px #00ff00, 0px 0px 50px rgba(0, 255, 0, 0.8);
    }
}

/* Contenu de la popup */
.popup-content {
    position: relative;
    width: 100%;
}

/* Image/GIF/Vidéo dans la popup */
.popup-content img, 
.popup-content video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Bouton fermer (disponible après 5s) */
.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 18px;
    color: white;
    background: rgba(0, 255, 0, 0.8);
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Adaptation aux petits écrans */
@media (max-width: 600px) {
    .popup {
        width: 95%;
        max-width: 350px;
    }
}

/* Message d'erreur pour les bloqueurs de pub */
#ads-blocked {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: red;
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(255, 0, 0, 0.7);
    z-index: 10001;
}