.mls-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mls-viewport {
    overflow: hidden;
    width: 100%;
}

.mls-track {
    display: flex;
    align-items: center;
    will-change: transform;
    gap: 40px; /* écrasé par le contrôle "Espacement entre logos" */
}

.mls-slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mls-slide img,
.mls-logo-link img {
    display: block;
    max-width: 100%;
    height: 60px; /* écrasé par le contrôle "Hauteur du logo" */
    width: auto;
    object-fit: contain;
}

.mls-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Niveaux de gris avec retour couleur au survol */
.mls-grayscale .mls-slide img {
    filter: grayscale(100%);
    transition: filter .3s ease, opacity .3s ease;
}

.mls-grayscale .mls-slide:hover img,
.mls-grayscale .mls-logo-link:focus img {
    filter: grayscale(0%);
    opacity: 1 !important;
}

/* Flèches */
.mls-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a1a;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background-color .2s ease, opacity .2s ease;
}

.mls-arrow:hover {
    background: #fff;
}

.mls-arrow-prev { left: 4px; }
.mls-arrow-next { right: 4px; }

.mls-arrow[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Points de navigation */
.mls-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.mls-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d5d0c8;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.mls-dot.is-active {
    background-color: #1a1a1a;
    transform: scale(1.2);
}

/* Curseur "grab" pour le swipe tactile / souris */
.mls-viewport {
    cursor: grab;
}
.mls-viewport.is-dragging {
    cursor: grabbing;
}

@media (max-width: 767px) {
    .mls-arrow {
        width: 32px;
        height: 32px;
    }
}
