/* =========================================================
   PedroG4ming — site vitrine Twitch
   Vanilla CSS, aucun build. Variables pilotées par script.js
   ========================================================= */

:root {
  --bg: #07060b;
  --bg-2: #0e0c16;
  --ink: #f4f1ff;
  --muted: rgba(244, 241, 255, 0.64);
  --line: rgba(244, 241, 255, 0.12);
  --twitch: #9146ff;
  --twitch-2: #b77bff;
  --red: #ff2d55;
  --red-2: #ff6a3d;
  --yt: #ff0033;
  --discord: #5865f2;
  --radius: 28px;
  --display: "Unbounded", "Arial Black", Impact, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --mx: 0;
  --my: 0;

  /* hero */
  --t1-x: 0px; --t2-x: 0px; --title-y: 0px; --title-op: 1; --title-blur: 0px;
  --portrait-x: 0px; --portrait-y: 0px; --portrait-s: 1; --portrait-r: 0deg;
  --intro-op: 1; --intro-y: 0px;
  --panel-op: 0; --panel-y: 60px;
  --hero-hue: 0deg;

  /* surfaces thémables */
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.4);
  --panel: #0e0c16;
  --header-bg: rgba(7, 6, 11, 0.62);
  --chip-bg: rgba(14, 12, 22, 0.75);
  --stroke-ink: rgba(244, 241, 255, 0.8);
  --title-start: #ffffff;
  --dim: rgba(244, 241, 255, 0.35);
  --ink-soft: rgba(244, 241, 255, 0.75);
  --blob-op: 0.55;

  color-scheme: dark;
}

/* ---------- Thème JOUR ---------- */
:root[data-theme="light"] {
  --bg: #f4f0fb;
  --bg-2: #ffffff;
  --ink: #16111f;
  --muted: rgba(22, 17, 31, 0.66);
  --line: rgba(22, 17, 31, 0.12);
  --twitch-2: #7b2ff2;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.9);
  --surface-3: #ffffff;
  --line-strong: rgba(22, 17, 31, 0.32);
  --panel: #ffffff;
  --header-bg: rgba(244, 240, 251, 0.78);
  --chip-bg: rgba(255, 255, 255, 0.85);
  --stroke-ink: rgba(22, 17, 31, 0.85);
  --title-start: #16111f;
  --dim: rgba(22, 17, 31, 0.32);
  --ink-soft: rgba(22, 17, 31, 0.72);
  --blob-op: 0.32;
  color-scheme: light;
}
:root[data-theme="light"] .grid-floor { opacity: .55; }
:root[data-theme="light"] .hero-stats div,
:root[data-theme="light"] .live-card,
:root[data-theme="light"] .live-status,
:root[data-theme="light"] .gear-card,
:root[data-theme="light"] .week,
:root[data-theme="light"] .sched-countdown { box-shadow: 0 20px 50px -30px rgba(60, 20, 120, .35); }
:root[data-theme="light"] .sched-card { background: linear-gradient(160deg, rgba(145,70,255,.18), rgba(255,255,255,.8)); }
:root[data-theme="light"] .sched-card-hot { background: linear-gradient(160deg, rgba(255,45,85,.18), rgba(255,255,255,.8)); }
:root[data-theme="light"] .donate-card { background: radial-gradient(circle at 50% 0%, rgba(255,45,85,.22), transparent 60%), #fff; }
:root[data-theme="light"] .promo-card { background: linear-gradient(140deg, rgba(255,0,51,.12), rgba(255,255,255,.7) 60%); }
:root[data-theme="light"] .footer-big { background: linear-gradient(180deg, rgba(123,47,242,.55), rgba(123,47,242,0)); -webkit-background-clip: text; background-clip: text; }

/* Transition circulaire jour/nuit (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
em { font-style: normal; background: linear-gradient(100deg, var(--twitch-2), var(--red) 70%, var(--red-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: var(--twitch); color: #fff; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; gap: 22px;
  background: var(--bg);
  transition: opacity .7s ease, visibility .7s;
}
.loader-logo { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 6vw, 64px); letter-spacing: -0.02em; }
.loader-logo span { color: var(--twitch); }
.loader-bar { height: 3px; width: 100%; background: var(--line); overflow: hidden; border-radius: 3px; }
.loader-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--twitch), var(--red)); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
body.is-loaded .loader { opacity: 0; visibility: hidden; }

/* ---------- Curseur ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; border-radius: 50%; opacity: 0; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid var(--line-strong);
  transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.has-cursor.cursor-hover .cursor-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(145,70,255,.18); border-color: var(--twitch-2); }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- Progress + FX ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.scroll-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--twitch), var(--red)); }
.fx-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 18px clamp(16px, 3vw, 40px);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--twitch); }
.brand b { color: var(--twitch-2); font-weight: 700; }
.site-nav { display: flex; gap: clamp(16px, 2vw, 34px); }
.site-nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--twitch); transform: scaleX(0); transition: transform .3s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

/* ---------- Boutons ---------- */
.btn {
  --b: var(--twitch);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  background: var(--b); color: #fff;
  box-shadow: 0 14px 40px -12px var(--b);
  transition: box-shadow .3s, background .3s, transform .2s;
  will-change: transform;
  overflow: hidden; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn:hover::before { transform: translateX(120%); }
.btn:hover { box-shadow: 0 18px 60px -10px var(--b); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 64px; padding: 0 38px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-twitch { --b: var(--twitch); }
.btn-red { --b: var(--red); }
.btn-yt { --b: var(--yt); }
.btn-discord { --b: var(--discord); }
.btn-ghost { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); --b: transparent; }
.btn-ghost:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--twitch-2); outline-offset: 3px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--twitch-2); }
.eyebrow svg { width: 18px; height: 18px; fill: currentColor; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,45,85,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,45,85,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); } }

