:root {
  --bg: #0a0c11;
  --surface: #12151c;
  --surface-2: #181c25;
  --line: #222734;
  --text: #ffffff;
  --muted: #a9b0c0;
  --dim: #6b7183;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --mint: #34d399;
  --amber: #f59e0b;
  --coral: #fb7185;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #a5b4fc; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav .links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
.nav .links a { color: var(--muted); font-size: 0.95rem; }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.lang { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; }
.lang strong { color: var(--text); }
.lang a { color: var(--muted); }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 56px 20px 40px;
  background:
    radial-gradient(800px 420px at 50% -12%, rgba(124, 58, 237, 0.35), transparent 70%),
    radial-gradient(600px 300px at 85% 10%, rgba(52, 211, 153, 0.10), transparent 70%);
}
.hero .app-icon {
  width: 108px; height: 108px; border-radius: 26px;
  box-shadow: 0 20px 60px rgba(109, 40, 217, 0.5);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 10px auto 16px;
  max-width: 780px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #a5b4fc, #c084fc 55%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.tag {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  margin: 6px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; }
.btn-ghost { border: 1px solid #333a4a; color: var(--text); }
.btn-amber { background: var(--amber); color: #1a1200; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* Phones */
.phones {
  display: flex;
  gap: 22px;
  /* Centré sans couper le début quand ça défile : marges auto, pas
     justify-content: center. */
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.phones figure { flex: 0 0 auto; scroll-snap-align: center; }
.phones figure:first-child { margin-left: auto; }
.phones figure:last-child { margin-right: auto; }
.phones figure:nth-child(2) { transform: translateY(-18px); }
.phone {
  width: 250px;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #2a2f3d, #12151c);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }
.phones figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Sections */
section { padding: 60px 0; }
section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
section .sub { color: var(--muted); margin-bottom: 30px; max-width: 680px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  font-weight: 800;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card .ic {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: 12px;
  background: rgba(124, 58, 237, 0.16);
}
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.pill {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  margin: 5px 6px 0 0;
  font-size: 0.9rem;
}

.promise {
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(52, 211, 153, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.promise ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.promise li { color: var(--muted); padding-left: 26px; position: relative; }
.promise li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 800; }
.promise li strong { color: var(--text); }
.center { text-align: center; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin-top: 10px; }

/* Legal pages */
/* padding-top/bottom seulement : garder les marges latérales de .wrap. */
.legal { padding-top: 40px; padding-bottom: 80px; max-width: 760px; }
.legal h1 { font-size: 2rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; }
.legal p, .legal li { color: #d3d7e2; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--muted);
  margin: 18px 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 20px 50px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: var(--muted); margin: 0 8px; }
footer a:hover { color: var(--text); }
footer .made { margin-top: 10px; font-size: 0.85rem; color: var(--dim); }

@media (max-width: 640px) {
  .nav .links a.hide-sm { display: none; }
  .phone { width: 220px; }
  .phones figure:nth-child(2) { transform: none; }
}

/* Guides d'export */
.guide .crumbs { color: var(--dim); font-size: 0.9rem; margin-bottom: 14px; }
.guide .crumbs a { color: var(--muted); }
.guide .lead { font-size: 1.1rem; color: var(--text); }
.guide code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.88em; word-break: break-all; }
.guide-steps { list-style: none; counter-reset: gs; padding: 0 !important; margin: 18px 0; }
.guide-steps li {
  counter-increment: gs; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px 16px 64px; margin-bottom: 10px;
}
.guide-steps li::before {
  content: counter(gs); position: absolute; left: 16px; top: 16px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; font-weight: 800;
}
.guide-steps li strong { display: block; color: var(--text); }
.guide-steps li span { color: var(--muted); }
.guide .note { color: var(--dim); font-size: 0.92rem; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.bank-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  color: var(--text); transition: transform 0.12s ease, border-color 0.12s ease;
}
.bank-card:hover { transform: translateY(-2px); border-color: var(--violet); text-decoration: none; }
.bank-card span { color: var(--muted); font-size: 0.9rem; }
.bank-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.bank-links li { margin: 0 !important; }
.bank-links a { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.92rem; }
.bank-table { width: 100%; border-collapse: collapse; margin: 22px 0 12px; font-size: 0.95rem; }
.bank-table th, .bank-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d3d7e2; }
.bank-table th { color: var(--muted); font-weight: 700; }
.bank-table td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }
.guide-cta { margin: 36px 0 10px; }
.guide-cta h2 { border-top: none !important; margin-top: 0 !important; padding-top: 0 !important; }
@media (max-width: 640px) {
  .bank-table thead { display: none; }
  .bank-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .bank-table td { display: block; border: none; padding: 2px 0; }
}
