@import url('https://fonts.googleapis.com/css2?family=Fascinate+Inline&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

/* ============================================
   VARIABLES — CHARTE 8LAB-INSPIRED
   Dark premium · Accent vert néon · Blanc
   ============================================ */
:root {
    --bg-dark:      #080a0d;       /* Fond principal quasi-noir */
    --bg-dark-2:    #0d1117;       /* Sections alternées */
    --bg-card:      #111820;       /* Cartes / blocs */
    --accent:       #a8e6cf;       /* Vert menthe néon (gardé de l'original) */
    --accent-glow:  rgba(168, 230, 207, 0.15);
    --accent-border:rgba(168, 230, 207, 0.3);
    --pink:         #f2d7d5;       /* Rose pastel (gardé) */
    --white:        #f0f4f8;
    --white-dim:    rgba(240, 244, 248, 0.6);
    --white-ghost:  rgba(240, 244, 248, 0.08);
    --retro-dark:   #2c3e50;       /* Conservé pour compatibilité */
    --bg-cream:     #fdfbf7;       /* Conservé pour compatibilité */
    --pastel-blue:  #a8e6cf;       /* Alias */
    --pastel-pink:  #f2d7d5;       /* Alias */
    --black-overlay:#080a0d;
    --font-title:   'Fascinate Inline', cursive;
    --font-text:    'Syne', sans-serif;
    --radius:       4px;
    --transition:   all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html, body {
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--font-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

a, button, .btn-retro, .social-icons, .video-card, iframe { cursor: pointer; }
footer p, footer a { user-select: text; cursor: text; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; outline: none; border: none; }
ul, ol { list-style: none; }

/* ============================================
   GRAIN OVERLAY — texture subtile sur tout le site
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.35;
}

/* ============================================
   ANIMATIONS D'ENTRÉE AU SCROLL (Reveal)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Délais en cascade */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================
   1. BANDEAU DÉFILANT
   ============================================ */
.ticker-wrapper {
    background-color: var(--accent);
    color: var(--bg-dark);
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid var(--bg-dark);
    padding: 10px 0;
    font-family: var(--font-title);
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height: 0.85;
    position: relative;
    z-index: 200;
}

.ticker-track {
    display: flex;
    width: fit-content;
    animation: scroll 45s linear infinite;
}

.ticker-item { padding-right: 0; }

.spacer {
    margin: 0 30px;
    color: var(--bg-dark);
    opacity: 0.5;
    vertical-align: middle;
    font-size: 2rem;
}

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

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-70%);
    text-align: center;
    color: var(--white-dim);
    z-index: 10;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-family: var(--font-text);
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.arrow-down {
    width: 10px; height: 10px;
    border-right: 3px solid var(--white-dim);
    border-bottom: 3px solid var(--white-dim);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   2. HERO SECTION
   ============================================ */
.dark-zone-wrapper { position: relative; }

.hero-section {
    position: relative;
    min-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--accent-border);
    padding: 40px 20px;
}

#bg-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.4) saturate(0.6);
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        180deg,
        rgba(8, 10, 13, 0.5) 0%,
        rgba(8, 10, 13, 0.75) 60%,
        rgba(8, 10, 13, 0.95) 100%
    );
    z-index: -1;
}

/* Halo vert — signature 8lab */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(168, 230, 207, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 90%;
}

/* ============================================
   LOGO STICKY
   ============================================ */
.sticky-header {
    position: relative;
    top: 5vh;
    width: 100%;
    z-index: 100;
    height: 0;
    overflow: visible;
}

.sticky-header img {
    width: 10vw;
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 0 12px rgba(168, 230, 207, 0.3));
    transition: var(--transition);
    margin: 0 auto;
}

.sticky-header img:hover { opacity: 1; }

/* ============================================
   COMPTE À REBOURS POST-IT (INCHANGÉ)
   ============================================ */
#countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
    perspective: 1000px;
}

.post-it-container {
    position: relative;
    width: 80px;
    height: 90px;
}

