/* Styles spécifiques à la galerie vidéos */

.videos-gallery-section {
    padding: 60px 20px;
    background-color: var(--white);
    min-height: 70vh;
}

/* Catégorie de vidéos */
.video-category {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.video-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.8rem;
    color: var(--gray-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--blue-primary);
}

.category-title i {
    color: var(--blue-primary);
    font-size: 1.5rem;
}

/* Grille de vidéos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Carte vidéo */
.video-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-card-header {
    padding: 20px;
    background-color: var(--blue-primary);
    color: var(--white);
}

.video-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.video-card-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Wrapper vidéo responsive */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Message si pas de vidéos */
.no-videos {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-dark);
    max-width: 1200px;
    margin: 0 auto;
}

.no-videos i {
    font-size: 5rem;
    color: var(--blue-primary);
    margin-bottom: 25px;
}

.no-videos h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-videos p {
    font-size: 1.1rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .category-title {
        font-size: 1.6rem;
    }

    .video-card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .videos-gallery-section {
        padding: 40px 15px;
    }

    .video-category {
        margin-bottom: 50px;
    }

    .category-title {
        font-size: 1.4rem;
        gap: 10px;
    }

    .category-title i {
        font-size: 1.3rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-card-header {
        padding: 15px;
    }

    .video-card-title {
        font-size: 1rem;
    }

    .no-videos {
        padding: 60px 20px;
    }

    .no-videos i {
        font-size: 4rem;
    }

    .no-videos h2 {
        font-size: 1.5rem;
    }

    .no-videos p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .videos-gallery-section {
        padding: 30px 10px;
    }

    .video-category {
        margin-bottom: 40px;
    }

    .category-title {
        font-size: 1.2rem;
        gap: 8px;
        padding-bottom: 10px;
    }

    .category-title i {
        font-size: 1.1rem;
    }

    .videos-grid {
        gap: 15px;
    }

    .video-card-header {
        padding: 12px;
    }

    .video-card-title {
        font-size: 0.95rem;
    }

    .no-videos {
        padding: 50px 15px;
    }

    .no-videos i {
        font-size: 3.5rem;
    }

    .no-videos h2 {
        font-size: 1.3rem;
    }

    .no-videos p {
        font-size: 0.95rem;
    }
}

/* Animation au chargement */
.video-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Décalage de l'animation pour chaque carte */
.video-card:nth-child(1) {
    animation-delay: 0.1s;
}

.video-card:nth-child(2) {
    animation-delay: 0.2s;
}

.video-card:nth-child(3) {
    animation-delay: 0.3s;
}

.video-card:nth-child(4) {
    animation-delay: 0.1s;
}

.video-card:nth-child(5) {
    animation-delay: 0.2s;
}

.video-card:nth-child(6) {
    animation-delay: 0.3s;
}