/* ==========================================================================
   Landers2K — l'univers de Tony « Landers2K » Chopin
   Thème nuit : fond bleu nuit, néons bleu → violet → rouge (Tape le bleu,
   évite le rouge), surfaces arrondies, couleurs propres à chaque réseau.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Couleurs */
  --c-bg: #050812;
  --c-bg-alt: #0a0f1c;
  --c-surface: #10172a;
  --c-surface-2: #182038;
  --c-line: #232c42;
  --c-text: #f5f5f7;
  --c-text-2: #a1a6b4;
  --c-text-3: #7d8397;
  --c-faint: #2c344a;
  --c-ghost: #2f3850;
  --c-link: #2997ff;
  --c-accent: #0071e3;
  --c-violet: #bf5af2;
  --c-red: #ff375f;
  --c-discord: #5865f2;
  --grad: linear-gradient(100deg, #2997ff 0%, #8e6bff 45%, #ff375f 100%);

  /* Typographie */
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Mise en page */
  --nav-h: 84px;
  --gutter: 22px;
  --wide: 1200px;
  --narrow: 980px;
  --r-card: 28px;

  /* Mouvement */
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 734px) {
  :root { --gutter: 16px; --nav-h: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--c-bg);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg, canvas, img { display: block; }
[hidden] { display: none !important; }
img { max-width: 100%; }
sup { font-size: .6em; line-height: 0; }

::selection { background: rgba(41, 151, 255, .32); }
:focus-visible { outline: 2px solid var(--c-link); outline-offset: 3px; border-radius: 8px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: 14px;
  text-decoration: none;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 10px; }

/* ---------- Mise en page ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--narrow)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.band { background: var(--c-bg-alt); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--c-text-2);
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .004em;
}
.center .kicker, .kicker.center { justify-content: center; }

.section-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.028em;
}

.muted { color: var(--c-text-3); }
.is-blue { color: var(--c-link); }
.is-red { color: var(--c-red); }
.grad-text,
.grad .w > span,
.brand-name b {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s ease-in-out infinite alternate;
}
@keyframes shine { to { background-position: 100% 0; } }

.hero-title, .section-title, .statement, .cta-title, .game-title,
.step h3, .tile h3, .goal-title { text-wrap: balance; }
p { text-wrap: pretty; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { text-align: center; }

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 14px var(--brand); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.016em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s var(--ease), box-shadow .4s var(--ease), color .3s var(--ease), transform .5s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn-light { background: var(--c-text); color: var(--c-bg); }
.btn-light:hover { background: #fff; box-shadow: 0 10px 40px -10px rgba(255, 255, 255, .5); }
.btn-brand { background: var(--brand); color: var(--brand-ink, #fff); }
.btn-brand:hover { box-shadow: 0 12px 40px -10px var(--brand); }
.btn-discord-lg { min-height: 54px; padding: 0 26px; border-radius: 16px; background: var(--c-discord); color: #fff; font-size: 17px; }
.btn-discord-lg:hover { background: #6d78f7; box-shadow: 0 14px 50px -12px rgba(88, 101, 242, .9); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--c-link);
  font-size: 17px;
  letter-spacing: -.022em;
  text-decoration: none;
  text-underline-offset: .18em;
}
.link-arrow::after {
  content: "";
  flex: none;
  width: 7px;
  height: 12px;
  margin-left: 6px;
  background: currentColor;
  -webkit-mask: var(--chev) center / contain no-repeat;
  mask: var(--chev) center / contain no-repeat;
  transition: transform .45s var(--ease-out);
}
a.link-arrow:hover { text-decoration: underline; }
a.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Apparitions ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 36px;
  transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; translate: none; }

[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .04em .14em;
  margin: 0 -.04em -.14em;
}
.js [data-split] .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i) * 40ms);
}
.js [data-split].is-in .w > span { transform: none; }

.js .intro { opacity: 0; translate: 0 24px; }
.is-loaded .intro {
  opacity: 1;
  translate: none;
  transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s);
}

/* ==========================================================================
   Barre de navigation flottante
   ========================================================================== */
.nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 1180px);
  height: 60px;
  padding: 0 10px 0 12px;
  border-radius: 20px;
  background: rgba(10, 14, 28, .5);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 40px -16px rgba(0, 0, 0, .7);
  pointer-events: auto;
  transition: height .4s var(--ease-out), background-color .4s var(--ease);
}
.nav.is-scrolled .nav-bar { height: 54px; background: rgba(10, 14, 28, .82); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid transparent;
  border-radius: 11px;
  background: linear-gradient(#0b1020, #0b1020) padding-box, var(--grad) border-box;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
  transition: transform .6s var(--spring), box-shadow .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.08); box-shadow: 0 0 24px -4px rgba(142, 107, 255, .8); }