/* =========================================================
   HERO cinématique (sticky)
   ========================================================= */
.hero { position: relative; height: calc(100vh + 1500px); }
.hero-stage { position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -10%; z-index: 0; transform: translate3d(calc(var(--mx) * -30px), calc(var(--my) * -20px), 0); filter: hue-rotate(var(--hero-hue)); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--blob-op); }
.blob-a { width: 48vw; height: 48vw; left: 4%; top: 6%; background: var(--twitch); animation: drift 14s ease-in-out infinite alternate; }
.blob-b { width: 38vw; height: 38vw; right: 2%; top: 26%; background: var(--red); animation: drift 18s ease-in-out infinite alternate-reverse; }
.blob-c { width: 30vw; height: 30vw; left: 38%; bottom: -6%; background: #2e5bff; opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(6vw, -4vh, 0) scale(1.15); } }
.grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 55%;
  background-image: linear-gradient(rgba(145,70,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(145,70,255,.35) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 3s linear infinite;
}
@keyframes floor { to { background-position: 0 64px; } }

.hero-title {
  position: absolute; inset: 0; z-index: 3; margin: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-family: var(--display); font-weight: 900; line-height: .82; letter-spacing: -0.04em;
  font-size: min(13vw, 250px); /* ajusté finement par script.js pour ne jamais être coupé */
  transform: translate3d(0, var(--title-y), 0);
  opacity: var(--title-op);
  filter: blur(var(--title-blur));
  pointer-events: none;
}
.ht-line { display: block; white-space: nowrap; }
.ht-1 { --off: -6vw; transform: translate3d(calc(var(--off) + var(--t1-x) + var(--mx) * 20px), -3vh, 0); color: var(--ink); filter: drop-shadow(0 8px 26px rgba(0,0,0,.45)) drop-shadow(0 0 40px rgba(145,70,255,.35)); }
.ht-2 { filter: drop-shadow(0 8px 26px rgba(0,0,0,.45)); }
:root[data-theme="light"] .ht-1, :root[data-theme="light"] .ht-2 { filter: drop-shadow(0 6px 22px rgba(255,255,255,.7)); }
.ht-2 { --off: 6vw; transform: translate3d(calc(var(--off) + var(--t2-x) + var(--mx) * -20px), 3vh, 0); color: var(--twitch-2); }
.char { display: inline-block; transform: translate3d(0, 110%, 0) rotate(8deg); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.9,.2,1), opacity 1.1s; transition-delay: calc(var(--ci) * 55ms + 200ms); }
/* Dégradé lettre par lettre en couleurs pleines (pas de background-clip : évite le bloc blanc pendant l'animation) */
.ht-2 .char:nth-child(1) { color: var(--title-start); }
.ht-2 .char:nth-child(2) { color: color-mix(in oklab, var(--title-start) 45%, var(--twitch-2)); }
.ht-2 .char:nth-child(3) { color: var(--twitch-2); }
.ht-2 .char:nth-child(4) { color: color-mix(in oklab, var(--twitch-2) 45%, var(--red)); }
.ht-2 .char:nth-child(5) { color: var(--red); }
.ht-2 .char:nth-child(6) { color: var(--red-2); }
body.is-loaded .char { transform: none; opacity: 1; }

.hero-portrait {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: min(clamp(220px, 23vw, 380px), 34vh); aspect-ratio: 3 / 4.2;
  top: 45%;
  transform: translate3d(calc(-50% + var(--portrait-x)), calc(-50% + var(--portrait-y)), 0) scale(var(--portrait-s)) rotate(var(--portrait-r));
  will-change: transform;
}
.portrait-frame {
  position: relative; width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden;
  padding: 3px;
  background: conic-gradient(from var(--spin, 0deg), var(--twitch), var(--red), var(--red-2), #2e5bff, var(--twitch));
  box-shadow: 0 40px 120px -30px rgba(145,70,255,.8), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(900px) rotateX(calc(var(--ty, 0) * 1deg)) rotateY(calc(var(--tx, 0) * 1deg));
  transition: transform .2s ease-out;
  animation: spin-border 6s linear infinite;
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --spin: 360deg; } }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; border-radius: calc(var(--radius) - 3px); }
.portrait-glare { position: absolute; inset: 3px; border-radius: calc(var(--radius) - 3px); background: radial-gradient(circle at calc(50% + var(--tx, 0) * 4%) calc(30% - var(--ty, 0) * 4%), rgba(255,255,255,.28), transparent 50%); mix-blend-mode: overlay; pointer-events: none; }
.live-chip {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .12em; white-space: nowrap;
  box-shadow: 0 10px 30px -6px var(--red);
}
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.portrait-tag {
  position: absolute; padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: var(--chip-bg); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: float 5s ease-in-out infinite;
}
.tag-a { left: -34%; top: 18%; transform: translate3d(calc(var(--mx) * -26px), 0, 0); }
.tag-b { right: -40%; top: 46%; animation-delay: -1.6s; }
.tag-c { left: -18%; bottom: 14%; animation-delay: -3s; color: var(--twitch-2); }
@keyframes float { 50% { translate: 0 -12px; } }

