/* --- Hero Video (version corrigée pour mobile) --- */

.hero {
    position: relative;
    width: 100%;
    height: 80vh; /* Hauteur pour desktop */
    background-color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

.hero-main-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: fadeInButton 0.5s forwards 3.5s;
}

.btn-discover {
    padding: 12px 30px;
    background-color: #373478;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-family: sans-serif;
}

@keyframes fadeInButton {
    to { opacity: 1; }
}

/* --- CORRECTIONS POUR MOBILE --- */

/* Pour les tablettes */
@media (max-width: 1024px) {
    .hero {
        height: 70vh; /* Réduit légèrement */
    }
}

/* Pour les mobiles */
@media (max-width: 768px) {
    .hero {
        height: 50vh; /* Hauteur beaucoup plus petite sur mobile */
        min-height: 300px; /* Garantit une hauteur minimale */
    }
    
    /* Ajuste la vidéo pour mieux s'adapter */
    .video-bg {
        min-width: 100%;
        min-height: 100%;
        height: 50vh;
        object-fit: cover; /* Maintient le remplissage */
    }
}

/* Pour les très petits mobiles */
@media (max-width: 480px) {
    .hero {
        height: 40vh; /* Encore plus petit */
        min-height: 250px;
    }
}

/* Pour les mobiles en orientation paysage */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 70vh; /* Plus grand en paysage */
    }
}