/* ============================================================
   WONDERGATE VR — shared design system
   Used by all multi-pages. Home (index.html) reste self-contained
   pour l'instant ; migration possible plus tard.
   ============================================================ */
:root {
  --night: #050509; --night-2: #07101C; --night-3: #0A1626;
  --cyan: #00F0FF; --ice: #BFEFFF; --aurora: #46FFA6;
  --violet: #7C5CFF; --magenta: #FF2BD6;
  --text: #DCEBF7; --muted: #8FA8BF; --line: rgba(127, 178, 255, 0.13);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--night); color: var(--text);
  font-family: 'Manrope', sans-serif; font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(0, 240, 255, 0.25); color: #fff; }
h1, h2, h3, .display { font-family: 'Bruno Ace SC', sans-serif; font-weight: 400; line-height: 1.25; }
.mono { font-family: 'JetBrains Mono', monospace; }
a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }

.kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: 18px;
}
.kicker::before { content: "// "; color: var(--violet); }
h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.04em; color: #EAF6FF; margin-bottom: 22px; }
h3 { color: #EAF6FF; }
.lead { font-size: 19px; color: var(--muted); max-width: 660px; }
p { color: var(--muted); }
strong, b { color: var(--ice); font-weight: 500; }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 500ms var(--ease), border-color 500ms var(--ease), backdrop-filter 500ms var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled { background: rgba(5, 5, 9, 0.78); backdrop-filter: blur(18px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; color: #EAF6FF; }
.brand svg { transition: transform 600ms var(--ease); }
.brand:hover svg { transform: translateY(-2px); }
.brand-name { font-family: 'Bruno Ace SC', sans-serif; font-size: 16px; letter-spacing: 0.14em; }
.brand-name span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  position: relative; transition: color 300ms var(--ease);
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: right;
  transition: transform 400ms var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ice); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
/* mobile hamburger (button injected by site.js) */
.nav-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; padding: 0; }
.nav-burger span { width: 18px; height: 2px; background: var(--ice); border-radius: 2px; transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(5,5,9,0.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); padding: 8px 24px 22px; transform: translateY(-14px); opacity: 0; pointer-events: none; transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .nav-links .lang-switch { display: inline-flex !important; margin: 16px 0 0; justify-content: center; }
}

/* ---------- LANGUAGE SWITCHER (home + SEO pages) ---------- */
.lang-switch { display: inline-flex; gap: 2px; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; margin-left: 6px; }
.lang-switch a { color: #5F7A94; padding: 4px 7px; border-radius: 6px; transition: color 250ms var(--ease), background 250ms var(--ease); }
.lang-switch a:hover { color: var(--ice); }
.lang-switch a.on { color: var(--night); background: var(--cyan); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 999px; color: var(--night);
  background: var(--cyan); border: 1px solid var(--cyan);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), background 350ms var(--ease);
  will-change: transform; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,240,255,.35), 0 12px 44px rgba(0, 240, 255, 0.28); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--ice); border-color: rgba(191, 239, 255, 0.3); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 8px 36px rgba(0, 240, 255, 0.12); }
.btn .arr { transition: transform 350ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- PAGE HERO (sub-pages, plus court que la Home) ---------- */
.page-hero { padding: 180px 0 90px; position: relative; overflow: hidden; }
.page-hero .veil { position: absolute; inset: 0; pointer-events: none; }
.page-hero .veil i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; display: block; will-change: transform;
}
.page-hero .veil i:nth-child(1) { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(0,240,255,.13), transparent 65%); top: -20vw; left: -12vw; animation: drift1 28s ease-in-out infinite alternate; }
.page-hero .veil i:nth-child(2) { width: 44vw; height: 44vw; background: radial-gradient(circle, rgba(124,92,255,.11), transparent 65%); top: 10%; right: -10vw; animation: drift2 34s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate3d(0,0,0) } to { transform: translate3d(5vw, 3vw, 0) } }
@keyframes drift2 { from { transform: translate3d(0,0,0) } to { transform: translate3d(-4vw, -4vw, 0) } }
.page-hero h1 { font-size: clamp(32px, 5.4vw, 58px); letter-spacing: 0.04em; color: #F2FAFF; max-width: 900px; position: relative; }
.page-hero h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 34px rgba(0, 240, 255, 0.45); }
.page-hero .lead { margin-top: 26px; font-size: clamp(17px, 2vw, 20px); position: relative; }
.page-hero .hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 40px; position: relative; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #5F7A94; margin-bottom: 26px; position: relative; }
.breadcrumb a { color: #5F7A94; transition: color 300ms var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--violet); margin: 0 10px; }

/* ---------- PROSE ---------- */
.prose p { font-size: 17px; margin-bottom: 22px; }
.prose h2 { margin-top: 14px; }
.prose h3 { font-size: 20px; letter-spacing: 0.04em; margin: 40px 0 14px; }
.prose strong { color: var(--ice); }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(0,240,255,0.3); transition: border-color 300ms var(--ease); }
.prose a:hover { border-bottom-color: var(--cyan); }