.post-it {
    background-color: #fef9c7;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.5), 0 0 15px rgba(168, 230, 207, 0.1);
    border-radius: 2px;
    color: #2c3e50;
    font-family: var(--font-text);
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.post-it .val { font-size: 2rem; line-height: 1; }
.post-it .label { font-size: 0.7rem; text-transform: uppercase; opacity: 0.6; margin-top: 5px; }
.post-it-container:nth-child(odd) .post-it { transform: rotate(-2deg); }
.post-it-container:nth-child(even) .post-it { transform: rotate(2deg); }

.falling-leaf {
    position: absolute;
    top: 0; left: 0;
    z-index: 10;
    background-color: #fef9c7;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.3);
    border-radius: 2px;
    transform-origin: top center;
    animation: leafDrop 0.8s ease-in forwards;
}

.falling-leaf .val { font-size: 2rem; color: #2c3e50; font-weight: bold; }
.falling-leaf .label { font-size: 0.7rem; text-transform: uppercase; opacity: 0.6; margin-top: 5px; color: #2c3e50; font-weight: bold; }

@keyframes leafDrop {
    0% { transform: rotateX(0deg) translateY(0); opacity: 1; }
    30% { transform: rotateX(40deg) translateY(10px); opacity: 1; }
    100% { transform: rotateX(70deg) translateY(150px) rotateZ(20deg); opacity: 0; }
}

/* ============================================
   TITRES HERO
   ============================================ */
.main-title {
    font-family: var(--font-title);
    font-size: 9rem;
    margin-bottom: 10vh;
    text-shadow: 0 0 40px rgba(168, 230, 207, 0.2), 4px 4px 0px #000;
    line-height: 1.1;
    color: var(--white);
}

.countdown-title {
    font-family: var(--font-text);
    font-size: 1.4rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* ============================================
   BOUTONS — Style 8lab avec icône + flèche
   ============================================ */
.btn-retro {
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 18px 40px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(168, 230, 207, 0.25);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-retro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.btn-retro:hover::before { opacity: 1; }
.btn-retro:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(168, 230, 207, 0.4), 0 8px 30px rgba(0,0,0,0.3);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 36px;
    background-color: transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid var(--accent-border);
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-contact::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-contact:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(168, 230, 207, 0.3);
    transform: translateY(-2px);
}
.btn-contact:hover::after { transform: translateX(4px); }

/* ============================================
   3. MOTUS SECTION
   ============================================ */
.motus-section {
    background-color: var(--bg-dark-2);
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--accent-border);
    border-bottom: 1px solid var(--accent-border);
    position: relative;
    overflow: hidden;
}

/* Halo déco */
.motus-section::before {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.motus-section .section-title {
    font-family: var(--font-title);
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.motus-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#motus-message {
    color: var(--white-dim);
    font-size: 1.1rem;
    font-family: var(--font-text);
    min-height: 30px;
    letter-spacing: 1px;
}

#motus-grid {
    display: grid;
    justify-content: center;
    gap: 8px;
    padding: 10px;
}

.motus-cell {
    width: 50px; height: 50px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    background-color: var(--white-ghost);
    border: 1.5px solid var(--accent-border);
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5);
    transition: var(--transition);
}

.cell-correct {
    background-color: #d63031 !important;
    border-color: #d63031;
    box-shadow: 0 0 15px #d63031;
    z-index: 2;
}

.cell-misplaced {
    background-color: #fdcb6e !important;
    border-color: #fdcb6e;
    color: #2d3436;
    border-radius: 50%;
}

.cell-absent {
    opacity: 0.25;
    background-color: #000;
    border-color: #333;
}

.motus-keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.key-btn {
    width: 40px; height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-card);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    border: 1.5px solid var(--accent-border);
    border-radius: var(--radius);
    box-shadow: 0 3px 0 rgba(0,0,0,0.4);
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s;
    letter-spacing: 0;
}

.key-btn:active {
    transform: translate(0, 3px);
    box-shadow: none;
}

.key-action {
    width: auto;
    padding: 0 15px;
    font-size: 0.85rem;
    background-color: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.key-correct { background-color: #d63031; color: white; border-color: #d63031; }
.key-misplaced { background-color: #fdcb6e; color: black; border-color: #fdcb6e; }
.key-absent { opacity: 0.2; background: #000; color: white; border-color: #333; }

.overlay-hidden { display: none !important; }

#motus-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(8, 10, 13, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.overlay-content {
    background: var(--bg-card);
    border: 1.5px solid var(--accent-border);
    padding: 40px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 0 40px rgba(168, 230, 207, 0.15);
    transform: rotate(-1deg);
    border-radius: var(--radius);
}

#overlay-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ============================================
   4. RÉSEAUX SOCIAUX
   ============================================ */
.social-section {
    background-color: var(--bg-dark);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid rgba(168, 230, 207, 0.1);
    position: relative;
}

.social-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 150px;
    background: radial-gradient(ellipse, rgba(168, 230, 207, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 8vw;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.social-icons img {
    width: 36px; height: 36px;
    transition: var(--transition);
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.social-icons a:hover img {
    opacity: 1;
    transform: scale(1.15) translateY(-4px);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(168, 230, 207, 0.6));
}

/* ============================================
   5. À PROPOS
   ============================================ */
.about-section {
    padding: 120px 40px;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Grand halo gauche */
.about-section::before {
    content: '';
    position: absolute;
    top: 50%; left: -200px;
    transform: translateY(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

.container-flex {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.about-text { flex: 2; }

/* Watermark SEO */
.title-stack {
    position: relative;
    margin-bottom: 30px;
    height: 100px;
    display: flex;
    align-items: center;
}

.watermark-title {
    position: absolute;
    top: -30px; left: -20px;
    font-family: var(--font-title);
    font-size: 6rem;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(168, 230, 207, 0.1);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.visual-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--white);
    margin: 0;
    text-shadow: 0 0 30px rgba(168, 230, 207, 0.2);
}

/* Tag label de section */
.section-label {
    display: inline-block;
    font-family: var(--font-text);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    background: var(--accent-glow);
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--white-dim);
    font-weight: 400;
}

.about-text strong {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--white);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 380px; height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--accent-border);
    filter: grayscale(20%) brightness(0.9);
    box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 30px rgba(168, 230, 207, 0.08);
    transform: rotate(-1.5deg);
    transition: var(--transition);
}

.about-image img:hover {
    transform: rotate(0deg) scale(1.02) translateY(-5px);
    filter: grayscale(0%) brightness(1);
    box-shadow: 0 0 80px rgba(0,0,0,0.5), 0 0 50px rgba(168, 230, 207, 0.15);
}

/* ============================================
   6. SECTION TITRE (générique)
   ============================================ */
.section-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 60px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent);
}

/* ============================================
   7. PROJETS VIDÉO
   ============================================ */
.projects-section {
    background-color: var(--bg-dark-2);
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--accent-border);
}

.projects-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.video-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.video-card {
    background-color: var(--bg-card);
    padding: 12px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 230, 207, 0.6);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(168, 230, 207, 0.08);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}

.video-wrapper iframe {
    width: 100%; height: 100%;
    filter: grayscale(60%) contrast(1.05);
    transition: filter 0.4s;
    display: block;
}

.video-card:hover iframe { filter: grayscale(0%) contrast(1); }

.scanlines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.12) 2px,
        rgba(0,0,0,0.12) 4px
    );
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
}

