/* ACTUARUS — base : reset, typographie, utilitaires. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-app);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
table { border-collapse: collapse; width: 100%; }

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

/* Titres : serif de titrage pour les pages, sans-serif pour les blocs. */
.display-1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.display-2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  color: var(--fg-1);
}
.title-block { font-size: var(--text-lg); font-weight: 600; line-height: 1.35; }
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-3);
}
.text-muted { color: var(--fg-3); }
.text-soft { color: var(--fg-2); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-danger { color: var(--red-700); }
.text-success { color: var(--teal-700); }
.text-violet { color: var(--violet-700); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.amount { font-family: var(--font-mono); font-size: var(--text-amount); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.amount-xl { font-size: var(--text-amount-xl); }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -48px; z-index: var(--z-toast);
  background: var(--bg-surface); color: var(--fg-1); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-2);
}
.skip-link:focus { top: var(--space-3); }

/* Empilements et grilles utilitaires */
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-6); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

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