.body {
    font-family: "arial", sans-serif;
    text-align: center;
}

#slider {
    position: relative;
    width: 100%;
    height: 90vh;
    margin: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#precedent,
#suivant {
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
    position: absolute;
    font-size: 100px;
    color: rgba(220, 220, 220, 0.8);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
}

#precedent {
    left: 0;
}

#suivant {
    right: 0;
}

#slider:hover #precedent,
#slider:hover #suivant {
    opacity: 1;
}

.standard-caption {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}


.standard-caption h2 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.standard-caption p {
    margin: 2rem 0;
    font-size: 1.5rem;
}

.standard-caption i {
    margin: 0 .3rem;
}

.standard-caption .btn-1 {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin: 2rem auto;
    color: #fff;
    white-space: nowrap;
    /* Empêche le texte de passer à la ligne */
    display: inline-flex;
    /* Pour garder la mise en page flexible */
    align-items: center;
}

.standard-caption a {
    /* display: inline-block; */
    /* width: 30%; */
    font-size: 1.6rem;
    color: #fff;
    /* margin: 2rem 0; */
}

.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade.show {
    opacity: 1;
}

.flex {
    display: flex;
}

.column {
    flex-direction: column;
}

.min-gap {
    gap: 1.2rem;
}

.center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

.progress-container {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.progress-bar {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.progress-bar.active {
    background: white;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-color: rgba(0, 0, 0, 0.4);  */
    color: white;
    text-align: center;
    z-index: 2;
    padding: 2rem;
    pointer-events: none;
}

.hero-slide button,
.hero-slide a {
    pointer-events: auto;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    #slider {
        height: 80vh;
    }

    .standard-caption,
    .hero-slide {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 95vw;
        min-width: unset;
        padding: 1rem;
        border-radius: 10px;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .standard-caption h2,
    .hero-title {
        font-size: 2rem !important;
    }

    .standard-caption p,
    .hero-slide p {
        font-size: 1rem!important;
        margin: 1rem 0;
    }

    .standard-caption .btn-1 {
        width: 100%;
        height: 40px;
        font-size: .7rem;
    }

    #precedent,
    #suivant {
        font-size: 2.5rem;
        padding: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .progress-container {
        bottom: 2%;
        gap: 0.2rem;
    }

    .progress-bar {
        width: 20vw;
        max-width: 40px;
        height: 3px;
    }

    .standard-caption .btn-1,
    .hero-slide .btn-1 {
        width: 100%;
        height: 40px;
        font-size: 1rem;
        margin: 1rem auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .standard-caption a,
    .hero-slide a {
        font-size: 1rem;
    }
}

@media screen and (max-width: 900px) {
    #slider {
        /* margin-top: 86px; */
    }
}