/* Polices auto-hébergées (sous-ensemble latin), licences dans assets/fonts */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin-wdth-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

/* grain de papier, sans mélange de couleurs pour rester léger */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("../assets/grain.svg");
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg,
canvas {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* mouvement réduit : rien ne bouge (data-motion posé par js/motion.js, avec la requête média en filet) */
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Utilitaires et éléments communs : aberration, point de marque, surtitre, texte d'intro, boutons, titres */
/* aberration chromatique discrète (logo, titres de section, heures) */
.ab {
  text-shadow: -1.5px 0 var(--ab-red), 1.5px 0 var(--ab-cyan);
  transition: text-shadow 0.25s;
}
.ab:hover {
  text-shadow: -4px 0 var(--ab-red-strong), 4px 0 var(--ab-cyan-strong);
}
.dot {
  display: inline-block;
  width: var(--dot-size-title, 0.24em);
  height: var(--dot-size-title, 0.24em);
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--dot-img) center / contain no-repeat;
}
.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--magenta);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lead {
  max-width: 33rem;
  margin-inline: auto;
  font-size: 18px;
  font-weight: 500;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: var(--line) solid var(--ink);
  background: transparent;
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: transform 0.15s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-face, var(--ink));
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: translate(4px, 4px);
  background: var(--trame-b);
  transition: transform 0.15s;
}
.btn:hover {
  transform: translate(-2px, -2px);
}
.btn:hover::before {
  transform: translate(6px, 6px);
}
.btn--ghost {
  --btn-face: var(--paper);
  color: var(--ink);
}
.section-title {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mono--soft {
  font-weight: 400;
  opacity: 0.7;
}
