button.prev,
button.next {
    all: unset;
    display: inline-block;
    user-select: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 20px;
    color: #008d6f;
    background-color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 3px;
}

button.prev:focus, button.next:focus {
    outline: none; /* Supprime les contours liés au focus */
}

button.prev:hover,
button.next:hover {
    color: #007BFF; /* Exemple : changez la couleur au survol */
}

button.prev:active,
button.next:active {
    transform: scale(0.95); /* Ajoute un petit effet au clic */
}

.slide-container {
    width: 100%;
    overflow-y: hidden;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    margin: auto;
    height: 1100px;
    max-width: 100%;
    aspect-ratio: initial;
    object-fit: contain;
}

/* Position the "next button" to the right */

button.prev {
    left: 10px;
    border-radius: 0 5px 5px 0;
}

button.next {
    right: 10px;
    border-radius: 5px 0 0 5px;
}


/* On hover, add a black background color with a little bit see-through */

button.prev:hover,
button.next:hover {
    background-color: rgba(0, 141, 111, 0.8);
    color: white;
}


/* Fading animation */

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}

@keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}

@media (max-width:540px) {
    button.prev {
        left: 0;
    }
    button.next {
        right: 0;
    }
}
