/* Fabrik — tokens du design system. GÉNÉRÉ depuis docs/design-system/tokens.json : ne pas éditer à la main. */
/* Chargé en PREMIER (avant style.css). Thème : <html data-theme="light|dark|system">. */

@font-face { font-family: "Folsom"; src: url('/static/assets/fonts/Folsom-Black.woff2?v=51acd3987ce15d4ee500') format('woff2'); font-style: normal; font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url('/static/assets/fonts/InterDisplay-Variable.woff2?v=51acd3987ce15d4ee500') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }

:root, [data-theme="light"] {
  color-scheme: light;
  --surface-0: #fafafa;
  --surface-100: #ffffff;
  --surface-200: #f3f3f3;
  --surface-300: #e9e9e9;
  --ink: #151515;
  --ink-muted: #666666;
  --ink-soft: #373737;
  --ink-faint: #a8a8a8;
  --on-ink: #ffffff;
  --line: #e6e6e6;
  --line-strong: #8f8f8f;
  --brand: #17BD73;
  --brand-hover: #14a865;
  --on-brand: #05200f;
  --brand-tint: #e3f6ec;
  --brand-ink: #0a7a48;
  --focus: var(--brand-ink);
  --danger: #c4321c;
  --danger-tint: #fbe9e6;
  --warning: #9a5800;
  --warning-tint: #fbf0de;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23151515' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --on-media: #ffffff;
  --on-media-soft: #f3f3f3;
  --media-scrim: linear-gradient(to top, rgba(0, 0, 0, 0.6) 4%, rgba(0, 0, 0, 0) 39%);
  --canvas-ground: #f3f3f3;
  --canvas-dot: #d2d2d2;
  --canvas-wire: #858585;
  --scrim: rgba(10, 10, 10, 0.32);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-overlay: 0 2px 6px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: #000000;
  --surface-100: #141414;
  --surface-200: #1f1f1f;
  --surface-300: #2b2b2b;
  --ink: #f5f5f5;
  --ink-muted: #a1a1a1;
  --ink-soft: #d4d4d4;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23f5f5f5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ink-faint: #5c5c5c;
  --on-ink: #0a0a0a;
  --line: #262626;
  --line-strong: #6b6b6b;
  --brand: #17BD73;
  --brand-hover: #3fd08f;
  --on-brand: #05200f;
  --brand-tint: #0d2a1c;
  --brand-ink: #3fd08f;
  --focus: var(--brand-ink);
  --danger: #ff7b66;
  --danger-tint: #2d1210;
  --warning: #f2b24c;
  --warning-tint: #2b1f0c;
  --canvas-ground: #000000;
  --canvas-dot: #262626;
  --canvas-wire: #8c8c8c;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-float: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-overlay: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    color-scheme: dark;
    --surface-0: #000000;
    --surface-100: #141414;
    --surface-200: #1f1f1f;
    --surface-300: #2b2b2b;
    --ink: #f5f5f5;
    --ink-muted: #a1a1a1;
    --ink-soft: #d4d4d4;
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23f5f5f5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --ink-faint: #5c5c5c;
    --on-ink: #0a0a0a;
    --line: #262626;
    --line-strong: #6b6b6b;
    --brand: #17BD73;
    --brand-hover: #3fd08f;
    --on-brand: #05200f;
    --brand-tint: #0d2a1c;
    --brand-ink: #3fd08f;
    --focus: var(--brand-ink);
    --danger: #ff7b66;
    --danger-tint: #2d1210;
    --warning: #f2b24c;
    --warning-tint: #2b1f0c;
    --canvas-ground: #000000;
    --canvas-dot: #262626;
    --canvas-wire: #8c8c8c;
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow-float: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-overlay: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px rgba(0, 0, 0, 0.7);
  }
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-16: 64px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-page: 2px;
  --radius-page-inner: 1px;
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 44px;
  --rail-width: 56px;
  --sidebar-width: 180px;
  --duration-fast: 80ms;
  --duration-moderate: 160ms;
  --duration-slow: 240ms;
  --duration-loop: 1200ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: linear(0, 0.22 12%, 0.55 28%, 0.81 48%, 0.94 70%, 1);
  --ease-dialog: linear(0, 0.28 15%, 0.72 35%, 1.025 65%, 1);
  --font-display: Folsom, "Arial Black", sans-serif;
  --font-sans: "Inter Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Inter Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-display-xl-size: 64px; --type-display-xl-line: 0.95; --type-display-xl-weight: 900; --type-display-xl-tracking: -0.02em;
  --type-display-lg-size: 40px; --type-display-lg-line: 40px; --type-display-lg-weight: 900; --type-display-lg-tracking: -0.02em;
  --type-display-md-size: 26px; --type-display-md-line: 1.05; --type-display-md-weight: 900; --type-display-md-tracking: -0.02em;
  --type-heading-lg-size: 22px; --type-heading-lg-line: 28px; --type-heading-lg-weight: 600; --type-heading-lg-tracking: -0.02em;
  --type-heading-size: 16px; --type-heading-line: 22px; --type-heading-weight: 600; --type-heading-tracking: -0.02em;
  --type-body-size: 14px; --type-body-line: 20px; --type-body-weight: 400; --type-body-tracking: -0.02em;
  --type-body-strong-size: 14px; --type-body-strong-line: 20px; --type-body-strong-weight: 600; --type-body-strong-tracking: -0.02em;
  --type-body-sm-size: 13px; --type-body-sm-line: 18px; --type-body-sm-weight: 400; --type-body-sm-tracking: -0.02em;
  --type-caption-size: 12px; --type-caption-line: 16px; --type-caption-weight: 400; --type-caption-tracking: -0.02em;
  --type-numeric-xl-size: 36px; --type-numeric-xl-line: 40px; --type-numeric-xl-weight: 600; --type-numeric-xl-tracking: -0.02em;
  --type-label-size: 11px; --type-label-line: 16px; --type-label-weight: 600; --type-label-tracking: -0.02em;
  --type-button-label-size: 12px; --type-button-label-line: 16px; --type-button-label-weight: 600; --type-button-label-tracking: -0.02em;
  --type-micro-size: 8px; --type-micro-line: 12px;
  --type-project-title-size: 23.429px; --type-card-meta-size: 14.057px; --type-tag-card-size: 12.89px;
  --type-code-size: 12px; --type-code-line: 18px; --type-code-weight: 400; --type-code-tracking: -0.02em;
}

