/* ============================================================
   YODLYNCI — Reset, polices, conteneurs, typographie de base
   ============================================================ */

/* ---------- Polices en local (sous-ensemble latin) ----------
   DM Sans est une police variable : un seul fichier couvre 400 → 900,
   soit 54 Ko au total au lieu de 162. */
@font-face {
  font-family: 'Anton';
  src: url('../assets/fonts/Anton-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/DMSans-Variable.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-navy);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; border: 0; background: none; outline: none; }

/* ---------- Accessibilité ---------- */
:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--pad-x);
  z-index: 999;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-navy);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Conteneurs ---------- */
.section { padding-inline: var(--pad-x); }

.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
}
.container--sm {
  width: min(var(--container-sm), 100%);
  margin-inline: auto;
}

/* ---------- Typographie ---------- */
.h1, .h2, .h3, .h4, .h5 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
}

.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); }

/* Eyebrow : Anton 28 coloré, au-dessus des H2 */
.eyebrow {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  text-transform: uppercase;
  color: var(--c-red);
}
.eyebrow--orange { color: var(--c-orange); }
.eyebrow--violet { color: var(--c-violet); }
.eyebrow--red    { color: var(--c-red); }
.eyebrow--green  { color: var(--c-green); }
.eyebrow--lime   { color: var(--c-lime); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--c-navy);
}

/* Demi-teinte utilisée sur la 2e moitié de certains titres */
.dim { color: var(--c-navy-50); }
.dim-light { color: var(--c-white-50); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
