/* AICredit — tokens de marque, repris de ShareMyDemo (même échelle, même shell) ; couleurs dans
   les bleus Coupa (demande de Loïc, 17/11/2026). Chargé avant app.css et shell.css. */

/* Manrope (SIL Open Font License 1.1, fonts/OFL.txt), served from AICredit itself: one variable
   file, weights 400 to 800, Latin subset. The app and the public site share it. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-400-800.101877a7a906.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;
}

:root {
  /* Brand: bleu Coupa #0A6ED1 (boutons, liens), bleu clair #4A9BF0, bleu nuit #061A33 pour le
     menu ; l'accent des boutons reste assez profond pour un texte blanc lisible. */
  --aic-navy: #0B1F3A;
  --aic-accent: #0A6ED1;
  --aic-cyan: #4A9BF0;
  --aic-gradient: linear-gradient(135deg, #0A6ED1, #4A9BF0);
  --aic-bg: #F5F8FC;
  --aic-border: #E1E8F0;
  --aic-muted: #5A6B80;

  /* Surfaces and lines */
  --aic-paper: #FFFFFF;
  --aic-subtle: #FAFBFD;         /* table heads, quiet wells */
  --aic-border-strong: #C5D2E0;  /* form controls, dashed empties */
  --aic-faint: #8A9AAD;          /* placeholders, tertiary text */

  /* Accents */
  --aic-accent-dark: #0856A8;      /* hover / pressed */
  --aic-accent-soft: #E8F2FD;      /* selected rows, notes */
  --aic-cyan-soft: #F0F7FF;

  /* Status: text on soft fill, always paired */
  --aic-ok: #0E9F8E;             /* teal between blue and cyan, readable on white */
  --aic-ok-soft: #E0F8F8;
  --aic-ok-text: #08756A;
  --aic-warn: #C98A1B;
  --aic-warn-soft: #FDF3DC;
  --aic-warn-text: #7A5410;
  --aic-bad: #C0392B;
  --aic-bad-soft: #FBECEB;
  --aic-bad-text: #7A1F17;
  --aic-bad-line: #E7B3AD;
  --aic-neutral-soft: #EDF1F6;

  /* Type: one family, as on the public site */
  --aic-sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --aic-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --aic-text-xs: 0.78rem;    /* 12.5px: badges, table heads */
  --aic-text-sm: 0.875rem;   /* 14px: meta, hints, tables */
  --aic-text-md: 0.9375rem;  /* 15px: body in the app */
  --aic-text-lg: 1.0625rem;  /* 17px: card titles */
  --aic-text-xl: 1.25rem;    /* 20px: section titles */
  --aic-text-2xl: 1.75rem;   /* 28px: page titles */

  /* Space: 4px steps */
  --aic-space-1: 4px;
  --aic-space-2: 8px;
  --aic-space-3: 12px;
  --aic-space-4: 16px;
  --aic-space-5: 20px;
  --aic-space-6: 24px;
  --aic-space-8: 32px;
  --aic-space-10: 40px;

  /* Shape and depth */
  --aic-radius: 12px;            /* cards, panels, tables */
  --aic-radius-control: 8px;     /* inputs, buttons */
  --aic-radius-pill: 999px;
  --aic-shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.05);
  --aic-shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 4px 16px -6px rgba(11, 31, 58, 0.08);
  --aic-shadow-raised: 0 1px 2px rgba(11, 31, 58, 0.05), 0 18px 48px -12px rgba(10, 110, 209, 0.22);
  --aic-focus: 0 0 0 3px rgba(10, 110, 209, 0.25);

  /* Signed-in shell (shell.css): a dark navy side menu, the page at full width */
  --aic-night: #061A33;          /* side menu */
  --aic-night-2: #0C2A4D;        /* side menu hover and current item */
  --aic-night-3: #173A63;        /* side menu lines, counts */
  --aic-on-night: #EEF5FF;
  --aic-on-night-muted: #9DB4CF;
  --aic-sidebar: 240px;
  --aic-topbar: 64px;            /* sticky offsets in app.css count on it */
  --aic-content-max: 1680px;

  --aic-wrap: 1180px;            /* same width as the public site */
}
