/* ==========================================
   HERO VIDEO BACKGROUND
   Vidéo en plein écran avec overlay
   ========================================== */

.hero-video-section {
    position: relative;
    min-height: 600px;
    height: 80vh;
    max-height: 400px;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* Overlay sombre pour lisibilité du texte */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

/* Contenu du hero */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.hero-subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 18px;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-video-section {
        min-height: 500px;
        height: 70vh;
    }

    .hero-title {
        font-size: 40px !important;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .hero-video-section {
        min-height: 400px;
        height: 60vh;
    }

    .hero-title {
        font-size: 30px !important;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* Sur mobile, on peut assombrir encore plus */
    .hero-video-overlay {
        background: linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.4) 0%,
                rgba(0, 0, 0, 0.7) 100%
        );
    }
}

/* Animation d'entrée */
@keyframes fadeInVideo {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-video {
    animation: fadeInVideo 1s ease-in;
}

/* État de chargement */
.hero-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1A2B49; /* Couleur du logo XZIT */
    z-index: 0;
}