/* data.temposystem.eu — jetons échantillonnés depuis le CSS réel de temposystem.eu */
:root {
  --blue: #003399;
  --gold: #ffd617;
  --ink: #1b1b2e;
  --blue-ink: #12193f;
  --ink-soft: #3d4258;
  --paper: #ffffff;
  --wash: #f0f3fb;
  --line: #cfd6ec;
  --radius: 4px;
  --maxw: 840px;
  --sans: Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
}
main, .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
main > section { padding: 3rem 0; }
section.alt { background: var(--wash); }
section.alt > .inner, main > section > .inner { max-width: var(--maxw); margin: 0 auto; }

/* Texte : colonne étroite, 65–75 caractères */
p, ul, ol { max-width: 44rem; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

/* En-tête */
header.site {
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
header.site .wrap {
  display: flex; align-items: baseline; gap: 2rem; flex-wrap: wrap;
  padding-top: 1rem; padding-bottom: 1rem;
}
.logotype {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; letter-spacing: .02em;
}
.logotype .domaine { color: var(--blue); }
header.site nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
header.site nav a {
  font-size: .92rem; text-decoration: none; color: var(--ink-soft);
}
header.site nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
header.site nav a:hover { color: var(--blue); text-decoration: underline; }

/* Titres */
h1, h2, h3 { font-family: var(--sans); line-height: 1.2; font-weight: 700; color: var(--blue-ink); letter-spacing: -.01em; }
h1 { font-size: 2.3rem; margin: 0 0 .5em; }
h2 { font-size: 1.8rem; margin: .1em 0 .55em; }
h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
.eyebrow {
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--blue);
  border-left: 4px solid var(--blue); padding-left: .6rem; margin: 0 0 1rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* Boutons */
.actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn {
  display: inline-block; padding: .7rem 1.3rem; border-radius: var(--radius);
  font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent;
}
.btn-primaire { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-primaire:hover { filter: brightness(.96); }
.btn-secondaire { background: var(--paper); color: var(--blue); border-color: var(--blue); }
.btn-secondaire:hover { background: var(--wash); }

/* Tableaux : filets horizontaux fins uniquement */
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); margin-bottom: .5rem; }
th { text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
th, td { padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { font-family: var(--mono); }
.table-scroll { overflow-x: auto; }

/* Bloc des limites */
.limites { border: 2px solid var(--blue); border-radius: var(--radius); padding: 1.2rem 1.4rem; max-width: 44rem; }
.limites h2, .limites h3 { margin-top: 0; }
.limites ul { margin: 0; padding-left: 1.1rem; }
.limites li { margin: .4rem 0; }

/* Schéma pixel */
.schema { margin: 2.2rem 0; }
.schema svg { width: 100%; height: auto; display: block; }
.schema svg.schema-v { display: none; }
@media (max-width: 640px) {
  .schema svg.schema-h { display: none; }
  .schema svg.schema-v { display: block; max-width: 320px; }
  h1 { font-size: 1.7rem; }
}
.schema text { font-family: var(--mono); }
@media (prefers-reduced-motion: no-preference) {
  .trace { stroke-dasharray: 900; stroke-dashoffset: 900; animation: tracer .6s ease-out forwards; }
  @keyframes tracer { to { stroke-dashoffset: 0; } }
}

/* Triptyque des offres */
.triptyque h3 { border-bottom: 1px solid var(--line); padding-bottom: .3rem; }

/* Pied */
footer.site { border-top: 1px solid var(--line); margin-top: 3rem; }
footer.site .wrap { padding: 1.6rem 1.25rem 2.2rem; font-size: .85rem; color: var(--ink-soft); }
footer.site .meta { font-family: var(--mono); }
footer.site nav { display: flex; gap: 1rem; flex-wrap: wrap; margin: .6rem 0; }
footer.site a { color: var(--ink-soft); }

dl.fiche { max-width: 44rem; }
dl.fiche dt { font-weight: 700; color: var(--blue-ink); margin-top: .9rem; }
dl.fiche dd { margin: .15rem 0 0; }
.note { font-size: .9rem; color: var(--ink-soft); }
code, .mono { font-family: var(--mono); font-size: .92em; }
