/* ==========================================================================
   BASE — fonts, reset, typographie, layout. Ne contient que des tokens.
   ========================================================================== */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Réserve la place du lecteur quand il est affiché */
body.has-player { padding-bottom: var(--player-h); }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }

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

::selection { background: var(--velvet-500); color: var(--paper-100); }

/* Typographie */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
em { font-style: italic; color: var(--c-accent-soft); }
p { text-wrap: pretty; }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent);
}
.lede {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--c-text);
}

/* Layout */
.container {
  width: min(100% - 2 * var(--gutter), var(--w-content));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }
.stack > * + * { margin-top: var(--sp-5); }
.measure { max-width: var(--w-text); }
.standalone { display: grid; place-items: center; padding: var(--gutter); text-align: center; } /* pages sans header (désinscription) */
.stack--center { text-align: center; justify-items: center; }
.mt-6 { margin-top: var(--sp-6); }
.muted { color: var(--c-text-muted); }

/* Accessibilité */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: var(--sp-3); left: var(--sp-3);
  z-index: calc(var(--z-consent) + 1);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-accent);
  color: var(--velvet-900);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

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