/* Classes typographiques : .t-<style> */
.t-display-xl { font-family: var(--font-display); font-size: var(--type-display-xl-size); line-height: var(--type-display-xl-line); font-weight: var(--type-display-xl-weight); letter-spacing: var(--type-display-xl-tracking); }
.t-display-lg { font-family: var(--font-display); font-size: var(--type-display-lg-size); line-height: var(--type-display-lg-line); font-weight: var(--type-display-lg-weight); letter-spacing: var(--type-display-lg-tracking); }
.t-display-md { font-family: var(--font-display); font-size: var(--type-display-md-size); line-height: var(--type-display-md-line); font-weight: var(--type-display-md-weight); letter-spacing: var(--type-display-md-tracking); }
.t-heading-lg { font-family: var(--font-sans); font-size: var(--type-heading-lg-size); line-height: var(--type-heading-lg-line); font-weight: var(--type-heading-lg-weight); letter-spacing: var(--type-heading-lg-tracking); }
.t-heading { font-family: var(--font-sans); font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); letter-spacing: var(--type-heading-tracking); }
.t-body { font-family: var(--font-sans); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: var(--type-body-weight); letter-spacing: var(--type-body-tracking); }
.t-body-strong { font-family: var(--font-sans); font-size: var(--type-body-strong-size); line-height: var(--type-body-strong-line); font-weight: var(--type-body-strong-weight); letter-spacing: var(--type-body-strong-tracking); }
.t-body-sm { font-family: var(--font-sans); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: var(--type-body-sm-weight); letter-spacing: var(--type-body-sm-tracking); }
.t-caption { font-family: var(--font-sans); font-size: var(--type-caption-size); line-height: var(--type-caption-line); font-weight: var(--type-caption-weight); letter-spacing: var(--type-caption-tracking); }
.t-numeric-xl { font-family: var(--font-sans); font-size: var(--type-numeric-xl-size); line-height: var(--type-numeric-xl-line); font-weight: var(--type-numeric-xl-weight); letter-spacing: var(--type-numeric-xl-tracking); font-variant-numeric: tabular-nums; }
.t-label { font-family: var(--font-mono); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: var(--type-label-weight); letter-spacing: var(--type-label-tracking); }
.t-button-label { font-family: var(--font-mono); font-size: var(--type-button-label-size); line-height: var(--type-button-label-line); font-weight: var(--type-button-label-weight); letter-spacing: var(--type-button-label-tracking); }
.t-code { font-family: var(--font-mono); font-size: var(--type-code-size); line-height: var(--type-code-line); font-weight: var(--type-code-weight); letter-spacing: var(--type-code-tracking); }

/* Canvas usage — generated from tokens.json canvasUsage and color tokens. */
:root{--type-usage-heading-size:18px;--type-usage-caption-size:var(--type-body-size);--type-usage-caption-line:var(--type-body-line);--type-usage-action-size:var(--type-caption-size);--type-usage-action-line:var(--type-caption-line);--type-usage-note-size:var(--type-caption-size);--radius-usage-track:1px;--radius-usage-segment:.5px;--type-usage-scope-size:var(--type-body-sm-size);--type-usage-scope-line:var(--type-body-sm-line);--usage-video:#c27aff;--usage-agent:#fb64b6;}
