/* ============================
   SECTION PRINCIPALE VIDEOS YT
============================ */
.videos-en-YT-section {
    font-family: Arial, sans-serif;
    background-color: #333146;
    padding: 10px;
}

/* Container général */
.videos-en-YT-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

/* Vidéo principale */
.videos-en-YT-video {
    flex: 2;
    width: 100%;
    max-width: 100%;
    margin-right: 20px;
}

.videos-en-YT-video video {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.videos-en-YT-video-description {
    font-size: 14px;
    color: #EDE6D3;
    text-align: justify;
    font-weight: normal;
    margin-top: 10px;
    font-family: 'Figtree', sans-serif;
    line-height: 1.5;
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 0;
}

/* Wrapper vignettes + flèche */
.videos-en-YT-thumbnails-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* centre la flèche */
}

/* Vignettes scrollables */
.videos-en-YT-thumbnails {
    flex: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar Webkit */
.videos-en-YT-thumbnails::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.videos-en-YT-thumbnails::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 3px;
}
.videos-en-YT-thumbnails::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Vignette individuelle */
.videos-en-YT-thumbnail {
    cursor: pointer;
    max-width: 200px;
    text-align: left;
    margin-right: 0;
    padding: 0;
}

.videos-en-YT-thumbnail img {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    transition: transform 0.3s, border-color 0.3s;
}

.videos-en-YT-thumbnail img:hover {
    transform: scale(1.05);
    border-color: #000;
}

/* Détails sous la vignette */
.videos-en-YT-thumbnail-details,
.videos-en-YT-thumbnail-duration,
.videos-en-YT-thumbnail-title,
.videos-en-YT-thumbnail-text {
    font-family: 'Figtree', sans-serif;
    font-weight: normal;
    text-align: left;
    color: #EDE6D3;
    line-height: 1.5;
}

.videos-en-YT-thumbnail-duration,
.videos-en-YT-thumbnail-title,
.videos-en-YT-thumbnail-text {
    font-size: 12px;
    margin-top: 5px;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
    .videos-en-YT-video { width: 100%; }
    .videos-en-YT-thumbnails { max-width: 70%; }
    .videos-en-YT-video-description,
    .videos-en-YT-thumbnail-text { font-size: 12px; }
}

@media (max-width: 768px) {
    .videos-en-YT-container { flex-direction: column; }
    .videos-en-YT-video { width: 100%; margin-bottom: 10px; }
    .videos-en-YT-thumbnails {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        gap: 5px;
    }
    .videos-en-YT-thumbnail { flex: 0 0 auto; width: 50%; }
    .videos-en-YT-video-description,
    .videos-en-YT-thumbnail-text { font-size: 10px; }
}

@media (max-width: 576px) {
    .videos-en-YT-container { flex-direction: column; }
    .videos-en-YT-video { width: 100%; margin-bottom: 10px; }
    .videos-en-YT-thumbnails {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 5px;
        padding-bottom: 2px;
        margin-left: 90px;
        position: relative;
    }
    .videos-en-YT-thumbnail { flex: 0 0 auto; width: 70%; }
    .videos-en-YT-video-description,
    .videos-en-YT-thumbnail-text { font-size: 10px; }
    .videos-en-YT-thumbnail-title { font-size: 12px; }
}

/* ============================
   FLÈCHE / INDICATEUR SCROLL
============================ */
.videos-en-YT-scroll-indicator {
    position: absolute;
    bottom: -10px;          /* remonter la flèche */
    left: 33%;
    transform: translateX(-30%); /* déplacer vers la droite */
    width: 50px;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23EDE6D3" viewBox="0 0 24 24"><path d="M12 16l-6-6h12z"/></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
    animation: bounce 1s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.videos-en-YT-scroll-indicator.hide {
    opacity: 0;
    transition: opacity 0.3s ease;
}