:root {
  --bg: #111522;
  --bg-alt: #151a2a;
  --panel: #1a2032;
  --border: #2f3752;
  --text: #e8eaf2;
  --muted: #9aa2bb;
  --accent: #3d8ee6;
  --accent-text: #0a1626;
  --blue-deep: #0b2a4f;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; position: relative; }
main.full .wrap { max-width: 1120px; }

/* En-tête collant, translucide au-dessus des bandes. */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(17, 21, 34, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  max-width: 1120px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.logo img { display: block; }
.logo em { color: var(--accent); font-style: normal; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--text); }

main { padding: 48px 0 64px; }
main.full { padding: 0; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 32px; }
.kicker { color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 13px; }
ul { padding-left: 22px; }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  text-decoration: none; font: inherit; font-size: 15px; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ── Bandes de la page d'accueil ───────────────────────────────────────── */
.band { position: relative; overflow: hidden; padding: 120px 0; scroll-margin-top: 64px; }
.band.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band.blue { background: linear-gradient(160deg, var(--blue-deep), #0d1730 70%); }
.band.blue .lead { color: #c3d3ee; max-width: 62ch; }
.band .title { font-size: 38px; line-height: 1.15; margin: 0 0 28px; max-width: 24ch; }

/* Formes du logo en fond, déplacées en parallaxe par main.js. */
.deco { position: absolute; pointer-events: none; user-select: none; will-change: transform; }
.d-hero-c { width: 620px; right: -140px; top: -80px; opacity: .16; }
.d-hero-s { width: 380px; right: 220px; bottom: -160px; opacity: .08; }
.d-plat-c { width: 520px; left: -220px; bottom: -180px; opacity: .10; }
.d-plat-s { width: 300px; right: -80px; top: 40px; opacity: .10; }
.d-contact-s { width: 460px; left: -180px; top: 40px; opacity: .06; }
.dots {
  position: absolute; inset: -200px 0; pointer-events: none;
  background-image: radial-gradient(rgba(61, 142, 230, .22) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  will-change: transform;
}

.hero-band {
  min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
  display: flex; align-items: center; padding: 80px 0;
  background:
    radial-gradient(900px 600px at 85% 10%, rgba(61, 142, 230, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(7, 96, 175, .18), transparent 60%),
    var(--bg);
}
.hero-band .wrap { width: 100%; }
.hero h1 { font-size: 56px; line-height: 1.08; max-width: 18ch; margin-bottom: 20px; letter-spacing: -.01em; }
.hero .lead { font-size: 21px; max-width: 46ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; max-width: 860px; }
.stats div { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; }
.stats strong { display: block; font-size: 32px; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.split p { color: #c9cee0; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline .when { display: block; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.timeline strong { display: block; font-size: 19px; margin: 2px 0; }
.timeline span:last-child { color: var(--muted); font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

.tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.band .tile { padding: 28px; transition: border-color .2s, transform .2s; }
.band .tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.band .tile ul { margin: 16px 0 0; padding: 0; list-style: none; }
.band .tile li { padding: 6px 0 6px 22px; position: relative; font-size: 15px; border-top: 1px solid var(--border); }
.band .tile li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.feat { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.feat p { margin: 0; color: var(--muted); font-size: 16px; }
.band.blue .feat p { color: #b4c4e0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 8px; }
.steps .num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; left: 56px; right: -12px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); font-size: 14px; }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-band { background: radial-gradient(800px 500px at 100% 100%, rgba(61, 142, 230, .16), transparent 60%), var(--bg); }
.contact-form { display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: inherit; font-size: 16px;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.contact-form .muted { margin: 0; }
.form-status { margin: 0; font-size: 15px; min-height: 1em; }
.form-status.ok { color: #6fd29a; }
.form-status.err { color: #ff8f8f; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Apparition au défilement (activée seulement si main.js tourne). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Pages secondaires ─────────────────────────────────────────────────── */
.card {
  display: flex; gap: 20px; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; color: var(--text); text-decoration: none;
}
.card:hover { border-color: var(--accent); }
.card img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); }

.app-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.app-head img { width: 96px; height: 96px; border-radius: 22px; }
.app-head h1 { margin: 0; }
.app-head p { margin: 0; color: var(--muted); }

.shots { display: flex; gap: 16px; margin: 32px 0; }
.shots img { width: calc(50% - 8px); max-width: 300px; border-radius: var(--radius); border: 1px solid var(--border); height: auto; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 14px; border-radius: 12px;
  background: #000; border: 1px solid #555; color: #fff; text-decoration: none;
  font-size: 19px; font-weight: 600; line-height: 1.1;
}
.store:hover { border-color: var(--accent); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 400; }
.store.soon { opacity: .55; cursor: default; }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer.site .wrap { max-width: 1120px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 20px; }
footer.site a { color: var(--muted); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-opt { display: none; }
  .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 24px; }
  .steps .num { grid-row: span 2; margin: 0; }
  .steps li:not(:last-child)::after { top: 52px; bottom: 4px; left: 21px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), transparent); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 44px; }
}

@media (max-width: 760px) {
  .grid, .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin-top: 48px; }
  .band { padding: 80px 0; }
  .band .title { font-size: 30px; }
  .card, .app-head { align-items: flex-start; }
  .card img { width: 64px; height: 64px; border-radius: 15px; }
  .app-head img { width: 72px; height: 72px; border-radius: 16px; }
  .d-hero-c { width: 420px; right: -200px; top: -40px; }
  .d-hero-s { display: none; }
}

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 18px; }
  .stats strong { font-size: 26px; }
  nav a { margin-left: 12px; }
  .contact-form { padding: 20px; }
}
