/* ShareMyDemo — tokens de marque, repris de DemoFit (même échelle, même shell) ; seules les couleurs changent :
   violet et aubergine au lieu du bleu et du marine DemoFit. Chargé avant app.css et shell.css. */

/* Manrope (SIL Open Font License 1.1, fonts/OFL.txt), served from ShareMyDemo 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: violet #AD44F8 et aubergine #1C011F du logo ; l'accent des boutons est un violet plus
     profond, pour un texte blanc lisible. */
  --smd-navy: #24102A;
  --smd-accent: #8424D4;
  --smd-cyan: #AD44F8;
  --smd-gradient: linear-gradient(135deg, #8424D4, #AD44F8);
  --smd-bg: #F8F6FA;
  --smd-border: #EAE3EE;
  --smd-muted: #665A6E;

  /* Surfaces and lines */
  --smd-paper: #FFFFFF;
  --smd-subtle: #FBFAFC;         /* table heads, quiet wells */
  --smd-border-strong: #D3C6DA;  /* form controls, dashed empties */
  --smd-faint: #968A9E;          /* placeholders, tertiary text */

  /* Accents */
  --smd-accent-dark: #6A1BAD;      /* hover / pressed */
  --smd-accent-soft: #F4EAFD;      /* selected rows, notes */
  --smd-cyan-soft: #F8F0FE;

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

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

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

  /* Shape and depth */
  --smd-radius: 12px;            /* cards, panels, tables */
  --smd-radius-control: 8px;     /* inputs, buttons */
  --smd-radius-pill: 999px;
  --smd-shadow-sm: 0 1px 2px rgba(36, 16, 42, 0.05);
  --smd-shadow: 0 1px 2px rgba(36, 16, 42, 0.04), 0 4px 16px -6px rgba(36, 16, 42, 0.08);
  --smd-shadow-raised: 0 1px 2px rgba(36, 16, 42, 0.05), 0 18px 48px -12px rgba(132, 36, 212, 0.22);
  --smd-focus: 0 0 0 3px rgba(132, 36, 212, 0.25);

  /* Signed-in shell (shell.css): a dark aubergine side menu, the page at full width */
  --smd-night: #1C011F;          /* side menu */
  --smd-night-2: #2D0F33;        /* side menu hover and current item */
  --smd-night-3: #41204A;        /* side menu lines, counts */
  --smd-on-night: #F6EEF8;
  --smd-on-night-muted: #BFA6C6;
  --smd-sidebar: 240px;
  --smd-topbar: 64px;            /* sticky offsets in app.css count on it */
  --smd-content-max: 1680px;

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