*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #060d18;
  --surface: #0f1a2b;
  --surface-2: #152238;
  --border: rgba(148, 163, 184, 0.14);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-2: #38bdf8;
  --gold: #fbbf24;
}
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.logo { display: inline-flex; align-items: center; gap: 0.5rem; font-family: Outfit, sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo img { display: block; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
/* Sélecteur de langue */
.langsw { display: inline-flex; gap: 0.15rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem; }
.langsw a { color: var(--muted); font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.45rem; border-radius: 999px; }
.langsw a:hover { text-decoration: none; color: var(--text); }
.langsw a.on { background: var(--accent); color: #052e16; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.2rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #16a34a); color: #052e16; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--muted); }
.hero {
  padding: 4rem 0 3rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center;
}
.hero h1 {
  font-family: Outfit, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1; margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin-bottom: 1.5rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: 24px; padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.mock-logo {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #16a34a);
  display: grid; place-items: center; font-family: Outfit; font-weight: 800;
  font-size: 1.6rem; color: #052e16; margin-bottom: 1rem;
}
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem; }
.mock-chip {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.55rem; font-size: 0.75rem; text-align: center;
}
.section { padding: 3.5rem 0; }
.section h2 { font-family: Outfit; font-size: 2rem; margin-bottom: 0.5rem; text-align: center; }
.section > p.sub { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.5rem; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(34,197,94,0.2); }
.plan .badge {
  position: absolute; top: -10px; right: 16px;
  background: var(--accent); color: #052e16; font-size: 0.7rem; font-weight: 800;
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.plan h3 { font-family: Outfit; font-size: 1.25rem; margin-bottom: 0.35rem; }
.plan .price { font-size: 2rem; font-weight: 800; font-family: Outfit; margin: 0.75rem 0; }
.plan .price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; color: var(--muted); font-size: 0.9rem; margin: 1rem 0 1.25rem; }
.plan li { padding: 0.3rem 0; }
.plan li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem;
}
.feature h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--accent-2); }
.feature p { color: var(--muted); font-size: 0.9rem; }
.auth-box {
  max-width: 420px; margin: 3rem auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 2rem;
}
.auth-box h1 { font-family: Outfit; font-size: 1.6rem; margin-bottom: 0.35rem; }
.auth-box p { color: var(--muted); margin-bottom: 1.25rem; font-size: 0.9rem; }
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; font-weight: 600; }
.field input {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit;
}
.flash { padding: 0.75rem 1rem; border-radius: 10px; margin: 1rem 0; font-size: 0.9rem; }
.flash-success { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.flash-error { background: rgba(239,68,68,0.12); color: #fecaca; border: 1px solid rgba(239,68,68,0.3); }
footer { text-align: center; padding: 2rem 0; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 2rem; }
/* Badge héros */
.hero-badge {
  display: inline-block; margin-bottom: 1rem; padding: 0.35rem 0.85rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
}

/* ───── Démo animée : téléphone ───── */
.phone-stage { display: grid; place-items: center; }
.phone {
  position: relative; width: 270px; height: 540px; border-radius: 40px;
  background: linear-gradient(160deg, #1e2a40, #0c1424);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), inset 0 0 0 6px #060d18;
  padding: 14px;
}
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #060d18; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: radial-gradient(ellipse 90% 40% at 50% 0%, rgba(34,197,94,0.18), transparent), #0b1220;
}
.demo-scan, .demo-card {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 1.5rem; text-align: center;
}
.demo-scan { gap: 1rem; animation: demoScan 9s ease-in-out infinite; }
.demo-qr { padding: 14px; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.demo-scan-label { color: var(--muted); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em; }
.demo-laser { position: absolute; left: 18%; right: 18%; height: 2px; top: 30%; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 14px 2px var(--accent); animation: demoLaser 2.2s ease-in-out infinite; }
.demo-card { gap: 0.55rem; opacity: 0; animation: demoCard 9s ease-in-out infinite; }
.demo-logo {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff;
  font-family: Outfit; font-weight: 800; font-size: 1.4rem; box-shadow: 0 10px 26px rgba(37,99,235,0.4);
}
.demo-brand { font-family: Outfit; font-size: 1.5rem; font-weight: 800; }
.demo-tag { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.4rem; }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; width: 100%; }
.demo-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 0.6rem 0.4rem; font-size: 0.75rem; font-weight: 600; }
.demo-btn.primary { grid-column: 1 / -1; background: linear-gradient(135deg, var(--accent), #16a34a); color: #052e16; border: none; }
.demo-btn.google { background: rgba(66,133,244,0.14); border-color: rgba(66,133,244,0.35); color: #93c5fd; }
.demo-chip { font-size: 0.74rem; color: #4ade80; }
@keyframes demoScan { 0%,30% { opacity: 1; } 38%,92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demoCard { 0%,32% { opacity: 0; transform: translateY(14px); } 44%,90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes demoLaser { 0%,100% { top: 26%; } 50% { top: 70%; } }
@media (prefers-reduced-motion: reduce) {
  .demo-scan { opacity: 0; animation: none; }
  .demo-card { opacity: 1; transform: none; animation: none; }
  .demo-laser { animation: none; }
}

/* ───── Comparatif ───── */
.features-4 { grid-template-columns: repeat(4, 1fr); }
.compare-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
table.compare th, table.compare td { padding: 0.9rem 1rem; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare thead th { font-family: Outfit; font-size: 0.95rem; background: var(--surface-2); }
table.compare th.us, table.compare td.us { background: rgba(34,197,94,0.07); }
table.compare th.us { color: var(--accent); }
table.compare th.cl { color: var(--muted); }
table.compare td.feat { font-weight: 600; color: var(--text); }
table.compare td.us, table.compare td.cl { color: var(--muted); }
table.compare .yes { color: var(--accent); font-weight: 800; margin-right: 0.3rem; }
table.compare .no { color: #f87171; font-weight: 800; margin-right: 0.3rem; }
table.compare tbody tr:last-child td { border-bottom: none; }

/* ───── Démo CTA & footer ───── */
.demo-cta { text-align: center; }
.site-footer { text-align: center; padding: 2.5rem 0; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.site-footer .editor { margin-top: 0.4rem; }
.site-footer .editor a { font-weight: 700; }

@media (max-width: 900px) {
  .hero, .pricing, .features { grid-template-columns: 1fr; }
  .features-4 { grid-template-columns: 1fr 1fr; }
  .phone-stage { margin-top: 1.5rem; }
}
@media (max-width: 560px) {
  .features-4 { grid-template-columns: 1fr; }
  .nav-links { gap: 0.6rem; }
}
