.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #111;
}

.carousel-track {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    position: absolute;
    z-index: 3;

    left: 8%;
    top: 50%;
    transform: translateY(-50%);

    color: white;
}

.slide-category {
    margin-bottom: 15px;

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
}

.slide-content h1 {
    margin-bottom: 25px;

    font-size: clamp(40px, 5vw, 75px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -3px;
}

.slide-content a {
    color: white;
    text-decoration: none;

    font-size: 14px;
    font-weight: 400;
}

/* Flèches */

.carousel-btn {
    position: absolute;
    z-index: 5;
    top: 50%;

    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.35);
    color: white;

    font-size: 30px;
    cursor: pointer;

    transition: background 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 25px;
}

.next {
    right: 25px;
}

/* Points */

.carousel-dots {
    position: absolute;
    z-index: 5;

    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 7px;
    height: 7px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.4);

    cursor: pointer;
}



.slide-video {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}

.carousel-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.05)
    );

    z-index: 1;

    pointer-events: none;
}


.carousel-dot.active {
    background: white;
}

@media (max-width: 600px) {

    .carousel {
        height: 470px;
    }

    .slide img {
        object-position: center;
    }

    .slide::after {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.25)
        );
    }

    .slide-content {
        left: 25px;
        right: 25px;
        top: 52%;

        max-width: none;
    }

    .slide-category {
        margin-bottom: 12px;

        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .slide-content h1 {
        margin-bottom: 20px;

        font-size: clamp(34px, 11vw, 48px);
        line-height: 1.05;

        letter-spacing: -1.5px;
    }

    .slide-content a {
        font-size: 13px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;

        font-size: 24px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 15px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }
}