/* Landing WingGames : mêmes couleurs et polices que le jeu (apps/web/src/styles.css). */
:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --ink: #1f2328;
  --muted: #5f636a;
  --line: #e2ddd2;
  --accent: #c9571a;
  --accent-hover: #b04a13;
  --accent-ink: #ffffff;
  --sky-1: #cfdcac;
  --sky-2: #79bfd3;
  --shadow: 0 18px 50px rgb(20 30 40 / 0.18);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1e2125;
    --ink: #eceae4;
    --muted: #a0a4ab;
    --line: #2f3338;
    --accent: #ee8440;
    --accent-hover: #f59a5c;
    --accent-ink: #1a1a1a;
    --sky-1: #2c3a2a;
    --sky-2: #1d3b47;
    --shadow: 0 18px 50px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 Barlow, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: 'Barlow Condensed', sans-serif; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0; }

.kicker {
  margin-bottom: 10px;
  font: 600 14px 'Barlow Condensed', sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font: 700 20px 'Barlow Condensed', sans-serif; letter-spacing: 0.03em;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:focus-visible, .compare:has(input:focus-visible) .compare-handle::after { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn.small { padding: 7px 16px; font-size: 16px; box-shadow: none; }
.cta-note { font-size: 14px; color: var(--muted); }

/* ---------- En-tête ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 24px 'Barlow Condensed', sans-serif; }
.brand b { color: var(--accent); font-weight: 700; }
.brand img { border-radius: 7px; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 24px 0;
  background: linear-gradient(170deg, var(--sky-1) 0%, var(--sky-2) 78%, var(--bg) 78.1%);
  text-align: center;
}
.hero-text { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(64px, 11vw, 124px); letter-spacing: -0.01em; }
.hero .kicker { color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.lead { margin: 14px auto 28px; max-width: 580px; font-size: clamp(18px, 2.2vw, 21px); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .cta-note { color: color-mix(in srgb, var(--ink) 70%, transparent); }

.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-shot { max-width: 1100px; margin: 56px auto 0; }

/* ---------- Sections ---------- */
main > section:not(.hero) { max-width: 1100px; margin: 0 auto; padding: 96px 24px 0; }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head p:not(.kicker) { margin-top: 14px; color: var(--muted); }

/* Comparateur an 1 / an 5 */
.compare { --pos: 50%; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); user-select: none; }
.compare .after { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--surface); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); pointer-events: none;
}
.compare-handle::after {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 700 20px/1 Barlow, sans-serif; letter-spacing: 2px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
}
.compare-label {
  position: absolute; bottom: 14px; padding: 4px 10px; border-radius: 8px;
  background: var(--surface); color: var(--ink); font: 600 15px 'Barlow Condensed', sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
  pointer-events: none;
}
/* La découpe montre l'an 5 à gauche du curseur, l'an 1 à droite. */
.compare-label.before { right: 14px; }
.compare-label.after-label { left: 14px; }
.compare input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card-num { display: block; margin-bottom: 14px; font: 500 14px 'IBM Plex Mono', monospace; color: var(--accent); }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Vue Réseau */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

/* En bref */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.facts div { padding: 22px 12px; border-top: 3px solid var(--accent); }
.facts strong { display: block; font: 500 30px 'IBM Plex Mono', monospace; letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* Appel final */
.final { text-align: center; padding-bottom: 96px !important; }
.final h2 { margin-bottom: 26px; }
.final .cta-note { margin-top: 14px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  max-width: 1100px; margin: 0 auto; padding: 22px 24px 32px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.foot a { color: inherit; }

/* ---------- Tablette, téléphone ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  main > section:not(.hero) { padding-top: 72px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: 14px 16px; }
  .hero { padding: 96px 16px 0; background: linear-gradient(170deg, var(--sky-1) 0%, var(--sky-2) 88%, var(--bg) 88.1%); }
  .hero-shot { margin-top: 40px; }
  main > section:not(.hero) { padding-left: 16px; padding-right: 16px; }
  .compare-label { font-size: 12px; bottom: 8px; }
  .compare-label.before { right: 8px; }
  .compare-label.after-label { left: 8px; }
  .facts strong { font-size: 24px; }
  .foot { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
