.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* Limiter la hauteur maximale pour le défilement */
    box-shadow: 0px 0px 20px rgba(0,0,0,0.4);
    position: relative;
    text-align: center;
    overflow-y: auto; /* Activer le défilement si nécessaire */
}

.update-content {
    text-align: left;
    margin-top: 20px;
}

.update-content h3 {
    margin-top: 15px;
    font-size: 1.2em;
    color: #333;
}

.update-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #555;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

.slide-container {
    overflow: hidden;
    margin-bottom: 20px;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slide-navigation {
    margin-bottom: 40px;
    text-align: center;
}

.nav-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #218838;
}

.never-show-btn {
    position: sticky; /* Remplace 'absolute' par 'sticky' */
    bottom: 15px; /* Aligne le bouton au bas du conteneur visible */
    left: 15px; /* Aligne le bouton à gauche */
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
    margin-left: 15px; /* Décalage du bord gauche */
    margin-bottom: 15px; /* Décalage du bas du conteneur visible */
    z-index: 1; /* S'assure que le bouton reste au-dessus du contenu défilant */
}

.never-show-btn:hover {
    background-color: #c82333;
}


/***Effet bokeh*/
.bokeh-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bokeh {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(20px);
    animation: moveBokeh 10s infinite;
}

.bokeh:nth-child(1) {
    top: 10%;
    left: 20%;
}

.bokeh:nth-child(2) {
    top: 50%;
    left: 70%;
    width: 150px;
    height: 150px;
    filter: blur(30px);
}

.bokeh:nth-child(3) {
    top: 80%;
    left: 30%;
    width: 120px;
    height: 120px;
    filter: blur(25px);
}

.bokeh:nth-child(4) {
    top: 40%;
    left: 10%;
    width: 180px;
    height: 180px;
    filter: blur(35px);
}

.bokeh:nth-child(5) {
    top: 70%;
    left: 80%;
    width: 130px;
    height: 130px;
    filter: blur(28px);
}

@keyframes moveBokeh {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/** Effet paillette*/
.glitter-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glitter {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: glitter 2s infinite ease-in-out;
}

.glitter:nth-child(1) { top: 20%; left: 30%; animation-delay: 0.5s; }
.glitter:nth-child(2) { top: 40%; left: 70%; animation-delay: 1s; }
.glitter:nth-child(3) { top: 60%; left: 50%; animation-delay: 1.5s; }
.glitter:nth-child(4) { top: 80%; left: 20%; animation-delay: 2s; }
.glitter:nth-child(5) { top: 30%; left: 80%; animation-delay: 2.5s; }

@keyframes glitter {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}
