/* ==========================================================================
   1. ACTIVATION DU SCROLL SUR LA PAGE VOD (COMME L'ACCUEIL)
   ========================================================================== */
html:has(.vod-hero-banner),
body:has(.vod-hero-banner) {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ==========================================================================
   2. BANNIÈRE HAUTE (85% DE L'ÉCRAN) AVEC LECTEUR VIDÉO & OMBRAGE
   ========================================================================== */
.vod-hero-banner {
    width: 100%;
    height: 90vh;
    background-color: #050505;
    position: relative;
    z-index: 2;
    overflow: hidden; /* Coupe proprement les bords du flou */
    border-bottom: 4px solid var(--color-accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(60px, 8vh, 90px) clamp(20px, 4vw, 40px) clamp(15px, 3vh, 30px);
}

/* Double calque pour un fondu enchaîné fluide entre deux miniatures */
.vod-hero-bg-layer {
    position: absolute;
    inset: -15px; /* Évite les bordures translucides créées par blur() */
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transform: scale(1.03);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.vod-hero-bg-layer.is-visible {
    opacity: 1;
}

/* Voile d'assombrissement identique aux profils catcheurs */
.vod-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 10, 10, 0.45), rgba(5, 5, 5, 0.80));
    z-index: 1;
    pointer-events: none;
}

.vod-player-container {
    position: relative;
    z-index: 2; /* Place le lecteur vidéo et le titre au-dessus du fond flouté */
    width: 100%;
    max-width: clamp(700px, min(65vw, 105vh), 1300px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.video-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}
.video-wrapper video,
.video-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border: none;
}

.current-video-info {
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    padding: clamp(10px, 1.5vh, 18px) clamp(15px, 2vw, 30px);
    border-left: 5px solid var(--color-accent);
    margin-top: clamp(10px, 1.5vh, 15px);
}

.current-video-info h1 {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    letter-spacing: 2px;
    line-height: 1.1;
}

.current-video-info p {
    font-family: Arial, sans-serif;
    font-size: clamp(0.85rem, 1vw, 1.1rem);
    color: #cccccc;
    margin-top: 4px;
}

/* ==========================================================================
   3. ZONE BASSE : BACKGROUND 16:9 + GRILLE 4x2 (8 VOD PAR PAGE)
   ========================================================================== */
.vod-content {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-image: url('../assets/img/ui/bg-vod.jpg');
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(40px, 6vh, 80px) clamp(20px, 4vw, 60px);
}

.vod-catalog {
    width: 100%;
    max-width: clamp(850px, 70vw, 1400px); 
    margin: 0 auto;
}

.vod-catalog .section-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    text-align: center;
    margin-bottom: clamp(20px, 4vh, 45px);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.4vw, 6px);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.95);
}

.vod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(15px, 2vw, 35px);
}

.vod-card {
    background: rgba(12, 12, 12, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.vod-card:hover,
.vod-card.active {
    transform: translateY(-6px);
    border-color: var(--color-accent);
}

.vod-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.vod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vod-card:hover .vod-thumb img {
    transform: scale(1.05);
}

.play-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--color-accent);
    color: #fff;
    padding: clamp(3px, 0.5vw, 6px) clamp(8px, 1vw, 12px);
    font-size: clamp(0.75rem, 0.9vw, 1rem);
    letter-spacing: 1px;
}

.vod-card-info {
    padding: clamp(8px, 1vh, 15px) clamp(10px, 1.2vw, 18px);
    border-top: 2px solid var(--color-accent);
}

.vod-card-info h4 {
    font-size: clamp(1rem, 1.2vw, 1.45rem);
    letter-spacing: 1px;
}

.vod-card-info span {
    font-family: Arial, sans-serif;
    font-size: clamp(0.75rem, 0.9vw, 0.95rem);
    color: #aaaaaa;
}

/* ==========================================================================
   4. BOUTONS DE PAGINATION
   ========================================================================== */
.vod-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 1vw, 15px);
    margin-top: clamp(20px, 4vh, 45px);
}

.page-btn {
    padding: clamp(6px, 1vh, 12px) clamp(12px, 1.5vw, 24px);
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: var(--font-main);
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   5. RÈGLES MOBILE / TABLETTE (PLACÉES À LA FIN POUR PRIORITÉ ABSOLUE)
   ========================================================================== */
@media (max-width: 768px) {
    .vod-hero-banner {
        height: auto;
        padding: 90px 15px 25px;
    }
    
    .vod-player-container {
        max-width: 100%;
    }

    .vod-content {
        aspect-ratio: auto;
        min-height: auto;
        padding: 40px 15px;
        background-size: cover;
    }

    .vod-grid {
        /* Grille en colonne unique sur mobile pour un confort tactile maximal */
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vod-catalog {
        max-width: 90vw;
    }
}