.mon-slider-wrapper {
    max-width: 100%; /* Pour éviter de dépasser le conteneur parent */
    position: relative;
    background: #fafafa;
    overflow: hidden;
}

.mon-slider-track {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    transition: transform 0.7s cubic-bezier(.77,0,.18,1);
    will-change: transform;
}

.mon-slider-slide {
    min-width: 100%;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: opacity 0.7s, transform 1.2s cubic-bezier(.77,0,.18,1);
    transform: scale(1);
    transform-origin: center center;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mon-slider-slide.zoom-in {
    opacity: 1;
    transform: scale(1.3); /* profondeur du zoom, ajustez à votre goût */
    z-index: 2;
    position: relative;
}

.mon-slider-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.mon-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* ou contain selon l'effet désiré */
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.mon-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 2em;
    padding: 0 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 3px;
}
.mon-slider-prev { left: 10px; }
.mon-slider-next { right: 10px; }
.mon-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.mon-slider-dot {
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
}
.mon-slider-dot.active {
    background: #222;
}
.mon-slider-content, .mon-slider-image {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .mon-slider-wrapper {
        width: 100% !important;
    }
}