/* Base — typo, body, utilitaires */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  background: var(--sg-bg);
  color: var(--sg-text);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--sg-red);
  color: #fff;
}

/* Caption — petit label rouge avec barre */
.caption {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sg-red);
  margin-bottom: 1.25rem;
}

.caption::before {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 2px;
  background: var(--sg-red);
}

/* Titres */
.title-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 0.90;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.title-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.title-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.title-h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

/* Lead — paragraphe d'intro plus gros et clair */
.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--sg-text-muted);
  max-width: 60ch;
}

.text-muted { color: var(--sg-text-muted); }
.text-red { color: var(--sg-red); }
.text-mono { font-family: var(--font-mono); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

a { transition: color var(--dur-fast) var(--ease-out); }