.brand-name { font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

.nav-links { position: relative; display: flex; gap: 2px; margin: 0 auto; padding: 4px; }
.nav-links a {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  white-space: nowrap;
  border-radius: 12px;
  color: var(--c-text-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.012em;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--c-text); }
.nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  z-index: 0;
  width: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s var(--ease);
}

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  color: var(--c-text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.live-chip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live-chip:hover { background: rgba(145, 70, 255, .18); color: var(--c-text); }
.live-chip[data-live="online"] { background: rgba(255, 55, 95, .16); color: var(--c-red); }
.live-chip[data-live="online"] i { animation: live 1.6s infinite; }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  background: var(--c-discord);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .3s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease-out);
}
.btn-discord svg { width: 18px; height: 18px; }
.btn-discord:hover { background: #6d78f7; box-shadow: 0 8px 30px -8px rgba(88, 101, 242, .9); }

.nav-burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.nav-burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--c-text);
  transition: transform .45s var(--ease-out);
}
.nav-burger span:first-child { top: 16px; }
.nav-burger span:last-child { top: 23px; }
body.menu-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Menu mobile */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  background: rgba(5, 8, 18, .96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.menu-links { display: grid; }
.menu-links a,
.menu-socials li {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .3s var(--ease), translate .6s var(--ease-out);
}
body.menu-open .menu-links a,
body.menu-open .menu-socials li { opacity: 1; translate: none; transition-delay: calc(.05s + var(--i, 0) * 35ms); }
.menu-links a {
  padding: 8px 0;
  color: var(--c-text);
  font-family: var(--f-display);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-decoration: none;
}
.menu-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.menu-socials a,
.footer-socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-text);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--spring), box-shadow .4s var(--ease);
}
.menu-socials svg, .footer-socials svg { width: 22px; height: 22px; }
.menu-socials a:hover,
.footer-socials a:hover {
  background: var(--brand);
  color: var(--brand-ink, #fff);
  box-shadow: 0 10px 30px -10px var(--brand);
  transform: translateY(-4px);
}

/* ==========================================================================
   Accueil
   ========================================================================== */
.hero { position: relative; height: 250vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Fond de l'accueil : halos bleu / rouge / violet */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 15% 30%, rgba(41, 151, 255, .2), transparent 70%),
    radial-gradient(50% 45% at 88% 72%, rgba(255, 55, 95, .17), transparent 70%),
    radial-gradient(40% 35% at 50% 100%, rgba(142, 107, 255, .16), transparent 70%);
}
.hero-bg .grid-floor { top: 60%; }

/* Sol quadrillé façon arène du jeu : part d'une ligne d'horizon et vient vers l'écran */
.grid-floor {
  position: absolute;
  left: -60%;
  right: -60%;
  height: 380px;
  background-image:
    linear-gradient(var(--line, rgba(91, 170, 255, .55)) 2px, transparent 2px),
    linear-gradient(90deg, var(--line, rgba(91, 170, 255, .55)) 2px, transparent 2px);
  background-size: 64px 64px;
  transform: perspective(360px) rotateX(58deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
  opacity: .45;
  animation: grid-move 3s linear infinite paused;
}
.is-live .grid-floor { animation-play-state: running; }
@keyframes grid-move { to { background-position: 0 64px; } }

/* Décor des autres sections : halos, sol et cubes (créés par script.js) */
[data-scene] { position: relative; isolation: isolate; }
[data-scene] > :not(.scene) { position: relative; z-index: 1; }
.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(38% 26% at 0% 32%, color-mix(in srgb, var(--sa) 16%, transparent), transparent 70%),
    radial-gradient(38% 26% at 100% 66%, color-mix(in srgb, var(--sb) 15%, transparent), transparent 70%);
}
.scene-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.scene-floor .grid-floor { top: 40px; opacity: .3; }
.cta .scene-floor, .page-hero .scene-floor { height: 52%; -webkit-mask-image: none; mask-image: none; }
.page-hero .scene-floor { height: 36%; }
.cta .scene-floor .grid-floor, .page-hero .scene-floor .grid-floor { opacity: .45; }
.scene .scene-cubes { pointer-events: none; }
.scene .hc { pointer-events: auto; }

/* Cubes flottants (positions et profondeur calculées par script.js) */
.scene-cubes { position: absolute; inset: 0; z-index: 1; }
.hc {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hc:focus { outline: none; }
.hc-float {
  display: block;
  width: 100%;
  height: 100%;
  animation: hc-bob var(--dur) ease-in-out var(--delay) infinite alternate;
  transition: scale .45s var(--spring);
}
.scene-cubes:not(.is-live) .hc-float { animation-play-state: paused; }
.hc:hover .hc-float { scale: 1.14; }
.hc-img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px var(--glow));
  pointer-events: none;
  animation: hc-in .9s var(--spring) var(--in) both;
}
/* Les cubes apparaissent quand leur section arrive à l'écran */
.scene-cubes:not(.is-seen) .hc-img { opacity: 0; animation: none; }
.hc.is-far .hc-img { filter: brightness(.62) saturate(.85) drop-shadow(0 0 18px var(--glow)); }
.hc.is-pop .hc-img { animation: hc-pop .32s var(--ease-out) forwards; }
.hc.is-back .hc-img { animation: hc-back .7s var(--spring) both; }
.hc.is-angry .hc-float { animation: hc-angry .55s var(--ease) both; }
@keyframes hc-bob {
  from { transform: translateY(-9px) rotate(calc(var(--r) * -1)); }
  to { transform: translateY(11px) rotate(var(--r)); }
}
@keyframes hc-in { from { opacity: 0; transform: scale(.2) rotate(-40deg); } }
@keyframes hc-back { from { opacity: 0; transform: scale(.2) rotate(30deg); } }
@keyframes hc-pop { to { opacity: 0; transform: scale(1.7); filter: brightness(2) drop-shadow(0 0 30px var(--glow)); } }
@keyframes hc-angry {
  20% { transform: scale(1.25) rotate(-12deg); }
  40% { transform: scale(1.25) rotate(12deg); }
  60% { transform: scale(1.2) rotate(-8deg); }
  80% { transform: scale(1.1) rotate(5deg); }
}

.hc-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .4s var(--ease), transform .6s var(--spring);
}
.hc-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: var(--c-text);
  transform: translateX(-50%);
}
.hero.show-hint .hc-hint { opacity: 1; transform: translate(-50%, 0); animation: hint-bob 1.6s ease-in-out .6s infinite; }
@keyframes hint-bob { 50% { translate: 0 -5px; } }

.hc-plus {
  position: absolute;
  z-index: 2;
  color: var(--c);
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  transform: translate(-50%, -50%);
  animation: hc-plus .9s var(--ease-out) forwards;
}
@keyframes hc-plus { to { opacity: 0; transform: translate(-50%, -160%) scale(1.25); } }
.hc-bit {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
  pointer-events: none;
  animation: hc-bit .7s var(--ease-out) forwards;
}
@keyframes hc-bit { to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(200deg) scale(.4); } }

/* Cube rouge touché : flash rouge et tremblement */
.flash {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 55, 95, .45), rgba(255, 55, 95, .12) 45%, transparent 75%);
  opacity: 0;
  pointer-events: none;
}
.flash.is-on { animation: flash .6s var(--ease) both; }
@keyframes flash { 15% { opacity: 1; } to { opacity: 0; } }
.is-hit .scene-cubes,
.hero.is-hit .hero-content { animation: shake .45s var(--ease); }

