.hero-slideshow {
    position: relative;
    max-width: 100%;
    aspect-ratio: 5/3;
    overflow: hidden;
    background: #000;
    touch-action: pan-y;
    user-select: none;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 800ms ease;
}

    .hero-slide.is-active {
        opacity: 1;
    }

    .hero-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Flèches */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 1.875rem;
    line-height: 1;
    padding: .5rem .8rem;
    border-radius: .375rem;
    cursor: pointer;
    z-index: 5;
    transition: background .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.hero-prev {
    left: .75rem;
}

.hero-next {
    right: .75rem;
}

.hero-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero-nav:hover {
    background: rgba(255,0,0,0.60);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,.25);
}


/* Dots */
.hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.4); /* fond noir translucide */
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 5;
}

    .hero-dots button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.25); /* gris clair transparent */
        cursor: pointer;
        transition: background 0.25s ease, box-shadow 0.25s ease;
    }

        .hero-dots button:hover {
            background: rgba(255, 255, 255, 0.5);
            box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
        }


        .hero-dots button:focus-visible {
            outline: 2px solid #fff;
            outline-offset: 2px;
        }

        .hero-dots button[aria-current="true"] {
            background: #ff2d2d; /* rouge vif comme avant */
        }

/* Motion safe */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

@media (max-width: 768px) {
    .hero-nav {
        font-size: 1.5rem;
        padding: .4rem .6rem;
    }
}