/* Base commune du site Bazik ID : couleurs (celles de sdk_front/src/theme.ts), remise à zéro, typographie,
   boutons, marque. Chaque page ajoute sa feuille : landing.css, auth.css ou demo.css. */
:root {
  --brand: #2F275D; --brand-hover: #3B3175; --brand-soft: #ECEBF4;
  --surface: #FFFFFF; --surface-muted: #F6F5FA;
  --text: #1C1838; --text-secondary: #5F5B78; --placeholder: #8E8AA6; --border: #DEDCE8;
  --success: #0E7A4B; --success-soft: #E3F4EC; --warning: #8A5A00; --warning-soft: #FFF3DB;
  --danger: #B3261E; --danger-soft: #FBEAE8;
  --night: #14112B; --night-2: #1C1838; --night-line: #2E2850; --on-dark: #FFFFFF; --on-dark-secondary: #C9C6DB;
  --accent: #7C6CF2; --accent-text: #6A59E6; --accent-on-dark: #A99FF7;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5;
       color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--brand); color: var(--on-dark); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
/* Marque, boutons, liens */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
.brand img { height: 26px; width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 12px;
       font-size: 15px; font-weight: 600; white-space: nowrap; border: 0; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--brand); color: var(--on-dark); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: var(--surface); color: var(--brand); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-muted); }
.btn-white { background: var(--surface); color: var(--brand); height: 54px; }
.btn-white:hover { background: var(--brand-soft); }
.btn-line { border: 1px solid rgba(255,255,255,.35); color: var(--on-dark); height: 54px; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-full { width: 100%; height: 52px; }
.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--success-soft); color: var(--success); }
.pill-warn { background: var(--warning-soft); color: var(--warning); }
.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(169,159,247,.26); pointer-events: none; }
h1 { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--accent-text); }
.lead { font-size: 17px; line-height: 27px; color: var(--text-secondary); }
h2 { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.sub { font-size: 16px; line-height: 25px; color: var(--text-secondary); }
.num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-dark); font-weight: 700; font-size: 16px;
       display: flex; align-items: center; justify-content: center; flex: none; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 6px rgba(124,108,242,.18); } }
/* ───────────── Animations ─────────────
   Entrée du hero et des formulaires au chargement ; blocs [data-reveal] de l'accueil au défilement
   (site.js ajoute .is-in). Rien ne bouge si la personne a demandé moins d'animations. */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
/* ───────────── Tablette ───────────── */
@media (min-width: 640px) {
  h1 { font-size: 46px; line-height: 54px; }
}
/* ───────────── Ordinateur ───────────── */
@media (min-width: 1024px) {
  h1 { font-size: 58px; line-height: 66px; letter-spacing: -0.025em; }
  .lead { font-size: 19px; line-height: 30px; }
  h2 { font-size: 44px; line-height: 52px; }
  .sub { font-size: 18px; line-height: 28px; }
}