.video-info {
    margin-top: 16px;
    color: var(--white);
    font-family: var(--font-text);
    text-align: left;
    padding: 0 4px 4px;
}

.video-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--white-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   8. SECTION TWITCH/TV
   ============================================ */
.tv-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    padding: 80px 40px;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(168, 230, 207, 0.08);
    position: relative;
    z-index: 10000;
}

.tv-case {
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(168, 230, 207, 0.04);
    display: flex;
    align-items: stretch;
    gap: 15px;
}

.tv-screen {
    position: relative;
    width: 60vw;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: none;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

#twitch-embed { width: 100%; height: 100%; }

.tv-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    width: 80px;
    flex-grow: 1;
}

.status-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.led-off {
    width: 14px; height: 14px;
    background-color: #300;
    border-radius: 50%;
    border: 1px solid #000;
    box-shadow: inset 0 0 2px #000;
    transition: all 0.3s;
}

.led-on {
    background-color: #ff0000;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
}

#live-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.live-text-on {
    color: #ff0000 !important;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.control-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: radial-gradient(circle at 30% 30%, #fff, #ddd);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 -5px 10px rgba(0,0,0,0.2), inset 0 5px 10px rgba(255,255,255,1);
}

.control-btn::after {
    content: '';
    display: block;
    box-sizing: border-box;
    width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid var(--bg-dark);
    border-right: 0;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.control-btn.is-playing::after {
    width: 14px; height: 16px;
    border-top: 0; border-bottom: 0;
    border-left: 4px solid var(--bg-dark);
    border-right: 4px solid var(--bg-dark);
    background: transparent;
    margin-left: 0;
}

.control-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(168, 230, 207, 0.5), inset 0 -5px 10px rgba(0,0,0,0.1), inset 0 5px 10px rgba(255,255,255,1);
}

