/* Style de la section pour la cohérence */
.youtube-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-light, #f8f8f8);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}
.youtube-section.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

.youtube-intro {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
    margin-bottom: 30px;
}
.youtube-section.animate-in .youtube-intro {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    margin-bottom: 25px;
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s ease-out;
}
.youtube-section.animate-in .video-container {
    opacity: 1;
    transform: scale(1);
    animation: scaleIn 0.8s ease-out 0.4s forwards;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.video-container:hover iframe {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.youtube-cta {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}
.youtube-section.animate-in .youtube-cta {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.btn-youtube {
    background-color: #ff0000;
    color: white;
    padding: 12px 25px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-youtube:hover {
    background-color: #cc0000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}
.btn-youtube:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive YouTube Section */
@media (max-width: 768px) {
    .youtube-section {
        padding: 40px 0;
    }
    
    .youtube-intro {
        font-size: 0.9em;
        padding: 0 10px;
    }
    
    .btn-youtube {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .youtube-section {
        padding: 30px 0;
    }
    
    .youtube-intro {
        font-size: 0.85em;
    }
    
    .btn-youtube {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}