/* =========================
   VIDEO CAROUSEL SECTION
========================= */

/* Video Carousel Section */
.video-carousel {
    padding: var(--spacing-6xl) 0 0 0;
    width: 100%;
    margin: 0 auto;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
}

.carousel-container {
    width: 100%;
    padding: 0 var(--spacing-lg);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-sm);
    width: max-content;
    animation: scroll-left 45s linear infinite;
}

.video-item {
    flex-shrink: 0;
    background-color: var(--background-gray);
    border-radius: var(--spacing-lg);
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
    overflow: hidden;
}

.video-large {
    width: 538px;
    height: 296px;
}

.video-medium {
    width: 296px;
    height: 296px;
}

.video-small {
    width: 187px;
    height: 296px;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.play-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2;
}

.play-button:hover {
    transform: scale(1.1);
}

/* plus de libellés sur les vignettes */

/* Animation pour le défilement automatique */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation au hover */
.carousel-track:hover {
    animation-play-state: paused;
}

/* =========================
   VIDEO CAROUSEL RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .carousel-container {
        padding: 0 var(--spacing-md);
    }
    
    .video-large {
        width: 450px;
        height: 248px;
    }
    
    .video-medium {
        width: 248px;
        height: 248px;
    }
    
    .video-small {
        width: 156px;
        height: 248px;
    }
    
    .video-label {
        font-size: 28px;
    }
    
    .video-small .video-label {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 var(--spacing-sm);
    }
    
    .carousel-track {
        gap: var(--spacing-xs);
    }
    
    .video-large {
        width: 320px;
        height: 180px;
    }
    
    .video-medium {
        width: 180px;
        height: 180px;
    }
    
    .video-small {
        width: 120px;
        height: 180px;
    }
    
    .video-label {
        font-size: 20px;
    }
    
    .video-small .video-label {
        font-size: 16px;
    }
    
    .play-button svg {
        width: 32px;
        height: 32px;
    }
    
    .video-small .play-button svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 var(--spacing-xs);
    }
    
    .video-large {
        width: 240px;
        height: 135px;
    }
    
    .video-medium {
        width: 135px;
        height: 135px;
    }
    
    .video-small {
        width: 90px;
        height: 135px;
    }
    
    .video-label {
        font-size: 16px;
    }
    
    .video-small .video-label {
        font-size: 12px;
    }
    
    .play-button svg {
        width: 24px;
        height: 24px;
    }
    
    .video-small .play-button svg {
        width: 20px;
        height: 20px;
    }
}
