/* Revival — tokens de marque, repris de ShareMyDemo (même échelle, même shell) ; couleurs : or sur
   bandeau noir (demande de Loïc, 22/11/2026). Chargé avant app.css et shell.css. */

/* Manrope (SIL Open Font License 1.1, fonts/OFL.txt), served from Revival 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: or profond #8A6414 (boutons, liens ; texte blanc 5,4:1), or vif #D4AF37 sur le bandeau
     noir #0E0E10 (9,2:1), encre #17181C pour les titres. Contrastes AA vérifiés le 22/11/2026. */
  --aic-navy: #17181C;
  --aic-accent: #8A6414;
  --aic-cyan: #D4AF37;
  --aic-gradient: linear-gradient(135deg, #8A6414, #D4AF37);
  --aic-bg: #F8F7F4;
  --aic-border: #E7E3DA;
  --aic-muted: #6B665C;

  /* Surfaces and lines */
  --aic-paper: #FFFFFF;
  --aic-subtle: #FBFAF7;         /* table heads, quiet wells */
  --aic-border-strong: #D3CDBF;  /* form controls, dashed empties */
  --aic-faint: #9C968A;          /* placeholders, tertiary text */

  /* Accents */
  --aic-accent-dark: #6F500F;      /* hover / pressed */
  --aic-accent-soft: #FBF4E2;      /* selected rows, notes */
  --aic-cyan-soft: #FDF9EE;

  /* Status: text on soft fill, always paired */
  --aic-ok: #0E9F8E;             /* teal, readable on white */
  --aic-ok-soft: #E0F8F8;
  --aic-ok-text: #08756A;
  /* Alerte en orange, distincte de l'or de la marque. */
  --aic-warn: #C8661B;
  --aic-warn-soft: #FDEEDF;
  --aic-warn-text: #7A3B0E;
  --aic-bad: #C0392B;
  --aic-bad-soft: #FBECEB;
  --aic-bad-text: #7A1F17;
  --aic-bad-line: #E7B3AD;
  --aic-neutral-soft: #F1EFEA;

  /* 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(23, 24, 28, 0.05);
  --aic-shadow: 0 1px 2px rgba(23, 24, 28, 0.04), 0 4px 16px -6px rgba(23, 24, 28, 0.08);
  --aic-shadow-raised: 0 1px 2px rgba(23, 24, 28, 0.05), 0 18px 48px -12px rgba(138, 100, 20, 0.22);
  --aic-focus: 0 0 0 3px rgba(138, 100, 20, 0.28);

  /* Signed-in shell (shell.css): a black side menu with gold accents, the page at full width */
  --aic-night: #0E0E10;          /* side menu */
  --aic-night-2: #1C1B19;        /* side menu hover and current item */
  --aic-night-3: #2E2C27;        /* side menu lines, counts */
  --aic-on-night: #F5F1E6;
  --aic-on-night-muted: #A8A196;
  --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 */
}
