/* ==========================================================================
   LienSerein — base.css
   Réinitialisation, éléments de base, typographie globale, utilitaires.
   ========================================================================== */

/* ----- Reset doux -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: none; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; padding: 0; }

a { color: var(--canard-deep); text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* Évite les veuves / orphelines sur les blocs de texte */
h1, h2, h3, h4, h5, h6, blockquote, figcaption, p { text-wrap: pretty; }

/* ----- Titres ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--f-disp);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -.012em;
  color: var(--encre);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-snug); }
h4 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--fs-h4);
  letter-spacing: 0;
  line-height: var(--lh-snug);
}

p { max-width: 70ch; }

strong, b { font-weight: 600; color: var(--encre); }
em { font-style: italic; }

/* ----- Sélection & focus accessibles ------------------------------------ */
::selection { background: var(--sauge-wash); color: var(--encre); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--canard-soft);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ----- Saut au contenu (accessibilité clavier) -------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--canard-deep);
  color: #fff;
  padding: var(--s3) var(--s5);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   UTILITAIRES
   ========================================================================== */

/* Étiquette / eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 2rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--canard);
  margin-bottom: var(--s3);
  font-weight: 500;
  line-height: 1.1;
}
.eyebrow--accent { color: var(--rose-deep); }
.eyebrow--sauge  { color: var(--sauge-deep); }

/* Texte d'accroche */
.lead {
  font-size: var(--fs-lead);
  line-height: 1.20;
  color: var(--taupe-fonce);
  max-width: var(--read);
  margin-bottom: 2rem; /* espace avant le bouton */
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: var(--read); }
.measure-center { max-width: var(--read); margin-inline: auto; }

/* Filet décoratif sous un titre */
.divider {
  width: 48px;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: var(--sauge);
  margin: var(--s4) 0 var(--s5);
}
.divider--center { margin-inline: auto; }
.divider--rose { background: var(--rose); }

/* Espacements utilitaires ponctuels */
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s5); }
.mt-4 { margin-top: var(--s6); }
.mt-5 { margin-top: var(--s7); }
.mb-0 { margin-bottom: 0; }

/* Masquer visuellement mais garder pour les lecteurs d'écran */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
