/* =========================================================
   Lano Studio — feuille de style
   Palette : nuit (#081530), abysse (#050D1F), encre (#12244A),
             or (#E6BC62), or pâle (#F5DC9C), parchemin (#ECE6D8)
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --nuit: #081530;
  --abysse: #050d1f;
  --encre: #12244a;
  --encre-2: #1a2f5c;
  --or: #e6bc62;
  --or-pale: #f5dc9c;
  --or-sombre: #a9802f;
  --texte: #ece6d8;
  --brume: #a3b1cc;
  --trait: rgba(230, 188, 98, 0.22);
  --violet: #a985ff;
  --vert: #6fe39a;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  background: var(--abysse);
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(230, 188, 98, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(60, 100, 200, 0.14), transparent 60%),
    linear-gradient(180deg, var(--nuit) 0%, var(--abysse) 100%);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--or); color: var(--abysse); font-weight: 800;
  transition: top 0.2s;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

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

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s, background-color 0.3s;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-gold {
  color: #1a1204;
  background: linear-gradient(135deg, var(--or-pale), var(--or) 55%, #d6a54a);
  box-shadow: 0 10px 30px -10px rgba(230, 188, 98, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(230, 188, 98, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost {
  color: var(--texte);
  border: 1px solid rgba(236, 230, 216, 0.25);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--or); background: rgba(230, 188, 98, 0.08); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 13, 31, 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--trait);
}
.nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px var(--trait); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.nav-links a:not(.btn) { position: relative; color: #d6dcea; transition: color 0.25s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--or); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--or-pale); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--trait); border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); color: var(--texte); cursor: pointer; place-items: center;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.6s ease; }
.is-ready .sky { opacity: 1; }
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; right: -20vmax; top: -18vmax;
  background: radial-gradient(circle, rgba(230, 188, 98, 0.16), rgba(230, 188, 98, 0.04) 40%, transparent 65%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--nuit));
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(30px, 5vw, 70px); align-items: center; }

.hero-title {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(76px, 13.5vw, 196px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin-bottom: 34px;
}
.word { display: block; white-space: nowrap; }
.word-2 { padding-left: 0.42em; font-style: normal; font-weight: 340; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; }
.l {
  display: inline-block;
  background: linear-gradient(100deg, #b98a35 0%, var(--or) 22%, #fff3cf 34%, var(--or-pale) 42%, var(--or) 58%, #b98a35 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
.word-2 .l {
  background: linear-gradient(100deg, #cfd6e6 0%, #ffffff 40%, #cfd6e6 60%, #93a3c4 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
}
/* Entrée des lettres (déclenchée par .is-ready sur <html>) */
.js .l { opacity: 0; transform: translateY(0.45em) rotate(6deg); filter: blur(8px); }
.is-ready .l {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + 150ms);
  animation: sheen 7s ease-in-out calc(var(--i, 0) * 40ms + 1.6s) infinite;
}
@keyframes sheen {
  0%, 55% { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}

.lead { max-width: 34ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #c9d1e3; }
.js .lead, .js .hero .actions { opacity: 0; transform: translateY(14px); }
.is-ready .lead, .is-ready .hero .actions { opacity: 1; transform: none; transition: opacity 1s var(--ease) 0.9s, transform 1s var(--ease) 0.9s; }
.is-ready .hero .actions { transition-delay: 1.05s; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Médaillon */
.medallion {
  position: relative; justify-self: center;
  width: min(100%, 460px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.js .medallion { opacity: 0; transform: scale(0.9) rotate(-6deg); }
.is-ready .medallion { opacity: 1; transform: none; transition: opacity 1.4s var(--ease) 0.4s, transform 1.6s var(--ease) 0.4s; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring circle { fill: none; stroke: url(#gold); transform-origin: 200px 200px; }
.ring-a { stroke-width: 1.2; stroke-dasharray: 2 9; opacity: 0.8; animation: spin 60s linear infinite; }
.ring-b { stroke-width: 1.6; stroke-dasharray: 1080; stroke-dashoffset: 1080; opacity: 0.9; }
.is-ready .ring-b { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease) 0.6s; }
.orbit { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.star { position: absolute; fill: var(--or-pale); filter: drop-shadow(0 0 6px rgba(245, 220, 156, 0.9)); }
.s1 { width: 26px; top: 1%; left: 50%; translate: -50% 0; animation: twinkle 3.2s ease-in-out infinite; }
.s2 { width: 16px; bottom: 15%; left: 6%; animation: twinkle 2.6s ease-in-out 0.8s infinite; }
.s3 { width: 12px; bottom: 9%; right: 13%; animation: twinkle 3.8s ease-in-out 1.4s infinite; }
.medallion-img {
  position: relative; width: 74%; height: auto; border-radius: 22%;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 220, 156, 0.25), 0 0 60px -10px rgba(230, 188, 98, 0.35);
  animation: float 7s ease-in-out infinite;
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes twinkle { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: 0.35; scale: 0.6; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  width: 28px; height: 46px; border-radius: 16px; border: 1px solid rgba(236, 230, 216, 0.35);
  display: grid; justify-items: center; padding-top: 8px;
}
.scroll-dot { width: 4px; height: 8px; border-radius: 4px; background: var(--or); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections communes ---------- */
section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2, .vision h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  margin-bottom: 18px;
  color: #f7f1e3;
}
.section-head p { color: var(--brume); font-size: 18px; max-width: 52ch; }

/* ---------- Jeux ---------- */
.game {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
  --accent: var(--or);
}
.game + .game { margin-top: clamp(80px, 10vw, 130px); }
.game-brainrot { grid-template-columns: 0.8fr 1.2fr; --accent: var(--vert); }
.game-brainrot .game-visual { order: 2; }
.game-lanoria { --accent: var(--violet); }

.game-visual {
  position: relative; border-radius: 28px; overflow: hidden;
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.game-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.game-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06) translate(var(--px, 0), var(--py, 0));
  transition: transform 0.8s var(--ease);
}
.game-visual.is-tilting { transition: transform 0.12s linear, box-shadow 0.6s var(--ease); }
.game-visual.is-tilting img { transition: transform 0.2s linear; }
.game-visual:hover { box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 80px -30px var(--accent); }
.glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.22), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
  mix-blend-mode: soft-light;
}
.game-visual:hover .glare { opacity: 1; }

/* Révélation : rideau qui s'ouvre */
.js .reveal { clip-path: inset(0 0 100% 0 round 28px); }
.js .reveal.is-in { clip-path: inset(0 0 0 0 round 28px); transition: clip-path 1.3s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.js .reveal img { scale: 1.25; }
.js .reveal.is-in img { scale: 1; transition: scale 1.8s var(--ease), transform 0.8s var(--ease); }

.game-id { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.game-icon {
  width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 30px -12px rgba(0, 0, 0, 0.8);
}
.chip {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  margin-bottom: 6px;
}
.game h3 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(36px, 4.4vw, 54px); line-height: 1; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.game-pitch { color: #cdd4e4; font-size: 17.5px; max-width: 46ch; }

.facts { margin: 26px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.facts div {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}
.facts dt { color: var(--brume); }
.facts dd { color: #f2ecdf; font-weight: 600; }

.game-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.link-out {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px;
  color: var(--or-pale); padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.link-out .arrow { transition: transform 0.35s var(--ease); }
.link-out:hover { border-bottom-color: var(--or); }
.link-out:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Savoir-faire ---------- */
.craft {
  background:
    linear-gradient(180deg, transparent, rgba(18, 36, 74, 0.45) 30%, rgba(18, 36, 74, 0.45) 70%, transparent);
}
.craft-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.craft-head { position: sticky; top: 120px; margin-bottom: 0; }
.pillars { display: grid; gap: 0; }
.pillar {
  position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 22px;
  padding: 30px 0; border-top: 1px solid var(--trait);
}
.pillar:last-child { border-bottom: 1px solid var(--trait); }
.pillar::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--or-pale), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar-ico {
  grid-row: span 2; width: 52px; height: 52px; padding: 11px; border-radius: 14px;
  fill: none; stroke: var(--or-pale); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(230, 188, 98, 0.08); box-shadow: inset 0 0 0 1px var(--trait);
  transition: background-color 0.4s, transform 0.5s var(--ease);
}
.pillar:hover .pillar-ico { background: rgba(230, 188, 98, 0.16); transform: rotate(-6deg) scale(1.05); }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.2; margin-bottom: 8px; font-variation-settings: "opsz" 48, "SOFT" 50; }
.pillar p { color: var(--brume); max-width: 52ch; }

/* ---------- Méthode (frise) ---------- */
.timeline {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  counter-reset: etape;
  --progress: 0;
}
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 2px;
}
.timeline::before { background: rgba(255, 255, 255, 0.1); }
.timeline::after {
  background: linear-gradient(90deg, var(--or-sombre), var(--or-pale));
  transform: scaleX(var(--progress)); transform-origin: left;
  box-shadow: 0 0 14px rgba(230, 188, 98, 0.6);
}
.t-step { position: relative; padding-top: 44px; counter-increment: etape; }
.t-dot {
  position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; z-index: 1;
  background: var(--nuit); border: 2px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.5s, background-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease);
}
.t-step.is-lit .t-dot { border-color: var(--or-pale); background: var(--or); box-shadow: 0 0 0 6px rgba(230, 188, 98, 0.15), 0 0 24px rgba(230, 188, 98, 0.7); transform: scale(1.1); }
.t-step h3 {
  font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; margin-bottom: 10px;
  font-variation-settings: "opsz" 48, "SOFT" 50;
}
.t-step h3::before {
  content: counter(etape) ". "; color: var(--or);
}
.t-step p { color: var(--brume); font-size: 16px; }
.js .t-step h3, .js .t-step p { opacity: 0.35; transition: opacity 0.6s; }
.js .t-step.is-lit h3, .js .t-step.is-lit p { opacity: 1; }

/* ---------- Vision ---------- */
.vision { text-align: center; overflow: hidden; }
.vision::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1;
  background: radial-gradient(circle, rgba(169, 133, 255, 0.12), rgba(230, 188, 98, 0.06) 40%, transparent 65%);
}
.vision-in { max-width: 820px; }
.vision-text {
  font-family: var(--display); font-weight: 380;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; color: #e9e2d2;
  font-variation-settings: "opsz" 36, "SOFT" 100;
  margin: 10px auto 36px; max-width: 34ch;
}
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tools li {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #d8deeb;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03);
}

/* ---------- Communauté ---------- */
.portals { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.portal {
  position: relative; display: grid; gap: 10px; align-content: start;
  padding: clamp(28px, 4vw, 44px); border-radius: 28px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(26, 47, 92, 0.75), rgba(8, 21, 48, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s var(--ease), border-color 0.4s;
  --c: var(--or);
}
.portal-discord { --c: #8f9bff; }
.portal-roblox { --c: var(--or); }
.portal::before {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
  left: var(--mx, 80%); top: var(--my, 0%); translate: -50% -50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 65%);
  transition: left 0.25s linear, top 0.25s linear;
}
.portal:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.portal-ico {
  width: 54px; height: 54px; padding: 12px; border-radius: 16px; margin-bottom: 12px;
  fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.portal-title { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-variation-settings: "opsz" 96, "SOFT" 80, "WONK" 1; }
.portal-text { color: var(--brume); max-width: 40ch; }
.portal-cta { margin-top: 14px; font-weight: 700; color: var(--c); }

.mail-line { margin-top: 40px; color: var(--brume); text-align: center; font-size: 17px; }
.mail { color: var(--or-pale); font-weight: 700; border-bottom: 1px solid var(--trait); transition: border-color 0.3s; }
.mail:hover { border-bottom-color: var(--or); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--trait); padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); background: var(--abysse); }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 30px; align-items: center; font-size: 14px; color: #8e9bb6; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #c7cede; font-weight: 600; }
.footer-brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer-links { justify-self: end; display: flex; gap: 22px; }
.footer-links a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 4px; transition: color 0.25s, text-decoration-color 0.25s; }
.footer-links a:hover { color: var(--or-pale); text-decoration-color: var(--or); }
.footer-note { grid-column: 1 / -1; font-size: 13px; }

/* ---------- Pages légales ---------- */
.nav-static { position: sticky; background: rgba(5, 13, 31, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--trait); }
.legal { padding: clamp(60px, 9vw, 110px) 0 clamp(80px, 10vw, 120px); }
.legal-in { max-width: 760px; }
.legal h1 {
  font-family: var(--display); font-weight: 500; font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; margin-bottom: 14px;
}
.legal .updated { color: var(--brume); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 44px 0 12px; color: var(--or-pale); font-variation-settings: "opsz" 48, "SOFT" 50; }
.legal p, .legal li { color: #c3cbdc; margin-bottom: 12px; max-width: 68ch; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal a { color: var(--or-pale); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--texte); }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--pad); }
.lost h1 { font-family: var(--display); font-size: clamp(90px, 20vw, 220px); line-height: 0.9; font-weight: 500; color: var(--or); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.lost p { color: var(--brume); margin: 18px auto 30px; max-width: 36ch; font-size: 18px; }

/* ---------- Étincelles du curseur ---------- */
.spark {
  position: fixed; z-index: 60; pointer-events: none; width: 14px; height: 14px;
  fill: var(--or-pale); filter: drop-shadow(0 0 5px rgba(245, 220, 156, 0.9));
  animation: spark 0.9s var(--ease) forwards;
}
@keyframes spark {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 20px))) scale(0.2) rotate(120deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .medallion { width: min(62vw, 300px); order: -1; justify-self: start; }
  .hero { padding-top: 110px; }
  .game, .game-brainrot { grid-template-columns: 1fr; }
  .game-brainrot .game-visual { order: 0; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-head { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .timeline::before, .timeline::after { display: none; }
  .js .t-step h3, .js .t-step p { opacity: 1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: calc(72px + env(safe-area-inset-top, 0px));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--pad) 24px;
    background: rgba(5, 13, 31, 0.97); border-bottom: 1px solid var(--trait);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 18px; min-height: 50px; font-size: 16px; }
  .portals { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-title { font-size: 23vw; }
  .timeline { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 100px 1fr; }
  .game-visual { border-radius: 20px; }
  .js .reveal { clip-path: inset(0 0 100% 0 round 20px); }
  .js .reveal.is-in { clip-path: inset(0 0 0 0 round 20px); }
  .actions .btn { flex: 1 1 100%; }
}

/* Mouvement réduit : on coupe toutes les animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .l, .js .lead, .js .hero .actions, .js .medallion { opacity: 1; transform: none; filter: none; }
  .js .reveal { clip-path: none; }
  .js .reveal img { scale: 1; }
  .ring-b { stroke-dashoffset: 0; }
  .js .t-step h3, .js .t-step p { opacity: 1; }
  .sky { opacity: 1; }
}
