* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.KS_carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.KS_carousel {
    display: flex;
    transition-property: transform;
    transition-timing-function: ease-in-out;
    cursor: grab;
    font-size: 0; /* Eliminer l'espace entre les éléments inline */
}

.KS_carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 16px; /* Restaurer la taille de police normale pour le contenu */
}

.KS_carousel-slide img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block; /* Éliminer l'espace sous l'image */
    vertical-align: top; /* Éliminer l'espace sous l'image */
}

.KS_carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Ne pas intercepter les événements de souris */
    z-index: 20;
}

.control-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background-color 0.3s;
    pointer-events: auto; /* Permettre les clics sur les boutons */
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.KS_carousel-dots {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #717171;
}

/* Pour les écrans plus petits */
@media screen and (max-width: 768px) {
    .control-btn {
        padding: 8px 12px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .control-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* Style pour l'affichage de plusieurs images */
.KS_carousel.multiple .KS_carousel-slide {
    min-width: initial; /* Laisser la propriété width contrôler la largeur */
    flex: 0 0 auto; /* Empêcher la flexbox de modifier la taille */
}

/* Styles pour la légende des images */
.KS_carousel-caption {
    position: absolute;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    max-width: 90%;
    z-index: 5;
    border-radius: 4px;
}

.KS_carousel-caption a {
    color: #58b9ff;
    text-decoration: none;
}

.KS_carousel-caption a:hover {
    text-decoration: underline;
}

/* Positions de la légende */
.caption-top-left {
    top: 10px;
    left: 10px;
}

.caption-top-center {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.caption-top-right {
    top: 10px;
    right: 10px;
    text-align: right;
}

.caption-middle-left {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.caption-middle-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.caption-middle-right {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    text-align: right;
}

.caption-bottom-left {
    bottom: 10px;
    left: 10px;
}

.caption-bottom-center {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.caption-bottom-right {
    bottom: 10px;
    right: 10px;
    text-align: right;
}