/* ==========================================================================
   PhoneVerify — Design System (monochrome)
   Blanc dominant + noir strict. Seuls les logos des messageries gardent
   leurs couleurs de marque. Glassmorphism, animations douces.
   ========================================================================== */

:root {
  --bg: #fafafa;
  --bg-2: #f2f2f3;
  --bg-3: #e8e9ec;
  --card: #ffffff;
  --card-strong: #f6f6f8;
  --border: rgba(10, 10, 14, 0.1);
  --border-strong: rgba(10, 10, 14, 0.2);
  --text: #0a0a0e;
  --muted: #52545e;
  --faint: #8f929e;
  --ink: #0a0a0e;            /* accent principal : noir pur */
  --ink-soft: rgba(10, 10, 14, 0.06);
  --grad: linear-gradient(120deg, #0a0a0e 0%, #3a3d4a 60%, #6b6f80 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --shadow: 0 24px 60px -28px rgba(10, 10, 14, 0.35);
  --shadow-card: 0 8px 30px -14px rgba(10, 10, 14, 0.15);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(10, 10, 14, 0.15); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
code, pre { font-family: var(--mono); }

/* ---------- Fond : halos gris + grille ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(10, 10, 14, 0.07), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(10, 10, 14, 0.05), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(10, 10, 14, 0.05), transparent 60%),
    var(--bg);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 14, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 14, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob.b1 { width: 420px; height: 420px; background: #dcdee6; top: -120px; right: -80px; }
.blob.b2 { width: 360px; height: 360px; background: #e4e6ec; top: 35%; left: -140px; animation-delay: -6s; }
.blob.b3 { width: 300px; height: 300px; background: #d6d8e0; bottom: -100px; left: 45%; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

/* ---------- Layout ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--ink-soft);
  border: 1px solid var(--border-strong);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.section-title {
  font-family: var(--display); font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px;
}
.section-sub { color: var(--muted); max-width: 640px; font-size: 17px; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(10, 10, 14, 0.35);
}
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14.5px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  font-family: var(--font);
}
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 26px -10px rgba(10, 10, 14, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(10, 10, 14, 0.55); }
.btn-ghost {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--card-strong); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 80px) 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 7px 14px; border-radius: 100px; font-size: 13px; color: var(--muted);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 8px rgba(10,10,14,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat .num {
  font-family: var(--display); font-size: 30px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: 13px; color: var(--faint); margin-top: 2px; }

/* ---------- Mockup téléphone (sombre : c'est un appareil) ---------- */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-glow {
  position: absolute; inset: 8% 12%; border-radius: 60px;
  background: radial-gradient(closest-side, rgba(10, 10, 14, 0.25), transparent);
  filter: blur(50px); z-index: 0; animation: glowPulse 5s ease-in-out infinite alternate;
}
@keyframes glowPulse { from { opacity: .5; } to { opacity: 1; } }
.phone {
  position: relative; z-index: 1;
  width: 300px; border-radius: 36px; padding: 12px;
  background: linear-gradient(160deg, #1b1c22, #0b0b10);
  border: 1px solid rgba(10, 10, 14, 0.3);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone-screen {
  background: #0c0c12; border-radius: 26px; overflow: hidden;
  min-height: 480px; display: flex; flex-direction: column;
}
.phone-notch { height: 26px; display: grid; place-items: center; }
.phone-notch::after { content: ""; width: 90px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.14); }
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.02); color: #f0f0f4;
}
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #f0f0f4;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #0c0c12;
}
.chat-head .name { font-size: 13px; font-weight: 600; }
.chat-head .status { font-size: 11px; color: #9a9ea8; }
.chat-body { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.45; color: #e8e8ee;
  opacity: 0; transform: translateY(12px) scale(.96);
  transition: opacity .4s, transform .4s;
}
.bubble.show { opacity: 1; transform: none; }
.bubble.bot { background: #21222c; border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.me { background: #f0f0f4; color: #0c0c12; border-bottom-right-radius: 4px; align-self: flex-end; }
.otp-code {
  font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: .35em;
  display: block; margin-top: 4px;
}
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9ea8; animation: tp 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tp { 0%,60%,100% { transform: translateY(0); opacity:.4;} 30% { transform: translateY(-4px); opacity:1;} }
.verified-chip {
  align-self: center; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #f0f0f4;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: 100px;
  opacity: 0; transform: scale(.8); transition: all .4s;
}
.verified-chip.show { opacity: 1; transform: none; }

/* ---------- Bandeau techno ---------- */
.techbar {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 0; overflow: hidden;
  background: var(--card);
}
.techbar-track { display: flex; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.techbar span { color: var(--faint); font-family: var(--mono); font-size: 14px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cartes features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: rgba(10,10,14,.35); box-shadow: 0 18px 44px -16px rgba(10, 10, 14, 0.3); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--ink-soft); border: 1px solid var(--border-strong);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--display); font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card p code, .sec-item span code, .step p code { font-size: 12.5px; color: var(--ink); font-weight: 600; }

/* ---------- Schéma architecture ---------- */
.arch {
  margin-top: 52px; background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 40px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.arch-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; width: 100%; }
.node {
  background: var(--card-strong); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 14px 20px; text-align: center; min-width: 150px;
  font-size: 14px; transition: border-color .3s, box-shadow .3s, transform .3s;
}
.node:hover { border-color: var(--ink); box-shadow: 0 8px 24px -8px rgba(10, 10, 14, 0.3); transform: translateY(-2px); }
.node b { display: block; font-family: var(--display); font-size: 15px; }
.node small { color: var(--faint); font-size: 12px; }
.node.public { border: 2px solid var(--ink); }
.node.store { border: 1px solid var(--border-strong); background: var(--card); }
.node.warn { border: 1px dashed var(--border-strong); }
.arch-arrow { color: var(--faint); font-size: 18px; line-height: 1; }

/* ---------- Canaux (seuls les logos gardent leurs couleurs de marque) ---------- */
.channel-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.channel-card { text-align: left; }
.channel-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ch-logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.ch-logo svg { width: 26px; height: 26px; }
.ch-logo.tg { background: rgba(34, 158, 217, .1); border: 1px solid rgba(34, 158, 217, .35); }
.ch-logo.sg { background: rgba(58, 118, 240, .1); border: 1px solid rgba(58, 118, 240, .35); }
.ch-logo.wa { background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .3); }
.chip {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 100px;
}
.chip.prod { color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.chip.exp  { color: var(--ink); background: var(--card); border: 1px dashed var(--border-strong); }
.channel-card ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.channel-card li { color: var(--muted); font-size: 13.5px; padding-left: 18px; position: relative; }
.channel-card li::before { content: "›"; position: absolute; left: 0; color: var(--ink); font-weight: 700; }
.risk-note {
  margin-top: 26px; display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 18px 22px; color: var(--muted); font-size: 14px;
}
.risk-note svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.risk-note b { color: var(--ink); }
.risk-note code.inl { color: var(--ink); background: var(--ink-soft); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; }
.step { padding: 0 22px; position: relative; }
.step::before {
  content: ""; position: absolute; top: 23px; left: 58px; right: -22px; height: 2px;
  background: linear-gradient(90deg, var(--border-strong), var(--border));
}
.step:last-child::before { display: none; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--ink); color: #fff;
  box-shadow: var(--shadow-card);
  display: grid; place-items: center; font-family: var(--display);
  font-weight: 700; font-size: 17px; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.step h4 { font-family: var(--display); font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* ---------- Blocs de code (sombres = contraste B&W) ---------- */
.codeblock {
  background: #0b0b10; border: 1px solid rgba(10, 10, 14, 0.25);
  border-radius: var(--radius); overflow: hidden; margin-top: 40px;
  box-shadow: var(--shadow-card);
}
.codeblock-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.codeblock-head .dots { display: flex; gap: 6px; }
.codeblock-head .dots i { width: 11px; height: 11px; border-radius: 50%; }
.codeblock-head .dots i:nth-child(1) { background: #f87171; }
.codeblock-head .dots i:nth-child(2) { background: #fbbf24; }
.codeblock-head .dots i:nth-child(3) { background: #34d399; }
.copy-btn {
  font-size: 12px; color: #9a9ea8; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: 7px; padding: 4px 12px;
  cursor: pointer; font-family: var(--font); transition: all .2s;
}
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.copy-btn.ok { color: #fff; border-color: rgba(255,255,255,.5); }
.codeblock pre {
  padding: 20px 22px; overflow-x: auto; font-size: 13.5px; line-height: 1.75;
  color: #d4d6de;
}
.codeblock .c-kw { color: #ffffff; font-weight: 600; }
.codeblock .c-str { color: #a9adb9; }
.codeblock .c-num { color: #ffffff; }
.codeblock .c-com { color: #62656f; font-style: italic; }
.codeblock .c-fn { color: #d4d6de; font-weight: 600; }
.codeblock .c-flag { color: #a9adb9; }

/* ---------- Onglets code ---------- */
.tabs { display: flex; gap: 6px; }
.tab-btn {
  font-size: 12.5px; font-weight: 600; color: #9a9ea8;
  background: transparent; border: none; padding: 6px 14px; border-radius: 8px;
  cursor: pointer; font-family: var(--font); transition: all .2s;
}
.tab-btn.active { color: #fff; background: rgba(255,255,255,.12); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- Sécurité ---------- */
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 44px; }
.sec-item { display: flex; gap: 14px; align-items: flex-start; }
.sec-item .tick {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); border: 1px solid var(--ink);
  display: grid; place-items: center; margin-top: 2px;
}
.sec-item .tick svg { width: 14px; height: 14px; }
.sec-item b { display: block; font-size: 15px; margin-bottom: 2px; }
.sec-item span { color: var(--muted); font-size: 13.5px; }

/* ---------- CTA ---------- */
.cta-box {
  background: linear-gradient(140deg, rgba(10,10,14,.06), rgba(10,10,14,.02));
  border: 1px solid var(--border-strong);
  border-radius: 24px; padding: 60px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(10,10,14,.08), transparent 45%);
}
.cta-box > * { position: relative; }

/* ---------- Terminal (sombre) ---------- */
.term {
  max-width: 560px; margin: 30px auto 0; text-align: left;
  background: #0b0b10; border: 1px solid rgba(10,10,14,.3); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.term pre { padding: 18px 20px; font-size: 13px; line-height: 1.9; color: #d4d6de; }
.term .prompt { color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border); padding: 48px 0 36px;
  color: var(--faint); font-size: 13.5px;
  background: var(--card);
}
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a:hover { color: var(--text); }

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; } .reveal.d6 { transition-delay: .48s; }

/* ==========================================================================
   PAGE DOCUMENTATION
   ========================================================================== */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 96px; }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.docs-nav a {
  display: block; padding: 7px 14px; border-left: 2px solid var(--border);
  color: var(--muted); font-size: 13.5px; transition: all .2s;
}
.docs-nav a:hover { color: var(--text); }
.docs-nav a.active { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
.docs-nav .nav-group { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 18px 14px 6px; }
.docs-nav .nav-group:first-child { padding-top: 0; }

.doc-section { margin-bottom: 72px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc-section h2 { font-family: var(--display); font-size: 26px; margin-bottom: 14px; }
.doc-section h3 { font-family: var(--display); font-size: 18px; margin: 28px 0 10px; }
.doc-section p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.doc-section code.inl {
  background: var(--ink-soft); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px; font-size: 13px; color: var(--ink); font-weight: 600;
}

.endpoint {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 22px 0; background: var(--card);
  box-shadow: var(--shadow-card);
}
.endpoint-head {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--card-strong); border-bottom: 1px solid var(--border);
}
.method {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 7px;
}
.method.post { color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.method.get  { color: var(--ink); background: var(--card); border: 1px solid var(--border-strong); }
.endpoint-head .path { font-family: var(--mono); font-size: 14.5px; }
.endpoint-body { padding: 20px; }
.endpoint-body > p { font-size: 14px; }
.endpoint-body .codeblock { box-shadow: none; margin-top: 10px; }

.param-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.param-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.param-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.param-table td:first-child { font-family: var(--mono); color: var(--ink); white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.param-table td:nth-child(2) { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; }
.param-table tr:last-child td { border-bottom: none; }
.req { color: var(--ink); font-size: 11px; font-weight: 700; }
.opt { color: var(--faint); font-size: 11px; }

.status-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.st {
  font-family: var(--mono); font-size: 12px; padding: 4px 12px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--muted); background: var(--card);
}
.st.s2 { color: #fff; background: var(--ink); border-color: var(--ink); }
.st.s4 { color: var(--ink); border-color: var(--border-strong); }
.st.s5 { color: var(--ink); border: 1px dashed var(--border-strong); }

/* ---------- Console / playground ---------- */
.console-box {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 26px; margin-top: 22px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.form-field input, .form-field select {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: 14px; font-family: var(--font);
  outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-field input:focus, .form-field select:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,14,.12);
}
.form-field input.mono { font-family: var(--mono); font-size: 13px; }
.checkbox-row { display: flex; gap: 18px; align-items: center; padding: 4px 0; }
.checkbox-row label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.checkbox-row input { accent-color: var(--ink); width: 16px; height: 16px; }
.console-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.console-out {
  margin-top: 18px; background: #0b0b10; border: 1px solid rgba(10,10,14,.3);
  border-radius: 12px; padding: 18px; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.7; white-space: pre-wrap; word-break: break-all;
  color: #b8bac4; min-height: 80px; display: none;
}
.console-out.show { display: block; }
.console-out .ok { color: #fff; font-weight: 600; }
.console-out .err { color: #8a8d99; }
.console-divider { border: none; border-top: 1px dashed var(--border-strong); margin: 24px 0; }

/* ---------- Sections alternées ---------- */
.alt-section {
  background: var(--card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; }
  .grid-3, .channel-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .step::before { display: none; }
  .sec-list { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .docs-nav .nav-group { width: 100%; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ---------- Authentification ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--nav-h) + 24px) 24px 60px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-card); }
.auth-card h1 { font-family: var(--display); font-size: 24px; text-align: center; margin-top: 18px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-top: 6px; }
.auth-tabs { display: flex; background: var(--bg-2); border-radius: 12px; padding: 4px; margin: 24px 0 20px; }
.auth-tabs button { flex: 1; padding: 10px; border: none; border-radius: 9px; background: transparent; font: 600 14px var(--font); color: var(--muted); cursor: pointer; transition: all .2s; }
.auth-tabs button.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-card); }
.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.active { display: flex; }
.auth-err { display: none; background: var(--bg-2); border: 1px dashed var(--border-strong); color: var(--ink); font-size: 13px; padding: 10px 14px; border-radius: 10px; }
.auth-err.show { display: block; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { width: 100%; justify-content: center; }
.g-mark { font-family: var(--display); font-weight: 700; font-size: 16px; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 20px; }
.auth-logo { display: flex; justify-content: center; }

/* ---------- Grille tarifaire ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.price-card.featured p, .price-card.featured li { color: #c9ccd6; }
.price { font-family: var(--display); font-size: 40px; font-weight: 700; margin: 10px 0 4px; }
.price span { font-size: 15px; color: var(--faint); font-weight: 500; }
.price-card.featured .price span { color: #9a9ea8; }
.price-card ul { list-style: none; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { font-size: 14px; color: var(--muted); padding-left: 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--ink); }
.price-card.featured li::before { color: #fff; }
.price-card .btn { justify-content: center; }
.price-card .chip { position: absolute; top: 20px; right: 20px; }

/* ---------- Dashboard ---------- */
.dash-wrap { max-width: 1100px; margin: 0 auto; padding: calc(var(--nav-h) + 40px) 24px 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.dash-head h1 { font-family: var(--display); font-size: 30px; }
.dash-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.dash-user .mail { font-size: 14px; font-weight: 600; }
.dash-user .plan { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dash-grid .card.full { grid-column: 1 / -1; }
.card h3 { margin-bottom: 6px; }
.card .hint { color: var(--muted); font-size: 13px; }
.key-new { background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 18px; font-family: var(--mono); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; word-break: break-all; }
.key-new .copy-btn { flex-shrink: 0; }
.keys-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13.5px; }
.keys-table td, .keys-table th { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.keys-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.keys-table .mono { font-family: var(--mono); font-size: 12px; }
.mini-btn { background: var(--card); border: 1px solid var(--border-strong); border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: var(--font); }
.mini-btn:hover { background: var(--card-strong); }
.ch-status { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 920px) { .pricing-grid, .dash-grid { grid-template-columns: 1fr; } .price-card.featured { transform: none; } }

/* ---------- Dashboard sidebar (style console SaaS) ---------- */
.dash-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 24px 18px; background: var(--card);
  border-right: 1px solid var(--border);
}
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.side-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.side-link:hover { background: var(--card-strong); color: var(--text); }
.side-link.active { background: var(--ink); color: #fff; }
.side-user {
  display: flex; align-items: center; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.side-user-info { flex: 1; min-width: 0; }
.side-user-info .mail { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-info .plan { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }

.dash-main { padding: 40px 44px; min-width: 0; }
.dash-pane { display: none; }
.dash-pane.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pane-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.pane-head h1 { font-family: var(--display); font-size: 28px; }
.pane-head .hint { color: var(--muted); font-size: 14px; margin-top: 4px; }

.plan-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.plan-name { font-family: var(--display); font-size: 24px; font-weight: 700; }
.plan-month { font-family: var(--display); font-size: 24px; font-weight: 700; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { padding: 20px 22px; }
.stat-label { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.stat-value { font-family: var(--display); font-size: 34px; font-weight: 700; }

.chart { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .4s; }
.bar.sent { background: #d3d6df; }
.bar.ok { background: var(--ink); }
.bar-col:hover .bar { opacity: .75; }
.chart-legend { display: flex; gap: 20px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.chart-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.lg.sent { background: #d3d6df; } .lg.ok { background: var(--ink); }

@media (max-width: 860px) {
  .dash-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 12px; }
  .side-nav { flex-direction: row; }
  .side-link { white-space: nowrap; }
  .side-user { border: none; padding-top: 0; }
  .dash-main { padding: 24px 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page documentation ---------- */
.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 130px 24px 60px; }
.docs-sidebar { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.docs-sidebar a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; border-left: 2px solid transparent; }
.docs-sidebar a:hover, .docs-sidebar a.active { color: var(--text); background: var(--card-strong); border-left-color: var(--ink); }
.docs-content { min-width: 0; }
.doc-section { margin-bottom: 52px; scroll-margin-top: 110px; }
.doc-section h1 { font-family: var(--display); font-size: 34px; margin-bottom: 12px; }
.doc-section h2 { font-family: var(--display); font-size: 26px; margin-bottom: 12px; }
.doc-section h3 { font-size: 17px; margin: 24px 0 10px; }
.doc-section p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 10px; }
.doc-section .lead { font-size: 16px; color: var(--text); }
code.inl { font-family: var(--mono); font-size: .88em; background: var(--card-strong); padding: 2px 6px; border-radius: 5px; }
.param-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 10px 0; }
.param-table th { text-align: left; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.param-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.req { color: var(--faint); font-size: 11px; }
.steps { padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 2; }
.checklist { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.9; list-style: none; }
.checklist li::before { content: "— "; color: var(--faint); }
.endpoint { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; flex-wrap: wrap; }
.endpoint code { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.endpoint p { flex-basis: 100%; margin: 4px 0 0; font-size: 13.5px; }
.method { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; letter-spacing: .05em; }
.method.post { background: var(--ink); color: #fff; }
.method.get { background: var(--card-strong); color: var(--text); border: 1px solid var(--border); }
@media (max-width: 860px) { .docs-layout { grid-template-columns: 1fr; padding-top: 110px; } .docs-sidebar { position: static; flex-direction: row; flex-wrap: wrap; } }

/* Fix : liste d'étapes de la doc (la classe .steps est déjà une grille) */
.doc-steps { padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 2.1; display: block; }
.doc-steps li { display: list-item; }
.doc-steps b { color: var(--text); }
