/* Assure que le body occupe toute la largeur et hauteur */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    color: white; /* avant janvier 2026  black*/
    background-color: black ;/* lightgray;*/

}

/* La classe est centrée */
.centrer {
    text-align: center;
}

/* Le conteneur du carrousel occupe toute la largeur */
.carousel-container {
    width: 100%;
    height: 100vh; /* occupe la hauteur de la fenêtre */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* le carrousel prend 96% de la largeur du conteneur */
.carousel {
    position: relative;
    width: 98%;
    max-width: 1400px;
    margin: 10px auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
}

/* Les slides du carrousel prennent 99.8% de la largeur du carrousel pour le bord de next*/
.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s  ease;
}

/* Les images s'adaptent pour remplir le conteneur sans déformer les proportions */
.carousel-slide img {
    max-width: 100%;
    max-height: 100vh; /* empêche le débordement vertical */
    width: auto;
    height: auto;
    border: 1px solid gray;
    border-radius: 8px;
    object-fit: contain; /* Conserve les proportions et s'adapte au conteneur */
}


.carousel-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    font-size: 20px;
}

.prev {
    left: 0rem;
}

.next {
    right: 0rem;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Modal pour l'image agrandie */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

