:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --panel: #12151f;
  --line: #222838;
  --text: #eef1f7;
  --muted: #98a0b3;
  --accent: #ff5a1f;      /* orange nitro */
  --accent-2: #ffb21f;
  --siren-red: #ff2d4a;
  --siren-blue: #2d7bff;
  --ok: #2fd27a;
  --radius: 14px;
  --max: 1180px;
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
@media (max-width: 520px) { .hide-sm { display: none; } }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 12, .72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(255, 90, 31, .35); }
.wordmark { display: grid; line-height: 1; font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; font-size: 20px; }
.wordmark b { color: var(--accent); margin-left: .28em; }
.nav .btn-sm { white-space: nowrap; flex: none; }
.wordmark small { font-family: var(--font-body, Inter, sans-serif); font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav ul a { display: block; text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.nav ul a:hover, .nav ul a:focus-visible { color: var(--text); background: rgba(255,255,255,.07); }
.nav ul a.nav-key { color: var(--text); font-weight: 600; }
.nav ul li:nth-child(3) { margin-right: 10px; padding-right: 10px; border-right: 1px solid rgba(255,255,255,.12); }
@media (max-width: 1180px) { .nav ul a { padding: 8px 9px; font-size: 13px; } }
/* téléphone : les onglets passent sur une deuxième ligne qui défile */
@media (max-width: 980px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 6px; }
  .nav ul { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav ul a { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
  .nav ul li:nth-child(3) { margin-right: 0; padding-right: 0; border-right: 0; }
  .hero { padding-top: 164px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #160800; box-shadow: 0 8px 30px -8px rgba(255, 90, 31, .7); }
.btn-primary:hover { box-shadow: 0 10px 40px -6px rgba(255, 90, 31, .9); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end; overflow: hidden;
  padding: 120px 0 72px;
}
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(7,8,12,.75) 0%, rgba(7,8,12,.35) 45%, rgba(7,8,12,0) 70%), linear-gradient(180deg, rgba(7,8,12,0) 60%, var(--bg) 100%);
}
.sirens { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.sirens::before, .sirens::after {
  content: ""; position: absolute; top: -20%; width: 70vw; height: 90vh; border-radius: 50%;
  filter: blur(80px); opacity: .0; animation: siren 1.2s infinite;
}
.sirens::before { left: -20vw; background: var(--siren-red); }
.sirens::after { right: -20vw; background: var(--siren-blue); animation-delay: .6s; }
@keyframes siren { 0%, 100% { opacity: 0; } 15%, 35% { opacity: .38; } 50% { opacity: .05; } }
@media (prefers-reduced-motion: reduce) { .sirens::before, .sirens::after { animation: none; opacity: .18; } }

.hero-content { position: relative; z-index: 2; max-width: 760px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 90, 31, .12); color: var(--accent-2); border: 1px solid rgba(255, 90, 31, .35);
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--siren-red); box-shadow: 0 0 10px var(--siren-red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { background: var(--siren-blue); box-shadow: 0 0 10px var(--siren-blue); } }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(48px, 9vw, 112px); line-height: .92; margin: 18px 0 18px; letter-spacing: -.01em;
}
.hero h1 span { display: block; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: #c9cfdc; max-width: 600px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; font-size: 13px; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.eyebrow { font-family: var(--font-display); color: var(--accent); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; font-weight: 600; }
h2 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 10px 0 18px; text-transform: uppercase; }
.section-lead { color: var(--muted); max-width: 640px; font-size: 18px; margin: 0 0 54px; }

/* Gameplay */
.gameplay { background: var(--bg-2); border-block: 1px solid var(--line); }
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); overflow: hidden;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 54px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); position: absolute; right: 16px; top: 12px;
}
.step h3 { font-family: var(--font-display); font-size: 21px; margin: 46px 0 8px; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.heat { margin-top: 54px; padding: 28px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(45,123,255,.08), rgba(255,45,74,.10)); border: 1px solid var(--line); }
.heat-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.heat-head h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; }
.heat-head span { color: var(--muted); font-size: 14px; }
.heat-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.heat-bar div { padding: 12px 10px; border-radius: 8px; font-size: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.heat-bar div b { display: block; font-family: var(--font-display); font-size: 16px; }
.heat-bar div:nth-child(1) b { color: #7fb0ff; }
.heat-bar div:nth-child(2) b { color: #a38cff; }
.heat-bar div:nth-child(3) b { color: #ff8cc6; }
.heat-bar div:nth-child(4) b { color: #ff6b5f; }
.heat-bar div:nth-child(5) b { color: var(--siren-red); }
@media (max-width: 700px) { .heat-bar { grid-template-columns: 1fr 1fr; } }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .features-grid { grid-template-columns: 1fr; } }
.feature { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(255, 90, 31, .5); transform: translateY(-3px); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,90,31,.12); color: var(--accent); margin-bottom: 18px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.tech { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tech span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; background: rgba(255,255,255,.02); }

/* Gallery */
.gallery { background: var(--bg-2); border-block: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 210px; gap: 14px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0a0c12; }
.shot svg { width: 100%; height: 100%; }
.shot figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.shot.a { grid-column: span 4; grid-row: span 2; }
.shot.b { grid-column: span 2; }
.shot.c { grid-column: span 2; }
.shot.d { grid-column: span 3; }
.shot.e { grid-column: span 3; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .shot.a { grid-column: span 2; grid-row: span 2; }
  .shot.b, .shot.c { grid-column: span 1; }
  .shot.d, .shot.e { grid-column: span 2; }
}
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Beta form */
.beta-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--panel);
}
@media (max-width: 880px) { .beta-card { grid-template-columns: 1fr; } }
.beta-pitch { padding: 48px; background: radial-gradient(120% 120% at 0% 0%, rgba(255,90,31,.22), transparent 60%), radial-gradient(120% 120% at 100% 100%, rgba(45,123,255,.18), transparent 55%); }
.beta-pitch ul { padding: 0; list-style: none; margin: 26px 0 0; display: grid; gap: 12px; }
.beta-pitch li { display: flex; gap: 12px; color: #c9cfdc; }
.beta-pitch li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
form.beta { padding: 48px; display: grid; gap: 16px; }
@media (max-width: 520px) { .beta-pitch, form.beta { padding: 28px 22px; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: #c9cfdc; }
.field input, .field select {
  width: 100%; padding: 13px 14px; border-radius: 10px; font: 15px var(--font-body);
  background: #0a0c12; color: var(--text); border: 1px solid var(--line); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 24px; font-size: 14px; margin: 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #ff7a85; }
.demo-badge { font-size: 12px; color: var(--accent-2); }

/* Social + footer */
.social { text-align: center; }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.social-links a {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: border-color .2s, transform .2s;
}
.social-links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* rendus 3D des voitures */
.car-img { width: 100%; height: auto; }
.car-img.car-34 { aspect-ratio: 16 / 7; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