/* ---------- FEATURE / CARD GRID ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 50px; }
.card {
  position: relative; border-radius: 20px; padding: 34px 30px;
  background: var(--night-2); border: 1px solid var(--line);
  transition: transform 500ms var(--ease), border-color 500ms var(--ease), box-shadow 500ms var(--ease);
  overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent, var(--cyan)); opacity: 0.45; transition: opacity 500ms var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(191, 239, 255, 0.22); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.card:hover::before { opacity: 1; }
.card .tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.28em; color: var(--accent, var(--cyan)); text-transform: uppercase; }
.card h3 { font-size: 19px; margin: 14px 0 12px; letter-spacing: 0.04em; }
.card p { font-size: 15.5px; }
.card.a-aurora { --accent: var(--aurora); }
.card.a-violet { --accent: var(--violet); }
.card.a-cyan { --accent: var(--cyan); }
.card .rank { font-family: 'Bruno Ace SC', sans-serif; font-size: 26px; color: var(--accent, var(--cyan)); display: block; margin-bottom: 8px; }

/* ---------- CHECK LIST ---------- */
.check-list { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.check-list li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.check-list .ck {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  border: 1px solid rgba(70, 255, 166, 0.4); color: var(--aurora);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.check-list b { color: var(--ice); font-weight: 500; }

/* ---------- INFO PILLS ---------- */
.pill-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; position: relative; }
.pill {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em;
  color: var(--ice); background: rgba(191, 239, 255, 0.04); border: 1px solid var(--line);
  padding: 11px 20px; border-radius: 999px;
}
.pill b { color: var(--cyan); font-weight: 400; }

/* ---------- CTA BAND ---------- */
.cta-band { text-align: center; background: linear-gradient(180deg, var(--night), var(--night-3) 50%, var(--night)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { max-width: 720px; margin: 0 auto 18px; }
.cta-band .lead { margin: 0 auto 40px; }

/* ---------- RELATED / FOOTER NAV ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 44px; }
.related {
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; background: var(--night-2);
  transition: border-color 400ms var(--ease), transform 400ms var(--ease);
}
.related:hover { border-color: rgba(0,240,255,0.3); transform: translateY(-4px); }
.related .lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em; color: #5F7A94; text-transform: uppercase; }
.related h3 { font-size: 16px; margin: 10px 0 6px; letter-spacing: 0.03em; }
.related p { font-size: 14px; }

/* ---------- EXPLORE / GUIDE CARDS ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 50px; }
.guide { position: relative; display: block; min-height: 210px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; transition: transform 500ms var(--ease), border-color 500ms var(--ease); }
.guide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.guide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,9,.05), rgba(5,5,9,.88)); }
.guide:hover { transform: translateY(-5px); border-color: rgba(0,240,255,.35); }
.guide:hover img { transform: scale(1.06); }
.guide .cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px; z-index: 1; }
.guide .cap .l { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.guide .cap h3 { font-size: 18px; color: #EAF6FF; margin: 6px 0 0; letter-spacing: .03em; }

/* ---------- FULL-BLEED IMAGE BAND ---------- */
.fullband { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.fullband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fullband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,9,.5), rgba(5,5,9,.8)); }
.fullband .inner { position: relative; z-index: 1; padding: 40px 24px; max-width: 760px; }
.fullband .inner h2 { color: #F2FAFF; }
.fullband .inner h2 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 34px rgba(0,240,255,.45); }

/* ---------- BRAND BAND (gateway visual) ---------- */
.brand-band { text-align: center; padding: 96px 24px; border-top: 1px solid var(--line); }
.brand-band img { width: 220px; height: auto; margin: 0 auto 4px; display: block; mix-blend-mode: screen; }
.brand-band .wm { font-family: 'Bruno Ace SC', sans-serif; font-size: clamp(22px,4vw,34px); letter-spacing: .12em; color: #EAF6FF; }
.brand-band .wm span { color: var(--cyan); }
.brand-band p { color: var(--ice); margin-top: 12px; }

/* ---------- FOOTER NAV (plan du site) ---------- */
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-nav a { color: var(--muted); font-size: 13px; transition: color 250ms var(--ease); }
.foot-nav a:hover { color: var(--cyan); }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 70px 0 50px; background: #030307; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot-tags { font-size: 14px; color: #5F7A94; line-height: 2.1; }
.foot-tags em { font-style: normal; color: var(--muted); }
.foot-tags a { color: var(--cyan); }
.foot-legal { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; color: #3A4A5F; }

/* ---------- REVEAL ---------- */
html.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 90ms; } .rv.d2 { transition-delay: 180ms; } .rv.d3 { transition-delay: 270ms; } .rv.d4 { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
