/* Réinitialisation, typographie, focus, structure de page. */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--haut-entete) + 16px);
  scroll-padding-bottom: calc(var(--haut-barre) + 24px);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font: 500 var(--t-texte)/1.6 var(--police);
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a {
  color: var(--bleu); text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color .15s, text-decoration-thickness .15s;
}
a:hover { color: var(--bleu-fonce); text-decoration-thickness: 2px; }
::selection { background: var(--bleu); color: var(--blanc); }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { text-wrap: balance; }
h1 { font-size: var(--t-h1); font-weight: 900; line-height: 1.04; letter-spacing: -0.025em; max-width: 16ch; }
h2 { font-size: var(--t-h2); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { max-width: 62ch; }
.chapo { font-size: var(--t-chapo); line-height: 1.5; max-width: 60ch; }
.petit { font-size: var(--t-petit); line-height: 1.45; }
/* Mot composé à garder sur une ligne (e-mail, bouche-à-oreille). */
.insecable { white-space: nowrap; }
.chiffre { font-size: var(--t-chiffre); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: var(--marge); top: -100px; z-index: 100;
  background: var(--blanc); padding: 12px 16px; border-radius: var(--r-petit); font-weight: 700;
}
.lien-evitement:focus { top: 8px; }

main > section { padding-block: var(--section); }
/* Deux sections blanches à la suite : un seul espace de section entre elles, pas deux. */
main > section:not(.bande, .conseil, .audit, .demande) + section:not(.bande, .conseil, .audit, .demande) { padding-top: calc(var(--section) / 2); }
main { overflow-x: clip; }
