/* Lodia — jetons de la charte (v2, design-v2 du 01/11/2026 ; base v1.1 validée D1).
   Concept : le registre du gérant. Encre d'ardoise sur papier gris-vert, bleu de Prusse pour l'action,
   laiton pour ce que propose l'IA (comme une clé : on la prend ou on la laisse). Voir design/direction-v2.md.
   Marque blanche : un client ne surcharge que --brand, --brand-ink, --brand-soft et --logo. */
:root {
  /* Couleurs de base (thème clair) */
  --bg: #f5f7f6;            /* papier gris-vert */
  --surface: #ffffff;
  --surface-2: #eef2f1;     /* fonds de section, survols, champs en lecture */
  --surface-3: #e5ebe9;     /* pistes, squelettes */
  --line: #e2e8e6;          /* séparateurs décoratifs */
  --line-2: #d3dcd9;        /* contours de cartes au survol */
  --line-strong: #879499;   /* contours de champs : contraste ≥ 3:1 */
  --text: #14222a;          /* encre d'ardoise */
  --text-2: #46565d;
  --text-3: #56666c;
  --brand: #1c5d73;         /* bleu de Prusse : action principale */
  --brand-hover: #164b5d;
  --brand-ink: #ffffff;
  --brand-soft: #e3eff3;
  --brand-text: #1c5d73;
  --ai: #7b5914;            /* laiton : suggestions IA */
  --ai-soft: #f8f0dc;
  --ai-line: #e6d3a3;
  /* Statuts (sémantiques, distincts de la marque) */
  --ok: #2a6c41;    --ok-soft: #e1f1e6;     /* loué, payé, conforme */
  --info: #2c5fa8;  --info-soft: #e3ebf8;   /* à louer, en cours */
  --warn: #874f00;  --warn-soft: #faecd6;   /* préavis, à 60 jours */
  --risk: #b0322b;  --risk-soft: #f9e2e0;   /* impayé, expiré, alerte */
  --muted: #4f5c61; --muted-soft: #e9eded;  /* travaux, archivé */
  --short: #6b4aa0; --short-soft: #eee7f8;  /* courte durée */
  /* Typographies */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* Échelle */
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-ui: .9375rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: 2.25rem; --fs-4xl: 3.25rem;
  /* Espacements (grille de 4 px), rayons, ombres */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(20, 34, 42, .05), 0 2px 8px rgba(20, 34, 42, .04);
  --shadow-1: 0 1px 2px rgba(20, 34, 42, .05), 0 2px 8px rgba(20, 34, 42, .04);
  --shadow-2: 0 2px 6px rgba(20, 34, 42, .06), 0 16px 40px rgba(20, 34, 42, .14);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent);
  --tap: 44px;              /* cible tactile minimale */
  --sidebar: 248px;
  /* Calques */
  --z-sticky: 5; --z-nav: 10; --z-sheet: 20; --z-cmdk: 30; --z-toast: 40;
  /* Mouvement : court, physique, jamais décoratif. Tout est coupé si l'utilisateur réduit les animations. */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --dur-1: 120ms;  /* appui, survol */
  --dur-2: 200ms;  /* apparition, toast, pastille */
  --dur-3: 360ms;  /* changement d'écran, carte traitée */
  --logo: "Lodia";
  color-scheme: light;
}
@media not all /* thème sombre désactivé : Lodia est en clair */ {
  :root:not([data-theme="light"]) {
    --bg: #0e1517; --surface: #151e21; --surface-2: #1b272b; --surface-3: #233236; --line: #253337; --line-2: #314347;
    --text: #e6eef0; --text-2: #adbdc2; --text-3: #93a4a9; --line-strong: #6a7c82;
    --brand: #78bcd2; --brand-hover: #95cde0; --brand-ink: #0a1a20; --brand-soft: #18343e; --brand-text: #8ac8dc;
    --ai: #e4b95e; --ai-soft: #2a2310; --ai-line: #594719;
    --ok: #74c793; --ok-soft: #15301f; --info: #95b8ee; --info-soft: #182a42;
    --warn: #ecac50; --warn-soft: #36280f; --risk: #f19189; --risk-soft: #3a1917;
    --muted: #a8b5b9; --muted-soft: #222e32; --short: #bea6ea; --short-soft: #282140;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.25);
    --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.25);
    --shadow-2: 0 2px 8px rgba(0,0,0,.4), 0 20px 48px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="sombre-desactive"] {
  --bg: #0e1517; --surface: #151e21; --surface-2: #1b272b; --surface-3: #233236; --line: #253337; --line-2: #314347;
  --text: #e6eef0; --text-2: #adbdc2; --text-3: #93a4a9; --line-strong: #6a7c82;
  --brand: #78bcd2; --brand-hover: #95cde0; --brand-ink: #0a1a20; --brand-soft: #18343e; --brand-text: #8ac8dc;
  --ai: #e4b95e; --ai-soft: #2a2310; --ai-line: #594719;
  --ok: #74c793; --ok-soft: #15301f; --info: #95b8ee; --info-soft: #182a42;
  --warn: #ecac50; --warn-soft: #36280f; --risk: #f19189; --risk-soft: #3a1917;
  --muted: #a8b5b9; --muted-soft: #222e32; --short: #bea6ea; --short-soft: #282140;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.25);
  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.25);
  --shadow-2: 0 2px 8px rgba(0,0,0,.4), 0 20px 48px rgba(0,0,0,.45);
  color-scheme: dark;
}
