/* Landing Devbrau — même monde que l'app (« compte rendu de laboratoire ») : papier, encre,
   vert de laboratoire, filets d'un pixel, aucune ombre. Rouge et ambre réservés aux écarts. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --paper: #ffffff;
  --bg: #f5f6f5;
  --surface-2: #f2f4f3;
  --band: #ecf4f2;
  --border: #dde2e0;
  --border-strong: #b9c2bf;
  --border-control: #868f8c;
  --text: #1c1f24;
  --text-muted: #555c63;
  --text-faint: #646b72;
  --accent: #0f766e;
  --accent-hover: #0b5f58;
  --accent-ink: #0b5c56;
  --accent-soft: #e2f1ee;
  --on-accent: #ffffff;
  --error: #b42318;
  --error-soft: #fcebe9;
  --success: #17663f;
  --success-soft: #e5f3ea;

  --radius: 3px;
  --radius-sm: 2px;
  --rule: 1px solid var(--border);
  --rail: 152px;
  --head-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1e21;
    --bg: #131618;
    --surface-2: #20252a;
    --band: #17302c;
    --border: #2c3337;
    --border-strong: #3d464b;
    --border-control: #6e787d;
    --text: #e7eaeb;
    --text-muted: #a9b1b5;
    --text-faint: #959ea2;
    --accent: #4fbfae;
    --accent-hover: #6fd0c1;
    --accent-ink: #6fd0c1;
    --accent-soft: #173a35;
    --on-accent: #0c1513;
    --error: #f2897c;
    --error-soft: #3b1d1a;
    --success: #6ccf98;
    --success-soft: #16301f;
  }
}

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

html {
  color-scheme: light dark;
  scrollbar-color: var(--border-strong) transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-sans);
  font-variant-numeric: tabular-nums;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

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

h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  text-wrap: balance;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.82em;
}

time {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--accent);
}
.skip:focus {
  top: 8px;
}

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* Boutons et liens d'action */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  font: 600 14px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 120ms ease-out,
    border-color 120ms ease-out;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
}
.link-quiet {
  color: var(--text-muted);
  font-weight: 500;
}
.link-quiet:hover {
  color: var(--text);
}

/* En-tête */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 3px solid var(--accent);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--head-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand span {
  color: var(--text);
}
.head-nav {
  display: flex;
  gap: 24px;
}
.head-nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.head-nav a:hover {
  color: var(--text);
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-size: 15px;
}

/* Grille du chronogramme : une règle temporelle à gauche, le compte rendu à droite. */
.chrono-grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

.rail-hero,
.rail-end {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  padding-left: 28px;
}
.rail-hero::before,
.rail-end::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}
.rail-hero::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  bottom: 0;
  border-left: 1px solid var(--border-strong);
}
.rail-end::after {
  content: "";
  position: absolute;
  left: 12px;
  top: -64px;
  height: 76px;
  border-left: 1px solid var(--accent);
}
.rail-start-time {
  font: 600 20px/1.2 var(--font-mono);
  color: var(--accent-ink);
}
.rail-start-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Ouverture */
.hero {
  padding: 72px 0 0;
  background: var(--paper);
  border-bottom: var(--rule);
}
.hero-body {
  padding-bottom: 64px;
}
.hero h1 {
  max-width: 20ch;
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.lede {
  max-width: 60ch;
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}
.fine {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-faint);
}

