/* Socle de la Centrale : jetons, remise à plat, éléments de base.
   Direction « livre de comptes » (choisie par Anthony le 18/11/2026) : papier clair, encre sombre, filets fins,
   chiffres alignés ; le vert dit ce qui rapporte, le rouge brique ce qui coûte.
   Aucun élément ne garde le style du navigateur ; aucune couleur n'est écrite ailleurs que dans ce fichier. */

:root {
  color-scheme: light dark;

  --papier: oklch(97.2% 0.006 90);
  --surface: oklch(99.2% 0.003 90);
  --encre: oklch(21% 0.02 255);
  --encre-2: oklch(40% 0.018 255);
  --encre-3: oklch(49% 0.014 255);
  --filet: oklch(89% 0.008 90);
  --filet-fort: oklch(70% 0.01 90);

  --gain: oklch(41% 0.1 155);
  --gain-fond: oklch(95% 0.035 155);
  --cout: oklch(45% 0.14 32);
  --cout-fond: oklch(95% 0.025 32);
  --attente: oklch(45% 0.09 75);
  --attente-fond: oklch(95% 0.04 85);
  --repere: oklch(52% 0.17 255);
  --survol: oklch(21% 0.02 255 / 0.06);

  /* graphiques : deux séries, passées au contrôle de palette (daltonisme, contraste) en clair et en sombre */
  --serie-1: #2a78d6;
  --serie-2: #eb6834;

  --e1: 0.25rem;
  --e2: 0.5rem;
  --e3: 0.75rem;
  --e4: 1rem;
  --e6: 1.5rem;
  --e8: 2rem;
  --e12: 3rem;
  --e16: 4rem;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5rem;
  --t-2xl: 2rem;
  --t-3xl: 2.5rem;

  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --police-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rayon: 4px;
  --transition: 160ms cubic-bezier(0.2, 0, 0, 1);
  --z-bulle: 10;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: oklch(17.5% 0.012 255);
    --surface: oklch(21% 0.014 255);
    --encre: oklch(93% 0.006 90);
    --encre-2: oklch(80% 0.008 90);
    --encre-3: oklch(70% 0.008 90);
    --filet: oklch(30% 0.014 255);
    --filet-fort: oklch(45% 0.014 255);
    --gain: oklch(80% 0.11 155);
    --gain-fond: oklch(27% 0.045 155);
    --cout: oklch(78% 0.12 32);
    --cout-fond: oklch(27% 0.05 32);
    --attente: oklch(82% 0.1 80);
    --attente-fond: oklch(28% 0.04 80);
    --repere: oklch(72% 0.14 255);
    --survol: oklch(93% 0.006 90 / 0.08);
    --serie-1: #3987e5;
    --serie-2: #d95926;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police);
  font-size: var(--t-base);
  line-height: 1.5;
  font-variant-numeric: tabular-nums lining-nums;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-2xl);
}

h2 {
  font-size: var(--t-lg);
}

h3,
h4,
h5,
h6 {
  font-size: var(--t-base);
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color var(--transition);
  text-decoration-color: var(--filet-fort);
}

a:hover {
  text-decoration-color: var(--encre);
}

:focus-visible {
  outline: 2px solid var(--repere);
  outline-offset: 2px;
  border-radius: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

input,
select,
textarea {
  margin: 0;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  background: var(--surface);
  padding: var(--e2) var(--e3);
  min-height: 2.75rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  text-align: start;
  font-weight: 600;
}

th,
td {
  padding: 0;
}

b,
strong {
  font-weight: 600;
}

code,
pre {
  font-family: var(--police-code);
  font-size: 0.92em;
}

summary {
  cursor: pointer;
}

svg {
  display: block;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