.hero-intro {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(28px, 7vh, 80px);
  width: min(620px, calc(100vw - 32px)); text-align: center;
  transform: translate3d(-50%, var(--intro-y), 0); opacity: var(--intro-op);
}
.hero-intro p { margin: 0 auto 22px; max-width: 520px; font-size: clamp(15px, 1.25vw, 18px); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-intro[style*="opacity: 0"] { pointer-events: none; }

.hero-panel {
  position: absolute; z-index: 3; right: clamp(16px, 7vw, 140px); top: 50%;
  width: min(560px, calc(100vw - 32px));
  transform: translate3d(0, calc(-50% + var(--panel-y)), 0); opacity: var(--panel-op);
  pointer-events: none;
}
.hero-panel h2 { margin: 14px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4.2vw, 68px); line-height: .98; letter-spacing: -0.03em; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0 0; }
.hero-stats div { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.hero-stats dt { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 2.6vw, 40px); color: var(--twitch-2); }
.hero-stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.3; }

.scroll-hint { position: absolute; z-index: 3; right: clamp(16px, 3vw, 40px); bottom: 32px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; opacity: var(--intro-op); }
.scroll-hint i { width: 1px; height: 60px; background: linear-gradient(var(--twitch), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 22px 0; background: var(--twitch); transform: rotate(-2deg) scale(1.04); margin: -20px 0 0; box-shadow: 0 30px 80px -20px rgba(145,70,255,.6); }
.marquee-track { color: #fff; display: flex; gap: 36px; width: max-content; font-family: var(--display); font-weight: 900; font-size: clamp(22px, 3vw, 44px); white-space: nowrap; transform: translate3d(var(--marquee-x, 0), 0, 0); will-change: transform; }
.marquee-track b { color: var(--bg); }

/* =========================================================
   Sections génériques
   ========================================================= */
.section { position: relative; padding: clamp(90px, 14vh, 160px) clamp(16px, 5vw, 80px); }
.section-head { max-width: 900px; margin: 0 auto clamp(40px, 6vh, 70px); text-align: center; }
.section-head h2, .games-head h2, .setup-copy h2, .promo h2, .donate h2 {
  margin: 14px 0 0; font-family: var(--display); font-weight: 900; letter-spacing: -0.03em; line-height: .98;
  font-size: clamp(36px, 6vw, 92px);
}
.section-head p { max-width: 560px; margin: 20px auto 0; color: var(--muted); font-size: 17px; }

.reveal { opacity: 0; translate: 0 60px; transition: opacity 1s cubic-bezier(.2,.8,.2,1), translate 1s cubic-bezier(.2,.8,.2,1), transform .25s ease-out, border-color .3s; }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* tilt générique */
[data-tilt] { transform-style: preserve-3d; }

/* =========================================================
   LIVE
   ========================================================= */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; max-width: 1360px; margin: 0 auto; align-items: start; }
.player-shell { border-radius: var(--radius); padding: 2px; background: linear-gradient(135deg, var(--twitch), transparent 40%, transparent 60%, var(--red)); box-shadow: 0 40px 100px -40px rgba(145,70,255,.7); transition: transform .2s ease-out; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 2px); overflow: hidden; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; }
.player-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(1.2); transition: transform .8s, filter .4s; }
.player-poster:hover img { transform: scale(1.04); filter: brightness(.6) saturate(1.3); }
.play-btn { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--twitch); box-shadow: 0 0 0 0 rgba(145,70,255,.6); animation: pulse-big 2s infinite; transition: transform .3s; }
.player-poster:hover .play-btn { transform: scale(1.1); }
.play-btn svg { width: 40px; height: 40px; fill: #fff; margin-left: 6px; }
@keyframes pulse-big { 70% { box-shadow: 0 0 0 28px rgba(145,70,255,0); } 100% { box-shadow: 0 0 0 0 rgba(145,70,255,0); } }
.poster-label { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-weight: 700; }
.player-note { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--panel); }

.live-side { display: grid; gap: 14px; }
.live-card, .live-status { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.live-card { display: flex; align-items: center; gap: 14px; }
.live-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--twitch); }
.live-card strong { display: block; font-family: var(--display); font-size: 18px; }
.live-card span { color: var(--muted); font-size: 14px; }
.live-status { display: grid; gap: 4px; }
.ls-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ls-value { font-family: var(--display); font-size: 22px; }
.ls-sub { color: var(--muted); font-size: 14px; }
.live-status.is-on { border-color: rgba(255,45,85,.5); background: rgba(255,45,85,.08); }
.live-status.is-on .ls-value { color: var(--red); }

/* =========================================================
   JEUX — scroll horizontal
   ========================================================= */
