/* sotactic.app (hub) — design tokens
   Identité propre au hub : aucune couleur de sotactic cup (pas d'orange).
   Palette « éditeur de code ». À importer avant toute autre feuille. */

/* Police hébergée sur le site (licence OFL, fonts/OFL.txt) au lieu de Google Fonts :
   aucune adresse IP de visiteur transmise à un tiers, affichage plus rapide. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Symboles de la page (➜ ✓ █ ░ ● ⏎ ↗ ↩, trait d’union insécable), absents du jeu latin : 3 Ko par graisse. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-symbols-400-normal.woff2") format("woff2");
  unicode-range: U+2011, U+2197, U+21A9, U+23CE, U+2588, U+2591, U+25CF, U+2713, U+279C;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-symbols-800-normal.woff2") format("woff2");
  unicode-range: U+2011, U+2197, U+21A9, U+23CE, U+2588, U+2591, U+25CF, U+2713, U+279C;
}

:root {
  /* Fonds */
  --hub-bg: #07090C;            /* page */
  --hub-surface: #0E1218;       /* cartes, fenêtres */
  --hub-surface-2: #0A0D12;     /* barres d'onglets, en-têtes de fenêtres */
  --hub-code: #07090C;          /* blocs de code dans les cartes, champs */
  --hub-grid: rgba(255,255,255,0.035); /* quadrillage de fond (32 px) */

  /* Bordures */
  --hub-border: #1E2632;
  --hub-border-soft: #161C25;
  --hub-border-strong: #2F3B4B; /* champs, boutons secondaires, pointillés */

  /* Texte */
  --hub-text: #E6EDF3;
  --hub-text-2: #A9B4C2;        /* paragraphes */
  --hub-text-3: #8B98A8;        /* légendes, commentaires de section */
  --hub-text-4: #5B6878;        /* commentaires de code, mentions (décoratif ou ≥ 13 px) */
  --hub-ghost-num: #1E2632;     /* grands numéros 01 / 02 / 03 */

  /* Couleurs « coloration syntaxique » */
  --hub-green: #3DFF8A;         /* action principale, prompt, succès, mot-clé n°1 */
  --hub-green-hover: #8CFFB8;
  --hub-on-green: #04140A;      /* texte sur bouton vert */
  --hub-cyan: #5CE1FF;          /* domaines, variables, mot-clé n°2, ressource cup */
  --hub-pink: #FF5CAA;          /* mots-clés de code, ressource web404 */
  --hub-pink-soft: #FF8CC4;
  --hub-yellow: #FFC857;        /* chaînes, états « sur devis », mot-clé n°3 */

  /* Pastilles macOS des fenêtres (décor) */
  --hub-dot-red: #FF5F57;
  --hub-dot-yellow: #FEBC2E;
  --hub-dot-green: #28C840;

  /* Typo : une seule famille, partout */
  --hub-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hub-h1: clamp(36px, 5.6vw, 72px);   /* 800, letter-spacing -0.045em, line-height 1.04 */
  --hub-h2: clamp(28px, 3.4vw, 44px);   /* 800, -0.04em */
  --hub-h3: 25px;                        /* 800, -0.03em, line-height 1.25 */
  --hub-body: 15px;                      /* line-height 1.7 */
  --hub-lead: 17px;
  --hub-small: 13.5px;

  /* Rayons */
  --hub-r-sm: 6px;   /* tags */
  --hub-r-md: 8px;   /* champs, cases à cocher-boutons */
  --hub-r-lg: 10px;  /* boutons, blocs de code */
  --hub-r-xl: 14px;  /* cartes-fenêtres */

  /* Mise en page */
  --hub-max: 1200px;
  --hub-hero-max: 980px;
  --hub-pad-x: 32px;   /* 20px sous 760px */
  --hub-touch: 44px;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hub-bg); color: var(--hub-text); font-family: var(--hub-font); }
:where(a, button, input, textarea):focus-visible { outline: 2px solid var(--hub-green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
