:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-2: #131316;
  --border: #27272a;
  --border-soft: #1f1f23;
  --lime: #bef264;
  --cta: #d0fd3e;
  --text: #e4e4e7;
  --sub: #a1a1aa;
  --ink: #0a0a0a;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.lime { color: var(--lime); }
.wrap { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
.wrap.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(9, 9, 11, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-stuck { border-color: var(--border-soft); background: rgba(9, 9, 11, 0.9); }
.nav-inner {
  width: min(var(--max), calc(100% - 44px)); margin-inline: auto;
  display: flex; align-items: center; gap: 28px; height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 20px; margin-inline: auto; white-space: nowrap; }
.nav-links a { color: var(--sub); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.lang-btn {
  border: 0; background: transparent; color: var(--sub);
  font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  padding: 5px 9px; border-radius: 999px; cursor: pointer; transition: all .18s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--lime); color: var(--ink); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .96rem;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s, box-shadow .25s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-primary {
  background: var(--cta); color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(208, 253, 62, .55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -14px rgba(208, 253, 62, .75); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-glow {
  position: absolute; top: -18%; right: -12%; width: 780px; height: 780px;
  background: radial-gradient(circle at center, rgba(190, 242, 100, .18), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
}
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 18px;
}
.lead { color: var(--sub); font-size: clamp(1.02rem, 1.4vw, 1.18rem); margin-top: 24px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { color: var(--sub); font-size: .8rem; margin-top: 16px; }

.hero-device { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 268px; aspect-ratio: 390 / 844;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2a2a2e, #101012 55%);
  border: 1px solid #33333a;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.phone-hero { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); }
.phone-hero::after {
  content: ""; position: absolute; inset: 0; border-radius: 38px;
  background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 42%);
  pointer-events: none;
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 14px;
  background: rgba(24, 24, 27, .72);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  font-size: .82rem; font-weight: 500; color: var(--text);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.9);
  animation: float 7s ease-in-out infinite;
}
.float-card strong { font-size: 1rem; }
.float-card .dot-lime { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.fc1 { top: 12%; left: 6px; }
.fc2 { top: 42%; right: 2px; animation-delay: 1.4s; }
.fc3 { bottom: 14%; left: 10px; animation-delay: 2.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- STATS ---------- */
.stats { border-block: 1px solid var(--border-soft); background: var(--surface-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 38px 0; }
.stat { text-align: center; border-right: 1px solid var(--border-soft); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--lime); }
.stat span { color: var(--sub); font-size: .85rem; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(62px, 8vw, 110px) 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--border-soft); }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-sub { color: var(--sub); margin-top: 16px; }

/* ---------- CARDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: rgba(190,242,100,.42); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--sub); font-size: .93rem; }
.card-lg { padding: 34px; }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border); background: rgba(190,242,100,.06); color: var(--lime);
  margin-bottom: 18px;
}
.ico svg { width: 22px; height: 22px; }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: rgba(190,242,100,.12); color: var(--lime);
  border: 1px solid rgba(190,242,100,.3); margin-bottom: 16px;
}
.pill-ghost { background: transparent; color: var(--sub); border-color: var(--border); }
.list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 24px; color: var(--text); font-size: .92rem; }
.list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(190,242,100,.7);
}

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; justify-items: center; }
.gallery figure { margin: 0; text-align: center; }
.gallery .phone { width: 100%; max-width: 235px; transition: transform .4s; }
.gallery figure:hover .phone { transform: translateY(-8px); }
.gallery figcaption { margin-top: 20px; color: var(--sub); font-size: .86rem; }

@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; gap: 40px; } .gallery .phone { max-width: 250px; } }

/* ---------- AI ---------- */
.ai-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 46px; align-items: center; }
.ai-points { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.ai-points li { position: relative; padding-left: 26px; color: var(--text); }
.ai-points li::before { content: "→"; position: absolute; left: 0; color: var(--lime); }
.chart-card { padding: 26px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; color: var(--sub); font-size: .84rem; margin-bottom: 22px; }
.chip { font-size: .7rem; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--lime); }
.chart { display: flex; align-items: flex-end; gap: 14px; height: 240px; }
.bar {
  flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--lime), rgba(190,242,100,.24));
  position: relative; transform-origin: bottom; transform: scaleY(.02); transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.bar span {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; text-align: center;
  font-size: .68rem; color: var(--sub);
}
.chart-card.is-visible .bar { transform: scaleY(1); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(140deg, #1b1b1f, #131316 60%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 52px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -14%; top: -40%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(190,242,100,.14), transparent 65%); pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- FAQ ---------- */
.faq {
  border-bottom: 1px solid var(--border-soft); padding: 18px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--display); font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--sub); margin-top: 12px; font-size: .93rem; }

/* ---------- NEWSLETTER ---------- */
.news {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: clamp(28px, 4vw, 44px); text-align: center;
}
.news-form { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.news-form input {
  flex: 1 1 280px; max-width: 380px; padding: 15px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
  transition: border-color .2s;
}
.news-form input:focus { outline: none; border-color: var(--lime); }
.news-msg { margin-top: 14px; font-size: .86rem; color: var(--lime); min-height: 20px; }
.news-msg.error { color: #f87171; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 44px 0 24px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--text); font-size: .9rem; margin-bottom: 9px; opacity: .85; }
.footer-grid a:hover { color: var(--lime); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  color: var(--sub); font-size: .82rem;
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid, .ai-grid, .cta-band { grid-template-columns: 1fr; }
  .hero-device { margin-top: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-actions { justify-content: flex-start; }
  .nav-links { display: none; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .gallery, .stats-grid { grid-template-columns: 1fr; }
  .gallery { gap: 44px; }
  .stat { border-right: 0; }
  .float-card { display: none; }
  .fc1 { left: -8px; } .fc2 { right: -10px; } .fc3 { left: -4px; }
  .nav-inner { height: 64px; gap: 12px; }
  .nav-actions .btn-sm { display: none; }
  .chart { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bar { transform: scaleY(1); }
}

#newsletter { padding-bottom: clamp(26px, 3vw, 44px); }

/* ---------- modale de téléchargement (capture du courriel) ---------- */
body.is-modal { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,4,6,.78); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: 100%; max-width: 440px; background: #18181b;
  border: 1px solid #27272a; border-radius: 22px; padding: 30px 28px 26px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); color: #e4e4e7;
}
.modal-x {
  position: absolute; top: 12px; right: 14px; background: none; border: 0; color: #a1a1aa;
  font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.modal-x:hover { color: #e4e4e7; background: #27272a; }
.modal-eyebrow { margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #bef264; }
.modal-card h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
.modal-card p { margin: 0 0 18px; color: #a1a1aa; font-size: 14.5px; line-height: 1.6; }
.modal-card form { display: grid; gap: 10px; margin-bottom: 14px; }
.modal-card input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #3f3f46;
  background: #09090b; color: #e4e4e7; font-size: 15px;
}
.modal-card input:focus { outline: none; border-color: #bef264; box-shadow: 0 0 0 3px rgba(190,242,100,.16); }
.modal-card .btn { width: 100%; justify-content: center; }
.modal-fine { font-size: 12px !important; color: #71717a !important; margin: 0 !important; }
.modal-error { color: #fca5a5 !important; font-size: 13px !important; margin: 12px 0 0 !important; }
.modal-check {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(190,242,100,.14); color: #bef264;
  display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-bottom: 14px;
}
#apk-step-done .btn { margin-bottom: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 480px) {
  .modal-card { padding: 26px 20px 22px; border-radius: 18px; }
  .modal-card h3 { font-size: 20px; }
}