.control-btn:hover::after { border-left-color: #9146FF; }

.control-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.4), inset 0 5px 10px rgba(0,0,0,0.3);
    background: var(--accent);
}

.volume-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    width: 100%;
}

.vol-icon {
    font-family: var(--font-text);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.6;
    order: 2;
    margin-top: 10px;
    letter-spacing: 2px;
    z-index: 5;
}

#vol-slider {
    order: 1;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    transform: rotate(-90deg);
    width: 120px; height: 20px;
    cursor: pointer;
    margin: 50px 0;
}

#vol-slider::-webkit-slider-runnable-track {
    width: 100%; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

#vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px; width: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-dark);
    margin-top: -6px;
    box-shadow: 0 0 10px var(--accent);
    transition: transform 0.1s;
}

#vol-slider:active::-webkit-slider-thumb {
    transform: scale(1.5);
    background: #fff;
}

#vol-slider::-moz-range-track {
    width: 100%; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}
#vol-slider::-moz-range-thumb {
    height: 14px; width: 14px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-dark);
}

.chat-monitor {
    width: 350px;
    min-height: 480px;
    background: var(--bg-card);
    border: 1px solid rgba(242, 215, 213, 0.2);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.chat-monitor iframe {
    width: 100%;
    flex-grow: 1;
    border-radius: var(--radius);
    display: block;
    border: none;
    background: #18181b;
}

.tv-scanlines, .screen-gloss { display: none; }

/* ============================================
   9. FOOTER
   ============================================ */
footer {
    background-color: var(--bg-dark-2);
    color: var(--white-dim);
    text-align: center;
    padding: 20px 10px;
    font-size: 1rem;
    border-top: 1px solid rgba(168, 230, 207, 0.1);
}

footer p { margin-bottom: 10px; text-align: center; }

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

footer a:hover { color: var(--white); text-decoration: underline; }

.affiliate-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 20px auto 40px auto;
    text-align: center;
}

.affiliate-logo-link { flex-shrink: 0; }

.affiliate-logo {
    width: 130px;
    height: auto;
    transition: var(--transition);
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.affiliate-logo:hover { transform: scale(1.05); opacity: 0.9; }

.affiliate-text {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    color: var(--white-dim);
}

.affiliate-text a { text-decoration: underline; }

.footer-bottom {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    margin-top: 40px;
    color: rgba(240, 244, 248, 0.35);
}

.footer-bottom p { margin-bottom: 5px; }
.footer-bottom a { font-size: 0.85rem; }

/* ── Tout le contenu passe devant les traits ── */
.ticker-wrapper,
.dark-zone-wrapper,
.about-section,
.projects-section,
.tv-container,
footer {
    position: relative;
    z-index: 1;
}

/* ============================================
   BG LINES — Traits CSS animés en fond de page
   ============================================ */
.bg-line {
    position: fixed;
    top: -20%;
    width: 1px;
    height: 140vh;
    pointer-events: none;
    z-index: 2;                         /* au-dessus des fonds */
    transform-origin: top center;
    will-change: transform;
}

.bg-line::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(168, 230, 207, 0.12) 25%,
        rgba(168, 230, 207, 0.22) 50%,
        rgba(168, 230, 207, 0.12) 75%,
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(168, 230, 207, 0.3);
}

