/* Jetons du design system RiskCare Digital, dérivés de design-system/tokens.json.
   Ne pas modifier une valeur ici sans la modifier dans tokens.json : un test vérifie que les deux
   fichiers concordent (tests/test_web.py). Les jetons de la section « Direction éditoriale »,
   en fin de fichier, sont propres à riskdoc (décision D-22) : ils complètent le design system
   sans en changer aucune valeur. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleur : fonds, filets, texte (neutres froids) */
  --white: #FFFFFF;
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFB;
  --bg-hover: #F3F4F6;
  --bg-active: #EDEFF3;
  --stroke-weak: #EDEFF3;
  --stroke-subtle: #E4E7EC;
  --stroke-strong: #CAD0D9;
  --fg-primary: #1C1D1F;
  --fg-secondary: #505967;
  --fg-tertiary: #6F7988;
  --fg-muted: #8F99A8;
  --fg-disabled: #A4ADBA;
  --chart-gray: #D3D8DF;

  /* Couleur : violet RiskCare Digital, seul accent */
  --violet-100: #F7F4FA;
  --violet-200: #EFEAF5;
  --violet-300: #E4DCEE;
  --violet-400: #D7CBE6;
  --violet-500: #C8BCDD;
  --violet-600: #927EB8;
  --violet-700: #583C6E;
  --violet-800: #4A3160;
  --violet-900: #6B4F85;
  --violet-1000: #2E1F3A;
  --violet-glow: #80669A;
  --violet-area: rgba(88, 60, 110, 0.08);
  --violet-ring: rgba(88, 60, 110, 0.14);
  --overlay: rgba(28, 29, 31, 0.18);

  /* Typographie */
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", Consolas, monospace;

  /* Espacement (grille de 4 px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Rayons */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Ombres en couches */
  --shadow-xs: 0 1px 2px rgba(28, 29, 31, 0.05);
  --shadow-card: 0 1px 3px rgba(28, 29, 31, 0.02), 0 2px 4px -1px rgba(28, 29, 31, 0.03), 0 4px 8px -2px rgba(28, 29, 31, 0.03);
  --shadow-popover: 0 2px 4px -1px rgba(28, 29, 31, 0.04), 0 8px 16px -4px rgba(28, 29, 31, 0.06), 0 16px 32px -8px rgba(28, 29, 31, 0.07);
  --shadow-dialog: 0 4px 8px -2px rgba(28, 29, 31, 0.04), 0 16px 32px -8px rgba(28, 29, 31, 0.08), 0 32px 64px -16px rgba(28, 29, 31, 0.12);

  /* Mouvement */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-instant: 50ms;
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* Direction éditoriale riskdoc (D-22) : fond clair à halos pastel, noir en couleur secondaire,
     titres en Inter grasse (aucune police manuscrite ni serif), rayons larges. Le violet-700 reste le seul accent. */
  --canvas: #F7F7F9;
  --ink: #121216;
  --ink-hover: #2A2A31;
  --glow-lilac: #E4DAF5;
  --glow-violet: #D3C3EE;
  --glow-pink: #F5D4EA;
  --glow-cyan: #CDEAF3;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius-3xl: 20px;
  --radius-4xl: 28px;
  --shadow-soft: 0 1px 2px rgba(28, 29, 31, 0.03), 0 8px 24px -12px rgba(28, 29, 31, 0.08);
  /* Couleurs de statut : rouge (urgence), vert (conformité), gris (sans avis). Tout le reste en violet.
     Chaque statut a un trait (--st-x), un fond pâle (--st-x-bg) et une encre lisible (--st-x-ink). */
  --st-red: #D64562;
  --st-red-bg: #FDECEF;
  --st-red-ink: #A0243D;
  --st-green: #2E9D6C;
  --st-green-bg: #E5F5EC;
  --st-green-ink: #1C6B48;
  --st-gray: #9AA3B0;
  --st-gray-bg: #F1F2F5;
  --st-gray-ink: #505967;
  --shadow-float: 0 1px 2px rgba(28, 29, 31, 0.04), 0 12px 28px -10px rgba(28, 29, 31, 0.10), 0 32px 64px -32px rgba(88, 60, 110, 0.22);

  /* Liquid Glass (D-40) : matière des commandes et des surfaces, à la manière d'Apple (liquid-glass.css).
     Remplissages du plus clair au plus couvrant, teintes pleines (violet-700, --ink) pour l'action
     principale ; liseré spéculaire en couches d'ombres internes et ombre portée courte, repris du
     composant LiquidButton (shadcn) et passés aux couleurs du fond clair. */
  --lg-fill-clear: rgba(255, 255, 255, 0.3);
  --lg-fill-regular: rgba(255, 255, 255, 0.52);
  --lg-fill-thick: rgba(255, 255, 255, 0.78);
  --lg-fill-tint: rgba(88, 60, 110, 0.86);
  --lg-fill-tint-hover: rgba(74, 49, 96, 0.9);
  --lg-fill-ink: rgba(18, 18, 22, 0.84);
  --lg-fill-ink-hover: rgba(42, 42, 49, 0.88);
  --lg-fill-off: rgba(202, 208, 217, 0.55);
  --lg-fill-tint-off: rgba(200, 188, 221, 0.8);
  --lg-fill-danger: rgba(214, 69, 98, 0.88);
  --lg-scrim: rgba(247, 247, 249, 0.72);
  --lg-rim:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.8),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.75),
    inset -1px -1px 1px -0.5px rgba(18, 18, 22, 0.1),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.12),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  --lg-rim-tint:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.38),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.6),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.35),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.45),
    inset -1px -1px 1px -0.5px rgba(18, 18, 22, 0.25),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  --lg-drop: 0 0 0 0.5px rgba(18, 18, 22, 0.05), 0 0 6px rgba(18, 18, 22, 0.03), 0 2px 6px rgba(18, 18, 22, 0.08), 0 0 12px rgba(255, 255, 255, 0.15);
  --lg-drop-surface: 0 0 0 0.5px rgba(18, 18, 22, 0.04), 0 1px 2px rgba(18, 18, 22, 0.03), 0 10px 28px -14px rgba(18, 18, 22, 0.12);
  --lg-drop-float: 0 0 0 0.5px rgba(18, 18, 22, 0.06), 0 2px 6px rgba(18, 18, 22, 0.06), 0 16px 40px -12px rgba(18, 18, 22, 0.18), 0 32px 64px -32px rgba(88, 60, 110, 0.24);
  --lg-drop-tint: 0 1px 2px rgba(46, 31, 58, 0.18), 0 6px 16px -6px rgba(88, 60, 110, 0.45);
  --lg-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}
