/* ✅ Style de la modal */
.modal-carr {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* ✅ Contenu de la modal */
.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 90vh;
    text-align: center;
    /* background: rgba(0, 0, 0, 0.5); */
    padding: 10px;
    border-radius: 8px;
}

/* ✅ Style des images */
.carousel-item {
    display: none;
    width: 100%;
}

.modal-content img, 
.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 90vh; /* Ajuste pour éviter un débordement sur mobile */
    object-fit: contain; /* Conserve les proportions des images */
}


.carousel-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* ✅ Légendes */
.carousel-caption {
    color: white;
    font-size: 1.2em;
    margin-top: 10px;
}

/* ✅ Bouton de fermeture */
.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

/* ✅ Boutons de navigation */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px;
    font-size: 1.5em;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.8);
}