.bg-line:nth-child(1) {
    left: 18%;
    transform: rotate(-12deg);
    animation: line-drift 18s linear infinite;
}
.bg-line:nth-child(2) {
    left: 52%;
    transform: rotate(-10deg);
    animation: line-drift 24s linear infinite;
    animation-delay: -8s;
}
.bg-line:nth-child(2)::after {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(168, 230, 207, 0.07) 25%,
        rgba(168, 230, 207, 0.14) 50%,
        rgba(168, 230, 207, 0.07) 75%,
        transparent 100%
    );
}
.bg-line:nth-child(3) {
    left: 80%;
    transform: rotate(-13deg);
    animation: line-drift 20s linear infinite;
    animation-delay: -14s;
}

@keyframes line-drift {
    0%   { transform: rotate(-12deg) translateX(0px);    opacity: 0.6; }
    25%  { opacity: 1; }
    50%  { transform: rotate(-12deg) translateX(30px);   opacity: 0.7; }
    75%  { opacity: 1; }
    100% { transform: rotate(-12deg) translateX(0px);    opacity: 0.6; }
}

/* ============================================
   10. ANIMATIONS SOURIS — NÉON VERT
   ============================================ */
#mouse-trail {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Onde de clic — anneau néon unique */
.click-ripple {
    position: fixed;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 1.5px solid var(--accent);
    background: transparent;
    box-shadow:
        0 0 6px rgba(168, 230, 207, 0.8),
        inset 0 0 6px rgba(168, 230, 207, 0.2);
    animation: neon-ripple 1.4s ease-out forwards;
    opacity: 0;
    z-index: 9999;
}

@keyframes neon-ripple {
    0%   { width: 0px;   height: 0px;   opacity: 1;   border-width: 2px; }
    60%  { opacity: 0.6; }
    100% { width: 120px; height: 120px; opacity: 0;   border-width: 0px; }
}

/* ============================================
   11. MOOD SECTION (conservée, adaptée dark)
   ============================================ */
.mood-section {
    background-color: var(--bg-dark-2);
    padding: 60px 20px;
    border-bottom: 1px solid var(--accent-border);
    text-align: center;
}

.mood-container {
    max-width: 900px;
    margin: 0 auto;
}

.mood-hidden { display: none !important; }

.mood-card {
    background: var(--bg-card);
    color: var(--white);
    border: 1px solid var(--accent-border);
    box-shadow: 0 0 40px rgba(168, 230, 207, 0.05);
    padding: 30px;
    border-radius: var(--radius);
    max-width: 600px;
    margin: 0 auto;
}

#comment-modal {
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-card);
    color: #ffffff;
    border: 1px solid var(--accent-border);
    box-shadow: 0 0 40px rgba(168, 230, 207, 0.1);
    border-radius: 8px;
    width: 90%; max-width: 350px;
    padding: 25px;
    text-align: center;
    position: relative;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#modal-author {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--pink);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    display: block;
}

#modal-text {
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
}

#close-modal {
    position: absolute;
    top: 5px; right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
    line-height: 1;
}
#close-modal:hover { color: #fff; }

.mood-card h3 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.mood-input-wrapper { margin-bottom: 20px; }

.range-display {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--accent);
}

input[type=range] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

#mood-username, #mood-email {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--accent-border);
    color: var(--white);
    font-family: var(--font-text);
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    border-radius: var(--radius);
}

textarea#mood-comment {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--accent-border);
    color: var(--white);
    font-family: var(--font-text);
    padding: 10px;
    resize: none;
    margin-top: 10px;
    border-radius: var(--radius);
}

#btn-submit-mood {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    background-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(168, 230, 207, 0.2);
    transition: var(--transition);
}
#btn-submit-mood:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(168, 230, 207, 0.35); }

#mood-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    border: none;
    margin-top: 20px;
}

.mood-entry {
    display: grid;
    grid-template-columns: auto 1fr 100px 80px;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(168, 230, 207, 0.08);
    gap: 15px;
    position: relative;
    transition: background 0.2s;
}

