/* ==========================================================================
   SenpaiStream — main.css
   Dark cinematic · Brand palette: #E06500 (orange) + #FFFFFF
   CSS targets original HTML with no classes — element + ID selectors only
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --orange: #e06500;
    --orange-dark: #b85000;
    --orange-dim: rgba(224, 101, 0, 0.15);
    --orange-glow: rgba(224, 101, 0, 0.35);
    --orange-border: rgba(224, 101, 0, 0.3);

    /* Surfaces */
    --bg: #0c0c0e;
    --surface: #131318;
    --surface-2: #1a1a22;
    --border: #242430;
    --border-subtle: #1e1e28;

    /* Text */
    --text: #f2f2f5;
    --text-muted: #8a8aa0;
    --text-faint: #44445a;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #e06500 0%, #ff9a3c 100%);
    --grad-dark: linear-gradient(180deg, #1a1a22 0%, #131318 100%);
    --grad-overlay: linear-gradient(
        180deg,
        transparent 40%,
        rgba(12, 12, 14, 0.98) 100%
    );
    --grad-glow: radial-gradient(
        ellipse at 50% 0%,
        rgba(224, 101, 0, 0.16) 0%,
        transparent 65%
    );

    /* Typography */
    --font-display: "Rajdhani", "Arial Narrow", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    /* Layout */
    --max-w: 1160px;
    --nav-h: 64px;
    --pad-x: clamp(1.25rem, 5vw, 2.5rem);
    --section-py: clamp(3.5rem, 8vw, 6rem);

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 220ms;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* Scanline texture — cinematic signature */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.025) 2px,
        rgba(0, 0, 0, 0.025) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* --------------------------------------------------------------------------
   3. Typography Base
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--text);
}

h1 {
    font-size: clamp(2.25rem, 6vw, 4rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
}

p {
    color: var(--text-muted);
    max-width: 66ch;
}

/* --------------------------------------------------------------------------
   4. Shared Layout Helper (applied via wrapper pattern)
   -------------------------------------------------------------------------- */

/* All direct children of header, main sections, and footer share max-width */
header > nav,
main > section > *,
footer > section,
footer > nav,
footer > p {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

/* Override: sections themselves carry horizontal padding */
main > section {
    padding-block: var(--section-py);
    padding-inline: var(--pad-x);
}

main > section > * {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 0;
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition:
        background var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

/* JS adds .scrolled — without JS it still looks fine */
header.scrolled {
    background: rgba(12, 12, 14, 0.9);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 1px 0 var(--border);
}

header > nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 2rem;
    position: relative;
}

/* Brand link (first <a> in nav) */
header nav > a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--dur);
}

header nav > a img {
    max-width: 200px;
}

header nav > a:hover {
    color: var(--orange);
}

/* Nav link list */
header nav ul {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

header nav ul li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition:
        color var(--dur),
        background var(--dur);
}

header nav ul li a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    cursor: pointer;
}

.nav-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
}

/* Shared header/breadcrumb pattern used by the newer pages */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.site-header .nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 58px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.site-header .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: 8px;
    text-decoration: none;
}

.site-header .nav-logo img {
    width: auto;
    height: 32px;
    max-width: none;
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    list-style: none;
    overflow-x: auto;
}

.site-header .nav-links a {
    display: block;
    padding: 6px 11px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 7px;
    white-space: nowrap;
    transition:
        color var(--dur),
        background var(--dur);
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
    color: var(--text);
    background: #252525;
}

.site-header .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    max-width: max-content;
    padding: 7px 16px;
    border-radius: 8px;
    background: var(--orange);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.site-header .nav-cta:hover {
    background: #ff8c2a;
    color: #fff;
    text-decoration: none;
}

.site-header .nav-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: #1e1e1e;
    cursor: pointer;
}

.site-header .nav-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
}

.site-header + main {
    padding-top: 0;
}