/* Fiche d'issue : l'en-tête de compte rendu de l'app, à l'échelle de la page. */
.report {
  margin-top: 56px;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.report-band,
.piece-head,
.journal-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 8px 16px;
  background: var(--band);
  border-bottom: var(--rule);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.synthetic {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.report-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
  padding: 20px 16px 16px;
  border-bottom: var(--rule);
}
.issue-title {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.culprit {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}
.report-head {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: 0;
}
.report-head > div {
  padding: 12px 16px;
  border-right: var(--rule);
}
.report-head > div:last-child {
  border-right: 0;
}
.report-head dt {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.report-head dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.report-head .sub {
  display: block;
  font: 400 12px/1.4 var(--font-mono);
  color: var(--text-faint);
}
.level-error {
  color: var(--text);
}

/* Drapeaux d'écart */
.flag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 1px;
}
.flag-regression {
  background: var(--error);
  color: var(--paper);
}
.flag-ok {
  background: var(--success-soft);
  color: var(--success);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 45%, transparent);
}

/* Titres de section */
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-lede {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 18px;
  color: var(--text-muted);
}

/* Chronogramme */
.chrono-section {
  padding: 96px 0 32px;
}
.chrono {
  margin-top: 56px;
}
.rail-track {
  position: relative;
}
.clock {
  position: sticky;
  top: calc(var(--head-h) + 24px);
  z-index: 1;
  margin-left: 28px;
  font: 600 20px/1.2 var(--font-mono);
  color: var(--accent-ink);
}
.trace {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--border-strong);
}
.trace-fill {
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--progress, 1));
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  padding-bottom: 80px;
}
.step-last {
  padding-bottom: 96px;
}
.dot {
  position: absolute;
  left: calc(-1 * var(--rail) + 7px);
  top: 8px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--border-control);
  border-radius: 50%;
  background: var(--bg);
  transition:
    background-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.is-signed .dot {
  background: var(--accent);
  border-color: var(--accent);
}
.is-current .dot {
  transform: scale(1.35);
}
.step-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.step-title time {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-faint);
  transition: color 240ms ease-out;
}
.is-signed .step-title time {
  color: var(--accent-ink);
}
.step-claim {
  max-width: 62ch;
  margin-top: 8px;
  font-size: 17px;
  color: var(--text-muted);
}
.step-claim-lg {
  max-width: 30ch;
  margin-top: 16px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* Pièces jointes de chaque étape */
.piece {
  max-width: 760px;
  margin-top: 24px;
  background: var(--paper);
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.kv,
.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.kv th,
.kv td,
.results th,
.results td {
  padding: 10px 16px;
  border-bottom: var(--rule);
  text-align: left;
  vertical-align: baseline;
}
.kv tr:last-child > *,
.results tbody tr:last-child > * {
  border-bottom: 0;
}
.kv th {
  width: 34%;
  font-weight: 500;
  color: var(--text-muted);
}
.kv th.key {
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.kv s {
  color: var(--text-faint);
}
.results thead th {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border-bottom: 1px solid var(--border-strong);
}
.results tbody th {
  font-weight: 600;
}
.out-of-range {
  background: var(--error-soft);
}
.conclusion {
  padding: 16px;
  font-size: 17px;
  line-height: 1.55;
  border-bottom: var(--rule);
}

.history {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.history li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 16px;
  border-bottom: var(--rule);
}
.history li:last-child {
  border-bottom: 0;
}
.history time {
  min-width: 88px;
  color: var(--text-faint);
}

/* Niveau d'accès au code : le visiteur règle ce que l'IA a le droit de faire. */
.levels {
  max-width: 760px;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}
.levels legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border-control);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.segmented label {
  position: relative;
  display: block;
  cursor: pointer;
}
.segmented label + label {
  border-left: 1px solid var(--border-control);
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  transition:
    background-color 120ms ease-out,
    color 120ms ease-out;
}
.segmented label:hover span {
  background: var(--surface-2);
  color: var(--text);
}
.segmented input:checked + span {
  background: var(--accent);
  color: var(--on-accent);
}
.segmented input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 4px var(--paper);
}
.level-detail {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-muted);
}

.journal {
  border-top: var(--rule);
}
.journal-head {
  background: var(--surface-2);
  color: var(--text-muted);
}
.journal ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}
.journal li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 16px;
  border-bottom: var(--rule);
}
.journal li:last-child {
  border-bottom: 0;
}
.journal time,
.journal span {
  color: var(--text-faint);
}
.level-note {
  padding: 12px 16px;
  border-top: var(--rule);
  font-size: 15px;
  color: var(--text-muted);
}

/* Étape non exécutée au niveau choisi */
.skipped {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}
/* Étape non exécutée : pièce en pointillés, texte lisible (contraste AA conservé). */
.is-skipped .piece {
  border-style: dashed;
  border-color: var(--border-control);
  background: transparent;
}
.is-skipped .piece-head {
  background: transparent;
  color: var(--text-muted);
}
.is-skipped .piece .out-of-range,
.is-skipped .piece .d-del,
.is-skipped .piece .d-add {
  background: transparent;
}
.is-skipped .piece .flag {
  background: transparent;
  color: var(--text-muted);
  box-shadow: inset 0 0 0 1px var(--border-control);
}
.is-skipped .step-claim {
  color: var(--text-muted);
}
.is-skipped .dot {
  border-style: dashed;
  background: var(--bg);
}
.is-skipped .step-title time {
  color: var(--text-faint);
}

/* Correctif */
.diff {
  margin: 0;
  padding: 12px 0;
  border-top: var(--rule);
  background: var(--surface-2);
  overflow-x: auto;
  line-height: 1.6;
  white-space: normal;
}
.diff span {
  display: block;
  padding: 0 16px;
  white-space: pre;
}
.d-ctx {
  color: var(--text-muted);
}
.d-del {
  background: var(--error-soft);
  color: var(--error);
}
.d-add {
  background: var(--success-soft);
  color: var(--success);
}

