/* styles.css */
#slider {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: max-content;
    background-color: #f1f1f1;
}

.slider-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    aspect-ratio: 16 / 9; /* Garantit une hauteur proportionnelle */
}

.slider {
    display: flex;
    width: 100%;
    height: 100%; /* S'assure que les slides occupent toute la hauteur */
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%; /* Chaque slide occupe 100% de la largeur du conteneur */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Empêche les débordements */
    box-sizing: border-box;
}

.slide a{
    width: 100%;
    height: 100%;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le conteneur sans distorsion */
    border-radius: 10px;
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    width: 40px;
    display: flex;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
