/* GPChat — habillage commun des pages existantes (docs, console, confidentialité, conditions, DevFest…).
   Chargé APRÈS le <style> de chaque page : il redéfinit leurs variables de couleur et la typographie pour
   suivre le système de design de l'accueil (site.css), sans toucher au contenu ni au comportement. */
:root {
  --bg: #f4efe4; --bg-soft: #ebe4d4; --bg-hover: #e4dcc9; --bg-elev: #fbf8f1; --bg-alt: #ebe4d4; --card: #fbf8f1; --soft: #ebe4d4;
  --border: rgba(14, 32, 39, .14); --border-strong: rgba(14, 32, 39, .26);
  --text: #0e2027; --text-2: #2c424a; --text-muted: #51636a; --muted: #51636a; --faint: #7b8a8f;
  --accent: #1b8466; --accent-2: #14434f; --accent-soft: rgba(27, 132, 102, .13); --accent-text: #14434f; --primary: #14434f;
  --ok: #1b8466; --ok-soft: rgba(27, 132, 102, .12); --warn: #8f6511; --warn-soft: rgba(169, 122, 28, .13);
  --danger: #b3261e; --danger-soft: rgba(179, 38, 30, .09);
  --code-bg: #08171b; --code-text: #d6e4de;
  --font: "Instrument Sans", "Segoe UI", system-ui, sans-serif; --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071317; --bg-soft: #0b1b21; --bg-hover: #11272e; --bg-elev: #0f2329; --bg-alt: #0b1b21; --card: #0f2329; --soft: #0b1b21;
    --border: rgba(238, 242, 238, .13); --border-strong: rgba(238, 242, 238, .26);
    --text: #eef2ee; --text-2: #cdd9d6; --text-muted: #9db0b2; --muted: #9db0b2; --faint: #6f8588;
    --accent: #2fa683; --accent-2: #8fd0c0; --accent-soft: rgba(63, 191, 152, .14); --accent-text: #8fd0c0; --primary: #1f7d68;
    --ok: #3fbf98; --ok-soft: rgba(63, 191, 152, .12); --warn: #e2b857; --warn-soft: rgba(226, 184, 87, .12);
    --danger: #f08a82; --danger-soft: rgba(240, 138, 130, .11);
    --code-bg: #050e11;
  }
}
:root[data-theme="dark"] {
  --bg: #071317; --bg-soft: #0b1b21; --bg-hover: #11272e; --bg-elev: #0f2329; --bg-alt: #0b1b21; --card: #0f2329; --soft: #0b1b21;
  --border: rgba(238, 242, 238, .13); --border-strong: rgba(238, 242, 238, .26);
  --text: #eef2ee; --text-2: #cdd9d6; --text-muted: #9db0b2; --muted: #9db0b2; --faint: #6f8588;
  --accent: #2fa683; --accent-2: #8fd0c0; --accent-soft: rgba(63, 191, 152, .14); --accent-text: #8fd0c0; --primary: #1f7d68;
  --ok: #3fbf98; --ok-soft: rgba(63, 191, 152, .12); --warn: #e2b857; --warn-soft: rgba(226, 184, 87, .12);
  --danger: #f08a82; --danger-soft: rgba(240, 138, 130, .11);
  --code-bg: #050e11;
}

body { font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Bricolage Grotesque", var(--font); letter-spacing: -.022em; text-wrap: balance; }
h1 { font-weight: 800; } h2, h3 { font-weight: 700; }
.brand { font-family: "Bricolage Grotesque", var(--font); letter-spacing: -.03em; }
.brand img { border-radius: 0; object-fit: contain; }
:focus-visible { outline: 3px solid #e2b857; outline-offset: 2px; }
/* boutons et pastilles : forme « pilule » de l'accueil */
.btn, button.btn, a.btn, .primary, a.primary { border-radius: 999px; }
.icon-btn, .tool { border-radius: 999px; }
pre, .code, pre code { font-family: var(--mono); }
.hero-pattern-skin { display: none; }

/* Pages en carte (DevFest, bot partagé, 404) : fond « nuit » avec halo, comme le héros */
body > main.card, body > .box { position: relative; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
