/* ===================================
   NETFLIX UI CLONE - INFINITYTV
   Design System Complet avec Animations
   =================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #000000;
    height: 100%;
    overscroll-behavior-y: none;
    /* ANTI-REBOND */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000000 !important;
    /* NOIR ABSOLU FORCE */
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    line-height: 1.6;
    overscroll-behavior-y: none;
}

/* ANTI-GAP IMAGE FIX */
img {
    display: block;
    max-width: 100%;
    border: none;
}

/* === NETFLIX NAVBAR === */
.netflix-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 10%, rgba(0, 0, 0, 0));
    transition: background-color 0.4s ease;
    padding: 20px 4%;
}

.netflix-nav.scrolled {
    background-color: #141414;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #E50914;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: text-shadow 0.3s ease;
}

.nav-logo:hover {
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E50914;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #b3b3b3;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-subscribe {
    background-color: #E50914;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    animation: pulse-button 2s infinite;
}

.btn-subscribe:hover {
    background-color: #f40612;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

@keyframes pulse-button {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
    }
}

/* === BILLBOARD HERO === */
.billboard {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
}

.billboard-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.billboard-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(77deg, rgba(0, 0, 0, 0.6) 0%, transparent 85%);
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.billboard-content {
    position: absolute;
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
    /* Adjust for exact center */
    left: 6%;
    /* Slightly more padding from left */
    max-width: 600px;
    /* Give more room for text */
    z-index: 10;
}

.billboard-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #E50914;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.billboard-description {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #e5e5e5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.8s ease-out 0.4s both;
    /* Removed line-clamp to show full text */
}

.billboard-buttons {
    display: flex;
    gap: 1rem;
    animation: slideUp 0.8s ease-out 0.6s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-play,
.btn-info {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-play {
    background-color: #ffffff;
    color: #000000;
}

.btn-play:hover {
    background-color: rgba(255, 255, 255, 0.75);
    transform: scale(1.05);
}

.btn-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: #ffffff;
}

.btn-info:hover {
    background-color: rgba(109, 109, 110, 0.5);
    transform: scale(1.05);
}

/* === MARQUEE SECTION === */
.marquee-section {
    background-color: #000000;
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 1px solid #111;
    /* Bordure quasi invisible */
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    font-size: 0;
    /* Tue les espaces entre les images inline-block */
    line-height: 0;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.marquee-track img,
.marquee-track-reverse img {
    height: 250px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.marquee-track img:hover,
.marquee-track-reverse img:hover {
    transform: scale(1.05);
    z-index: 10;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track-reverse {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScrollReverse 24s linear infinite;
}

@keyframes marqueeScrollReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.marquee-sports {
    margin-top: -5px;
    /* Collé au précédent */
    border-top: none;
    padding-top: 0;
}



/* === SIMPLE PREVIEW SECTION (New) === */
.simple-preview {
    padding: 60px 4%;
    background-color: #000000;
    /* Noir total */
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #e5e5e5;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-item {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-5px);
}

.preview-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.preview-item p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e5e5e5;
}

/* === PRICING SECTION === */
.pricing-section {
    padding: 80px 4%;
    background-color: #000000;
    /* Noir total */
    background-image: url('assets/platforms_bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /* background-blend-mode removed for visibility */
}

.pricing-section::before {
    /* Optional: Overlay if needed, but let's stick to simple first */
    content: none;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #e5e5e5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: #2f2f2f;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
    /* Flexbox for correct button alignment */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:nth-child(1) {
    animation: pricingAppear 0.6s ease-out 0.2s forwards;
}

.pricing-card:nth-child(2) {
    animation: pricingAppear 0.6s ease-out 0.4s forwards;
}

.pricing-card:nth-child(3) {
    animation: pricingAppear 0.6s ease-out 0.6s forwards;
}

@keyframes pricingAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.3);
}

.pricing-card.featured {
    border: 2px solid #E50914;
    transform: scale(1.05);
    position: relative;
    /* Combine animations: Appear first (matched to 2nd child timing), then Pulse */
    animation: pricingAppear 0.6s ease-out 0.4s forwards, featuredPulse 2s ease-in-out infinite;
}

@keyframes featuredPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(229, 9, 20, 0);
    }
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #E50914;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.plan-price span {
    font-size: 1rem;
    color: #b3b3b3;
}

.premium-price {
    color: #E50914;
}

.vip-price {
    color: #ffd700;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #b3b3b3;
    border-bottom: 1px solid #404040;
}

.plan-features i {
    color: #E50914;
    margin-right: 0.5rem;
}

.plan-btn {
    display: block;
    width: 100%;
    margin-top: auto;
    /* Push button to the bottom */
    padding: 12px;
    border-radius: 4px;
    background-color: #404040;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.plan-btn:hover::before {
    left: 100%;
}

.plan-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.premium-btn {
    background-color: #E50914;
}

.premium-btn:hover {
    background-color: #f40612;
}

.vip-btn {
    background-color: #ffd700;
    color: #000000;
}

.vip-btn:hover {
    background-color: #ffed4e;
}

/* === FAQ SECTION === */
.faq-section {
    padding: 80px 4%;
    background-color: #000000;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-intro {
    text-align: center;
    color: #b3b3b3;
    margin-bottom: 3rem;
}

.faq-item {
    background-color: #1f1f1f;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #e5e5e5;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-item summary:hover {
    background-color: #2f2f2f;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #E50914;
    font-weight: 300;
}

details[open] summary::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: #b3b3b3;
    line-height: 1.6;
    border-top: 1px solid #333;
    margin-top: 10px;
    padding-top: 10px;
}