.games { position: relative; height: 500vh; }
.games-stage { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.games-head { position: absolute; top: clamp(76px, 12vh, 120px); left: clamp(16px, 5vw, 80px); right: clamp(16px, 5vw, 80px); z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; pointer-events: none; }
.games-head h2 { font-size: clamp(30px, 4.4vw, 68px); }
.games-head .eyebrow { position: absolute; top: -26px; }
.games-counter { font-family: var(--display); font-size: 18px; color: var(--muted); }
.games-counter b { font-size: 44px; color: var(--ink); }
.games-track {
  display: flex; gap: 5vw; align-items: center;
  padding: 0 calc(50vw - min(36vw, 560px)); margin-top: clamp(80px, 12vh, 130px);
  transform: translate3d(var(--games-x, 0px), 0, 0);
  will-change: transform;
}
.game-card {
  --accent: #fff; --d: 0; --skew: 0deg;
  color: #f4f1ff; background: #07060b;
  position: relative; flex: none;
  width: min(72vw, 1120px); height: min(62vh, 620px);
  border-radius: 34px; overflow: hidden; isolation: isolate;
  transform: scale(calc(1 - var(--d) * 0.14)) rotateY(calc(var(--side, 0) * var(--d) * 14deg)) skewX(var(--skew));
  filter: saturate(calc(1 - var(--d) * 0.7)) brightness(calc(1 - var(--d) * 0.45));
  box-shadow: 0 60px 120px -50px var(--accent);
  will-change: transform, filter;
}
.game-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.14); pointer-events: none; }
.game-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.game-media img { position: absolute; top: 0; left: -15%; width: 130%; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0px), 0, 0) scale(calc(1.05 + var(--d) * 0.15)); will-change: transform; }
.game-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,6,11,.92) 0%, rgba(7,6,11,.55) 38%, transparent 70%), linear-gradient(0deg, rgba(7,6,11,.6), transparent 40%); }
.game-info { position: absolute; left: clamp(22px, 4vw, 60px); bottom: clamp(22px, 4vw, 56px); width: min(440px, 80%); opacity: calc(1 - var(--d) * 1.6); transform: translate3d(calc(var(--d) * -60px), 0, 0); }
.game-num { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--accent); }
.game-info h3 { margin: 8px 0 16px; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4.6vw, 76px); line-height: .92; letter-spacing: -0.03em; }
.game-info p { margin: 0; color: rgba(244,241,255,.82); font-size: clamp(14px, 1.1vw, 17px); }
.game-info ul { display: flex; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.game-info li { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.game-card-final .game-media::after { background: linear-gradient(0deg, rgba(7,6,11,.95) 0%, rgba(7,6,11,.4) 45%, transparent 70%); }
.game-card-final .game-media img { left: 0; width: 100%; }
.game-card-final .game-info { width: min(560px, 90%); }
.game-card-final .btn { margin-top: 22px; }
.games-bar { position: absolute; left: clamp(16px, 5vw, 80px); right: clamp(16px, 5vw, 80px); bottom: clamp(24px, 5vh, 50px); height: 2px; background: var(--line); }
.games-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--twitch), var(--red)); transform-origin: 0 50%; transform: scaleX(var(--games-p, 0)); }

/* =========================================================
   SETUP PC 3D
   ========================================================= */
.setup { position: relative; height: 520vh; }
.setup-stage { position: sticky; top: 0; height: 100vh; min-height: 600px; overflow: hidden; display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.2fr; align-items: center; padding: 80px clamp(16px, 5vw, 80px) 40px; }
.setup-copy { position: relative; z-index: 3; }
.setup-copy h2 { font-size: clamp(40px, 5.4vw, 86px); }
.spec-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.spec-list li {
  position: relative; display: grid; grid-template-columns: 1fr; padding: 14px 18px 14px 56px; border-radius: 18px;
  border: 1px solid transparent; color: var(--muted); transition: all .45s cubic-bezier(.2,.8,.2,1);
  counter-increment: s;
}
.spec-list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font-family: var(--display); font-size: 13px; color: var(--dim); }
.spec-list span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.spec-list strong { font-size: clamp(15px, 1.25vw, 19px); color: var(--ink-soft); }
.spec-list small { font-size: 13px; }
.spec-list li.is-active { color: var(--ink); background: linear-gradient(90deg, rgba(145,70,255,.22), rgba(255,45,85,.06)); border-color: rgba(145,70,255,.5); transform: translateX(12px); }
.spec-list li.is-active::before { color: var(--twitch-2); }
.spec-list li.is-active strong { color: var(--ink); }

.pc-viewport { position: relative; height: 100%; min-height: 520px; display: grid; place-items: center; }
.pc-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(145,70,255,.45), rgba(255,45,85,.15) 45%, transparent 70%); filter: blur(30px); animation: hue 8s linear infinite; }
@keyframes hue { to { filter: blur(30px) hue-rotate(360deg); } }
.pc-floor { position: absolute; bottom: 8%; width: 70%; height: 80px; border-radius: 50%; background: radial-gradient(ellipse, rgba(145,70,255,.55), transparent 70%); filter: blur(14px); }
.pc-scene { position: relative; width: 1px; height: 1px; perspective: 1800px; transform: scale(var(--pc-scale, 1)); }
.pc { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform; }

