/* Base : reset léger, typographie, éléments partagés (boutons, conteneur, liens). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: var(--t-m);
  line-height: 1.7;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

/* Titres et sous-titres : Poppins, casse normale. */
h1, h2, h3, .sous-titre {
  font-family: var(--police-titre); font-weight: 600; text-wrap: balance; overflow-wrap: break-word;
}
h1 { font-size: var(--t-xxl); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: var(--t-xl); line-height: 1.12; letter-spacing: -0.025em; }
h3, .sous-titre { font-size: var(--t-l); line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 6px; }
.fond-encre :focus-visible { outline-color: var(--clair); }

.conteneur { width: min(100% - 2 * var(--marge), var(--largeur)); margin-inline: auto; }
.section { padding-block: var(--e-section); }
.chapeau { font-size: 1.1875rem; line-height: 1.6; color: var(--encre-douce); max-width: 38em; }
.intro-section { display: grid; gap: var(--e-3); max-width: 50rem; margin-bottom: var(--e-5); }

.fond-encre { background: var(--encre); color: var(--clair); }
.fond-encre .chapeau { color: var(--texte-sur-encre); }
.fond-papier { background: var(--clair); }

.lien-evitement {
  position: absolute; left: var(--e-2); top: -4rem; z-index: 100;
  background: var(--encre); color: var(--clair); padding: 0.75rem 1rem; border-radius: var(--r-petit);
}
.lien-evitement:focus { top: var(--e-2); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem;
  border: 2px solid transparent; border-radius: var(--r-pilule);
  font-weight: 600; font-size: var(--t-s); line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.bouton--plein { background: var(--vert); color: var(--encre); }
.bouton--plein:hover { background: #1BC197; }
.bouton--contour { border-color: var(--encre); background: transparent; color: var(--encre); }
.bouton--contour:hover { background: var(--encre); color: var(--clair); }
.fond-encre .bouton--contour { border-color: var(--clair); color: var(--clair); }
.fond-encre .bouton--contour:hover { background: var(--clair); color: var(--encre); }
.bouton--petit { min-height: 2.75rem; padding: 0 1.2rem; }

/* Images de la scène d'atelier (rendues par le moteur du film) */
.plan-atelier { border-radius: var(--r-bloc); overflow: hidden; background: var(--encre); }
.plan-atelier img { width: 100%; }
.plan-atelier figcaption { padding: 0.9rem 1.25rem; font-size: var(--t-s); color: var(--texte-sur-encre); }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

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