/* Score commun à tout le site */
.score-toast {
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  left: 50%;
  z-index: 59;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  max-width: calc(100vw - 24px);
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(16, 23, 42, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--c-line), 0 12px 30px -12px rgba(0, 0, 0, .8);
  color: var(--c-text-2);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px) scale(.9);
  transition: opacity .35s var(--ease), transform .5s var(--spring);
}
.score-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.score-toast b { display: inline-block; color: var(--c-text); font-family: var(--f-display); font-size: 17px; font-variant-numeric: tabular-nums; }
.score-toast.is-lost { color: var(--c-red); box-shadow: inset 0 0 0 1px rgba(255, 55, 95, .5); }
.score-toast.is-bump b { animation: bump .35s var(--spring); }
@keyframes bump { 40% { color: #30d158; transform: scale(1.35); } }
.score-rank {
  padding: 2px 9px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--rc) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 60%, transparent);
  color: var(--rc);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.score-best { color: var(--c-text-3); font-size: 13px; }
.score-goal { flex-basis: 100%; color: #ffd60a; font-size: 12px; font-weight: 600; }

/* Confettis (nouveau rang, cadeau débloqué) */
.confetti { position: fixed; inset: 0; z-index: 70; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute;
  top: -24px;
  width: var(--w);
  height: calc(var(--w) * .62);
  border-radius: 2px;
  background: var(--c);
  animation: confetti var(--t) cubic-bezier(.2, .6, .4, 1) var(--d) forwards;
}
@keyframes confetti { to { transform: translate(var(--dx), 110vh) rotate(var(--dr)); } }

/* Fenêtre du code cadeau */
.gift-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--c-text);
}
.gift-modal[open] { display: grid; place-items: center; }
.gift-modal::backdrop { background: rgba(3, 5, 12, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gift-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 460px);
  padding: 34px 28px 28px;
  border: 1.5px solid transparent;
  border-radius: 30px;
  background: radial-gradient(90% 60% at 50% 0%, rgba(255, 214, 10, .16), transparent 70%) padding-box, linear-gradient(#10172a, #10172a) padding-box, var(--grad) border-box;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .9);
  text-align: center;
  animation: gift-in .6s var(--spring) both;
}
@keyframes gift-in { from { opacity: 0; transform: translateY(30px) scale(.9); } }
.gift-cube { width: 96px; height: 96px; margin-top: -8px; filter: drop-shadow(0 0 30px rgba(255, 214, 10, .7)); animation: bob 3s ease-in-out infinite; }
.gift-rank {
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(214, 140, 255, .16);
  color: #d68cff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gift-card h2 { margin-top: 12px; font-family: var(--f-display); font-size: clamp(28px, 6vw, 36px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.gift-text { margin-top: 10px; color: var(--c-text-2); }
.gift-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
  padding: 10px 10px 10px 20px;
  border-radius: 18px;
  background: var(--c-bg);
  box-shadow: inset 0 0 0 1.5px rgba(255, 214, 10, .55), 0 0 30px -8px rgba(255, 214, 10, .5);
}
.gift-code-value { font-family: var(--f-display); font-size: 30px; font-weight: 800; letter-spacing: .12em; color: #ffd60a; user-select: all; }
.gift-copy { min-height: 42px; padding: 0 18px; font-size: 15px; }
.gift-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.gift-rewards li { padding: 6px 12px; border-radius: 12px; background: var(--c-surface-2); color: var(--c-text-2); font-size: 14px; }
.gift-rewards b { color: var(--c-text); }
.gift-how { margin-top: 16px; color: var(--c-text-3); font-size: 14px; }
.gift-how b { color: var(--c-text-2); }
.gift-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.gift-close { background: var(--c-surface-2); color: var(--c-text); }
.gift-close:hover { background: #222b46; }
.gift-modal .confetti { z-index: 2; }

/* Bouton 🎁 dans la barre du haut, une fois le cadeau débloqué */
.nav-gift {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 214, 10, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .45);
  font-size: 18px;
  cursor: pointer;
  animation: gift-pulse 2.6s ease-in-out infinite;
  transition: transform .4s var(--spring);
}
.nav-gift:hover { transform: rotate(-10deg) scale(1.1); }
@keyframes gift-pulse { 50% { box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .45), 0 0 18px rgba(255, 214, 10, .45); } }

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + clamp(24px, 6vh, 64px)) var(--gutter) 0;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: linear-gradient(rgba(16, 23, 42, .9), rgba(16, 23, 42, .9)) padding-box, var(--grad) border-box;
  color: var(--c-text-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 10px #30d158; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero-title {
  margin-top: 22px;
  font-family: var(--f-display);
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}
.hero-sub {
  max-width: 30em;
  margin: 22px auto 0;
  color: var(--c-text-2);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.38;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 32px; }

.hero-statement {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.hero-statement .kicker { justify-content: center; }
.statement {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .3em;
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.st-word { display: inline-block; opacity: 0; transform: translateY(30px) scale(.94); filter: blur(10px); will-change: transform, opacity, filter; }
.st-word.is-blue { text-shadow: 0 0 40px rgba(41, 151, 255, .45); }
.st-word.is-red { text-shadow: 0 0 40px rgba(255, 55, 95, .45); }

/* Dock des réseaux */
.dock {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px);
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(16, 23, 42, .7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translateX(-50%);
  will-change: transform, opacity;
}
.dock-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: var(--c-text);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--spring), box-shadow .4s var(--ease);
}
.dock-item svg { width: 22px; height: 22px; }
.dock-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .25s var(--ease), transform .4s var(--ease-out);
}
.dock-item:hover,
.dock-item:focus-visible {
  background: var(--brand);
  color: var(--brand-ink, #fff);
  box-shadow: 0 12px 30px -8px var(--brand);
  transform: translateY(-8px) scale(1.06);
}
.dock-item:hover::after,
.dock-item:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Tous les liens
   ========================================================================== */
.links { padding: clamp(90px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.link-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-text);
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: box-shadow .4s var(--ease);
}
.link-card::before,
.tile::before,
.discord-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.link-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent); }
.link-card:hover::before { opacity: 1; }