.mood-entry:last-child { border-bottom: none; }
.mood-entry:hover {
    background-color: var(--white-ghost);
    border-radius: var(--radius);
}

.entry-name {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
}

.reaction-zone {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.display-only { display: flex; gap: 8px; flex-wrap: wrap; }
.selector-mode { display: none; gap: 5px; flex-wrap: wrap; }
.mood-entry:hover .display-only { display: none; }
.mood-entry:hover .selector-mode { display: flex; animation: fadeIn 0.3s; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.react-badge {
    background: var(--white-ghost);
    padding: 2px 6px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--white-dim);
    border: 1px solid rgba(255,255,255,0.05);
}

.react-btn {
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 2px 5px;
    border-radius: var(--radius);
    transition: transform 0.1s;
}
.react-btn:hover { transform: scale(1.2); z-index: 10; background: var(--accent-glow); }

.entry-link {
    font-family: var(--font-text);
    font-size: 0.85rem;
    color: var(--white);
    background: var(--bg-card);
    padding: 6px 0;
    width: 100%;
    text-align: center;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--accent-border);
    display: block;
    transition: var(--transition);
}
.entry-link:hover { background: var(--accent); color: var(--bg-dark); }
.entry-no-comment { opacity: 0.3; font-size: 1.5rem; line-height: 0; display: block; text-align: center; }

.entry-grade {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid currentColor;
    padding: 5px;
    border-radius: var(--radius);
    background-color: rgba(255,255,255,0.03);
    box-shadow: 0 0 8px rgba(168, 230, 207, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1120px) {
    .main-title { font-size: 5rem; }
    .sticky-header { top: 4vh; padding-right: 15px; }
    .sticky-header img { width: 15vw; }
}

@media (max-width: 992px) {
    .social-icons { gap: 8vw; }
    .social-icons img { width: 40px; height: 40px; }
    .container-flex { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .about-image img { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
    .main-title { font-size: 3.5rem; }
    .watermark-title { font-size: 10vw; top: -10px; left: 0; }
    .countdown-title { font-size: 1rem; margin-bottom: 30px; }
    .motus-section { width: 100%; max-width: 100vw; margin: 0; border-left: none; border-right: none; border-radius: 0; padding: 20px 5px; overflow-x: hidden; }
    .keyboard-row { gap: 3px; }
    .key-btn { width: 9vw; height: 45px; font-size: 0.9rem; padding: 0; }
    .key-action { width: 12vw; font-size: 0.8rem; }
    .tv-case { flex-direction: column; width: 100%; }
    .tv-screen { width: 100%; }
    .chat-monitor { width: 100%; height: 400px; }
    .tv-controls { flex-direction: row !important; justify-content: flex-start; align-items: center; width: 100%; height: auto; padding: 15px 40px; gap: 0; }
    .volume-module { display: none; }
    .control-btn { flex-shrink: 0; margin: 0; margin-left: 10vw; }
    .status-module { flex-shrink: 0; }
    .mood-entry { grid-template-columns: auto 1fr 80px; grid-template-rows: auto auto; gap: 10px 5px; }
    .mood-entry > div:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
    .reaction-zone { overflow-x: auto; }
    footer { font-size: 0.8rem; }
    .affiliate-text { font-size: 0.95rem; }
    .footer-bottom { margin-top: 40px; }
}

@media (max-width: 576px) {
    .main-title { font-size: 2rem; line-height: 1.1; }
    .btn-retro { font-size: 1rem; padding: 14px 24px; }
    .social-icons { gap: 15px; }
    .social-icons img { width: 32px; height: 32px; }
    .about-text p { font-size: 1rem; }
    .video-card { max-width: 100%; }
    .post-it-container { width: 60px; height: 70px; }
    .post-it .val { font-size: 1.5rem; }
    .post-it .label { font-size: 0.6rem; }
    #countdown-wrapper { gap: 10px; }
    .motus-cell { width: 35px; height: 35px; font-size: 1.2rem; }
    .key-btn { padding: 8px 6px; font-size: 0.8rem; }
    .motus-section { padding: 15px; width: 100%; }
    .control-btn { margin-left: 5vw; }
    .about-image img { width: 280px; height: 280px; }
}