/* base.css : polices, reset, typographie, conteneur, accessibilité */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-var-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
/* Polices de repli calées sur les polices du site (Arial ajustée) : le texte ne bouge presque pas quand elles arrivent (CLS).
   Valeurs calculées avec fontTools sur les fichiers woff2 et Arial (largeur moyenne d'un texte type, métriques hhea). */
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  src: local("Arial");
  size-adjust: 102.9%;
  ascent-override: 100.9%;
  descent-override: 21.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial");
  size-adjust: 103.1%;
  ascent-override: 96.2%;
  descent-override: 30.1%;
  line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s-10); }
body { margin: 0; font-family: var(--f-text); font-size: var(--fs-16); line-height: 1.5; color: var(--c-ink); background: var(--c-bg); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
/* Liens dans le texte : soulignement fin, bleu au survol */
a:not([class]) { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--c-ink-3); transition: color .15s, text-decoration-color .15s; }
a:not([class]):hover { color: var(--c-ia); text-decoration-color: currentColor; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
table { border-collapse: collapse; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--c-ia); outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--s-2); }
.skip { position: absolute; left: var(--s-2); top: calc(var(--s-8) * -1); z-index: 20; background: var(--c-ink); color: var(--c-on-dark); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); }
.skip:focus { top: var(--s-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.t-ia { color: var(--c-ia); }
.t-agence { color: var(--c-agence-text); }

.h1 { font-family: var(--f-title); font-weight: 600; font-size: var(--fs-36); line-height: 1.08; letter-spacing: -0.025em; }
.h2 { font-family: var(--f-title); font-weight: 600; font-size: var(--fs-32); line-height: 1.12; letter-spacing: -0.02em; }
.h3 { font-family: var(--f-title); font-weight: 600; font-size: var(--fs-20); line-height: 1.25; letter-spacing: -0.005em; }
.lead { font-size: var(--fs-18); color: var(--c-ink-2); }

@media (min-width: 641px) {
  .wrap { padding-inline: var(--s-4); }
  .h1 { font-size: var(--fs-48); }
  .h2 { font-size: var(--fs-40); }
  .h3 { font-size: var(--fs-24); }
  .lead { font-size: var(--fs-20); }
}
.br-lg { display: none; }
.lead a { display: inline-block; }  /* un lien de sous-titre ne se coupe pas */
/* Liens des sous-titres : même style que les liens « En savoir plus » (.link-more) */
.lead a:not([class]) { font-size: var(--fs-16); font-weight: 600; color: var(--c-ia); text-decoration-color: var(--c-ia-bar); text-underline-offset: 6px; }
.lead a:not([class]):hover { color: var(--c-ia-strong); text-decoration-color: currentColor; }
.sec-dark .lead a:not([class]) { color: var(--c-on-dark); text-decoration-color: var(--c-agence); }
@media (min-width: 1101px) {
  .br-lg { display: inline; }
  .h1 { font-size: var(--fs-64); }
  .h2 { font-size: var(--fs-48); }
}

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