.pr-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: var(--rule);
  font-size: 17px;
}
.arrow {
  display: inline-flex;
  color: var(--accent);
}
.dossier {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  font-size: 15px;
}
.dossier li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.dossier li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: translateY(-1px);
}
.dossier li + li {
  margin-top: 4px;
}

/* Bandes de section (migration, tarifs) */
.band-section {
  padding: 96px 0;
  background: var(--paper);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.plain-section {
  padding: 96px 0;
}

/* Supervision : fiches alignées comme les rubriques d'un compte rendu. */
.capabilities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0 32px;
  margin-top: 48px;
  padding: 0;
  border-bottom: var(--rule);
}
.capabilities li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0 24px;
  border-top: var(--rule);
}
.capabilities h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.capabilities p {
  color: var(--text-muted);
}
.capabilities .cap-meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-ink);
}

/* Migration : notice de montage, la ligne qui change en gros plan. */
.assembly {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.assembly > li {
  display: flex;
  gap: 16px;
  padding: 24px;
}
.assembly > li + li {
  border-left: var(--rule);
}
.assembly-main {
  background: var(--band);
}
.assembly-main > div {
  min-width: 0;
  flex: 1;
}
.step-num {
  flex: none;
  font: 700 40px/1 var(--font-sans);
  color: var(--accent);
}
.assembly h3 {
  font-size: 18px;
  font-weight: 700;
}
.assembly p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-muted);
}
.diff-lg {
  margin-top: 16px;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 14px;
}
.platforms {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-muted);
}
.platforms-label {
  margin-right: 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* Données */
.results-ref {
  margin-top: 40px;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.results-ref tbody th {
  width: 24%;
}
.results-ref td:last-child {
  color: var(--text-muted);
}

/* Tarifs : intervalles de référence */
.table-scroll {
  margin-top: 40px;
  overflow-x: auto;
}
.pricing {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 16px;
  border: 1px solid var(--border-strong);
}
.pricing th,
.pricing td {
  padding: 14px 20px;
  border-bottom: var(--rule);
  text-align: right;
}
.pricing th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing thead th {
  background: var(--band);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-strong);
}
.pricing tbody td + td,
.pricing thead th + th + th {
  border-left: var(--rule);
}
.pricing thead th + th {
  border-left: var(--rule);
}
.price-row td {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.none {
  color: var(--text-faint);
}
.pricing tfoot td,
.pricing tfoot th {
  border-bottom: 0;
}
.upgrade {
  text-align: left !important;
  font-size: 15px;
  color: var(--text-muted);
}

/* Clôture */
.close {
  padding: 64px 0 112px;
}
.close-title {
  max-width: 18ch;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.site-foot {
  padding: 24px 0;
  border-top: var(--rule);
  background: var(--paper);
  font-size: 14px;
  color: var(--text-faint);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.foot-legal {
  flex-basis: 100%;
  max-width: 72ch;
  font-size: 12px;
}

/* Tablette */
@media (max-width: 960px) {
  :root {
    --rail: 112px;
  }
  .head-nav {
    display: none;
  }
  .report-head {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .report-head > div:nth-child(4n) {
    border-right: 0;
  }
  .report-head > div:nth-child(-n + 4) {
    border-bottom: var(--rule);
  }
  .rail-start-time,
  .clock {
    font-size: 16px;
  }
  .assembly {
    grid-template-columns: minmax(0, 1fr);
  }
  .assembly > li + li {
    border-left: 0;
    border-top: var(--rule);
  }
}

/* Mobile : la règle se réduit à une ligne de pointillés, l'horloge disparaît. */
@media (max-width: 640px) {
  :root {
    --rail: 28px;
    --head-h: 56px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .head-row {
    gap: 12px;
  }
  .head-actions {
    gap: 12px;
  }
  .head-actions .link-quiet {
    display: none;
  }
  .head-actions .btn {
    height: 34px;
    padding: 0 12px;
    font-size: 14px;
  }
  .hero {
    padding-top: 40px;
  }
  .rail-start-time,
  .rail-start-label,
  .clock {
    display: none;
  }
  .rail-hero,
  .rail-end {
    padding-left: 0;
  }
  .rail-hero::before,
  .rail-end::before {
    left: 1px;
  }
  .rail-hero::after {
    left: 6px;
  }
  .rail-end::after {
    left: 6px;
  }
  .trace {
    left: 6px;
  }
  .dot {
    left: calc(-1 * var(--rail) + 1px);
  }
  .hero h1 {
    font-size: 40px;
  }
  .lede {
    font-size: 17px;
  }
  .report {
    margin-left: calc(-1 * var(--rail));
  }
  .report-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-head > div {
    border-bottom: var(--rule);
  }
  .report-head > div:nth-child(2n) {
    border-right: 0;
  }
  .report-head > div:nth-child(4n) {
    border-right: 0;
  }
  .report-head > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .report-title {
    grid-template-columns: minmax(0, 1fr);
  }
  .culprit {
    grid-column: 1;
  }
  .chrono-section,
  .band-section,
  .plain-section {
    padding: 64px 0;
  }
  .step {
    padding-bottom: 56px;
  }
  .step-title {
    font-size: 21px;
  }
  .piece {
    margin-left: calc(-1 * var(--rail));
  }
  .levels {
    margin-left: calc(-1 * var(--rail));
  }
  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .segmented label:nth-child(3) {
    border-left: 0;
  }
  .segmented label:nth-child(n + 3) {
    border-top: 1px solid var(--border-control);
  }
  .kv th,
  .kv td,
  .results th,
  .results td {
    padding: 8px 12px;
  }
  .kv th {
    width: 40%;
  }
  .results-ref,
  .results-ref tbody,
  .results-ref tr,
  .results-ref th,
  .results-ref td {
    display: block;
    width: auto !important;
  }
  .results-ref thead {
    display: none;
  }
  .results-ref tr {
    padding: 4px 0;
    border-bottom: var(--rule);
  }
  .results-ref tr:last-child {
    border-bottom: 0;
  }
  .results-ref th,
  .results-ref td {
    border-bottom: 0;
    padding: 4px 12px;
  }
  .results-ref td:last-child {
    font-size: 14px;
  }
  .close-title {
    font-size: 32px;
  }
}

/* Sans JavaScript, toutes les étapes sont présentées comme signées. */
html:not(.js) .dot {
  background: var(--accent);
  border-color: var(--accent);
}
html:not(.js) .clock {
  display: none;
}

@media (max-width: 640px) {
  .results code {
    overflow-wrap: anywhere;
  }
  .results .flag {
    letter-spacing: 0.04em;
  }
}
@media (max-width: 640px) {
  .results:not(.results-ref) tr > :nth-child(2) {
    display: none;
  }
}
@media (max-width: 640px) {
  .pricing {
    min-width: 0;
    font-size: 14px;
  }
  .pricing th,
  .pricing td {
    padding: 10px 8px;
  }
  .pricing thead th {
    font-size: 15px;
  }
  .price-row td {
    font-size: 20px;
  }
  .pricing tfoot tr {
    display: grid;
    gap: 8px;
    padding: 12px 8px;
  }
  .pricing tfoot th {
    display: none;
  }
  .pricing tfoot td {
    padding: 0;
    border: 0 !important;
  }
}

/* Visa : l'heure de validation s'inscrit dans le bandeau de la pièce quand l'étape est atteinte. */
.visa {
  margin-left: auto;
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-ink);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.is-signed .visa {
  opacity: 1;
  transform: none;
}
.is-skipped .visa {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .visa,
  .dot {
    transition: none;
  }
}

/* Tarifs en intervalles de référence */
:root {
  --warning: #8a5300;
  --warning-soft: #fdf1dc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --warning: #f0b35a;
    --warning-soft: #372a14;
  }
}
.unit {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-faint);
}
.pricing td {
  white-space: nowrap;
}
.pricing thead th:first-child {
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flag-out {
  background: var(--warning);
  color: var(--paper);
}
.out-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
}
.pricing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}
.pricing-cta p {
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .diff-lg span {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .pricing,
  .pricing thead,
  .pricing tbody {
    display: block;
  }
  .pricing tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: var(--rule);
  }
  .pricing tbody tr:last-child {
    border-bottom: 0;
  }
  .pricing th,
  .pricing td {
    border: 0 !important;
    padding: 8px 12px;
  }
  .pricing thead th:first-child,
  .pricing th[scope="row"] {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
  .pricing thead th:first-child {
    display: none;
  }
  .pricing th[scope="row"] .unit {
    display: inline;
    margin-left: 6px;
  }
  .pricing td {
    text-align: left;
  }
}

@media (max-width: 640px) {
  /* Les colonnes de plan restent alignées sur leurs valeurs. */
  .pricing thead th {
    text-align: left;
    padding-bottom: 8px;
  }
  /* Ligne de diff repliée : retrait suspendu sous le +/−, coupure seulement après « @ ». */
  .diff-lg span {
    padding-left: calc(16px + 3ch);
    text-indent: -3ch;
    overflow-wrap: normal;
    word-break: normal;
  }
}
@media (max-width: 640px) {
  .diff-lg {
    font-size: 13px;
  }
}
