/* ---------- Vitrine SangoCash ---------- */
:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --bg-deep: #0b1f1a;
  --card: #ffffff;
  --text: #0f1f1b;
  --muted: #5b6b67;
  --border: #e3ebe8;
  --accent: #0F8A55;
  --accent-hover: #0b6f44;
  --accent-soft: #e4f3eb;
  --accent-text: #0b6f44;
  --red: #E5484D;
  --shadow: 0 20px 60px rgba(8, 40, 32, .12);
  --nav-bg: rgba(255, 255, 255, .86);
}
[data-theme="dark"] {
  --bg: #0b1412;
  --bg-soft: #111d1a;
  --bg-deep: #050c0a;
  --card: #15231f;
  --text: #e8f0ed;
  --muted: #93a6a0;
  --border: #22332e;
  --accent: #22b573;
  --accent-hover: #3cc98a;
  --accent-soft: #0e2a1d;
  --accent-text: #5fd69a;
  --red: #E5484D;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --nav-bg: rgba(11, 20, 18, .86);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 24px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.outline { border-color: var(--text); color: var(--text); }
.btn.outline:hover { background: var(--text); color: var(--bg); }
.btn.light { background: #fff; color: #0b1f1a; }
.btn.light:hover { background: #e6f7f2; }
.btn.ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn.lg { padding: 15px 30px; font-size: 16px; }

/* Logo (version claire / sombre) */
.brand-logo { height: 34px; width: auto; }
.brand-dark { display: none; }
[data-theme="dark"] .brand-light { display: none; }
[data-theme="dark"] .brand-dark { display: block; }
.footer .brand-logo { height: 30px; }
.red-dot { color: var(--red); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20; background: var(--nav-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.nav-links { display: none; gap: 28px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { padding: 9px 18px; font-size: 14px; }
.nav-login { display: none; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.theme-btn:hover { background: var(--bg-soft); color: var(--text); }
@media (min-width: 900px) { .nav-links { display: flex; } }
@media (min-width: 560px) { .nav-login { display: inline-flex; } }

/* Héros */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 22px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 540px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* Téléphone de démonstration */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone-stage::before {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.phone {
  position: relative; width: 290px; max-width: 100%; border-radius: 40px; padding: 12px;
  background: #0b1f1a; box-shadow: var(--shadow);
}
.screen { border-radius: 30px; overflow: hidden; background: #efeae2; }
[data-theme="dark"] .screen { background: #0b141a; }
.screen-head { background: #0F8A55; color: #fff; padding: 22px 16px 14px; }
[data-theme="dark"] .screen-head { background: #1f2c33; }
.screen-head small { opacity: .85; font-size: 12px; }
.screen-head .bal { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.chat { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 290px; }
.bubble {
  max-width: 78%; padding: 8px 12px 6px; border-radius: 10px; font-size: 13px; line-height: 1.35;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13); background: #fff; color: #111b21;
}
.bubble.out { align-self: flex-end; background: #d9fdd3; }
[data-theme="dark"] .bubble { background: #202c33; color: #e9edef; }
[data-theme="dark"] .bubble.out { background: #005c4b; }
.bubble .amt { font-weight: 800; font-size: 17px; }
.bubble .amt.in { color: #0F8A55; }
.bubble .t { font-size: 10px; opacity: .6; text-align: right; margin-top: 2px; }
.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.float-card b { display: block; font-size: 14px; }
.float-card .ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0;
}
.float-card.a { right: -8px; top: 14%; }
.float-card.b { left: -8px; bottom: 12%; }
@media (max-width: 480px) { .float-card { display: none; } }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent-text); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Bascule Particuliers / Entreprises */
.split { display: grid; gap: 20px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  border-radius: 28px; padding: 36px 28px; display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--border); background: var(--card);
}
.panel.dark { background: var(--bg-deep); color: #e8f0ed; border-color: transparent; }
.panel.dark .muted { color: #9fb3ad; }
.panel h3 { font-size: 28px; letter-spacing: -.02em; line-height: 1.2; }
.panel .muted { color: var(--muted); }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.panel .btn { align-self: flex-start; margin-top: auto; }

/* Fonctionnalités */
.grid3 { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 15px; }

/* Étapes */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* Développeurs */
.dev { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .dev { grid-template-columns: .9fr 1.1fr; } }
.dev .ticks { margin-top: 24px; }
.code {
  background: #0b1f1a; color: #d5e6e0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 13px; min-width: 0;
}
.code-bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); align-items: center; }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2d4640; }
.code-bar span { margin-left: 10px; font-size: 12px; color: #7f9a92; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; line-height: 1.7; }
.code .k { color: #6ee7c4; } .code .s { color: #f2c46d; } .code .c { color: #6b857d; }
.dev-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Sécurité */
.security { background: var(--bg-deep); color: #e8f0ed; }
.security .kicker { color: #5fd69a; }
.security .section-head p { color: #9fb3ad; }
.security .feature { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.security .feature p { color: #9fb3ad; }
.security .feature .ic { background: rgba(34, 181, 115, .16); color: #5fd69a; }
.security .feature:hover { box-shadow: none; }

/* Appel final */
.cta-box {
  border-radius: 32px; padding: 56px 28px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #0F8A55 0%, #0a6239 100%); position: relative; overflow: hidden;
}
.cta-box::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .07); right: -120px; top: -140px;
}
.cta-box h2 { color: #fff; position: relative; }
.cta-box p { margin: 16px auto 0; max-width: 520px; opacity: .9; font-size: 18px; position: relative; }
.cta-box .hero-cta { justify-content: center; position: relative; }

/* Pied de page */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a:hover { color: var(--text); }
.foot-grid .brand { color: var(--text); margin-bottom: 12px; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page d'aide / page 404 ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 620px; }
.faq { max-width: 780px; padding: 24px 0 72px; }
.faq h2 { font-size: 14px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: .08em; margin: 36px 0 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--card); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }
.faq details > div p + p, .faq details > div ol, .faq details > div ul { margin-top: 8px; }
.faq ol, .faq ul { padding-left: 20px; margin-bottom: 0; }
.faq b { color: var(--text); }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound .code { font-size: 96px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.notfound h1 { font-size: 28px; margin-top: 12px; }
.notfound p { color: var(--muted); margin: 10px 0 26px; }
.notfound .hero-cta { justify-content: center; margin-top: 0; }
