/* =========================================================================
   base.css — Reset léger, structure de page, typographie de base, accessibilité
   Charte « éditoriale premium » : aucune ombre portée, aucun dégradé, aucune
   couleur vive. Contraste par la valeur (clair/foncé). Beaucoup de marge.
   ========================================================================= */

/* --- Reset léger ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;      /* ~17px */
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-underline-offset: 0.2em; }

h1, h2, h3, h4, h5, h6 { margin: 0; }

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

/* --- Typographie --------------------------------------------------------
   Titres en display serif, corps en sans light/regular. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }

p { margin: 0 0 var(--space-2); max-width: 68ch; }

/* Italique de ponctuation (à appliquer sur un mot dans un titre) */
.em { font-style: italic; }

/* --- Libellés courts : MAJUSCULES espacées (jamais small-caps OpenType) --- */
.label,
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.eyebrow { color: var(--color-accent-strong); font-weight: 600; margin-bottom: var(--space-2); display: inline-block; }

.lead { font-size: 1.2rem; color: var(--color-text-secondary); max-width: 60ch; }

/* --- Structure de page : conteneurs, sections, densité faible --------- */
.conteneur {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.conteneur--etroit { max-width: 760px; }

.section { padding-block: var(--space-6); }
.section--serre { padding-block: var(--space-5); }
.section + .section { border-top: var(--border-hairline); }

/* Fonds alternés (par la valeur, pas la teinte) */
.section--secondaire { background-color: var(--color-bg-secondary); }
.section--sombre {
  background-color: var(--color-accent-strong);
  color: var(--color-text-on-dark);
}
.section--sombre .eyebrow { color: var(--color-accent-label); }
.section--sombre .lead,
.section--sombre .label { color: var(--color-accent-label); }
.section--contact { background-color: var(--color-bg-contact); }

/* Grilles simples */
.grille { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .grille--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grille--3 { grid-template-columns: repeat(3, 1fr); } }

/* Séparateur : trait fin 1px (jamais de carte à ombre) */
.filet { border: 0; border-top: var(--border-hairline); margin-block: var(--space-4); }

/* Colonne de texte centrée */
.mesure { max-width: 62ch; }
.centre { text-align: center; margin-inline: auto; }

/* --- Accessibilité : lien d'évitement -------------------------------- */
.lien-evitement {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 200;
  background: var(--color-accent-strong);
  color: var(--color-text-on-dark);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: top 0.15s ease;
}
.lien-evitement:focus { top: var(--space-2); }

/* --- Focus clavier visible partout ----------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}
.section--sombre :focus-visible { outline-color: var(--color-accent-label); }

/* Aide lecteurs d'écran uniquement */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Placeholder visible « À COMPLÉTER » (repère de contenu manquant) */
.a-completer {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border: 1px dashed #C3BEAE;
  border-radius: var(--border-radius);
  padding: 0.15em 0.6em;
}
