/* ==========================================================================
   SOCLE — remise a zero et primitives
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--c-blanc);
  color: var(--c-encre);
  font-family: var(--f-texte);
  font-size: var(--t-16);
  line-height: var(--i-texte);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* La page entiere est en flux vertical, sans debordement horizontal. */
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-titre);
  font-weight: var(--g-700);
  letter-spacing: var(--a-titre);
  line-height: var(--i-titre);
}

img, picture, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit; color: inherit;
  background: none; border: 0; cursor: pointer;
}

/* Le focus doit rester visible : c'est la seule affordance au clavier. */
:focus-visible {
  outline: 2px solid var(--c-marque);
  outline-offset: 3px;
  border-radius: var(--r-06);
}

/* --------------------------------------------------------------------------
   PRIMITIVES
   -------------------------------------------------------------------------- */

/* Largeur de page. La reference fixe le <nav> a 1200px ; le contenu suit. */
.oya-page {
  width: 100%;
  max-width: var(--l-page);
  margin-inline: auto;
  padding-inline: var(--l-gouttiere);
}

@media (max-width: 679.98px) {
  .oya-page { padding-inline: 25px; }
}

/* Bouton pilule noir — la forme unique de la reference. */
.oya-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Releve dans la reference : le bouton mesure 167 x 51. */
  padding: 16px 25px;
  border-radius: var(--r-pilule);
  background: var(--c-noir);
  color: var(--c-blanc);
  /* Le libelle est en Switzer — preset `sqgpjx` de la reference. */
  font-family: var(--f-texte);
  font-size: var(--t-16);
  font-weight: var(--g-500);
  line-height: var(--i-titre);
  white-space: nowrap;
  transition: opacity 200ms var(--e-survol);
}

.oya-bouton:hover { opacity: 0.85; }

/* Le libelle vit dans un <span> : le lien porte le rembourrage, le texte sa
   propre boite. C'est la structure de la reference. */
.oya-bouton > span { display: block; line-height: 1.2; }

/* Le petit bouton serre son interligne : 15,4 px pour un corps de 14 dans la
   reference, contre 19 pour 16 sur le grand. */
.oya-bouton--large { width: 100%; }

.oya-bouton--petit { padding: 10px 20px; font-size: var(--t-14); }
.oya-bouton--petit > span { line-height: var(--i-serre); }

/* Reserve aux lecteurs d'ecran. */
.oya-invisible {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* La sentinelle du defilement : un pixel en haut de page, invisible.
   Voir `.oya-nav[data-defile]` dans sections.css. */
.oya-sentinelle {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
