/* ========================================
   SECTION PREVIEWS CAROUSEL
   Style Netflix/Prime - Défilement horizontal
======================================== */

.previews-carousel-section {
    margin: 3rem 3rem;
    padding: 0 1rem;
}

/* ========================================
   HEADER
======================================== */
.previews-carousel-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.previews-carousel-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.previews-carousel-section .section-link {
    font-size: 1rem;
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.previews-carousel-section .section-link:hover {
    color: #FFD700;
}

/* ========================================
   NAVIGATION FLÈCHES (spécifiques previews)
======================================== */
.carousel-nav-prev-preview,
.carousel-nav-next-preview {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 50px;
    height: 100px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.previews-carousel-section .carousel-container:hover .carousel-nav-prev-preview,
.previews-carousel-section .carousel-container:hover .carousel-nav-next-preview {
    opacity: 1;
    pointer-events: all;
}

.carousel-nav-prev-preview:hover,
.carousel-nav-next-preview:hover {
    background: rgba(227, 6, 19, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev-preview {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.carousel-nav-next-preview {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.carousel-nav-prev-preview svg,
.carousel-nav-next-preview svg {
    width: 32px;
    height: 32px;
}

/* ========================================
   TRACK (conteneur scrollable)
======================================== */
.carousel-track-preview {
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Badge PREVIEW avec couleur différente */
.preview-badge {
    background: rgba(75, 0, 130, 0.95) !important; /* Violet/Indigo pour différencier */
}

/* Icône d'œil pour preview */
.preview-icon {
    width: 64px;
    height: 64px;
    background: rgba(75, 0, 130, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.carousel-card:hover .preview-icon {
    transform: scale(1);
}

/* ========================================
   RESPONSIVE
======================================== */

/* Tablette (< 1200px) : 2 cards visibles */
@media (max-width: 1200px) {
    .previews-carousel-section .carousel-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

/* Tablette portrait (< 768px) : 1.5 cards visibles (effet peek) */
@media (max-width: 768px) {
    .previews-carousel-section {
        margin: 3rem 0;
    }

    .previews-carousel-section .section-title {
        font-size: 1.5rem;
    }

    .previews-carousel-section .carousel-card {
        flex: 0 0 calc(100% - 3rem);
        min-width: 250px;
    }

    .carousel-nav-prev-preview,
    .carousel-nav-next-preview {
        width: 40px;
        height: 80px;
        opacity: 0.7; /* Toujours visible sur mobile */
        pointer-events: all;
    }

    .carousel-nav-prev-preview svg,
    .carousel-nav-next-preview svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile (< 480px) : 1 card visible */
@media (max-width: 480px) {
    .previews-carousel-section .section-title {
        font-size: 1.3rem;
    }

    .previews-carousel-section .carousel-card {
        flex: 0 0 calc(100% - 2rem);
        min-width: 220px;
    }

    .carousel-nav-prev-preview,
    .carousel-nav-next-preview {
        width: 35px;
        height: 70px;
    }
}

