.cde13-slider {
    --cde13-duration: 700ms;
    --cde13-ratio: 1440 / 450;
    --cde13-object-fit: contain;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #f6f7f7;
    isolation: isolate;
}

.cde13-slider:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.cde13-slider__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: var(--cde13-ratio);
    overflow: hidden;
}

.cde13-slider__track,
.cde13-slider__slide,
.cde13-slider__link,
.cde13-slider picture {
    display: block;
    width: 100%;
    height: 100%;
}

.cde13-slider__track {
    position: relative;
}

.cde13-slider__slide {
    margin: 0;
    background: transparent;
}

.cde13-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--cde13-object-fit);
    object-position: center;
    backface-visibility: hidden;
}

/* Transition horizontale */
.cde13-slider--slide .cde13-slider__track {
    display: flex;
    transition: transform var(--cde13-duration) cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.cde13-slider--slide .cde13-slider__slide {
    flex: 0 0 100%;
}

/* Transition en fondu */
.cde13-slider--fade .cde13-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--cde13-duration) ease;
}

.cde13-slider--fade .cde13-slider__slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

/* Mouvement interne discret */
.cde13-slider--effect-zoom .cde13-slider__slide.is-active .cde13-slider__image {
    animation: cde13-slider-zoom 7s ease-out both;
}

@keyframes cde13-slider-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.035); }
}

.cde13-slider__arrow,
.cde13-slider__pause,
.cde13-slider__dot {
    border: 0;
    cursor: pointer;
}

.cde13-slider__arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: clamp(36px, 4vw, 52px);
    height: clamp(36px, 4vw, 52px);
    padding: 0 0 4px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .42);
    color: #fff;
    font: 400 clamp(34px, 4vw, 52px)/1 Arial, sans-serif;
    transition: background-color 180ms ease, transform 180ms ease;
}

.cde13-slider__arrow:hover,
.cde13-slider__arrow:focus-visible,
.cde13-slider__pause:hover,
.cde13-slider__pause:focus-visible {
    background: rgba(0, 0, 0, .72);
}

.cde13-slider__arrow:hover {
    transform: translateY(-50%) scale(1.06);
}

.cde13-slider__arrow--prev { left: clamp(8px, 1.5vw, 20px); }
.cde13-slider__arrow--next { right: clamp(8px, 1.5vw, 20px); }

.cde13-slider__dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: clamp(8px, 1.4vw, 18px);
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.cde13-slider__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 999px;
    background: rgba(0, 0, 0, .38);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    transition: transform 180ms ease, background-color 180ms ease;
}

.cde13-slider__dot:hover,
.cde13-slider__dot:focus-visible,
.cde13-slider__dot.is-active {
    background: #fff;
    transform: scale(1.24);
}

.cde13-slider__pause {
    position: absolute;
    z-index: 5;
    right: clamp(8px, 1.5vw, 18px);
    bottom: clamp(8px, 1.4vw, 16px);
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    font: 700 13px/1 Arial, sans-serif;
    transition: background-color 180ms ease;
}

.cde13-slider__pause-icon {
    display: block;
    margin-top: -1px;
}

.cde13-slider-empty {
    padding: 12px;
    border-left: 4px solid #d63638;
    background: #fff;
}

@media (max-width: 680px) {
    .cde13-slider__arrow {
        width: 34px;
        height: 34px;
        font-size: 32px;
    }

    .cde13-slider__dots {
        gap: 6px;
    }

    .cde13-slider__dot {
        width: 9px;
        height: 9px;
    }

    .cde13-slider__pause {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cde13-slider--slide .cde13-slider__track,
    .cde13-slider--fade .cde13-slider__slide,
    .cde13-slider__arrow,
    .cde13-slider__dot {
        transition-duration: 1ms !important;
    }

    .cde13-slider--effect-zoom .cde13-slider__slide.is-active .cde13-slider__image {
        animation: none !important;
    }
}
