/* Perceo — remise à zéro et typographie de base. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete-h) + 16px);
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }

p { margin: 0; text-wrap: pretty; }

a { color: var(--prune); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--prune-fonce); }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

:focus-visible {
  outline: 2px solid var(--prune);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }

/* Lu par les lecteurs d'écran, invisible à l'œil. */
.hors-ecran {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.saut-contenu {
  position: absolute; top: -60px; left: var(--marge);
  z-index: calc(var(--z-collant) + 1);
  background: var(--prune); color: var(--sur-prune);
  padding: 10px 18px; border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--t-sm); font-weight: 600; text-decoration: none;
  transition: top var(--rapide) var(--sortie);
}
.saut-contenu:focus { top: 0; color: var(--sur-prune); }

/* Apparition au défilement. Sans JS, tout reste visible. */
.paraitre {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--sortie), transform 620ms var(--sortie);
}
.paraitre.vu { opacity: 1; transform: none; }
html.sans-js .paraitre { opacity: 1; transform: none; }

[hidden] { display: none !important; }
