/* ============================================================
   NiouLink — site vitrine (nioulink.com)
   Thème nuit, couleurs de l'application : rose #E11D48, violet #7C3AED, ambre #F59E0B
   ============================================================ */
@font-face { font-family: 'Jakarta'; src: url('../fonts/jakarta.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --rose: #e11d48;
  --rose-2: #fb7185;
  --violet: #7c3aed;
  --violet-2: #a78bfa;
  --amber: #f59e0b;
  --bg: #120d18;
  --bg-2: #1b1423;
  --bg-3: #241b2e;
  --ink: #f6f1f8;
  --ink-2: #c3b8cc;
  --ink-3: #8f8499;
  --line: rgba(255, 255, 255, 0.09);
  --cream: #fff8f5;
  --grad: linear-gradient(120deg, #fb7185 0%, #e11d48 40%, #a855f7 75%, #f59e0b 100%);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Jakarta', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
::selection { background: var(--rose); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rose-2); outline-offset: 3px; border-radius: 6px; }

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ------------------------------------------------------------ Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font: 600 15px/1 var(--text); text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-light { background: var(--cream); color: #1f1430; box-shadow: 0 10px 30px -10px rgba(225, 29, 72, 0.6); }
.btn-light:hover { box-shadow: 0 16px 40px -10px rgba(225, 29, 72, 0.8); }

/* ------------------------------------------------------------ En-tête */
.nav {
  position: fixed; inset: 14px 14px auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 10px 10px 10px 18px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease);
}
.nav.scrolled { background: rgba(18, 13, 24, 0.66); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav.hidden { transform: translateY(-120%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

/* ------------------------------------------------------------ Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 24px 80px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.aurora span:nth-child(1) { width: 52vw; height: 52vw; background: var(--rose); top: -18vw; left: -10vw; animation: drift1 22s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 46vw; height: 46vw; background: var(--violet); bottom: -20vw; right: -12vw; animation: drift2 26s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 26vw; height: 26vw; background: var(--amber); top: 30%; left: 45%; opacity: 0.28; animation: drift3 18s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 10vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, -8vw) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-18vw, 12vw) scale(1.3); } }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rose-2); box-shadow: 0 0 12px var(--rose-2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(44px, 7.2vw, 88px); font-weight: 800; margin: 22px 0 22px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 540px; }
.lead strong { color: var(--ink); font-weight: 600; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 190px;
  padding: 11px 22px 11px 16px; border-radius: 16px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; opacity: 0.8; letter-spacing: 0.02em; }
.store b { font: 700 19px/1.1 var(--display); letter-spacing: -0.01em; }
.store:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 18px 40px -16px rgba(124, 58, 237, 0.9); }
.store.recommended { border-color: var(--rose-2); box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18); }
.store.recommended::after {
  content: 'Votre téléphone'; position: absolute; top: -10px; right: 12px; padding: 2px 8px; border-radius: 999px;
  background: var(--rose); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
}
.soon .store, .store.soon { cursor: default; }
.web-link { margin-top: 20px; color: var(--ink-3); font-size: 15px; }
.web-link a { color: var(--ink); font-weight: 600; text-decoration: none; background: linear-gradient(var(--rose-2), var(--rose-2)) 0 100% / 0 2px no-repeat; transition: background-size 0.4s var(--ease); }
.web-link a:hover { background-size: 100% 2px; }
.web-link a span { display: inline-block; transition: transform 0.3s var(--ease); }
.web-link a:hover span { transform: translateX(4px); }

/* Téléphone */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 640px; perspective: 1200px; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 649; border-radius: 48px; padding: 11px;
  background: linear-gradient(145deg, #2b2233, #0c0910); overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14) inset, 0 50px 100px -30px rgba(225, 29, 72, 0.55), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.phone::before { content: ''; position: absolute; inset: 11px; border-radius: 38px; background: #fff8f5; }
.phone img { position: absolute; top: 46px; left: 11px; width: calc(100% - 22px); height: calc(100% - 57px); object-fit: cover; object-position: top; border-radius: 0 0 38px 38px; opacity: 0; transform: scale(1.04); transition: opacity 0.9s var(--ease), transform 1.2s var(--ease); }
.phone img.active { opacity: 1; transform: none; }
.notch { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.tilt { transform-style: preserve-3d; transition: transform 0.6s var(--ease); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }

.orbit { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.12); animation: spin 40s linear infinite; }
.orbit .planet, .orbit .sat { position: absolute; font-size: 44px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)); animation: spin 40s linear infinite reverse; }
.orbit .planet { top: -22px; left: calc(50% - 22px); }
.orbit .sat { bottom: 60px; left: -10px; font-size: 32px; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: rgba(36, 27, 46, 0.72); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8); animation: float 6s ease-in-out infinite;
}
.fc1 { top: 14%; left: -6%; animation-delay: -1s; }
.fc2 { top: 52%; right: -8%; animation-delay: -3s; }
.fc3 { bottom: 10%; left: 0; animation-delay: -5s; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.35); }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------ Bandeau défilant */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { padding: 10px 20px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); font-weight: 600; font-size: 15px; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ Manifeste */
.manifesto { max-width: 1100px; margin: 0 auto; padding: 140px 24px 100px; text-align: center; }
.big-quote { font: 800 clamp(40px, 7vw, 96px)/1.05 var(--display); letter-spacing: -0.035em; }
.big-quote em { font-style: italic; font-weight: 300; }
.quote-sub { display: block; margin-top: 22px; font: 400 clamp(17px, 1.8vw, 22px)/1.5 var(--text); letter-spacing: 0; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 80px; }
.stat { padding: 28px 16px; border-radius: var(--radius); background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(34px, 4vw, 48px)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* ------------------------------------------------------------ Récit (téléphone collant) */
.story { position: relative; max-width: 1180px; margin: 0 auto; padding: 40px 24px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story-phone { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.story-phone .phone { width: 320px; }
.story-phone::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 29, 72, 0.45), transparent 65%); filter: blur(30px); transition: background 0.8s; z-index: -1; }
.story[data-active='world'] .story-phone::before { background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 65%); }
.story[data-active='games'] .story-phone::before { background: radial-gradient(circle, rgba(245, 158, 11, 0.4), transparent 65%); }
.story[data-active='rencontre'] .story-phone::before { background: radial-gradient(circle, rgba(244, 63, 94, 0.6), transparent 65%); }
.story[data-active='sama'] .story-phone::before { background: radial-gradient(circle, rgba(167, 139, 250, 0.5), transparent 65%); }
.story-steps { display: flex; flex-direction: column; }
.step { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; opacity: 0.25; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); scroll-margin-top: 0; }
.step.in { opacity: 1; transform: none; }
.step h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; }
.step p { color: var(--ink-2); font-size: 18px; max-width: 480px; }
.tag { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(225, 29, 72, 0.14); color: var(--rose-2); font-weight: 700; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; list-style: none; }
.chips li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 14px; }
.step-shot { display: none; }
.story[data-active='rencontre'] .phone::before { background: #1c0f17; transition: background 0.6s; }
.step-rencontre .tag { background: rgba(244, 63, 94, 0.2); color: #fda4af; }

/* ------------------------------------------------------------ Univers */
.section-title { text-align: center; font-size: clamp(34px, 5vw, 60px); font-weight: 800; margin-bottom: 56px; }
.universes { max-width: 1180px; margin: 0 auto; padding: 100px 24px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; padding: 32px 26px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(225, 29, 72, 0.22), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(251, 113, 133, 0.4); }
.card:hover::before { opacity: 1; }
.card-emoji { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 28px; background: rgba(255, 255, 255, 0.06); margin-bottom: 22px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; }

/* ------------------------------------------------------------ Confiance */
.trust { padding: 0 24px 100px; }
.trust-inner {
  max-width: 1000px; margin: 0 auto; display: flex; gap: 28px; align-items: center; padding: 44px;
  border-radius: 32px; background: linear-gradient(120deg, rgba(124, 58, 237, 0.18), rgba(225, 29, 72, 0.12)); border: 1px solid rgba(167, 139, 250, 0.25);
}
.lock { font-size: 54px; flex: none; filter: drop-shadow(0 10px 20px rgba(124, 58, 237, 0.6)); }
.trust h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.trust p { color: var(--ink-2); }

/* ------------------------------------------------------------ Étapes */
.how { max-width: 1100px; margin: 0 auto; padding: 60px 24px 120px; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; position: relative; }
.how-steps li { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.how-steps span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); font: 800 20px/1 var(--display); margin-bottom: 20px; box-shadow: 0 10px 30px -8px rgba(225, 29, 72, 0.7); }
.how-steps h3 { font-size: 21px; margin-bottom: 8px; }
.how-steps p { color: var(--ink-2); font-size: 15.5px; }

/* ------------------------------------------------------------ Téléchargement */
.download { position: relative; overflow: hidden; isolation: isolate; padding: 130px 24px; text-align: center; border-top: 1px solid var(--line); }
.download .aurora span:nth-child(1) { top: auto; bottom: -30vw; left: 10vw; }
.download .aurora span:nth-child(2) { top: -25vw; bottom: auto; }
.download-inner { max-width: 1000px; margin: 0 auto; }
.download h2 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; }
.download-inner > p { color: var(--ink-2); margin-top: 18px; font-size: 18px; }
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px auto 0; max-width: 760px; }
.qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 18px 20px; border-radius: 26px; text-decoration: none;
  background: rgba(27, 20, 35, 0.75); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.qr-card img { width: 100%; max-width: 168px; aspect-ratio: 1; padding: 12px; border-radius: 18px; background: #fff; margin-bottom: 14px; transition: transform 0.45s var(--ease); }
.qr-card b { font: 700 18px/1.2 var(--display); }
.qr-card small { color: var(--ink-3); font-size: 13px; }
.qr-card:hover { transform: translateY(-6px); border-color: rgba(251, 113, 133, 0.5); box-shadow: 0 30px 60px -30px rgba(225, 29, 72, 0.8); }
.qr-card:hover img { transform: scale(1.04); }
.qr-card.recommended { border-color: var(--rose-2); }
.qr-card.is-soon img { filter: blur(3px) grayscale(1); opacity: 0.45; }
.qr-card.is-soon small { color: var(--amber); font-weight: 700; }
.web-cta { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.web-cta p { color: var(--ink-3); font-size: 14.5px; max-width: 460px; }

/* ------------------------------------------------------------ Pied de page */
.footer { border-top: 1px solid var(--line); padding: 40px 24px calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink-3); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer nav a { text-decoration: none; color: var(--ink-2); }
.footer nav a:hover { color: #fff; }

/* ------------------------------------------------------------ Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal, .no-js .step { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin: 0 auto; }
  .stores { justify-content: center; }
  .hero-visual { min-height: 560px; }
  .orbit { width: 420px; height: 420px; }
  .fc1 { left: 2%; } .fc2 { right: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-phone { display: none; }
  .step { min-height: auto; padding: 50px 0; opacity: 1; transform: none; }
  .step-shot { display: block; width: min(260px, 70vw); margin: 10px auto 0; border-radius: 34px; border: 8px solid #1e1726; box-shadow: 0 30px 60px -24px rgba(225, 29, 72, 0.6); }
  .how-steps, .qr-grid { grid-template-columns: 1fr; }
  .qr-grid { max-width: 320px; }
  .trust-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .manifesto { padding: 100px 20px 60px; }
  .scroll-hint { display: none; }
  .qr-card img { display: none; }
  .qr-card { padding: 18px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { inset: 10px 10px auto; }
  .hero { padding: 104px 16px 70px; }
  .store { min-width: 0; flex: 1 1 160px; justify-content: center; }
  .phone { width: 250px; border-radius: 40px; }
  .phone::before { border-radius: 31px; }
  .phone img { top: 40px; height: calc(100% - 51px); border-radius: 0 0 31px 31px; }
  .notch { top: 16px; width: 76px; height: 22px; }
  .hero-visual { min-height: 480px; }
  .orbit { width: 330px; height: 330px; }
  .float-card { font-size: 12px; padding: 9px 12px; }
  .fc1 { top: 6%; left: -2%; } .fc2 { right: -4%; } .fc3 { bottom: 4%; left: 0; }
  .cards { grid-template-columns: 1fr; }
  .universes, .how { padding-inline: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .step { opacity: 1; transform: none; filter: none; }
}
