/* Socle : remise à zéro, typographie, boutons rectangulaires, focus. Toutes les var() sont définies dans tokens.css. */

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

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

body {
  margin: 0;
  background: var(--blanc, #fff);
  color: var(--graphite, #1b2029);
  font-family: var(--police-texte, system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }
}

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

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

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

a {
  color: var(--roi, #1652d8);
  text-underline-offset: 0.18em;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur-max, 1320px);
  margin-inline: auto;
  padding-inline: var(--gouttiere, 16px);
}

/* Très grands titres de section */
.titre-section {
  font-family: var(--police-titre, sans-serif);
  font-stretch: 108%;
  font-weight: 780;
  font-size: clamp(2.4rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Boutons rectangulaires francs, zone tactile de 52 px */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--police-texte, sans-serif);
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bouton--plein {
  background: var(--roi, #1652d8);
  color: var(--blanc, #fff);
}

.bouton--plein:hover {
  background: var(--roi-fonce, #0f3fae);
}

.bouton--trait {
  border-color: var(--graphite, #1b2029);
  color: var(--graphite, #1b2029);
  background: transparent;
}

.bouton--trait:hover {
  background: var(--graphite, #1b2029);
  color: var(--blanc, #fff);
}

:focus-visible {
  outline: 3px solid var(--roi, #1652d8);
  outline-offset: 3px;
}

.lien-evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--graphite, #1b2029);
  color: var(--blanc, #fff);
}

.lien-evitement:focus {
  top: 12px;
}

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

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

/* Lenis (défilement doux, ordinateur seulement) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}
