/* ==========================================================================
   BASE — reset léger, typographie commune, voile de transition
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--indigo-abysse);
  color: var(--creme);
  font-family: var(--font-texte);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* L'accueil est une scène unique : aucun défilement */
body.is-scene { overflow: hidden; height: 100%; }

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

a { color: inherit; }

::selection { background: rgba(184, 146, 95, 0.35); color: var(--creme); }

:focus-visible {
  outline: 1px solid var(--ocre);
  outline-offset: 4px;
}

/* — Conteneur de vue : c'est lui qui change à chaque page — */
#view {
  opacity: 1;
  transition: opacity var(--dur-page) var(--ease-soie);
}
#view.is-leaving { opacity: 0; }

/* — Voile nocturne entre deux pages (fondu court, sans effet spectaculaire) — */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: var(--indigo-abysse);
  opacity: 0;
  transition: opacity var(--dur-page) var(--ease-soie);
}
.veil.is-on { opacity: 1; }

/* — Utilitaires typographiques partagés — */
.eyebrow {
  font-family: var(--font-titre);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ocre);
  margin: 0;
}

.titre {
  font-family: var(--font-titre);
  font-weight: 400;
  font-size: var(--t-h1);
  letter-spacing: var(--ls-titre);
  text-transform: uppercase;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

.lead {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--ivoire-doux);
  margin: 0;
  text-wrap: balance;
}

.ornement {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--filet-fort);
  border: 0;
  margin: 0;
}

.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;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
