@font-face {
  font-family: "Lilita One";
  src: url("fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Nougat";
  src: url("fonts/Nougat-ExtraBlack.ttf") format("truetype");
  font-display: swap;
}

:root {
  --night: #0b1015;
  --panel: #0f1923;
  --panel-2: #1a2533;
  --line: #2a3a4a;
  --blood: #e8342a;
  --text: #e0e0e0;
  --muted: #8a949e;
  --nav-h: 64px;
  /* Trame de petits points plus foncés que le fond. */
  --dots: radial-gradient(circle, rgba(0, 0, 0, 0.8) 1.3px, transparent 1.9px);
  --dots-size: 22px 22px;
  --title: "Lilita One", "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--dots) 0 0 / var(--dots-size) var(--night);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ── Barre du haut ─────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(11, 16, 21, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .brand {
  font-family: var(--title);
  font-size: 1.15rem; letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; color: #fff; margin-right: auto; white-space: nowrap;
}
.nav .show-s { display: none; }
.nav a.link {
  text-decoration: none; color: var(--muted);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav a.link:hover, .nav a.link[aria-current] { color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--title); font-size: 1rem; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; color: #fff;
  background: var(--blood); border: 2px solid var(--blood); border-radius: 12px;
  padding: 10px 20px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--blood); }
.btn.big { font-size: 1.15rem; padding: 14px 26px; }
.nav .btn { padding: 7px 16px; font-size: 0.9rem; }
@media (max-width: 720px) {
  .nav { gap: 14px; }
  .nav { gap: 10px; }
  .nav .brand { font-size: 0.95rem; letter-spacing: 1.5px; }
  .nav .btn { padding: 6px 12px; font-size: 0.82rem; }
  .nav .lang button { padding: 6px 9px; }
  .nav .hide-s { display: none; }
  .nav .show-s { display: inline; }
  .nav a.link { font-size: 0.72rem; letter-spacing: 1px; }
}

@media (max-width: 400px) {
  .nav { gap: 8px; padding: 0 12px; }
  .nav .brand { font-size: 0.85rem; letter-spacing: 1px; }
  .nav .lang button { padding: 6px 7px; }
}

/* ── Sections plein écran ──────────────────────────────────── */
.screen {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) clamp(20px, 6vw, 96px) 72px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow-x: clip;
}
.screen.alt { background: var(--dots) 0 0 / var(--dots-size) var(--panel); }
.giant {
  font-family: var(--title); font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 0.92; text-transform: uppercase; color: #fff;
  margin-bottom: clamp(28px, 5vw, 64px);
}
.giant em { font-style: normal; color: var(--blood); }

/* Apparition au défilement (uniquement si le script tourne). */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.12s; }
.js .reveal.d2 { transition-delay: 0.24s; }

