.slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider .slide.active {
    opacity: 1;
    z-index: 1;
}

/* Overlay sombre */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Texte centré */
.slide-text {
    position: relative;
    color: white;
    text-align: center;
    max-width: 700px;
    z-index: 2;
    padding: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.slide-text h2 {
    font-size: 2rem;
    font-weight: bold;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-text {
    opacity: 0;
    animation: none;
}

.slide.active .slide-text {
    animation: fadeInUp 3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.highlight-box {
    display: inline-block;
    background-color: rgba(255, 0, 0, 0.8);
    /* rouge semi-transparent */
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    transition: background-color 0.4s ease, transform 0.3s ease;
    cursor: pointer;
    margin-top: 15px;
    text-decoration: none;
}

.highlight-box:hover {
    background-color: rgba(0, 128, 0, 0.8);
    /* vert au survol */
    transform: scale(1.05);
    /* effet zoom */
}


.slider-indicators {
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 3;
    gap: 40px;
    padding: 14px 0;
    background-color: rgba(255, 0, 0, 0.8);
    /* fond rouge semi-transparent */
}

.indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: white;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background-color: green;
}