.breadcrumb {
    padding: 16px 0 0;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb li {
    font-size: 13px;
    color: var(--text-faint);
}

.breadcrumb li::after {
    content: "/";
    margin-left: 8px;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
}

/* Mobile: collapse nav links into a hamburger menu */
@media (max-width: 860px) {
    header {
        height: auto;
    }

    header > nav {
        height: auto;
        min-height: var(--nav-h);
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-block: 0.5rem;
    }

    header nav > a {
        margin-right: auto;
    }

    .nav-menu-button,
    .site-header .nav-menu-button {
        display: inline-flex;
    }

    header nav ul {
        display: none;
    }

    .nav-toggle:checked ~ ul {
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        order: 4;
        padding-bottom: 0.5rem;
    }

    .nav-toggle:checked ~ ul li a {
        display: block;
        width: 100%;
        padding: 0.625rem 0.75rem;
    }

    .site-header .nav-inner {
        height: auto;
        min-height: 58px;
        flex-wrap: wrap;
        align-content: center;
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .site-header .nav-logo {
        margin-right: auto;
    }

    .site-header .nav-links,
    .site-header .nav-cta {
        display: none;
    }

    .site-header .nav-toggle:checked ~ .nav-links {
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        order: 4;
        overflow: visible;
        padding: 8px 0 0;
    }

    .site-header .nav-toggle:checked ~ .nav-links li {
        width: 100%;
    }

    .site-header .nav-toggle:checked ~ .nav-links a {
        width: 100%;
        padding: 10px 12px;
    }

    .site-header .nav-toggle:checked ~ .nav-cta {
        display: inline-flex;
        flex: 0 0 100%;
        max-width: none;
        order: 5;
        margin-bottom: 4px;
        padding: 10px 14px;
    }
}

/* --------------------------------------------------------------------------
   6. Main — push below fixed header
   -------------------------------------------------------------------------- */
main {
    padding-top: var(--nav-h);
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
#hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Ambient glow */
/*#hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 75%;
    background: var(--grad-glow);
    pointer-events: none;
}*/

/* Bottom fade */
#hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: var(--grad-overlay);
    pointer-events: none;
}

#hero > * {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad-x);
    width: 100%;
}

/* Hero H1 — shimmer gradient signature */
#hero h1 {
    margin-bottom: 1.5rem;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

#hero > p:first-of-type {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 54ch;
    margin-inline: auto;
    margin-bottom: 2.5rem;
}

/* Hero CTAs — the two <a> tags inside <p> wrappers */
#hero p:has(a) {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.5rem;
    max-width: none;
}

/* Primary CTA (first hero link) */
#hero p:nth-of-type(2) a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--grad-brand);
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    box-shadow: 0 4px 24px var(--orange-glow);
    transition:
        transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

#hero p:nth-of-type(2) a::before {
    content: "▶ ";
}

#hero p:nth-of-type(2) a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px var(--orange-glow);
}

/* Secondary CTA (second hero link) */
#hero p:nth-of-type(3) a {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    background: transparent;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition:
        background var(--dur),
        border-color var(--dur),
        transform var(--dur) var(--ease);
}

#hero p:nth-of-type(3) a:hover {
    background: var(--surface-2);
    border-color: var(--text-faint);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. Section Dividers & Shared Section Styles
   -------------------------------------------------------------------------- */
main > section + section {
    border-top: 1px solid var(--border-subtle);
}

/* Breadcrumb used on inner pages */
main > nav[aria-label] {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem var(--pad-x) 0;
}

main > nav[aria-label] ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--text-faint);
    list-style: none;
    padding: 0;
    margin: 0;
}

main > nav[aria-label] li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

main > nav[aria-label] li + li::before {
    content: "/";
    color: var(--border);
}

main > nav[aria-label] a {
    color: var(--text-muted);
    transition: color var(--dur);
}

main > nav[aria-label] a:hover {
    color: var(--orange);
}

main > nav.breadcrumb[aria-label] {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px 0;
    width: 100%;
    border: 0;
}

