/* ========================================
   BASE.CSS
   Reset + styles de base (body, typographie, liens, etc.)
   ======================================== */

/* ══════════════════════════════════════════
   BASE
══════════════════════════════════════════ */

body {
  background-color: var(--color-fond-base);
  color: var(--color-texte);
  font-family: var(--font-corps);
  font-size: var(--text-base);
  line-height: var(--leading-corps);

}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════
   TYPOGRAPHIE
══════════════════════════════════════════ */

h1, h2, h3 {
  font-family: var(--font-titre);
  color: var(--color-bleu-nuit);
  line-height: var(--leading-titre);
}

h4, h5, h6 {
  font-family: var(--font-corps);
  color: var(--color-bleu-nuit);
  line-height: 1.4;
}

h1 { font-size: clamp(2rem, 5vw, var(--text-3xl)); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-xl);  font-weight: 600; line-height: 1.3; }
h4 { font-size: var(--text-lg);  font-weight: 600; }
h5 { font-size: var(--text-base); font-weight: 600; }
h6 { font-size: var(--text-sm);   font-weight: 600; }

p {
  font-family: var(--font-corps);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-corps);
  color: var(--color-texte);
}

em { font-style: italic; font-family: var(--font-titre); }

/* Séparateur or sous les H2 de section */
.wp-block-heading h2::after,
.section-titre::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-or);
  margin-top: var(--space-3);
}

/* ══════════════════════════════════════════
   LIENS
══════════════════════════════════════════ */

a {
  color: var(--color-rouge);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-rouge-hover); text-decoration: underline; }

/* ══════════════════════════════════════════
   CONTENU ÉDITORIAL
══════════════════════════════════════════ */

.entry-meta,
.post-meta,
.posted-on,
.byline {
  font-family: var(--font-corps);
  font-size: var(--text-sm);
  color: var(--color-texte-discret);
}

.more-link,
.read-more {
  font-family: var(--font-corps);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-rouge);
  text-decoration: none;
}
.more-link:hover,
.read-more:hover { text-decoration: underline; color: var(--color-rouge); }

.entry-content hr,
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-bordure);
  margin-block: var(--space-6);
}

.wp-block-group.has-background,
.section-alternee {
  background-color: var(--color-fond-subtil);
}

/* Lien d'évitement (accessibilité RGAA AA) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-or);
  color: var(--color-bleu-nuit);
  font-weight: 700;
  padding: var(--space-3) var(--space-5);
  z-index: var(--z-skip-link);
}
.skip-link:focus {
  top: var(--space-4);
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
}
