/* Styles du diaporama */

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.popup.hidden {
    display: none;
}
/* Conteneur du diaporama */
.diaporama-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #fff;
    border: 2px solid #fff; 
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Légère ombre pour la profondeur */
    overflow: hidden;
}
.diaporama-slide {
    display: none;
    text-align: center;
 animation: fade-in 1s ease-in-out;
}
.close-diaporama {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #0cae49;
    cursor: pointer;
    border-radius: 5px;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}
.close-diaporama:hover {
    background-color: #088c39;
    transform: scale(1.1);
}
.close-diaporama::before {
    content: "✕";
    color: white;
    font-size: 24px;
    line-height: 1;
}
.diaporama-slide img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 5px;
    border: 1px solid #fff; 
}

/* Boutons de navigation */
.diaporama-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0cae49; /* Vert principal du site */
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
}
.diaporama-btn.prev {
    left: 10px;
}
.diaporama-btn.next {
    right: 10px;
}
.diaporama-btn:hover {
    background: #088c39; /* Vert foncé au survol */
    transform: translateY(-50%) scale(1.1);
}




@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