main > nav.breadcrumb[aria-label] ol {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

main > nav.breadcrumb[aria-label] li {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    color: #555;
    letter-spacing: 0;
    text-transform: none;
}

main > nav.breadcrumb[aria-label] li::after {
    content: "/";
    margin-left: 8px;
    color: #555;
}

main > nav.breadcrumb[aria-label] li + li::before,
main > nav.breadcrumb[aria-label] li:last-child::after {
    display: none;
}

main > nav.breadcrumb[aria-label] a {
    color: var(--text-muted);
    text-decoration: none;
}

main > nav.breadcrumb[aria-label] a:hover {
    color: var(--text);
}

/* Section headings */
main > section > h2 {
    margin-bottom: 1rem;
}

main > section > p {
    margin-bottom: 1rem;
}

main > section > p:last-of-type {
    margin-bottom: 0;
}

/* Section CTA links (standalone <p><a> at end of sections) */
main > section > p > a,
main > section > p:last-child > a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.925rem;
    transition:
        opacity var(--dur),
        gap var(--dur) var(--ease);
}

main > section > p > a::after {
    content: " →";
}

main > section > p > a:hover {
    opacity: 0.78;
    gap: 0.5rem;
}

/* Generic inner-page rhythm. Home keeps its dedicated section rules above. */
main
    > section:not(#hero):not(#univers):not(#acces-officiel):not(
        #categories
    ):not(#vf-vostfr):not(#nouveautes):not(#pourquoi):not(#application):not(
        #securite
    ):not(#faq):not(#cta-final):nth-of-type(even) {
    background: var(--surface);
}

main > section:not(#hero) > h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 2px;
    margin-bottom: 1rem;
}

main > section:not(#hero) > p + p,
main > section:not(#hero) > p + ul,
main > section:not(#hero) > ul + p {
    margin-top: 1rem;
}

main > section:not(#hero) > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.875rem;
    margin-top: 1.5rem;
}

main > section:not(#hero) > ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.95rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

main > section:not(#hero) > ul li::before {
    content: "";
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: var(--grad-brand);
    margin-top: 0.62rem;
}

main > section:not(#hero) > ul li a {
    color: var(--orange);
    font-weight: 600;
    overflow-wrap: anywhere;
}

main > section:not(#hero) > ul li a:hover {
    opacity: 0.78;
}

main > section:not(#hero):not(#faq) > article {
    background: var(--grad-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

main > section:not(#hero):not(#faq) > article h3 {
    margin-bottom: 0.75rem;
}

main > section:not(#hero):not(#faq) > article p {
    max-width: none;
}

/* --------------------------------------------------------------------------
   9. Univers Section
   -------------------------------------------------------------------------- */
#univers {
    background: var(--surface);
    position: relative;
}

#univers::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-glow);
    opacity: 0.4;
    pointer-events: none;
}

#univers > * {
    position: relative;
    z-index: 1;
}

#univers h2 {
    margin-bottom: 1.25rem;
}

#univers h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 2px;
    margin-bottom: 1rem;
}

#univers p + p {
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   10. Accès Officiel Section
   -------------------------------------------------------------------------- */
#acces-officiel {
    text-align: center;
}

#acces-officiel h2 {
    margin-bottom: 1rem;
}

#acces-officiel p {
    margin-inline: auto;
    margin-bottom: 1rem;
}

#acces-officiel p > a {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--orange);
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--orange-border);
    border-radius: 999px;
    background: var(--orange-dim);
    transition:
        background var(--dur),
        border-color var(--dur),
        transform var(--dur) var(--ease);
}

#acces-officiel p > a::after {
    content: " →";
    margin-left: 0.25rem;
}

#acces-officiel p > a:hover {
    background: rgba(224, 101, 0, 0.25);
    border-color: var(--orange);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   11. Categories Section
   -------------------------------------------------------------------------- */
#categories > h2 {
    margin-bottom: 2.5rem;
}

#categories > h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Card grid for articles */

#categories > h2 ~ * {
    /* articles will be grid children via grid on #categories itself */
}

/* Use a wrapper approach: target articles directly */
#films,
#series,
#anime {
    background: var(--grad-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--dur) var(--ease),
        border-color var(--dur),
        box-shadow var(--dur) var(--ease);
}

#films::before,
#series::before,
#anime::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

#films:hover,
#series:hover,
#anime:hover {
    transform: translateY(-5px);
    border-color: var(--orange-border);
    box-shadow:
        0 10px 40px rgba(224, 101, 0, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

#films:hover::before,
#series:hover::before,
#anime:hover::before {
    opacity: 0.05;
}

/* Article icons via pseudo-element */
#films h3::before {
    content: "🎬  ";
}