/* === SIMPLE FOOTER === */
.simple-footer {
    background-color: #000000;
    padding: 40px 4%;
    text-align: center;
    border-top: 1px solid #111;
    /* Bordure très subtile */
    color: #808080;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    color: #E50914;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.copyright {
    font-size: 0.85rem;
}

.footer-credit {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-credit a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

a:hover {
    color: #E50914;
    /* Rouge Netflix au survol */
    text-decoration: none;
}

/* Force override Bootstrap defaults */
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #E50914 !important;
    border-color: #E50914 !important;
    color: #fff !important;
}

.text-primary {
    color: #E50914 !important;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
        /* Activation Menu Mobile (Importé du bloc supprimé) */
    }

    /* === REFONTE TOTALE HERO MOBILE (Minimaliste & Centré) === */
    .billboard {
        position: relative;
        width: 100%;
        height: 100dvh;
        /* Force dynamique height */
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centre verticalement */
        align-items: center;
        /* Centre horizontalement */
        padding: 0 20px;
        overflow: hidden;
        background-color: #000000;
        /* Retour au noir simple (l'image fera le reste) */
        margin: 0;
        z-index: 1;
    }

    .billboard-bg {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('assets/hero_bg_mobile.png');
        /* IMAGE MOBILE VERTICALE */
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        z-index: 0;
        animation: kenBurns 20s ease-in-out infinite alternate;
    }

    .billboard-content {
        position: relative;
        top: auto !important;
        /* CRITIQUE : Annule le 'top: 35%' du desktop */
        left: auto !important;
        /* CRITIQUE : Annule le 'left: 4%' du desktop */
        right: auto;
        bottom: auto;
        z-index: 2;
        text-align: center;
        width: 100%;
        margin-top: 0 !important;
        transform: translateY(-10%);
    }

    .billboard-title {
        font-size: 2.5rem;
        /* Titre plus gros pour meubler */
        margin-bottom: 1rem;
    }

    .billboard-description {
        font-size: 1rem;
        display: block;
        margin-bottom: 2rem;
        text-align: center;
        max-width: 100%;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        white-space: normal;
    }

    .billboard-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-play,
    .btn-info {
        width: 100%;
        justify-content: center;
    }

    /* Suppression de margin/padding parasites */
    /* Suppression de margin/padding parasites */
    .billboard-description {
        margin-bottom: 1rem;
        /* Encore réduit de 1.5rem à 1rem */
    }

    .billboard-title {
        font-size: 1.8rem;
        /* Légèrement plus petit pour gagner de la place */
        line-height: 1.1;
        margin-bottom: 5px;
    }

    /* Réduire le padding du Marquee sur mobile */
    .marquee-section {
        padding: 10px 0;
    }

    /* Grids en 1 colonne sur mobile avec espacement optimisé */
    .pricing-grid,
    .preview-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Gap légèrement réduit pour mobile */
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .pricing-card,
    .testimonial-card,
    .preview-item {
        padding: 25px;
        /* Padding interne légèrement réduit */
    }

    .section-title,
    .pricing-title {
        font-size: 1.8rem;
        /* Titres un peu moins massifs */
        margin-bottom: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
        margin-top: 10px;
        /* Petit espace extra pour la carte featured */
        margin-bottom: 10px;
    }

    /* Uniformisation des paddings de section Mobile - ULTRA COMPACT */
    .simple-preview,
    .pricing-section,
    .testimonials-section {
        padding: 30px 15px;
        /* DIVISÉ PAR DEUX (50px -> 30px) */
    }

    .section-title,
    .pricing-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        /* Réduit de 2rem (32px) à 20px */
        margin-top: 0;
    }

    .marquee-section {
        padding: 20px 0 0 0;
        /* Compensation du margin négatif */
        border: none;
        margin: 0;
        margin-top: -20px;
        /* Chevauchement MASSIF de 20px sur le Hero */
        position: relative;
        z-index: 20;
        /* Passe au dessus du Hero */
        background-color: #000000;
    }

    .netflix-nav {
        padding: 15px 6%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
        /* RETOUR TRANSPARENCE GRADIENT */
        background-color: transparent;
        /* Plus de fond noir uni pour laisser voir l'image */
        position: absolute;
        /* Force l'overlay sur l'image */
        width: 100%;
    }
}

@media (max-width: 480px) {
    .netflix-nav {
        padding: 15px 3%;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    /* Hide header button on mobile */
    .btn-subscribe {
        display: none;
    }
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
    padding: 80px 4%;
    background-color: #000000;
    background-image: url('assets/testimonials_bg.png');
    /* Nouveau Fond */
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    /* Mélange subtil avec le noir */
    text-align: center;
    border-top: 1px solid #333;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1rem;
    color: #e5e5e5;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 700;
    color: #E50914;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* === MOBILE MENU (Added for Responsive 10/10) === */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    margin-left: 15px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for menu items */
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) {
    transition-delay: 0.6s;
}

.mobile-nav-links a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: #E50914;
}

/* === RESPONSIVE ADJUSTMENTS === */
/* Fin du fichier - Bloc dupliqué supprimé */