/* Taille du carrousel */
.carousel {
    position: relative;
    width: 100%;
    height: 408px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    /* min-width: 100%; */
    height: 100%;
    width: 20%; /* 100% / 5 images */
    flex-shrink: 0;
}

.slide img {
    width: 95%; /* 100% / 5 = 20% */
    /* width: 100%; */
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.controls button {
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.controls button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.carousel .controls.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}