:root {
  --bg: #0F1218;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-highlight: rgba(255, 255, 255, 0.22);
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --primary: #818CF8;
  --primary-deep: #6366F1;
  --violet: #8B5CF6;
  --accent: #FF6B70;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Orbes de fond, même langage que ScreenBackground de l'app */
.orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: #6366F1; top: -180px; right: -140px; }
.orb-2 { width: 420px; height: 420px; background: #8B5CF6; top: 42%; left: -200px; animation-duration: 28s; animation-delay: -8s; }
.orb-3 { width: 460px; height: 460px; background: #312E81; bottom: -180px; right: 8%; animation-duration: 34s; animation-delay: -16s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(46px, -34px) scale(1.08); }
}

/* Révélation au scroll (le JS ajoute .in quand l'élément entre à l'écran) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Header ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.lang-switch {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
}
.lang-switch:hover { border-color: var(--primary); color: var(--text); }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #818CF8, #A78BFA, #C4B5FD);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .pitch {
  color: #D4D4D8;
  font-size: 1.08rem;
  margin: 0 0 1.6rem;
  max-width: 34rem;
}
.badges { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.badges img.store { height: 54px; display: block; }
.hero-points {
  display: flex;
  gap: 0.5rem 1.4rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-points li::before { content: "✓ "; color: var(--primary); font-weight: 700; }

.phone {
  width: min(300px, 72vw);
  margin: 0 auto;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.35), 0 8px 28px rgba(0, 0, 0, 0.55);
}
.phone img { width: 100%; display: block; border-radius: 34px; }

/* ===== Sections ===== */
section { padding: 3.2rem 0; }
.kicker {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.5rem;
}
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 1.9rem; letter-spacing: -0.01em; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top-color: var(--panel-highlight);
  border-radius: 20px;
  padding: 1.35rem 1.3rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 14px 38px rgba(99, 102, 241, 0.18);
}
.card .ico {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  margin-bottom: 0.85rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ===== Screenshots ===== */
.shots {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem 1.4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots figure {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}
.shots img {
  width: 218px;
  border-radius: 26px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  display: block;
}
.shots figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; }

/* ===== Bande de stats ===== */
.statband {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top-color: var(--panel-highlight);
  border-radius: 20px;
  padding: 1.3rem 1rem;
  text-align: center;
}
.statband .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #818CF8, #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statband .lbl { color: var(--muted); font-size: 0.85rem; }

/* ===== 3 étapes ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top-color: var(--panel-highlight);
  border-radius: 20px;
  padding: 1.35rem 1.3rem;
}
.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  margin-bottom: 0.8rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ===== FAQ ===== */
.faq details {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top-color: var(--panel-highlight);
  border-radius: 16px;
  padding: 0.95rem 1.2rem;
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.25rem; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 0.94rem; margin: 0.7rem 0 0.2rem; }
.faq details a { color: var(--primary); }

/* ===== CTA finale (mascotte + QR) ===== */
.cta {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top-color: var(--panel-highlight);
  border-radius: 28px;
  padding: 0;
  margin: 1rem 0 0;
  overflow: hidden;
}
.cta-mascot {
  align-self: stretch;
  min-height: 320px;
  background: url("assets/mascot.jpg") center 22% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, black 62%, transparent);
  mask-image: linear-gradient(to right, black 62%, transparent);
}
.cta-body { text-align: left; padding: 2.4rem 2rem 2.4rem 0; }
.cta h2 { margin-bottom: 0.6rem; }
.cta p { color: var(--muted); margin: 0 0 1.6rem; }
.cta .badges { justify-content: flex-start; align-items: center; gap: 1.4rem; }
.qr {
  background: #fff;
  border-radius: 14px;
  padding: 9px;
  width: 92px;
  height: 92px;
  display: block;
}
.qr img { width: 100%; height: 100%; display: block; }
.qr-hint { color: var(--muted); font-size: 0.78rem; margin-top: 0.5rem; text-align: center; }

@media (max-width: 700px) {
  .cta { grid-template-columns: 1fr; }
  .cta-mascot {
    min-height: 230px;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
    mask-image: linear-gradient(to bottom, black 55%, transparent);
  }
  .cta-body { padding: 0 1.5rem 2.2rem; text-align: center; }
  .cta .badges { justify-content: center; }
  .qr-wrap { display: none; }
}

/* ===== Footer ===== */
footer {
  margin-top: 3.5rem;
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.foot-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 2rem 0 3rem; text-align: center; }
  .hero .pitch { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .hero-points { justify-content: center; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .statband { grid-template-columns: 1fr 1fr; gap: 1.2rem 0.5rem; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
}
