/* =====================================================================
   Brief 1 — Base : tokens, reset, typographie
   Palette Simplon : rouge #E40046 · bleu-vert #00313C · corail #FF8674
                     bleu #0072CE · aqua #64CCC9
   Rôles : rouge = action / marque · bleu-vert = structure · bleu = guidage
           aqua = réussite · corail = attention
   ===================================================================== */
:root {
  --red: #E40046;
  --red-dark: #C6003C;
  --red-tint: #FDE8EF;
  --deep: #00313C;
  --deep-2: #0B4552;
  --deep-tint: #E9F1F2;
  --coral: #FF8674;
  --coral-dark: #B84A37;
  --coral-tint: #FFF0EC;
  --blue: #0072CE;
  --blue-dark: #005BA5;
  --blue-tint: #E8F2FB;
  --aqua: #64CCC9;
  --aqua-dark: #146B68;
  --aqua-tint: #E3F6F5;
  --paper: #FFFFFF;
  --paper-2: #F7F8F8;
  --paper-3: #EEF2F3;
  --line: #D8E0E2;
  --line-strong: #B4C3C7;
  --ink: #00313C;
  --muted: #5B6A6F;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B9CDD1;

  --display: "DM Sans", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-body: clamp(16px, calc(15.3px + 0.25vw), 18px);
  --fs-lead: clamp(17px, calc(16.3px + 0.3vw), 20px);
  --fs-small: 15px;
  --fs-label: 13px;

  --r-s: 3px;
  --r-m: 6px;

  --wrap: 1360px;
  --gutter: clamp(18px, 3vw, 44px);

  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--blue);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; color: var(--deep); }
h1 { font-size: clamp(38px, calc(29.5px + 2.6vw), 68px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, calc(23.8px + 1.2vw), 42px); }
h3 { font-size: clamp(21px, calc(19.5px + 0.4vw), 25px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
a { color: var(--blue-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
strong, b { font-weight: 600; color: var(--deep); }
code, kbd { font-family: var(--mono); font-size: 0.92em; background: var(--paper-3); padding: 0.1em 0.4em; border-radius: var(--r-s); color: var(--deep); word-break: break-word; }
ul, ol { margin: 0; padding-left: 1.3em; }
button { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); outline: none; border-radius: var(--r-s); }

.sr-only { 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: 12px; top: -80px; z-index: 200; background: var(--red); color: #fff; padding: 12px 18px; font-weight: 600; border-radius: var(--r-m); text-decoration: none; }
.skip-link:focus { top: 12px; box-shadow: var(--focus); }

.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); }
.eyebrow.blue { color: var(--blue); } .eyebrow.blue::before { background: var(--blue); }
.eyebrow.deep { color: var(--deep); } .eyebrow.deep::before { background: var(--deep); }
.eyebrow.aqua { color: var(--aqua-dark); } .eyebrow.aqua::before { background: var(--aqua); }

.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--deep); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

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

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