/* ============================================
   VIDEO-SLIDER.CSS - VIDEOS SLIDER (SANS FLÈCHES MOBILE)
   ============================================ */

/* Styles pour la grille de vidéos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.video-card {
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 184, 28, 0.2);
    z-index: 10;
}

.video-link {
    display: block;
    text-decoration: none;
    color: white;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: var(--gc-darker);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gc-dark);
    background-color: var(--gc-yellow);
}

/* Overlay avec bouton de lecture */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.video-card:hover .play-button {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--gc-yellow);
    transform: scale(1.1);
}

.video-title {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 0 0.5rem;
}

/* Styles du video slider modal */
.video-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-slider.active {
    opacity: 1;
}

.video-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.video-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.video-slider-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-slider-close:hover {
    background: rgba(255, 184, 28, 0.3);
    transform: scale(1.1);
}

.video-slider-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 95vw;
    flex: 1;
    position: relative;
}

.video-slider-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1001;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-slider-nav:hover {
    background: rgba(255, 184, 28, 0.3);
    transform: scale(1.1);
}

.video-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.video-slider-prev {
    margin-right: 2rem;
}

.video-slider-next {
    margin-left: 2rem;
}

.video-slider-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
    max-width: 80vw;
}

.video-player {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-slider-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 80vw;
}

.video-slider-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.video-slider-counter {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.video-slider-thumbnails {
    display: flex;
    gap: 0.5rem;
    max-width: 80vw;
    overflow-x: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gc-yellow) rgba(255, 255, 255, 0.1);
}

.video-slider-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.video-slider-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.video-slider-thumbnails::-webkit-scrollbar-thumb {
    background: var(--gc-yellow);
    border-radius: 3px;
}

.video-slider-thumb {
    position: relative;
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.video-slider-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.video-slider-thumb.active {
    opacity: 1;
    border-color: var(--gc-yellow);
    transform: scale(1.1);
}

.video-slider-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Responsive design - Tablet */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .video-slider-container {
        padding: 1rem;
    }
    
    .video-slider-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .video-slider-nav {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        padding: 0.5rem;
    }
    
    .video-slider-prev {
        margin-right: 1rem;
    }
    
    .video-slider-next {
        margin-left: 1rem;
    }
    
    .video-slider-main {
        max-width: 95vw;
        max-height: 50vh;
    }
    
    .video-slider-thumbnails {
        max-width: 95vw;
    }
    
    .video-slider-thumb {
        width: 80px;
        height: 45px;
    }
    
    .video-slider-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive design - Mobile : MASQUER LES FLÈCHES */
@media (max-width: 480px) {
    .video-slider-container {
        padding: 0.5rem;
        padding-top: 4rem;
    }
    
    .video-slider-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .video-slider-content {
        flex-direction: column !important;
        gap: 0;
        width: 100%;
        max-width: 100vw;
        padding: 0 !important;
    }
    
    /* MASQUER LES FLÈCHES SUR MOBILE */
    .video-slider-prev,
    .video-slider-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Vidéo principale */
    .video-slider-main {
        max-height: 50vh;
        max-width: 100%;
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .video-player {
        width: 100%;
        max-width: 100%;
    }
    
    /* Info section */
    .video-slider-info {
        margin-top: 1rem;
        gap: 0.5rem;
        max-width: 100vw;
        width: 100%;
    }
    
    .video-slider-title {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .video-slider-counter {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .video-slider-thumbnails {
        max-width: 100vw;
        padding: 0.5rem;
    }
    
    .video-slider-thumb {
        width: 70px;
        height: 40px;
    }
}