/* --- HERO SLIDER PERSO --- */

/* Fixe la hauteur à 50% de l'écran */
.vh-50 {
    height: 70vh !important;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay sombre pour la lisibilité */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

/* Centrage du contenu (écrase le style par défaut de Bootstrap) */
.carousel-caption {
    z-index: 2;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 10%;
    right: 10%;
}

/* Gestion de la vidéo de fond */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Style des boutons (Optionnel) */
.carousel-item .btn {
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
}