/*
 * BryOne Technologies — tokens de la charte (version 2 du kit de marque, 12.10.2026)
 * Généré par outils/generer_tokens.py depuis charte/tokens.json : ne pas modifier à la main.
 * Thème clair par défaut ; thème sombre via prefers-color-scheme ou [data-theme="dark"].
 * [data-theme="light"] force le thème clair.
 */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Couleurs (thème clair) */
  --bry-brand: #D52B1E;
  --bry-brand-700: #A61E14;
  --bry-brand-100: #FBE9E7;
  --bry-glacier: #A9DCEB;
  --bry-ink: #14171F;
  --bry-muted: #555B66;
  --bry-surface: #FFFFFF;
  --bry-surface-2: #F5F4F2;
  --bry-line: #E2DFDA;
  --bry-on-brand: #FFFFFF;

  /* Typographies */
  --bry-font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --bry-font-sans: "Inter", "Segoe UI", Arial, sans-serif;
  --bry-font-mono: "JetBrains Mono", Consolas, monospace;
  --bry-text-display-family: var(--bry-font-display);
  --bry-text-display-size: 56px;
  --bry-text-display-line-height: 60px;
  --bry-text-display-weight: 700;
  --bry-text-h1-family: var(--bry-font-display);
  --bry-text-h1-size: 40px;
  --bry-text-h1-line-height: 46px;
  --bry-text-h1-weight: 700;
  --bry-text-h2-family: var(--bry-font-display);
  --bry-text-h2-size: 28px;
  --bry-text-h2-line-height: 34px;
  --bry-text-h2-weight: 600;
  --bry-text-h3-family: var(--bry-font-sans);
  --bry-text-h3-size: 20px;
  --bry-text-h3-line-height: 28px;
  --bry-text-h3-weight: 600;
  --bry-text-body-family: var(--bry-font-sans);
  --bry-text-body-size: 16px;
  --bry-text-body-line-height: 24px;
  --bry-text-body-weight: 400;
  --bry-text-small-family: var(--bry-font-sans);
  --bry-text-small-size: 14px;
  --bry-text-small-line-height: 20px;
  --bry-text-small-weight: 400;
  --bry-text-code-family: var(--bry-font-mono);
  --bry-text-code-size: 14px;
  --bry-text-code-line-height: 20px;
  --bry-text-code-weight: 500;

  /* Espacements */
  --bry-space-2: 8px;
  --bry-space-4: 16px;
  --bry-space-6: 24px;
  --bry-space-12: 48px;

  /* Rayons */
  --bry-radius-sm: 6px;
  --bry-radius-md: 10px;
  --bry-radius-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bry-brand: #D52B1E;
    --bry-brand-700: #FF8F86;
    --bry-brand-100: #3A1714;
    --bry-glacier: #A9DCEB;
    --bry-ink: #F2F1EF;
    --bry-muted: #A8ADB7;
    --bry-surface: #14171F;
    --bry-surface-2: #1E222B;
    --bry-line: #30353F;
    --bry-on-brand: #FFFFFF;
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --bry-brand: #D52B1E;
  --bry-brand-700: #FF8F86;
  --bry-brand-100: #3A1714;
  --bry-glacier: #A9DCEB;
  --bry-ink: #F2F1EF;
  --bry-muted: #A8ADB7;
  --bry-surface: #14171F;
  --bry-surface-2: #1E222B;
  --bry-line: #30353F;
  --bry-on-brand: #FFFFFF;
}