#series h3::before {
    content: "📺  ";
}

#anime h3::before {
    content: "⛩️  ";
}

#films h3,
#series h3,
#anime h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.875rem;
    font-size: 1.5rem;
}

#films p,
#series p,
#anime p {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

#films p > a,
#series p > a,
#anime p > a {
    display: inline-flex;
    align-items: center;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.875rem;
    transition:
        opacity var(--dur),
        gap var(--dur) var(--ease);
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

#films p > a::after,
#series p > a::after,
#anime p > a::after {
    content: " →";
}

#films p > a:hover,
#series p > a:hover,
#anime p > a:hover {
    opacity: 0.75;
    gap: 0.5rem;
}

/* Grid layout for the 3 category articles */
/* We need to wrap them — but since we can't add a class, we use a different trick:
   target the section itself as a grid and make its article children grid items */
#categories > div {
    display: flex;
    flex-wrap: wrap;
    /* Header h2 spans full width, then articles form 3-col grid */
    gap: 20px;
    margin-top: 20px;
    /* We need a row for the h2 then the articles */
}

#categories > div > article {
    flex: 1 1 260px;
}

@media (min-width: 700px) {
    /* Create a 2-col layout for articles using display:contents tricks */
    /* Simpler: wrap articles layout with CSS grid on section, h2 full-width */
    #categories {
        grid-template-columns: repeat(3, 1fr);
    }

    #categories h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 699px) {
    #films,
    #series,
    #anime {
        margin-bottom: 1rem;
    }
}

/* --------------------------------------------------------------------------
   12. VF / VOSTFR Section
   -------------------------------------------------------------------------- */
#vf-vostfr {
    background: var(--surface);
}

#vf-vostfr h2 {
    margin-bottom: 1rem;
}

#vf-vostfr h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 2px;
    margin-bottom: 1rem;
}

#vf-vostfr p {
    margin-bottom: 1rem;
}

/* Two-column link list */
#vf-vostfr ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

#vf-vostfr ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.975rem;
    letter-spacing: 0.03em;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--orange-border);
    background: var(--orange-dim);
    color: var(--orange);
    transition:
        background var(--dur),
        border-color var(--dur),
        transform var(--dur) var(--ease);
}

#vf-vostfr ul li:first-child a::before {
    content: "🇫🇷 ";
}

#vf-vostfr ul li:last-child a::before {
    content: "🎌 ";
}

#vf-vostfr ul li a:hover {
    background: rgba(224, 101, 0, 0.25);
    border-color: var(--orange);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   13. Nouveautés Section
   -------------------------------------------------------------------------- */
#nouveautes > h2 {
    margin-bottom: 1.25rem;
}

#nouveautes > h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 2px;
    margin-bottom: 1rem;
}

#nouveautes p {
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   14. Pourquoi Section
   -------------------------------------------------------------------------- */
#pourquoi {
    background: var(--surface);
}

#pourquoi h2 {
    margin-bottom: 1rem;
}

#pourquoi h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 2px;
    margin-bottom: 1rem;
}

#pourquoi > p {
    margin-bottom: 1rem;
}

/* Feature list */
#pourquoi ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.875rem;
    margin-top: 1.5rem;
}

#pourquoi ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition:
        border-color var(--dur),
        background var(--dur);
}

#pourquoi ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--grad-brand);
    margin-top: 6px;
}

#pourquoi ul li:hover {
    border-color: var(--orange-border);
    background: var(--surface-2);
}

/* --------------------------------------------------------------------------
   15. Application Section
   -------------------------------------------------------------------------- */
#application h2 {
    margin-bottom: 1.25rem;
}

#application h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Warning callout — first paragraph */
#application p:first-of-type {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: rgba(224, 101, 0, 0.07);
    border: 1px solid var(--orange-border);
    border-left: 3px solid var(--orange);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

#application p:first-of-type::before {
    content: "⚠️";
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 1px;
}

#application p + p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   16. Sécurité Section
   -------------------------------------------------------------------------- */
#securite {
    background: var(--surface);
}

#securite h2 {
    margin-bottom: 1rem;
}

#securite h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 2px;
    margin-bottom: 1rem;
}

