/* =====================================================================
   Jetons de design « aurore » — partagés par le panel et la page d'accueil.
   Violet / gris / blanc, thème sombre ou clair. Les couleurs ne s'écrivent QUE ici.
   Police : Inter (variable, licence OFL), servie par le panel lui-même.
   ===================================================================== */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/inter.woff2") format("woff2");
}

:root {
  color-scheme: light;
  /* surfaces */
  --bg: #f3f2fa; --surface: #ffffff; --surface-2: #f1f0f8; --surface-3: #e7e5f1; --field: #ffffff;
  --card: #ffffff;
  --border: rgba(40, 32, 90, .10); --border-strong: rgba(40, 32, 90, .20);
  /* texte */
  --text: #181526; --text-2: #55516e; --muted: #736f8c;
  /* accent */
  --accent: #7c4dff; --accent-hover: #6b3df0; --on-accent: #ffffff;
  --accent-soft: rgba(124, 77, 255, .10); --accent-strong: #5a30d1; --ring: #8f69ff;
  --grad: linear-gradient(135deg, #a07bff 0%, #7c4dff 48%, #5b34e6 100%);
  --hero-grad: linear-gradient(120deg, #181526 10%, #6b3df0 95%);
  --glow: 0 8px 26px rgba(124, 77, 255, .32);
  /* états */
  --good: #0f7a52; --good-soft: rgba(15, 122, 82, .12);
  --bad: #c92a37; --bad-soft: rgba(201, 42, 55, .10);
  --warn: #8f5b00; --warn-soft: rgba(143, 91, 0, .12);
  /* séries des graphiques (validées contre la surface de chaque thème) */
  --s1: #7c4dff; --s2: #eb6834;
  /* verre, ombres, décor */
  --side-bg: rgba(255, 255, 255, .72); --side-text: #4d4965; --side-hover: rgba(124, 77, 255, .07);
  --glass: color-mix(in srgb, var(--bg) 80%, transparent);
  --inverse: #231e3a; --on-inverse: #ffffff;
  --shadow-sm: 0 1px 2px rgba(30, 24, 70, .06), 0 4px 14px rgba(30, 24, 70, .04);
  --shadow-md: 0 18px 50px rgba(30, 24, 70, .18);
  --spot: rgba(124, 77, 255, .08);
  --a1: rgba(124, 77, 255, .20); --a2: rgba(80, 140, 255, .15); --a3: rgba(236, 100, 190, .11); --dot: rgba(40, 32, 90, .09);
  /* gabarits */
  --r-sm: 10px; --r: 12px; --r-lg: 14px; --sbw: 272px; --pad: 36px; --top: 60px;
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #08070f; --surface: #131020; --surface-2: #1a1629; --surface-3: #251f39; --field: #0e0b19;
    --card: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
    --border: rgba(255, 255, 255, .09); --border-strong: rgba(255, 255, 255, .17);
    --text: #f5f3ff; --text-2: #b8b3d1; --muted: #8d88a8;
    --accent-hover: #8d63ff; --accent-soft: rgba(124, 77, 255, .17); --accent-strong: #c4b5fd; --ring: #a58bff;
    --hero-grad: linear-gradient(120deg, #ffffff 15%, #b9a2ff 95%);
    --glow: 0 8px 30px rgba(124, 77, 255, .42);
    --good: #4fd6a0; --good-soft: rgba(79, 214, 160, .13);
    --bad: #ff7a85; --bad-soft: rgba(255, 122, 133, .13);
    --warn: #f5c35b; --warn-soft: rgba(245, 195, 91, .13);
    --s1: #8a63f5; --s2: #e8683a;
    --side-bg: rgba(10, 8, 18, .74); --side-text: #b8b3d1; --side-hover: rgba(255, 255, 255, .055);
    --inverse: #2c2646;
    --shadow-sm: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 6px 20px rgba(0, 0, 0, .28);
    --shadow-md: 0 22px 60px rgba(0, 0, 0, .65);
    --spot: rgba(167, 139, 250, .09);
    --a1: rgba(124, 77, 255, .30); --a2: rgba(60, 100, 255, .18); --a3: rgba(214, 80, 255, .14); --dot: rgba(255, 255, 255, .075);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08070f; --surface: #131020; --surface-2: #1a1629; --surface-3: #251f39; --field: #0e0b19;
  --card: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
  --border: rgba(255, 255, 255, .09); --border-strong: rgba(255, 255, 255, .17);
  --text: #f5f3ff; --text-2: #b8b3d1; --muted: #8d88a8;
  --accent-hover: #8d63ff; --accent-soft: rgba(124, 77, 255, .17); --accent-strong: #c4b5fd; --ring: #a58bff;
  --hero-grad: linear-gradient(120deg, #ffffff 15%, #b9a2ff 95%);
  --glow: 0 8px 30px rgba(124, 77, 255, .42);
  --good: #4fd6a0; --good-soft: rgba(79, 214, 160, .13);
  --bad: #ff7a85; --bad-soft: rgba(255, 122, 133, .13);
  --warn: #f5c35b; --warn-soft: rgba(245, 195, 91, .13);
  --s1: #8a63f5; --s2: #e8683a;
  --side-bg: rgba(10, 8, 18, .74); --side-text: #b8b3d1; --side-hover: rgba(255, 255, 255, .055);
  --inverse: #2c2646;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 6px 20px rgba(0, 0, 0, .28);
  --shadow-md: 0 22px 60px rgba(0, 0, 0, .65);
  --spot: rgba(167, 139, 250, .09);
  --a1: rgba(124, 77, 255, .30); --a2: rgba(60, 100, 255, .18); --a3: rgba(214, 80, 255, .14); --dot: rgba(255, 255, 255, .075);
}

html.i18n-wait body { visibility: hidden; } /* version anglaise : le temps de charger la traduction */
