/*****carrousel 3d automatique*****/

* {
    box-sizing: border-box
}

img {
    max-width: 100%
}

.contenu_carou_auto {
    margin: 20rem auto;
    width: 420px;
    height: 279px;
    perspective: 2000px
}

.caroussel-image {

    animation: rotation 24s infinite alternate linear;
    transform-style: preserve-3d;
    position: relative;

}

.caroussel-image img {

    position: absolute;
    top: 0;
    left: 0;


}



.caroussel-image img {

    filter: drop-shadow(0 12px 5px hsla(0, 0%, 0%, .4));
    width: 400px;
    height: 266px;
    left: 10px;
    outline: 1px solid transparent;
    backface-visibility: hidden
}


/*****fin carrousel 3d automatique*****/

.caroussel-background {
    background-color: #ffffff;
    background-image: none !important;
    background-position: 0 -25vh !important;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Styles pour la modale */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}