/* ============================================================================
 * Module : shared/styles/base/typography.css
 * Rôle   : Styles texte par défaut (body, h1-h6, p, a, strong, em).
 *          S'applique au document global. Les Web Components avec Shadow DOM
 *          ne sont pas affectés (encapsulation).
 * Dépend de : tokens.css (var(--font-*), var(--text-*), var(--weight-*), couleurs)
 *             fonts.css (chargement Inter + Outfit)
 * Utilisé par : toutes les pages
 * ============================================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  color: var(--brand-dark);
  line-height: 1.25;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-xl); font-weight: var(--weight-bold); }
h3 { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--gray-700); }
h4 { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--gray-700); }
h5 { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--gray-700); }
h6 { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: var(--space-3);
  color: var(--gray-700);
  font-size: var(--text-sm);
  line-height: 1.7;
}

a {
  color: var(--brand-mid);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

strong, b {
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
}

em, i {
  font-style: italic;
}

ul, ol {
  list-style: revert;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
}

li {
  color: var(--gray-700);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-1);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
}

th {
  background: var(--gray-100);
  font-weight: var(--weight-semibold);
  color: var(--brand-dark);
}

td {
  color: var(--gray-700);
}