#securite p {
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   17. FAQ Section
   -------------------------------------------------------------------------- */
#faq h2 {
    margin-bottom: 2rem;
}

#faq h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Each FAQ article acts as an accordion item */
#faq article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color var(--dur);
}

#faq article:hover {
    border-color: var(--orange-border);
}

/* FAQ question */
#faq article h3 {
    font-family: var(--font-body);
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--text);
    padding: 1.125rem 1.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    transition: background var(--dur);
}

#faq article h3::after {
    content: "+";
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    transition:
        transform var(--dur) var(--ease),
        color var(--dur);
}

#faq article:hover h3::after {
    color: var(--orange);
}

/* FAQ answer */
#faq article p {
    font-size: 0.9rem;
    padding: 0 1.375rem 1.125rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    max-width: none;
}

/* Last link in FAQ */
#faq > p {
    margin-top: 1.5rem;
}

#faq > p > a {
    display: inline-flex;
    align-items: center;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    gap: 0.25rem;
    transition:
        opacity var(--dur),
        gap var(--dur) var(--ease);
}

#faq > p > a::after {
    content: " →";
}

#faq > p > a:hover {
    opacity: 0.75;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   18. CTA Final Section
   -------------------------------------------------------------------------- */
#cta-final {
    text-align: center;
    position: relative;
    background: var(--surface);
    overflow: hidden;
}

#cta-final::before {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: var(--grad-glow);
    pointer-events: none;
}

#cta-final > * {
    position: relative;
    z-index: 1;
}

#cta-final h2 {
    margin-bottom: 1rem;
}

#cta-final p:first-of-type {
    margin-inline: auto;
    margin-bottom: 2rem;
}

/* Wrap both CTA links inline */
#cta-final p:has(a) {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    max-width: none;
}

/* Primary CTA */
#cta-final p:nth-of-type(2) a {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--grad-brand);
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    box-shadow: 0 4px 24px var(--orange-glow);
    transition:
        transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

#cta-final p:nth-of-type(2) a::before {
    content: "▶ ";
}

#cta-final p:nth-of-type(2) a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px var(--orange-glow);
}

/* Secondary CTA */
#cta-final p:nth-of-type(3) a {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    background: transparent;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition:
        background var(--dur),
        border-color var(--dur),
        transform var(--dur) var(--ease);
}

#cta-final p:nth-of-type(3) a:hover {
    background: var(--surface-2);
    border-color: var(--text-faint);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-block: clamp(3rem, 6vw, 5rem);
    padding-inline: var(--pad-x);
}

/* Footer about section */
footer > section {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 0;
    margin-bottom: 2.5rem;
}

footer > section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

footer > section p {
    font-size: 0.9rem;
    max-width: 40ch;
}

/* Footer nav */
footer > nav {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 0;
}

footer > nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.75rem;
    margin-bottom: 2rem;
}

footer > nav ul li a {
    font-size: 0.85rem;
    color: var(--text-faint);
    padding: 0.25rem 0.375rem;
    border-radius: 3px;
    transition: color var(--dur);
}

footer > nav ul li a:hover {
    color: var(--text-muted);
}

/* Copyright */
footer > p {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 0;
    font-size: 0.8rem;
    color: var(--text-faint);
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   20. Scroll-triggered Reveal
   (JS adds .visible when element enters viewport)
   -------------------------------------------------------------------------- */
main > section {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 550ms var(--ease),
        transform 550ms var(--ease);
}

main > section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero is always visible — no reveal */
#hero {
    opacity: 1 !important;
    transform: none !important;
}

/* Stagger category articles */
#films {
    transition-delay: 80ms;
}

#series {
    transition-delay: 160ms;
}

#anime {
    transition-delay: 240ms;
}

/* --------------------------------------------------------------------------
   21. Keyframes
   -------------------------------------------------------------------------- */
@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Hero content animates in on load */
#hero h1 {
    animation: fadeUp 700ms var(--ease) 100ms both;
}

#hero p:first-of-type {
    animation: fadeUp 700ms var(--ease) 250ms both;
}

#hero p:nth-of-type(2),
#hero p:nth-of-type(3) {
    animation: fadeUp 700ms var(--ease) 400ms both;
}