.link-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 15px;
  color: #fff;
  transition: transform .6s var(--spring);
}
.link-card:hover .link-ico { transform: scale(1.1) rotate(-6deg); }
.link-ico svg { width: 26px; height: 26px; }
.link-ico img { width: 100%; height: 100%; object-fit: cover; }
.ico-tiktok { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ico-tiktok svg { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.ico-youtube { background: #ff0033; }
.ico-twitch { background: #9146ff; }
.ico-discord { background: var(--c-discord); }
.ico-x { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.ico-lootbar { background: linear-gradient(135deg, #ffcc33, #ff8a00); color: #1a1000; }
.ico-mail { background: var(--c-surface-2); color: var(--c-text); }

.link-txt { flex: 1; min-width: 0; }
.link-txt b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.022em; }
.link-txt small { display: block; overflow: hidden; color: var(--c-text-2); font-size: 14px; letter-spacing: -.016em; text-overflow: ellipsis; white-space: nowrap; }

.link-go {
  flex: none;
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-surface-2);
  transition: background-color .4s var(--ease), transform .5s var(--ease-out);
}
.link-go::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 12px;
  background: var(--c-text);
  -webkit-mask: var(--chev) center / contain no-repeat;
  mask: var(--chev) center / contain no-repeat;
}
.link-card:hover .link-go { background: var(--brand); transform: translateX(4px); }
.link-card:hover .link-go::after { background: var(--brand-ink, #fff); }

/* ==========================================================================
   À propos
   ========================================================================== */
.about { padding: clamp(60px, 8vw, 110px) 0 clamp(100px, 12vw, 160px); }
.manifesto-text {
  font-family: var(--f-display);
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.028em;
}
.js .manifesto-text .hw { color: var(--c-faint); transition: color .5s var(--ease); }
.js .manifesto-text .hw.lit { color: var(--c-text); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(64px, 9vw, 112px);
}
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 22px;
  border-radius: 22px;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.js .fact { transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s), transform .6s var(--ease-out), box-shadow .4s var(--ease); }
.fact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 20px var(--brand);
}
.fact:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent); }
.fact b { display: block; font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.fact > span { display: block; margin-top: 8px; color: var(--c-text-2); font-size: 15px; line-height: 1.4; }
.about-text { display: grid; gap: 22px; color: var(--c-text-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.about-text strong, .about-quote strong { color: var(--c-text); font-weight: 600; }

.about-quote { margin-top: clamp(72px, 10vw, 128px); text-align: center; }
.about-quote blockquote {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.about-quote p { max-width: 36em; margin: 24px auto 0; color: var(--c-text-2); font-size: clamp(17px, 1.5vw, 19px); }
.about-quote .about-sign { margin-top: 18px; font-family: var(--f-display); font-size: clamp(20px, 2vw, 24px); }

/* ==========================================================================
   Réseaux : TikTok, YouTube, Twitch
   ========================================================================== */
.social { padding: clamp(100px, 12vw, 160px) 0; }
.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.social-text { max-width: 26em; margin-top: 20px; color: var(--c-text-2); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.38; }
.social-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

.embed {
  --brand: var(--c-link);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.embed[data-embed="tiktok"] { --brand: #fe2c55; }
.embed[data-embed="youtube"] { --brand: #ff0033; }
.embed[data-embed="twitch"] { --brand: #9146ff; }
.embed-video { aspect-ratio: 16 / 9; }
.embed-target { position: absolute; inset: 0; }
.embed-target iframe,
.embed-target > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* TikTok : dernière vidéo en grand + profil */
.tt-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.tt-date { margin-top: 18px; color: var(--c-text-3); font-size: 15px; }
.tt-caption {
  max-width: 30em;
  margin-top: 14px;
  padding: 18px 20px;
  border-left: 3px solid #fe2c55;
  border-radius: 4px 18px 18px 4px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.45;
}
.tt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tt-tags li { padding: 5px 11px; border-radius: 99px; background: rgba(37, 244, 238, .08); color: #7ff9f5; font-size: 13px; font-weight: 600; }
.tt-stats { display: flex; gap: 36px; margin-top: 26px; }
.tt-stats li { display: grid; }
.tt-stats b { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.tt-stats span { margin-top: 4px; color: var(--c-text-2); font-size: 14px; }

.tt-stage { position: relative; display: grid; place-items: center; }
.tt-stage::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, rgba(37, 244, 238, .35), transparent 60%), radial-gradient(circle at 70% 60%, rgba(254, 44, 85, .4), transparent 60%);
  filter: blur(60px);
}
.tt-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  background: #000;
  box-shadow: -10px -8px 0 -2px rgba(37, 244, 238, .55), 10px 8px 0 -2px rgba(254, 44, 85, .6), 0 40px 100px -30px rgba(0, 0, 0, .9);
  transition: transform .7s var(--ease-out), box-shadow .5s var(--ease);
}
.tt-frame:hover { transform: rotate(-1.5deg) scale(1.02); box-shadow: -14px -10px 0 -2px rgba(37, 244, 238, .7), 14px 10px 0 -2px rgba(254, 44, 85, .75), 0 40px 100px -30px rgba(0, 0, 0, .9); }
.tt-frame.is-loaded:hover { transform: none; }
.tt-facade { padding: 0; }
.tt-facade::after { display: none; }
.tt-facade::before {
  inset: 0;
  z-index: -1;
  width: auto;
  aspect-ratio: auto;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 28%, transparent 58%, rgba(0, 0, 0, .75));
  filter: none;
  opacity: 1;
  animation: none;
}
.tt-cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tt-frame:hover .tt-cover { transform: scale(1.04); }
.tt-play {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding: 0 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
  color: #fff;
  cursor: pointer;
  transition: transform .5s var(--spring), background-color .3s var(--ease);
}
.tt-play svg { width: 36px; height: 36px; }
.tt-play::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
  animation: ring 2.2s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes ring { to { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
.tt-play:hover { background: #fe2c55; transform: scale(1.1); }
.tt-note { position: relative; max-width: 300px; margin-top: 26px; color: var(--c-text-3); font-size: 12px; line-height: 1.35; text-align: center; }
.tt-frame.is-loaded + .tt-note { visibility: hidden; }

.tt-more { margin-top: clamp(64px, 8vw, 100px); }
.tt-more-title { margin-bottom: 16px; color: var(--c-text-2); font-family: var(--f-display); font-size: 19px; font-weight: 600; text-align: center; }
.tt-profile { max-width: 780px; margin-inline: auto; }
.tt-profile:not(.is-loaded) { min-height: 320px; }
.tt-profile.is-loaded { background: #fff; }
.tt-profile .embed-target { position: relative; }
.tt-profile .embed-target > blockquote { width: 100%; margin: 0 !important; }
.tt-profile .embed-target iframe { position: static; display: block; }

.embed-facade {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
  text-align: center;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}
.embed-facade::before,
.embed-facade::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
  filter: blur(80px);
  opacity: .22;
  animation: drift 14s ease-in-out infinite alternate;
}
.embed-facade::before { left: -10%; top: -20%; }
.embed-facade::after { right: -15%; bottom: -25%; background: var(--c-accent); animation-delay: -7s; }
@keyframes drift { to { transform: translate(18%, 14%) scale(1.15); } }
.embed.is-loaded .embed-facade { opacity: 0; visibility: hidden; pointer-events: none; }

.facade-ico {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 20px;
  color: #fff;
  animation: bob 4s ease-in-out infinite;
}
.facade-ico svg { width: 34px; height: 34px; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.facade-title { font-family: var(--f-display); font-size: clamp(21px, 2vw, 28px); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; }
.facade-note { max-width: 24em; margin: 8px 0 22px; color: var(--c-text-2); font-size: 14px; }

.embed-caption { margin-top: 18px; color: var(--c-text-3); font-size: 14px; text-align: center; }

.twitch-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-text-3); }
.live-badge[data-live="online"] { background: rgba(255, 55, 95, .14); box-shadow: inset 0 0 0 1px rgba(255, 55, 95, .5); color: var(--c-red); }
.live-badge[data-live="online"] i { background: var(--c-red); animation: live 1.6s infinite; }
@keyframes live { from { box-shadow: 0 0 0 0 rgba(255, 55, 95, .6); } to { box-shadow: 0 0 0 8px rgba(255, 55, 95, 0); } }

.twitch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.twitch-chat {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.twitch-chat::before {
  content: "Le chat du live apparaîtra ici";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--c-text-3);
  font-size: 14px;
  text-align: center;
}
.twitch-chat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Discord
   ========================================================================== */
.discord { padding: clamp(100px, 12vw, 160px) 0 clamp(40px, 6vw, 80px); }
.discord-card {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  overflow: hidden;
  border-radius: 36px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(88, 101, 242, .35), transparent 60%), var(--c-surface);
  box-shadow: inset 0 0 0 1px rgba(88, 101, 242, .35);
  text-align: center;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.discord-card:hover::before { opacity: 1; }
.discord-server { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.discord-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--c-discord);
  box-shadow: 0 20px 60px -20px rgba(88, 101, 242, .9);
  animation: bob 5s ease-in-out infinite;
}
.discord-icon svg { width: 44px; height: 44px; color: #fff; }
.discord-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discord-label { color: #a5adff; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.discord-name { margin-top: 6px; font-family: var(--f-display); font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.discord-text { max-width: 30em; color: var(--c-text-2); font-size: clamp(17px, 1.5vw, 20px); }
.discord-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--c-text-2); font-size: 16px; }
.discord-stats[hidden] { display: none; }
.discord-stats span { display: inline-flex; align-items: center; gap: 8px; }
.discord-stats b { color: var(--c-text); font-variant-numeric: tabular-nums; }
.discord-stats i { width: 10px; height: 10px; border-radius: 50%; }
.dot-online { background: #23a55a; box-shadow: 0 0 10px #23a55a; }
.dot-members { background: var(--c-text-3); }

/* ==========================================================================
   Typographie géante
   ========================================================================== */
.bigtype { display: grid; gap: .1em; padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.bt-row {
  display: flex;
  gap: .28em;
  width: max-content;
  margin-left: -60vw;
  font-family: var(--f-display);
  font-size: clamp(56px, 10.5vw, 168px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  white-space: nowrap;
  will-change: transform;
}
.bt-blue, .bt-red, .bt-ghost { cursor: default; transition: color .45s var(--ease), text-shadow .45s var(--ease); }
.bt-blue, .bt-red { color: var(--c-text); }
.bt-blue:hover { color: var(--c-link); text-shadow: 0 0 40px rgba(41, 151, 255, .6); }
.bt-red:hover { color: var(--c-red); text-shadow: 0 0 40px rgba(255, 55, 95, .6); }
.bt-ghost { color: var(--c-ghost); }
.bt-ghost:hover { color: var(--c-violet); text-shadow: 0 0 40px rgba(191, 90, 242, .5); }
.bt-sep { color: var(--c-ghost); }

/* ==========================================================================
   Don't Tap Red
   ========================================================================== */
.game { padding: clamp(60px, 8vw, 110px) 0 clamp(60px, 8vw, 100px); }
.game-intro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.game-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 26px; }
.game-badge img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 40px -14px rgba(255, 55, 95, .7); }
.game-badge b { display: block; font-size: 17px; font-weight: 600; }
.game-badge small { display: block; color: var(--c-text-2); font-size: 14px; }
.game-title {
  font-family: var(--f-display);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}
.game-sub { max-width: 30em; margin-top: 24px; color: var(--c-text-2); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.42; }
.game-meta { margin-top: 20px; color: var(--c-text-3); font-size: 14px; }

.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.download .store-row { justify-content: center; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
  padding: 9px 20px 9px 16px;
  border-radius: 14px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease), transform .5s var(--ease-out);
}
.store-btn:hover { background: #0d0f14; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 12px 40px -14px rgba(41, 151, 255, .6); }
.store-btn svg { flex: none; width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 11px; line-height: 1.1; opacity: .85; }
.store-btn b { display: block; font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 214, 10, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .4);
  color: #ffd60a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.release-pill i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ffd60a; box-shadow: 0 0 10px #ffd60a; animation: blink 2.4s ease-in-out infinite; }
.release-pill-lg { margin: 22px 0 0; padding: 9px 18px; font-size: 16px; }
.store-btn-lg { min-width: 210px; padding: 12px 24px 12px 20px; border-radius: 16px; }
.store-btn-lg svg { width: 30px; height: 30px; }
.store-btn-lg b { font-size: 22px; }

/* Téléphone */
.phone {
  position: relative;
  aspect-ratio: 9 / 17.3;
  padding: 11px;
  border-radius: 50px;
  background: #0b0f1a;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 0 0 6px #05070d, 0 40px 120px -40px rgba(0, 0, 0, .9);
  will-change: transform;
}
.phone::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 3.2%;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}
.phone-screen { position: absolute; inset: 11px; overflow: hidden; border-radius: 40px; background: #0b0c12; }
.phone-screen img {
  position: absolute;
  inset: 6.5% 0 0;
  width: 100%;
  height: 93.5%;
  object-fit: cover;
  object-position: 50% 0;
}

.game-home { display: grid; justify-items: center; gap: 18px; }
.game-home .phone {
  width: min(84%, 330px);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-3deg);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 0 0 6px #05070d, 0 40px 120px -30px rgba(41, 151, 255, .45), 0 30px 100px -40px rgba(255, 55, 95, .55);
}
.game-home figcaption { color: var(--c-text-3); font-size: 14px; }

/* Objectif et mini-jeu */
.goal {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(100px, 12vw, 160px);
}
.goal-title { font-family: var(--f-display); font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.goal-rules { display: grid; gap: 14px; margin-top: 28px; }
.goal-rules li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border-radius: 20px;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-text-2);
}
.goal-rules img { flex: none; width: 56px; height: 56px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.goal-rules li:first-child img { animation: bob 3s ease-in-out infinite; }
.goal-rules li:last-child img { animation: shake-soft 4s ease-in-out infinite; }
@keyframes shake-soft { 0%, 84%, 100% { transform: none; } 88% { transform: rotate(-8deg); } 92% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
.goal-rules b { font-weight: 700; }
.goal-hint { margin-top: 22px; color: var(--c-text-3); }

.mg {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: radial-gradient(90% 70% at 15% 0%, rgba(41, 151, 255, .14), transparent 60%), radial-gradient(80% 70% at 100% 100%, rgba(255, 55, 95, .14), transparent 60%), #0b0f1d;
  box-shadow: inset 0 0 0 1px var(--c-line);
  user-select: none;
  -webkit-user-select: none;
}
.mg-hud {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(16, 23, 42, .85);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mg-hud span { display: grid; justify-items: center; gap: 2px; }
.mg-hud b { color: var(--c-text); font-family: var(--f-display); font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mg-best { color: #ffd60a !important; }
.mg-arena {
  position: relative;
  height: clamp(320px, 38vw, 440px);
  margin: 0 14px 14px;
  border-radius: 18px;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 40px 40px;
}
.mg.is-shake .mg-arena { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }
.mg-cube {
  position: absolute;
  width: var(--s, 72px);
  height: var(--s, 72px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  animation: cube-in .35s var(--spring) both;
  -webkit-tap-highlight-color: transparent;
}
.mg-cube img { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.mg-cube.is-blue img { filter: drop-shadow(0 0 18px rgba(41, 151, 255, .55)); }
.mg-cube.is-red img { filter: drop-shadow(0 0 18px rgba(255, 55, 95, .55)); }
.mg-cube.is-gone { animation: cube-out .25s var(--ease) forwards; pointer-events: none; }
.mg-cube.is-pop { animation: cube-pop .3s var(--ease-out) forwards; pointer-events: none; }
.mg-cube.is-hit { animation: cube-hit .5s var(--ease) forwards; pointer-events: none; }
@keyframes cube-in { from { opacity: 0; transform: scale(.3) rotate(-12deg); } }
@keyframes cube-out { to { opacity: 0; transform: scale(.5); } }
@keyframes cube-pop { to { opacity: 0; transform: scale(1.5); filter: brightness(1.8); } }
@keyframes cube-hit { 30% { transform: scale(1.3) rotate(10deg); } to { transform: scale(1.15); } }
.mg-plus {
  position: absolute;
  z-index: 3;
  color: #30d158;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  animation: plus 0.7s var(--ease-out) forwards;
}
@keyframes plus { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-46px); } }
.mg-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(5, 8, 18, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
  transition: opacity .4s var(--ease), visibility 0s;
}
.mg.is-playing .mg-overlay { opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.mg-title { font-family: var(--f-display); font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.mg-text { max-width: 22em; margin-bottom: 8px; color: var(--c-text-2); }
.mg-store[hidden] { display: none; }

/* Modes : texte qui défile, téléphone collant */
.modes { padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.modes .section-head { margin-bottom: 0; }
.scrolly {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
}
.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82vh;
  opacity: .16;
  transition: opacity .6s var(--ease);
}
.step > * { transition: translate .9s var(--ease-out); }
.step:not(.is-active) > * { translate: 0 10px; }
.step.is-active { opacity: 1; }
.step:last-child { min-height: 72vh; }
.step-kicker { display: flex; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.022em; }
.step-kicker span { color: var(--c-link); font-variant-numeric: tabular-nums; }
.step h3 {
  max-width: 13em;
  margin: 14px 0 18px;
  font-family: var(--f-display);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.step p { max-width: 27em; color: var(--c-text-2); font-size: clamp(17px, 1.4vw, 19px); }
.step p strong { color: var(--c-text); font-weight: 600; }

.scrolly-visual {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  padding-top: var(--nav-h);
}
.phone-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glow, var(--c-link));
  filter: blur(90px);
  opacity: .34;
  transition: background-color 1s var(--ease);
}
.scrolly-visual .phone { height: min(calc(100svh - var(--nav-h) - 64px), 740px); transform-origin: 50% 100%; }
.scrolly-visual .screen { opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease-out); }
.scrolly-visual .screen.is-active { opacity: 1; transform: none; }

/* Progression : grille de cartes */
.progress { padding: clamp(100px, 12vw, 160px) 0; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.js .tile { transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s), box-shadow .4s var(--ease); }
.tile:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent); }
.tile:hover::before { opacity: 1; }
.tile::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -35%;
  z-index: -1;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
  filter: blur(110px);
  opacity: .2;
  transform: translateX(-50%);
}
.tile-copy { padding: clamp(28px, 3.4vw, 40px) clamp(24px, 3.4vw, 40px) 0; }
.tile-kicker { color: var(--brand); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tile h3 { margin-top: 10px; font-family: var(--f-display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.tile-copy > p { max-width: 30em; margin-top: 12px; color: var(--c-text-2); }
.tile-visual { flex: 1; display: flex; align-items: flex-end; justify-content: center; min-height: 0; padding: 32px clamp(24px, 3.4vw, 40px) 0; }
.tile-visual img {
  width: min(62%, 300px);
  aspect-ratio: 620 / 760;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
  translate: 0 24px;
  transition: translate .9s var(--ease-out);
}
.tile:hover .tile-visual img { translate: 0 0; }

.titles { flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding-bottom: 40px; }
.title-chip {
  padding: 12px 22px;
  border-radius: 14px;
  font-family: var(--f-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  letter-spacing: .04em;
  animation: chip-float 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.2s);
}
@keyframes chip-float { 50% { transform: translateY(-8px); } }
.title-chip:nth-child(odd) { margin-right: 22%; }
.title-chip:nth-child(even) { margin-left: 22%; }
.t-gold { background: linear-gradient(135deg, #ffd60a, #ff9f0a); color: #3a2500; box-shadow: 0 10px 40px -12px rgba(255, 190, 10, .8); }
.t-purple { background: rgba(191, 90, 242, .16); box-shadow: inset 0 0 0 1.5px #bf5af2, 0 10px 40px -14px rgba(191, 90, 242, .8); color: #e3b8ff; }
.t-blue { background: rgba(41, 151, 255, .14); box-shadow: inset 0 0 0 1.5px #2997ff, 0 10px 40px -14px rgba(41, 151, 255, .8); color: #9fd0ff; }
.t-rainbow {
  background: linear-gradient(90deg, #ff375f, #ff9f0a, #ffd60a, #30d158, #2997ff, #bf5af2, #ff375f);
  background-size: 300% 100%;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  box-shadow: 0 10px 40px -10px rgba(191, 90, 242, .7);
  animation: chip-float 5s ease-in-out infinite, rainbow 6s linear infinite;
}
@keyframes rainbow { to { background-position: 300% 0; } }

.tile-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; min-height: 0; }
.tile-wide.is-flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.tile-wide.is-flip .tile-visual { order: -1; }
.tile-wide .tile-copy { padding-bottom: clamp(28px, 3.4vw, 40px); }
.tile-wide .tile-visual { align-self: stretch; padding-top: clamp(28px, 3.4vw, 40px); }
.tile-wide .tile-visual img { width: min(90%, 300px); }
.rewards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.reward-col { padding: 18px; border-radius: 18px; background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line); }
.reward-head { margin-bottom: 12px; color: var(--c-text-3); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.reward-col ul { display: grid; gap: 8px; }
.reward-col li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.rank { flex: none; min-width: 56px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-weight: 700; text-align: center; }
.r1 { background: linear-gradient(135deg, #ffd60a, #ff9f0a); color: #3a2500; }
.r2 { background: #d1d5db; color: #1f2937; }
.r3 { background: #c97a3d; color: #2a1405; }
.reward-month { color: var(--c-text-2); font-size: 15px; line-height: 1.5; }
.reward-month b { color: var(--c-text); }

/* ==========================================================================
   Chiffres
   ========================================================================== */
.stats { padding: clamp(100px, 12vw, 160px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 6px clamp(16px, 2.4vw, 32px) 0; border-left: 1px solid var(--c-line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num {
  margin-bottom: 14px;
  font-family: var(--f-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color .4s var(--ease), translate .6s var(--ease-out), text-shadow .4s var(--ease);
}
.stat:hover .stat-num { color: var(--c-link); translate: 0 -4px; text-shadow: 0 0 40px rgba(41, 151, 255, .45); }
.stat-label { max-width: 14em; color: var(--c-text-2); }

/* ==========================================================================
   Téléchargement
   ========================================================================== */
.download { padding: clamp(100px, 12vw, 160px) 0; text-align: center; }
.download-cubes { display: flex; justify-content: center; gap: 18px; margin-bottom: 28px; }
.download-cubes img { width: clamp(72px, 8vw, 96px); height: auto; }
.download-cubes img:first-child { animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(41, 151, 255, .6)); }
.download-cubes img:last-child { animation: bob 3.2s ease-in-out infinite -1.6s; filter: drop-shadow(0 0 30px rgba(255, 55, 95, .6)); }
.download-sub { margin-top: 18px; color: var(--c-text-2); font-size: clamp(17px, 1.6vw, 21px); }
.download-support { margin-top: 30px; color: var(--c-text-3); font-size: 15px; }
.download-support .link-arrow { font-size: 15px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.cta {
  position: relative;
  min-height: min(940px, 100svh);
  padding: clamp(100px, 13vw, 170px) 0 0;
  overflow: hidden;
  background: var(--c-bg-alt);
  text-align: center;
}
.cta-inner { position: relative; z-index: 1; }
.cta .kicker { justify-content: center; }
.cta-title { font-family: var(--f-display); font-size: clamp(44px, 8vw, 100px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.cta-sub { max-width: 28em; margin: 22px auto 0; color: var(--c-text-2); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 34px; }

.cta-partner { margin-top: 26px; color: var(--c-text-3); font-size: 15px; }
.cta-partner .link-arrow { font-size: 15px; }

/* ==========================================================================
   Me soutenir
   ========================================================================== */
.support { padding: clamp(100px, 12vw, 160px) 0; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.support-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3vw, 40px);
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.support-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 20%, transparent), transparent 65%);
  opacity: .55;
  transition: opacity .5s var(--ease);
}
.support-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent); }
.support-card:hover::before { opacity: 1; }
.support-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border-radius: 16px;
  color: #fff;
}
.support-ico svg { width: 27px; height: 27px; }
.ico-heart { background: linear-gradient(135deg, #ff6b8a, #ff375f); }
.support-card h3, .format-card h3, .proof-card h3 {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.support-card p, .format-card p, .proof-card p { margin-top: 10px; color: var(--c-text-2); }
.support-card p strong { color: var(--c-text); font-weight: 600; }
.support-card > p:not(.support-note) { margin-bottom: 26px; }
.support-card .btn { margin-top: auto; }
.support-note { color: var(--c-text-3) !important; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
/* La mention passe au-dessus du bouton : les 3 boutons restent alignés en bas des cartes */
.support-card .support-note { margin-top: auto; }
.support-card .support-note + .btn { margin-top: 10px; }

.support-free {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: 24px 48px;
  margin-top: 20px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.support-free h3 { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.support-free p { margin-top: 10px; color: var(--c-text-2); }
.free-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.free-actions a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 13px;
  background: var(--c-surface-2);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .4s var(--ease), transform .5s var(--spring);
}
.free-actions svg { width: 18px; height: 18px; flex: none; }
.free-actions a:hover { background: var(--brand); color: var(--brand-ink, #fff); box-shadow: 0 10px 28px -10px var(--brand); transform: translateY(-3px); }

/* ==========================================================================
   Page Partenariats
   ========================================================================== */
.page-hero {
  display: grid;
  align-items: start;
  min-height: min(940px, 100svh);
  padding: calc(var(--nav-h) + clamp(40px, 9vh, 96px)) 0 clamp(220px, 32vh, 300px);
  text-align: center;
}
.page-hero-inner { display: flex; flex-direction: column; align-items: center; }
.page-title {
  margin-top: 22px;
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.page-sub { max-width: 34em; margin-top: 24px; color: var(--c-text-2); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.42; }

.kpis-section, .proof, .formats { padding: clamp(100px, 12vw, 150px) 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 24px;
  border-radius: 22px;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.js .kpi { transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s), transform .6s var(--ease-out), box-shadow .4s var(--ease); }
.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 20px var(--brand);
}
.kpi:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent); }
.kpi-net { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text-3); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kpi-net svg { width: 16px; height: 16px; color: var(--brand); }
.kpi b {
  display: block;
  margin-top: 18px;
  font-family: var(--f-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.kpi-label { display: block; margin-top: 10px; color: var(--c-text-2); font-size: 15px; line-height: 1.4; }
.kpi-note { margin-top: 22px; color: var(--c-text-3); font-size: 14px; }

.proof-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.proof-card, .format-card {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 3vw, 40px);
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.proof-card { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.proof-card::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -40%;
  z-index: -1;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
  filter: blur(90px);
  opacity: .22;
}
.proof-card.is-main { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%), var(--c-surface); }
.proof-card .proof-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 11px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.format-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.js .format-card { transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s), transform .6s var(--ease-out), box-shadow .4s var(--ease); }
.format-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent); }
.format-card .support-ico { margin-bottom: 22px; }

/* ==========================================================================
   Page Setup
   ========================================================================== */
.kpi-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-grid.is-4 .kpi b { font-size: clamp(36px, 3.8vw, 54px); white-space: nowrap; }
.parts { padding: clamp(100px, 12vw, 150px) 0; }
.parts-group {
  margin: clamp(48px, 6vw, 72px) 0 18px;
  color: var(--c-text-2);
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
}
.parts .section-head + .parts-group { margin-top: 0; }
.parts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.parts-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.part {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.part::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 0%) var(--my, 0%), color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%);
  opacity: .6;
  transition: opacity .5s var(--ease);
}
.part:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent); }
.part:hover::before { opacity: 1; }
.part-ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand);
  transition: transform .6s var(--spring);
}
.part:hover .part-ico { transform: rotate(-8deg) scale(1.08); }
.part-ico svg { width: 26px; height: 26px; }
.part-kind { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.part h4 { margin-top: 6px; font-family: var(--f-display); font-size: 21px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.part-spec { margin: 6px 0 18px; color: var(--c-text-2); font-size: 15px; }
.part .link-arrow { margin-top: auto; font-size: 15px; }
.part-list { grid-column: 1 / -1; }
.part-list ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 12px; }
.part-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--c-surface-2);
  color: var(--c-text);
  text-decoration: none;
  transition: background-color .3s var(--ease);
}
.part-list a:hover { background: color-mix(in srgb, var(--brand) 20%, var(--c-surface-2)); }
.part-list b { font-size: 15px; font-weight: 600; }
.part-list span { color: var(--c-text-2); font-size: 14px; }
.cta.cta-compact { min-height: 0; padding-bottom: clamp(220px, 28vw, 320px); }

@media (max-width: 1068px) {
  .kpi-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parts-grid, .parts-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .part-list ul { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .support-free { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .kpi-grid, .kpi-grid.is-4, .format-grid, .parts-grid, .parts-grid.is-3 { grid-template-columns: minmax(0, 1fr); }
  .free-actions a { flex: 1 1 100%; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { padding: 40px 0 28px; border-top: 1px solid var(--c-line); background: var(--c-bg-alt); color: var(--c-text-2); font-size: 13px; line-height: 1.4; letter-spacing: -.01em; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--c-line); }
.footer-tagline { margin-right: auto; color: var(--c-text-3); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-socials a { width: 42px; height: 42px; border-radius: 12px; }
.footer-socials svg { width: 19px; height: 19px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 28px 0; }
.footer h4 { margin-bottom: 12px; color: var(--c-text); font-size: 13px; font-weight: 600; }
.footer-cols ul { display: grid; gap: 9px; }
.footer a { color: var(--c-text-2); text-decoration: none; }
.footer-cols a:hover { color: var(--c-text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.footer-note { color: var(--c-text-3); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1068px) {
  .nav-links a { padding: 8px 10px; }
  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .twitch-layout { grid-template-columns: minmax(0, 1fr); }
  .twitch-chat { display: none; }
  .tile-wide, .tile-wide.is-flip { grid-template-columns: minmax(0, 1fr); }
  .tile-wide.is-flip .tile-visual { order: 0; }
}

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

@media (max-width: 900px) {
  .about-grid, .game-intro, .goal, .social-grid, .tt-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
}

@media (max-width: 833px) {
  .scrolly { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .scrolly-visual {
    order: -1;
    z-index: 2;
    height: auto;
    padding: calc(var(--nav-h) + 6px) 0 18px;
    background: var(--c-bg);
  }
  .scrolly-visual .phone { height: min(40svh, 380px); }
  .phone { border-radius: 34px; padding: 7px; }
  .phone::after { top: 13px; }
  .phone-screen { inset: 7px; border-radius: 28px; }
  .step { min-height: 56svh; }
  .step:last-child { min-height: 50svh; }
}

@media (max-width: 734px) {
  .hero { height: 220vh; }
  .nav-bar { height: 54px; padding: 0 7px 0 9px; }
  .btn-discord span { display: none; }
  .btn-discord { padding: 0 10px; }
  .live-chip { padding: 0 10px; }
  .brand-name { font-size: 17px; }
  .dock { gap: 4px; padding: 6px; border-radius: 18px; }
  .dock-item { width: 44px; height: 44px; border-radius: 12px; }
  .dock-item::after { display: none; }

  .links-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .embed-facade { padding: 24px; }
  .tt-facade { padding: 0; }
  .tt-frame { width: min(100%, 320px); }
  .rewards { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { row-gap: 44px; }
  .stat { padding-left: 16px; }
  .store-btn-lg { min-width: 0; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-tagline { width: 100%; }
}

@media (max-width: 734px) {
  .live-chip:not([data-live="online"]) span { display: none; }
}

@media (max-width: 380px) {
  .live-chip span { display: none; }
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hero { height: auto; }
  .hero-sticky { position: relative; height: auto; min-height: 100svh; padding-bottom: 140px; }
  .hero-statement { position: relative; inset: auto; padding: 48px var(--gutter) 0; opacity: 1; }
  .st-word { opacity: 1; transform: none; filter: none; }
}
