/* Jetons du configurateur de joint debout — habillage Outillab.
 * Deux thèmes : clair (par défaut) et sombre. Le thème est posé sur <html data-theme="light|dark">
 * par outillab-module.js (choix mémorisé, sinon réglage du système) ; la scène 3D le suit (viewer.js). */
:root {
  color-scheme: light;

  --jd-ink: #173653;            /* encre : texte fort */
  --jd-slate: #54708a;          /* texte secondaire */
  --jd-bg: #f4f7fb;
  --jd-panel: #ffffff;
  --jd-panel-2: #eef3f9;
  --jd-line: #d7e3ef;
  --jd-line-strong: #c3d3e3;
  --jd-line-soft: #e6edf5;
  --jd-input: #ffffff;
  --jd-text: var(--jd-ink);
  --jd-text-2: var(--jd-slate);
  --jd-muted: #54708a;
  --jd-accent: #1763c5;         /* action principale */
  --jd-accent-2: #0f4fa3;       /* action au survol */
  --jd-accent-soft: #e8f1fd;
  --jd-on-accent: #ffffff;
  --jd-blue: #1763c5;
  --jd-ok: #0f7d5f;
  --jd-navy: #173653;           /* surfaces pleines : toast, pastilles */
  --jd-orange: var(--jd-accent);
  --jd-orange-2: var(--jd-accent-2);

  --jd-warn: #b95616;
  --jd-warn-bg: #fef1e4;
  --jd-warn-line: #f0c79a;
  --jd-err: #c0392b;

  --jd-scene-1: #ffffff;        /* fond de la zone 3D */
  --jd-scene-2: #e9edf4;
  --jd-voile: rgba(255, 255, 255, .94);
  --jd-ombre: 0 4px 14px rgba(23, 54, 83, .08);
  --jd-ombre-forte: 0 12px 34px rgba(23, 54, 83, .18);

  --jd-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --jd-serif: Georgia, 'Times New Roman', serif;
  --jd-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --jd-tracking-eyebrow: .12em;
  --jd-radius: 10px;
  --jd-radius-sm: 8px;
  --jd-radius-lg: 12px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --jd-ink: #eef5ff;
  --jd-slate: #acc3de;
  --jd-bg: #08182b;
  --jd-panel: #102640;
  --jd-panel-2: #15314f;
  --jd-line: #2b496b;
  --jd-line-strong: #3a5d86;
  --jd-line-soft: #1f3a5a;
  --jd-input: #0b1e35;
  --jd-muted: #acc3de;
  --jd-accent: #79b7ff;
  --jd-accent-2: #a9d0ff;
  --jd-accent-soft: #14335a;
  --jd-on-accent: #08182b;
  --jd-blue: #79b7ff;
  --jd-ok: #4cc9a0;
  --jd-navy: #0b1e35;

  --jd-warn: #ffb870;
  --jd-warn-bg: #3a2a14;
  --jd-warn-line: #6b4a22;
  --jd-err: #ff8a7a;

  --jd-scene-1: #12304f;
  --jd-scene-2: #0b1e35;
  --jd-voile: rgba(16, 38, 64, .92);
  --jd-ombre: 0 4px 14px rgba(0, 0, 0, .35);
  --jd-ombre-forte: 0 12px 34px rgba(0, 0, 0, .5);
}

/* bascule de thème (en-tête) */
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; }
.theme-ico { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); display: inline-block; }
@media (max-width: 720px) { .theme-label { display: none; } }
