/* Ayiti Law — éléments communs de la page d'accueil et des pages de connexion :
   police, couleurs, mode sombre (par défaut) / clair ([data-theme="light"]), boutons, logo, bouton de thème.
   Tout est écrit pour ce site : une seule police (Inter, déjà hébergée), un serif système pour les titres. */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #0d1117;
  --surface: #141a23;
  --surface2: #1a212c;
  --ink: #eceff4;
  --ink2: #c3cad6;
  --ink3: #939cab;
  --lead: #939cab;
  --line: #242c39;
  --rule: #3a4556;
  --blue: #4d7cf0;
  --blue-ink: #9db8ff;
  --blue-bg: #14213f;
  --blue-line: #26407a;
  --amber: #fbbf24;
  --amber-bg: #2a2210;
  --amber-line: #4d3b12;
  --red-ink: #f87171;
  --red-bg: #2b1517;
  --red-line: #5a2327;
  --green-ink: #4ade80;
  --side: #10161e;
  --win-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04), 0 30px 90px -55px rgba(77, 124, 240, .4);
  /* Touches de lumière : très discrètes, quelques endroits seulement (voir « Lumières » en bas de fichier) */
  --glow-blue: rgba(77, 124, 240, .20);
  --glow-red: rgba(248, 113, 113, .15);
  --glow-red-halo: rgba(248, 113, 113, .34);
  --dot-glow: 0 0 7px currentColor;
  --hair-opacity: .6;
  --btn-bg: #eceff4;
  --btn-ink: #0d1117;
  --btn-hover: #ffffff;
  --chat-bg: #0f141b;
  --bubble-me: #173a2a;
  --bubble-me-ink: #d1fae5;
  --bubble-bot: #1a212c;
  --phone-edge: #2c3646;
  --header-bg: rgba(13, 17, 23, .88);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

[data-theme="light"] {
  color-scheme: light;
  --page: #f4f5f7;
  --surface: #ffffff;
  --surface2: #f4f4f5;
  --ink: #15171c;
  --ink2: #454a55;
  --ink3: #5f6571;
  --lead: #454a55;
  --line: #d9dce3;
  --rule: #15171c;
  --blue: #1d4ed8;
  --blue-ink: #1d4ed8;
  --blue-bg: #eff6ff;
  --blue-line: #bfdbfe;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-line: #fde68a;
  --red-ink: #dc2626;
  --red-bg: #fef2f2;
  --red-line: #fecaca;
  --green-ink: #15803d;
  --side: #fafafa;
  --win-shadow: 0 30px 60px -30px rgba(21, 23, 28, .28), 0 2px 6px rgba(21, 23, 28, .06);
  --glow-blue: rgba(29, 78, 216, .08);
  --glow-red: rgba(220, 38, 38, .06);
  --glow-red-halo: rgba(220, 38, 38, .2);
  --dot-glow: 0 0 0 transparent;
  --hair-opacity: .35;
  --btn-bg: #15171c;
  --btn-ink: #ffffff;
  --btn-hover: #2b2f38;
  --chat-bg: #f1f2f4;
  --bubble-me: #dcfce7;
  --bubble-me-ink: #14532d;
  --bubble-bot: #ffffff;
  --phone-edge: #15171c;
  --header-bg: rgba(244, 245, 247, .9);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font: 17px/1.6 var(--sans);
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 6px; background: var(--btn-bg); color: var(--btn-ink); }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { background: var(--btn-hover); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--surface2); }
.btn--ghost { color: var(--ink); padding: 0 12px; }
.btn--ghost:hover { background: var(--surface2); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--stop { background: #dc2626; color: #fff; min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--stop:hover { background: #b91c1c; }

/* ── Logo et marque ──────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.2px; }
.logo {
  width: 32px; height: 32px; border-radius: 4px; flex: none;
  background: var(--ink); color: var(--page);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: -.5px;
}
.logo--sm { width: 28px; height: 28px; font-size: 12px; }
.logo--round { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; }

/* ── Bouton de thème (sombre / clair) ────────────────────── */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink2);
  font-size: 13.5px; font-weight: 550; cursor: pointer; transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--rule); color: var(--ink); }
.theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }
.theme-toggle__label { display: none; }
