/* Base : remise à zéro, typographie du Figma (styles « LW Site/… ») et grille.
   Principes du design system : flat (aucune ombre ni dégradé d'interface),
   bleu réservé à l'action et à la marque, rayons courts, mono pour ce qui est
   technique et copiable. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  left: var(--space-5);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-accent);
  color: var(--text-on-accent);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-5);
}

/* ── Styles de texte (noms du Figma) ─────────────────────────────────────── */

/* LW Site/Display/XL — Schibsted Grotesk ExtraBold 76/74, -3 % */
.t-display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 76px;
  line-height: 74px;
  letter-spacing: -0.03em;
}

/* LW Site/Display/L — Bold 56/58, -2,5 % */
.t-display-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 58px;
  letter-spacing: -0.025em;
}

/* LW Site/Heading/H2 — Bold 40/44, -2 % */
.t-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.02em;
}

/* LW Site/Heading/H3 — SemiBold 26/32, -1 % */
.t-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.01em;
}

/* LW Site/Heading/H4 — SemiBold 19/26, -0,5 % */
.t-h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 26px;
  letter-spacing: -0.005em;
}

/* LW Site/Data/XL — Black 64/60, -3 % (chiffres) */
.t-data-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 60px;
  letter-spacing: -0.03em;
}

/* LW Site/Body/Lead — Instrument Sans 20/31, -0,2 % */
.t-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 31px;
  letter-spacing: -0.002em; /* -0,2 % */
}

/* LW Site/Body/M (+ Strong) — 17/27 */
.t-body-m {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 27px;
}

.t-body-m-strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 27px;
}

/* LW Site/Body/S (+ Strong) — 15/23 */
.t-body-s {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 23px;
}

.t-body-s-strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 23px;
}

/* LW Site/Body/XS — Medium 13/19 */
.t-body-xs {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 19px;
}

/* LW Site/Label/M — Martian Mono Medium 11/16, +4 %, capitales */
.t-label-m {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* LW Site/Label/S — Martian Mono Regular 10/14, +4 %, capitales */
.t-label-s {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* LW Site/Code/M — 12/21 ; Code/S — 11/18 */
.t-code-m {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 21px;
}

.t-code-s {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  line-height: 18px;
}

/* Mobile (cadres 390 du Figma) : les grands titres passent en H2 (40/44), les
   titres de section en H3 (26/32), les chiffres XL à 40. */
@media (max-width: 767px) {
  .t-display-xl,
  .t-display-l {
    font-weight: 700;
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.02em;
  }

  .t-h2 {
    font-weight: 600;
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.01em;
  }

  .t-data-xl {
    font-weight: 700;
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.02em;
  }

  .t-lead {
    font-size: 17px;
    line-height: 27px;
    letter-spacing: 0;
  }
}

.c-primary { color: var(--text-primary); }
.c-secondary { color: var(--text-secondary); }
.c-muted { color: var(--text-muted); }
.c-accent { color: var(--text-accent); }

/* ── Grille ──────────────────────────────────────────────────────────────── */

/* Une section de page pleine largeur : le fond et les filets vont d'un bord à
   l'autre, le contenu tient dans 1200 px avec 120 px de marge à 1440 px
   (20 px sur mobile, comme les cadres 390 du Figma). */
.section {
  padding: var(--section-pad-y, var(--space-13)) var(--gutter);
}

.section > .container,
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.section--surface { background: var(--bg-surface); }
.section--subtle { background: var(--bg-subtle); }
.section--navy { background: var(--brand-navy); color: var(--text-on-accent); }
.section--rule-top { border-top: 1px solid var(--border-default); }
.section--rule-bottom { border-bottom: 1px solid var(--border-default); }

@media (max-width: 767px) {
  .section {
    padding-block: var(--section-pad-y-mobile, 56px);
  }
}

/* En-tête de section du Figma : sur-titre puis titre, 16 px d'écart. */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.prose > * + * {
  margin-top: var(--space-5);
}

.prose a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
