.carousel-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.carousel-container:hover .arrow {
    opacity: 1;
}
.main-banner {
    width: 100%;
    height: 0;
    padding-bottom: 41.33%; 
    position: relative;
    background-color: #f0f0f0; /* Fond pour les espaces vides */
    overflow: hidden;
}
.main-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    cursor: pointer;
    pointer-events: none;
}
.main-banner img.active {
    opacity: 1;
    pointer-events: all;
    zoom:10;
}
.previews {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.preview {
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.2s;
    border: solid 2px #fff;
    outline: 1px solid rgba(0, 0, 0, 0.1);
}
.preview:hover {
    transform: scale(1.1);
}
.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: block;
    text-decoration: none;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    display:none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}

a.arrow {
    /* line-height: 30px; */
}

.carousel-title{
    position: absolute;
    z-index: 2;
    bottom:5px;
    color:#f0f0f0;
    font-size: 1.5em;
    line-height: 34px;
    font-weight: 900;
    left:10px;
    pointer-events: none;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.pos_reset{
    left:-10px;
    opacity: 0;
    animation: car_text 1.5s forwards ease-in-out;
}

@keyframes car_text {
    0% {left:-10px; opacity: 0;}
    100% {left:10px; opacity: 1;}
}

@media screen and (max-width: 850px) {
    
    .carousel-title{
        font-size: 1.2em;
    }

}