/* Ganttmint — design tokens (source : design system Ganttmint, tokens.json v1).
   Toujours passer par ces variables : jamais d'hexadécimal en dur dans les composants. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/InterVariable-latin.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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/InterVariable-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --surface-soft-2: #efeff1;
  --line: #e9e9ec;
  --line-2: #f2f2f4;
  --ink: #121214;
  --ink-muted: #64646c;
  --ink-faint: #a2a2aa;
  --brand: #5e6ad2;
  --brand-strong: #4a55c0;
  --brand-tint: #e2e4f7;
  --on-brand: #ffffff;
  --today: #ff5a36;
  --danger: #d4333a;
  --line-strong: color-mix(in srgb, var(--ink) 16%, var(--surface));

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-xs: 7px; --radius-sm: 9px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 16px; --radius-pill: 999px;

  --shadow-pill: 0 2px 8px -4px rgba(16, 16, 22, .12);
  --shadow-button: inset 0 1px 0 rgba(255, 255, 255, .15), 0 8px 20px -8px rgba(16, 16, 22, .5);
  --shadow-window: 0 40px 80px -32px rgba(16, 16, 22, .28), 0 16px 40px -20px rgba(16, 16, 22, .14), 0 0 0 1px rgba(16, 16, 22, .07);
  --shadow-pop: 0 16px 40px -12px rgba(16, 16, 22, .25), 0 0 0 1px rgba(16, 16, 22, .07);
}

/* Thème sombre : suit le système, sauf si l'utilisateur a choisi (data-theme sur <html>) */
:root[data-theme="dark"] {
    --surface: #0e0e10;
    --surface-soft: #161619;
    --surface-soft-2: #1f1f23;
    --line: #2a2a30;
    --line-2: #1c1c20;
    --ink: #f4f4f6;
    --ink-muted: #a2a2aa;
    --ink-faint: #64646c;
    --brand: #8b94ec;
    --brand-strong: #aeb4f4;
    --brand-tint: #262a52;
    --on-brand: #0e0e10;
    --today: #ff6e4f;
    --danger: #ff6b6b;
    --line-strong: color-mix(in srgb, var(--ink) 22%, var(--surface));
    --shadow-button: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -10px rgba(0, 0, 0, .6);
    --shadow-window: 0 40px 80px -32px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
    --shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0e0e10;
    --surface-soft: #161619;
    --surface-soft-2: #1f1f23;
    --line: #2a2a30;
    --line-2: #1c1c20;
    --ink: #f4f4f6;
    --ink-muted: #a2a2aa;
    --ink-faint: #64646c;
    --brand: #8b94ec;
    --brand-strong: #aeb4f4;
    --brand-tint: #262a52;
    --on-brand: #0e0e10;
    --today: #ff6e4f;
    --danger: #ff6b6b;
    --line-strong: color-mix(in srgb, var(--ink) 22%, var(--surface));
    --shadow-button: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -10px rgba(0, 0, 0, .6);
    --shadow-window: 0 40px 80px -32px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
    --shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
    color-scheme: dark;
  }
}
