/* ============================================================
   BASE CSS — Styles fondamentaux du site
   Typographie, liens, éléments HTML de base.
   ============================================================ */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: var(--fw-normal);
  line-height: var(--lh-base);
}

/* ─── Typographie ─────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl);  }
h4 { font-size: var(--fs-lg);  }
h5 { font-size: var(--fs-base);}
h6 { font-size: var(--fs-base);}

p {
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

strong { font-weight: var(--fw-semibold); color: var(--color-text); }
em     { font-style: italic; }

/* ─── Liens ───────────────────────────────────────────────────── */

a {
  color: var(--color-brand);
  transition: color var(--transition-fast);
}

a:hover, a:focus-visible {
  color: var(--color-brand-light);
}

a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ─── Accessibilité : lien d'évitement ────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  background: var(--color-brand-dark);
  color: var(--color-text-inverse);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* ─── Séparateur ──────────────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-8) 0;
}

/* ─── Images ──────────────────────────────────────────────────── */

img {
  height: auto;
}

/* ─── Texte utilitaires ───────────────────────────────────────── */

.text-brand   { color: var(--color-brand); }
.text-muted   { color: var(--color-text-muted); }
.text-inverse { color: var(--color-text-inverse); }
.text-center  { text-align: center; }
.text-small   { font-size: var(--fs-sm); }

/* ─── Focus global ────────────────────────────────────────────── */

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

/* ─── Section titre générique ─────────────────────────────────── */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
}
