/* Ajouter dans le <style> de main.blade.php */

.video-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

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

/* Contrôles vidéo */
.video-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
    animation-delay: 0.5s;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
    animation-delay: 0.8s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

    .header-title1 {
        font-size: 35px !important;
    }

    .video-controls {
        bottom: 20px;
        right: 20px;
    }

    .video-control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Performance - Préchargement */
.video-background {
    preload: metadata;
}

/* Fallback pour les connexions lentes */
@media (max-width: 768px) and (max-device-width: 1024px) {
    .video-background {
        display: none;
    }

    .video-hero {
        background-image: url('../img_pages/edit-1.jpeg');
        background-size: cover;
        background-position: center;
    }
}