.pc-callout {
  position: absolute; z-index: 4; left: 50%; top: 10%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid rgba(145,70,255,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; white-space: nowrap; opacity: 0; transition: opacity .4s;
}
.pc-callout.is-on { opacity: 1; }
.pc-callout b { font-family: var(--display); color: var(--twitch-2); font-size: 12px; letter-spacing: .1em; }
.setup-hud { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 28px; display: flex; gap: 22px; font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; color: var(--muted); }
.setup-hud b { color: var(--twitch-2); }

/* ---- Primitives 3D ---- */
.cub, .cub > .f { position: absolute; transform-style: preserve-3d; }
.cub { left: 0; top: 0; width: 0; height: 0; }
.f { backface-visibility: visible; }
.part { transition: filter .4s; }
.part.is-hot > .f { box-shadow: inset 0 0 0 2px var(--twitch-2), 0 0 24px rgba(145,70,255,.6); }

/* Matériaux */
.m-case { background: linear-gradient(160deg, #1d1b26, #0c0b12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.m-case-dark { background: #0a0910; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.m-glass {
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.02) 22%, rgba(160,140,255,.05) 50%, rgba(255,255,255,.12) 54%, rgba(255,255,255,.02) 60%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), inset 0 0 40px rgba(145,70,255,.15);
  border-radius: 4px;
}
.m-mesh {
  background-color: #121019;
  background-image: radial-gradient(circle at 50% 50%, #000 1.6px, transparent 2px);
  background-size: 7px 7px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.m-pcb {
  background-color: #14161b;
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(200,200,220,.08) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(200,200,220,.06) 50%, transparent 51%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.025) 14px 15px);
  background-size: 38px 38px, 38px 38px, auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.m-alu { background: linear-gradient(180deg, #3a3846, #1a1922); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.m-fins { background: repeating-linear-gradient(0deg, #8b8a96 0 2px, #2b2a33 2px 6px); }
.m-gpu { background: linear-gradient(135deg, #2c2b33, #101016); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.m-rgb { background: linear-gradient(90deg, #ff2d55, #ff9f1a, #3cff8f, #3ec9ff, #9146ff, #ff2d55); background-size: 300% 100%; animation: rgbflow 3s linear infinite; box-shadow: 0 0 18px rgba(145,70,255,.8); }
@keyframes rgbflow { to { background-position: 300% 0; } }
.m-ram { background: linear-gradient(180deg, #1b1a22, #0e0d13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }

/* Textes sérigraphiés */
.label { position: absolute; font: 800 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); white-space: nowrap; }
.label-big { font-family: var(--display); font-size: 15px; letter-spacing: .04em; }
.label-green { color: #76b900; }

/* Ventilateurs */
.fan { position: absolute; border-radius: 50%; background: #07070b; box-shadow: 0 0 0 3px #1a1922; }
.fan::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 4px; background: conic-gradient(from var(--spin, 0deg), #ff2d55, #ff9f1a, #3cff8f, #3ec9ff, #9146ff, #ff2d55); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 3s linear infinite; filter: drop-shadow(0 0 8px rgba(145,70,255,.9)); }
.fan i { position: absolute; inset: 10%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0 22deg, rgba(255,255,255,.03) 22deg 51.4deg); animation: fan-spin .5s linear infinite; }
.fan i::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle, #2a2934, #0b0b10); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
@keyframes fan-spin { to { transform: rotate(360deg); } }

.led-strip { position: absolute; height: 3px; border-radius: 3px; }

/* =========================================================
   PÉRIPHÉRIQUES
   ========================================================= */
.gear-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 1360px; margin: 0 auto; perspective: 1000px; }
.gear-card {
  position: relative; display: grid; gap: 6px; align-content: end; min-height: 240px; padding: 24px; border-radius: 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  overflow: hidden;
}
.gear-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(145,70,255,.35), transparent 60%); opacity: 0; transition: opacity .3s; }
.gear-card:hover { border-color: rgba(145,70,255,.5); }
.gear-card:hover::before { opacity: 1; }
.gear-card svg { position: absolute; top: 22px; left: 22px; width: 56px; height: 56px; fill: none; stroke: var(--twitch-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gear-card span { position: relative; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gear-card strong { position: relative; font-family: var(--display); font-size: 18px; line-height: 1.15; }

/* =========================================================
   HORAIRES
   ========================================================= */
.sched-hero { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 18px; max-width: 1360px; margin: 0 auto; perspective: 1000px; }
.sched-card, .sched-countdown {
  position: relative; display: grid; align-content: space-between; gap: 10px; min-height: 280px; padding: clamp(22px, 2.4vw, 36px); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(145,70,255,.16), rgba(145,70,255,.03)); border: 1px solid rgba(145,70,255,.32); overflow: hidden;
  transition: transform .25s ease-out;
}
.sched-card-hot { background: linear-gradient(160deg, rgba(255,45,85,.2), rgba(255,45,85,.03)); border-color: rgba(255,45,85,.4); }
.sched-kicker { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--twitch-2); }
.sched-card-hot .sched-kicker { color: var(--red); }
.sched-days { color: var(--muted); }
.sched-card { container-type: inline-size; }
.sched-time { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 3.8vw, 72px); font-size: min(16cqi, 96px); line-height: .9; letter-spacing: -0.04em; white-space: nowrap; }
.sched-time i { font-style: normal; color: var(--dim); margin: 0 .05em; }
.sched-countdown { background: var(--panel); border-color: var(--line); }
.sched-countdown.is-live { border-color: rgba(255,45,85,.6); box-shadow: 0 0 80px -20px var(--red); }
.cd-label { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sched-countdown.is-live .cd-label { color: var(--red); }
.cd-digits { display: flex; gap: 10px; }
.cd-digits div { flex: 1; display: grid; justify-items: center; padding: 14px 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.cd-digits b { font-family: var(--display); font-size: clamp(34px, 3.6vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-digits small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.cd-sub { color: var(--muted); font-size: 13px; }

.week { max-width: 1360px; margin: 30px auto 0; padding: clamp(18px, 2.4vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.week-axis { display: flex; justify-content: space-between; margin-left: 110px; padding-bottom: 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.week-rows { display: grid; gap: 10px; }
.week-row { display: grid; grid-template-columns: 100px 1fr; gap: 10px; align-items: center; }
.week-day { font-weight: 700; font-size: 14px; color: var(--muted); }
.week-row.is-today .week-day { color: var(--ink); }
.week-row.is-today .week-day::after { content: " • auj."; color: var(--red); font-size: 12px; }
.week-lane { position: relative; height: 34px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 1px, transparent 1px calc(100% / 16)); overflow: hidden; }
.week-slot {
  position: absolute; top: 4px; bottom: 4px; border-radius: 8px;
  background: linear-gradient(90deg, var(--twitch), var(--twitch-2)); box-shadow: 0 0 24px -6px var(--twitch);
  display: flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden;
  transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.week-slot.is-we { background: linear-gradient(90deg, var(--red), var(--red-2)); box-shadow: 0 0 24px -6px var(--red); }
.week.is-in .week-slot { transform: scaleX(1); }
.week-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); box-shadow: 0 0 12px var(--ink); z-index: 2; }
.week-now::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* =========================================================
   PROMOS (YouTube / Discord)
   ========================================================= */
.promo-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: center;
  max-width: 1360px; margin: 0 auto; padding: clamp(22px, 3vw, 48px); border-radius: 40px;
  background: linear-gradient(140deg, rgba(255,0,51,.18), rgba(255,0,51,.02) 60%); border: 1px solid rgba(255,0,51,.32);
}
.promo-yt h2 { font-size: clamp(34px, 4.4vw, 70px); }
.promo-yt em { background: linear-gradient(100deg, #ff6a6a, var(--yt)); -webkit-background-clip: text; background-clip: text; }
.promo-copy p { color: var(--muted); font-size: 17px; margin: 20px 0 28px; max-width: 480px; }
.eyebrow-yt { color: #ff4d6d; }
.yt-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 40px 90px -30px rgba(255,0,51,.6); transform: translateZ(40px); }
.yt-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: yt-cycle 12s infinite; }
.yt-screen img:nth-child(2) { animation-delay: 3s; } .yt-screen img:nth-child(3) { animation-delay: 6s; } .yt-screen img:nth-child(4) { animation-delay: 9s; }
@keyframes yt-cycle { 0% { opacity: 0; transform: scale(1.12); } 5% { opacity: 1; } 25% { opacity: 1; } 32% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.yt-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.5), transparent 50%); }
.yt-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 88px; height: 62px; margin: -31px 0 0 -44px; border-radius: 18px; display: grid; place-items: center; background: var(--yt); box-shadow: 0 10px 40px rgba(255,0,51,.6); }
.yt-play svg { width: 32px; height: 32px; fill: #fff; }

.discord-card {
  position: relative; max-width: 1360px; min-height: 520px; margin: 0 auto; padding: clamp(28px, 5vw, 80px);
  border-radius: 40px; overflow: hidden; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 120%, #7b86ff 0%, var(--discord) 35%, #2b2f8f 100%);
  box-shadow: 0 60px 140px -50px var(--discord);
}
.dc-content { position: relative; z-index: 2; max-width: 620px; }
.dc-logo { width: 84px; height: 84px; fill: #fff; margin: 0 auto 14px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); animation: float 4s ease-in-out infinite; }
.discord-card .eyebrow { color: rgba(255,255,255,.8); }
.discord-card h2 { font-size: clamp(40px, 6vw, 96px); }
.discord-card em { background: none; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 0 40px rgba(255,255,255,.4); }
.discord-card p { margin: 20px auto 30px; color: rgba(255,255,255,.85); font-size: 17px; }
.btn-discord { background: #fff; color: var(--discord); --b: rgba(0,0,0,.4); min-height: 60px; padding: 0 34px; font-size: 16px; }
.dc-bubbles span {
  position: absolute; z-index: 1; padding: 10px 16px; border-radius: 18px 18px 18px 4px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: rgba(20,22,60,.55); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translate3d(calc(var(--mx) * var(--depth, 30px)), calc(var(--my) * var(--depth, 30px)), 0);
  animation: bubble 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1s);
}
.dc-bubbles span:nth-child(1) { left: 6%; top: 14%; --depth: 40px; }
.dc-bubbles span:nth-child(2) { right: 6%; top: 18%; --depth: -30px; }
.dc-bubbles span:nth-child(3) { left: 10%; bottom: 20%; --depth: -50px; }
.dc-bubbles span:nth-child(4) { right: 9%; bottom: 16%; --depth: 50px; }
.dc-bubbles span:nth-child(5) { left: 30%; top: 4%; --depth: 20px; }
.dc-bubbles span:nth-child(6) { right: 28%; bottom: 5%; --depth: -20px; }
@keyframes bubble { 50% { translate: 0 -14px; } }

/* =========================================================
   DONATION
   ========================================================= */
.donate-card {
  position: relative; max-width: 980px; margin: 0 auto; padding: clamp(40px, 6vw, 90px) clamp(22px, 5vw, 80px);
  border-radius: 40px; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(255,45,85,.35), transparent 60%), var(--panel); border: 1px solid rgba(255,45,85,.35);
}
.donate-heart { width: 86px; height: 86px; margin: 0 auto 18px; animation: beat 1.4s ease-in-out infinite; }
.donate-heart svg { width: 100%; height: 100%; fill: var(--red); filter: drop-shadow(0 0 30px var(--red)); }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }
.donate h2 { font-size: clamp(34px, 5vw, 76px); }
.donate p { max-width: 560px; margin: 22px auto 34px; color: var(--muted); font-size: 17px; }
.donate small { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; }
.burst-heart { position: fixed; z-index: 998; pointer-events: none; font-size: 22px; will-change: transform, opacity; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { padding: 80px clamp(16px, 5vw, 80px) 40px; overflow: hidden; border-top: 1px solid var(--line); }
.footer-big { white-space: nowrap; font-family: var(--display); font-weight: 900; font-size: 9.2vw; line-height: .8; letter-spacing: -0.05em; text-align: center; background: linear-gradient(180deg, rgba(145,70,255,.6), rgba(145,70,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.footer-row nav { display: flex; gap: 24px; }
.footer-row a { text-decoration: none; transition: color .2s; }
.footer-row a:hover { color: var(--twitch-2); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .live-grid { grid-template-columns: 1fr; }
  .live-side { grid-template-columns: 1fr 1fr; }
  .live-side .btn { grid-column: span 1; }
  .gear-grid { grid-template-columns: repeat(3, 1fr); }
  .sched-hero { grid-template-columns: 1fr 1fr; }
  .sched-countdown { grid-column: 1 / -1; min-height: 0; }
  .promo-card { grid-template-columns: 1fr; }
  .setup-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 90px; }
  .setup-copy h2 { font-size: 38px; }
  .spec-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
  .spec-list li { padding: 10px; }
  .spec-list li::before { display: none; }
  .spec-list li small, .spec-list li span { display: none; }
  .spec-list strong { font-size: 12px; line-height: 1.2; }
  .spec-list li.is-active { transform: none; }
  .pc-viewport { min-height: 0; }
  .hero-panel { right: 16px; left: 16px; width: auto; max-width: 640px; margin: 0 auto; text-align: center; }
}

@media (max-width: 760px) {
  .hero-title { font-size: 17vw; }
  .ht-1 { --off: -3vw; transform: translate3d(calc(var(--off) + var(--t1-x)), -18vh, 0); }
  .ht-2 { --off: 3vw; transform: translate3d(calc(var(--off) + var(--t2-x)), -14vh, 0); }
  .hero-portrait { width: min(48vw, 220px); top: 44%; }
  .hero-intro { bottom: 22px; }
  .hero-intro p { font-size: 14px; margin-bottom: 14px; }
  .hero-ctas .btn { min-height: 46px; }
  .portrait-tag { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats div { padding: 12px 8px; }
  .hero-stats dd { font-size: 11px; }
  .scroll-hint { display: none; }
  .btn-sm span { display: none; }
  .btn-sm { width: 42px; padding: 0; }
  .brand span { font-size: 15px; }
  .games-track { gap: 6vw; padding: 0 7vw; }
  .game-card { width: 86vw; height: 62vh; border-radius: 26px; }
  .game-media::after { background: linear-gradient(0deg, rgba(7,6,11,.96) 0%, rgba(7,6,11,.6) 50%, transparent 80%); }
  .game-info { width: auto; right: 22px; }
  .games-counter b { font-size: 30px; }
  .gear-grid { grid-template-columns: 1fr 1fr; }
  .gear-card { min-height: 190px; }
  .gear-card:last-child { grid-column: 1 / -1; }
  .sched-hero { grid-template-columns: 1fr; }
  .sched-card { min-height: 200px; }
  .week-axis { margin-left: 60px; }
  .week-row { grid-template-columns: 50px 1fr; }
  .week-day { font-size: 12px; }
  .week-row.is-today .week-day::after { content: ""; }
  .week-row.is-today .week-day { color: var(--red); }
  .week-slot { font-size: 10px; padding: 0 6px; }
  .live-side { grid-template-columns: 1fr; }
  .dc-bubbles span:nth-child(n+5) { display: none; }
  .dc-bubbles span { font-size: 12px; }
  .discord-card { min-height: 600px; }
  .footer-row { flex-direction: column; align-items: center; }
  .spec-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-height: 700px) and (min-width: 761px) {
  .hero-portrait { width: min(clamp(200px, 23vw, 380px), 29vh); top: 43%; }
  .hero-intro { bottom: 20px; }
  .hero-intro p { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; translate: none; }
  .char { transition: none; }
}

/* =========================================================
   BOUTON JOUR / NUIT
   ========================================================= */
.theme-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); transition: background .3s, box-shadow .3s;
}
.theme-toggle:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 24px -4px var(--twitch); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s cubic-bezier(.5,-.4,.3,1.4), opacity .4s; }
.theme-toggle .i-sun { transform: translateY(30px) rotate(-90deg); opacity: 0; color: #ff9f1a; }
.theme-toggle .i-moon { transform: none; opacity: 1; }
:root[data-theme="light"] .theme-toggle .i-sun { transform: none; opacity: 1; }
:root[data-theme="light"] .theme-toggle .i-moon { transform: translateY(-30px) rotate(90deg); opacity: 0; }

/* =========================================================
   TIKTOK
   ========================================================= */
.tt-card {
  --tt-cyan: #25f4ee; --tt-pink: #fe2c55;
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 70px); align-items: center;
  max-width: 1360px; margin: 0 auto; padding: clamp(28px, 4vw, 64px); border-radius: 40px; overflow: hidden; isolation: isolate;
  color: #fff; background: #050507;
  box-shadow: 0 60px 140px -60px var(--tt-pink), inset 0 0 0 1px rgba(255,255,255,.08);
}
.tt-card::before, .tt-card::after { content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .45; }
.tt-card::before { left: -10%; top: -20%; background: var(--tt-cyan); animation: drift 12s ease-in-out infinite alternate; }
.tt-card::after { right: -8%; bottom: -25%; background: var(--tt-pink); animation: drift 15s ease-in-out infinite alternate-reverse; }
.tt-copy .eyebrow { color: var(--tt-cyan); }
.tt-copy h2 { font-size: clamp(36px, 4.8vw, 78px); text-shadow: -3px 0 var(--tt-cyan), 3px 0 var(--tt-pink); }
.tt-copy h2 em { background: none; color: #fff; }
.tt-card:hover .tt-copy h2 { animation: glitch .45s steps(2) 2; }
@keyframes glitch {
  0% { text-shadow: -3px 0 var(--tt-cyan), 3px 0 var(--tt-pink); transform: none; }
  25% { text-shadow: 5px -2px var(--tt-cyan), -5px 2px var(--tt-pink); transform: translateX(-2px) skewX(-4deg); }
  50% { text-shadow: -6px 1px var(--tt-cyan), 6px -1px var(--tt-pink); transform: translateX(2px); }
  100% { text-shadow: -3px 0 var(--tt-cyan), 3px 0 var(--tt-pink); transform: none; }
}
.tt-copy p { color: rgba(255,255,255,.75); font-size: 17px; margin: 20px 0 24px; max-width: 500px; }
.tt-handle {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-weight: 700;
}
.tt-handle img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 2px var(--tt-pink), 0 0 0 4px #050507, 0 0 0 6px var(--tt-cyan); }
.tt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.tt-tags li { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.btn-tt { --b: #fe2c55; background: #fff; color: #000; box-shadow: -4px 0 0 var(--tt-cyan), 4px 0 0 var(--tt-pink), 0 18px 50px -14px var(--tt-pink); }
.btn-tt:hover { box-shadow: -6px 0 0 var(--tt-cyan), 6px 0 0 var(--tt-pink), 0 22px 60px -10px var(--tt-pink); }
.btn-tt svg { fill: #000; }

.tt-phone-wrap { display: grid; place-items: center; perspective: 1200px; }
.tt-phone {
  position: relative; width: min(300px, 70vw); aspect-ratio: 9 / 19; padding: 12px; border-radius: 46px;
  background: linear-gradient(145deg, #2a2a32, #0c0c10); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), -18px 0 60px -20px var(--tt-cyan), 18px 30px 80px -20px var(--tt-pink);
  transform: rotate(4deg); transition: transform .25s ease-out;
}
.tt-phone::before { content: ""; position: absolute; z-index: 3; top: 22px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 20px; background: #000; }
.tt-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.tt-feed { position: absolute; inset: 0; animation: tt-scroll 15s cubic-bezier(.7,0,.2,1) infinite; }
.tt-feed img { width: 100%; height: 100%; object-fit: cover; }
.tt-feed img:nth-child(1) { object-position: 50% 30%; }
@keyframes tt-scroll {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-100%); }
  40%, 56% { transform: translateY(-200%); }
  60%, 76% { transform: translateY(-300%); }
  80%, 96% { transform: translateY(-400%); }
  100% { transform: translateY(-500%); }
}
.tt-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 38%), linear-gradient(180deg, rgba(0,0,0,.4), transparent 18%); }
.tt-top { position: absolute; top: 56px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); }
.tt-top b { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 4px; }
.tt-side { position: absolute; right: 10px; bottom: 90px; display: grid; gap: 18px; justify-items: center; }
.tt-side span { width: 40px; height: 40px; display: grid; place-items: center; }
.tt-side svg { width: 30px; height: 30px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.tt-side .tt-like svg { animation: like 2.4s ease-in-out infinite; }
@keyframes like { 0%, 70%, 100% { transform: scale(1); fill: #fff; } 78% { transform: scale(1.35); fill: #fe2c55; } 90% { transform: scale(1); fill: #fe2c55; } }
.tt-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid #fff; }
.tt-bottom { position: absolute; left: 14px; right: 64px; bottom: 22px; font-size: 13px; line-height: 1.35; }
.tt-bottom strong { display: block; margin-bottom: 4px; font-size: 14px; }
.tt-bottom .tt-sound { display: flex; align-items: center; gap: 6px; margin-top: 8px; opacity: .85; white-space: nowrap; overflow: hidden; }
.tt-hearts i { position: absolute; right: 26px; bottom: 150px; font-style: normal; font-size: 18px; opacity: 0; animation: heart-up 3s ease-in infinite; }
.tt-hearts i:nth-child(2) { animation-delay: .8s; right: 34px; } .tt-hearts i:nth-child(3) { animation-delay: 1.6s; right: 20px; } .tt-hearts i:nth-child(4) { animation-delay: 2.2s; right: 30px; }
@keyframes heart-up { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-30px, -180px) scale(1.3) rotate(-20deg); } }

@media (max-width: 1100px) {
  .tt-card { grid-template-columns: 1fr; text-align: center; }
  .tt-copy p { margin-left: auto; margin-right: auto; }
  .tt-tags { justify-content: center; }
}
@media (max-width: 760px) {
  .theme-toggle { width: 42px; height: 42px; }
  .header-actions { gap: 8px; }
  .tt-phone { width: min(250px, 66vw); }
}
