/* =========================================================
   CCC — Base (V2)
   Normalisation + socle global
   ========================================================= */

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background: var(--bg-global);
  color: var(--text-main);
}

/* ---------- Texte ---------- */

p {
  margin: 0 0 var(--space-2);
}

small,
.text-muted {
  color: var(--text-muted);
}

/* ---------- Titres ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  color: var(--text-main);
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

/* ---------- Liens ---------- */

a {
  color: var(--text-main);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* ---------- Accessibilité ---------- */

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

/* ---------- Utilitaire unique ---------- */

.hidden {
  display: none !important;
}
