/* Polices hébergées localement (sous-ensemble latin, couvre le français) */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  min-width: 0;
}

h1, h2, h3, p, ul, ol, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--font-title); }
img, svg { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
pre { white-space: pre; }
code { font-family: var(--font-mono); }

a { color: var(--violet-text); }
a:hover { color: var(--violet-hover); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.on-dark :focus-visible, .section--dark :focus-visible { outline-color: var(--lilac); }

[id] { scroll-margin-top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 10;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
}
.skip-link:focus { top: var(--s-3); color: #fff; }

/* Icônes (sprite SVG) */
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 12px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { box-shadow: var(--shadow-btn); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { color: #fff; background: var(--violet); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; }
.btn--outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { color: var(--ink); }
.btn--soft { background: #fff; border: 1px solid #d6d3e6; color: var(--ink); font-weight: 500; font-size: 15px; border-radius: var(--r-md); min-height: 44px; padding: 0 16px; }
.btn--soft:hover { color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: var(--r-md); }
.btn--lg { min-height: 50px; }

/* Libellés de section */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-text); }
.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.lead { color: var(--slate); font-size: 17px; }

/* Badges de sens */
.badge { display: inline-block; padding: 2px 9px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge--ko { background: var(--danger-bg); color: var(--danger-fg); }
.badge--warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge--c4 { background: var(--c4-bg); color: var(--c4-fg); }
.badge--violet { background: var(--lavande); color: var(--violet-text); }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--lavande); color: var(--violet-text); }
.pill--warn { background: var(--warn-mark); color: #5e4700; }
