/* ==========================================================================
   base.css — Typographie, body, liens, titres globaux
   Mobile-first. Corps minimum 16px, line-height 1.6.
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg-white);
}

/* ----- Titres (Playfair Display) ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
}

h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-2xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--fs-5xl); }
  h2 { font-size: var(--fs-3xl); }
}

/* ----- Paragraphes & inline ----- */
p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: var(--fw-semibold);
}

small {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ----- Liens ----- */
a {
  color: var(--color-cta);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

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

/* Lien souligné dans le corps de texte */
.prose a,
p > a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ----- Listes ----- */
ul, ol {
  margin: 0 0 var(--space-4) var(--space-5);
  padding: 0;
}

li {
  margin-bottom: var(--space-2);
}

li:last-child {
  margin-bottom: 0;
}

/* ----- Sélection ----- */
::selection {
  background-color: var(--color-cta);
  color: var(--color-text-on-cta);
}

/* ----- Focus global cohérent ----- */
:focus {
  outline: none;
}

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

/* ----- HR ----- */
hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* ----- Helpers d'accessibilité ----- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  transition: top var(--transition-base);
}

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

/* ----- Eyebrow / kicker (petit titre au-dessus d'un H2) ----- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: var(--space-3);
}