/* ── Ouverture, variante A : sobre ─────────────────────────── */
.hero { overflow: hidden; }
.wordmark { font-family: "Nougat", var(--title); font-weight: 400; color: #fff; text-transform: none; }
.tagline { font-family: var(--title); color: var(--muted); }
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.stores img { width: 20px; height: 20px; }
.eyes { cursor: pointer; }

.hero-a { align-items: center; text-align: center; }
.hero-a .eyes { width: min(64vw, 420px); height: auto; display: block; margin-bottom: 28px; }
.eyes .lids { transform-box: view-box; transform-origin: 400px 150px; }
.eyes.blink .lids { animation: blink 0.26s ease-in-out; }
@keyframes blink {
  45%, 55% { transform: scaleY(0.05); }
}
.hero-a .wordmark { font-size: clamp(3rem, 11vw, 7rem); line-height: 1; letter-spacing: 2px; }
.hero-a .tagline { font-size: clamp(1.1rem, 2.6vw, 1.7rem); margin: 6px 0 22px; }
.hero-a .pitch { max-width: 680px; color: #c0c6cc; font-size: 1.08rem; margin-bottom: 32px; }
.hero-a .stores { justify-content: center; width: 100%; max-width: 480px; }
.hero-a .stores .btn { flex: 1 1 200px; justify-content: center; }

/* Apparition des éléments de l'ouverture, reprise de la variante B. */
.hero-a .eyes { animation: fade 0.9s both; }
.hero-a .wordmark span { display: inline-block; animation: drop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.hero-a .tagline { animation: fade 0.8s 1s both; }
.hero-a .pitch { animation: fade 0.8s 1.15s both; }
.hero-a .stores { animation: fade 0.8s 1.3s both; }
@keyframes drop {
  from { opacity: 0; transform: translateY(0.6em) rotate(6deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }



/* ── Carrousels numérotés ──────────────────────────────────── */
.carousel .slides { display: grid; }
.carousel .slide {
  grid-area: 1 / 1;
  /* Décalage vertical : un décalage horizontal élargit la page sur téléphone. */
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s 0.45s;
}
.carousel .slide.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.controls { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.counter { font-family: var(--title); font-size: 1.3rem; letter-spacing: 3px; color: #fff; min-width: 6.2em; text-align: center; }
.counter b { font-weight: 400; color: var(--blood); }
.arrow {
  width: 52px; height: 52px; border-radius: 50%;
  background: transparent; border: 2px solid var(--line); color: #fff;
  font-size: 1.3rem; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.arrow:hover { background: var(--blood); border-color: var(--blood); }

/* ── Comment on joue ───────────────────────────────────────── */
.rule { display: grid; grid-template-columns: minmax(140px, 300px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.rule .art { width: 100%; filter: drop-shadow(0 12px 40px rgba(232, 52, 42, 0.25)); }
.rule h3 { font-family: var(--title); font-weight: 400; font-size: clamp(1.8rem, 4.2vw, 3.4rem); line-height: 1; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.rule p.lead { font-size: clamp(1.02rem, 1.6vw, 1.3rem); color: #c0c6cc; max-width: 620px; }
.chain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; font-family: var(--title); }
.chain span { border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; padding: 8px 16px; }
.chain span.you { border-color: var(--blood); color: var(--blood); background: rgba(232, 52, 42, 0.12); }
.chain i { font-style: normal; color: var(--muted); }
.note { margin-top: 24px; max-width: 620px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 14px; padding: 16px 18px; }
.note small { display: block; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.steps { list-style: none; margin-top: 22px; display: grid; gap: 12px; max-width: 620px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li::before {
  content: attr(data-mark); flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--line);
}
.steps li.ok::before { background: rgba(52, 199, 89, 0.16); border-color: transparent; }
.steps li.ko::before { background: rgba(232, 52, 42, 0.18); border-color: transparent; }
@media (max-width: 720px) {
  .rule { grid-template-columns: 1fr; }
  .rule .art { width: 130px; }
}

/* ── Les modes ─────────────────────────────────────────────── */
.modes-head { display: flex; align-items: center; gap: 24px; }
.modes-head img { width: clamp(64px, 9vw, 120px); margin-bottom: clamp(28px, 5vw, 64px); }
.modes { display: flex; gap: 20px; min-height: 380px; }
.mode {
  flex: 1; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 28px; background: var(--panel-2);
  padding: clamp(22px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: flex 0.5s ease, border-color 0.3s;
}
.mode:hover { flex: 1.6; border-color: var(--blood); }
.mode img {
  position: absolute; right: -4%; top: 6%; width: min(70%, 340px);
  transition: transform 0.6s ease;
}
.mode:hover img { transform: scale(1.08) rotate(-3deg); }
.mode::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(11, 16, 21, 0.92)); }
.mode > div { position: relative; z-index: 1; }
.mode .num { font-family: var(--title); color: var(--blood); letter-spacing: 3px; }
.mode h3 { font-family: var(--title); font-weight: 400; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1; text-transform: uppercase; color: #fff; margin: 4px 0 10px; }
.mode p { color: #c0c6cc; max-width: 380px; }
@media (max-width: 720px) {
  .modes { flex-direction: column; }
  .mode { min-height: 340px; }
  .mode:hover { flex: 1; }
  .mode img { width: 46%; top: 5%; right: 4%; }
}

/* ── Captures ──────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 6vw, 96px); align-items: center; }
.shots .giant { margin-bottom: 20px; }
.shots p { color: #c0c6cc; max-width: 620px; font-size: 1.08rem; }
.phone {
  width: min(66vw, 300px); aspect-ratio: 1242 / 2688;
  border: 10px solid #05080b; border-radius: 44px; overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px var(--line), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(232, 52, 42, 0.14);
}
.phone .slides, .phone .slide, .phone img { width: 100%; height: 100%; }
.phone img { object-fit: cover; }
@media (max-width: 820px) {
  .shots { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .shots .controls { justify-content: center; }
  .shots .phone-col { order: -1; }
  .shots p br { display: none; }
}

/* ── Discord ───────────────────────────────────────────────── */
.discord { align-items: center; text-align: center; }
.discord .giant { margin-bottom: 20px; }
.discord p { color: #c0c6cc; max-width: 480px; margin-bottom: 32px; font-size: 1.08rem; }
.btn.discord-btn { background: #5865f2; border-color: #5865f2; }

/* ── Pied de page ──────────────────────────────────────────── */
footer {
  padding: 32px clamp(20px, 6vw, 96px) 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: 0.8rem; color: #5e6872;
}
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: #fff; }

/* ── Toutes nos applications ───────────────────────────────── */
.apps-page { justify-content: flex-start; }
.apps-page .intro { color: var(--muted); max-width: 520px; margin: -24px 0 48px; font-size: 1.08rem; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) {
  .apps { grid-template-columns: 1fr; }
  .apps .app .stores .btn { flex-basis: 100%; }
}
.app {
  border: 1px solid; border-radius: 28px; padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  transition: transform 0.25s;
}
.app:hover { transform: translateY(-6px); }
.app .head { display: flex; align-items: center; gap: 18px; }
.app .head img { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; }
.app h2 { font-weight: 400; line-height: 1; }
.app .stores .btn { flex: 1 1 160px; justify-content: center; white-space: nowrap; }
.app .stores { width: 100%; }
.app .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8rem; margin-top: auto; padding-top: 14px; }
.app .legal a { text-decoration: none; }
.app .legal a:hover { text-decoration: underline; }
.app.cn { background: var(--panel); border-color: var(--line); }
.app.cn h2 { font-family: var(--title); font-size: clamp(1.7rem, 7.6vw, 2.6rem); white-space: nowrap; color: #fff; }
.app.cn p { color: #c0c6cc; }
.app.cn .legal a { color: var(--muted); }
.app.rep { background: #092328; border-color: #1d4046; }
.app.rep h2 { font-family: var(--title); font-size: clamp(1.7rem, 7.6vw, 2.6rem); color: #eaf4ec; }
.app.rep p { color: #8fa9a3; }
/* Même allure que les boutons de la carte Crime Night, sans être cliquable. */
.app.rep .soon {
  font-family: var(--title); font-size: 1rem; letter-spacing: 1px; text-transform: uppercase;
  color: #8bbb92; border: 2px solid #1d4046; border-radius: 12px; padding: 10px 20px;
}
.app.rep .legal a { color: #8fa9a3; }

/* ── Pages légales de Crime Night ──────────────────────────── */
.legal-page { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 56px) 20px 48px; line-height: 1.7; }
.legal-page h1 {
  font-family: var(--title); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; text-transform: uppercase; color: #fff;
  margin-bottom: 12px;
}
.legal-page .subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.1rem; color: #fff; margin: 36px 0 10px; border-left: 3px solid var(--blood); padding-left: 12px; }
.legal-page p { margin-bottom: 12px; color: #c0c6cc; }
.legal-page ol, .legal-page ul { margin: 0 0 12px 20px; color: #c0c6cc; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--blood); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.legal-page table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.92rem; }
.legal-page th, .legal-page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #c0c6cc; vertical-align: top; }
.legal-page th { color: #fff; font-weight: 600; }
.legal-page .table-wrap { overflow-x: auto; }
.legal-page .callout { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; background: var(--panel); }
.legal-page .prevails { margin-top: 36px; font-size: 0.85rem; font-style: italic; color: var(--muted); }

/* ── Choix de la langue (voir lang.js) ─────────────────────── */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font: 700 0.78rem var(--body); letter-spacing: 1px; padding: 7px 13px;
}
.lang button[aria-pressed="true"] { background: var(--blood); color: #fff; }
html[data-lang="fr"] [data-l="en"],
html[data-lang="en"] [data-l="fr"] { display: none !important; }
/* Sans script : les deux textes se suivent, le reste de la page reste en français. */
html:not([data-lang]) .lang,
html:not([data-lang]) [data-l="en"]:not(section) { display: none !important; }
html:not([data-lang]) section[data-l="en"] { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
