/* ============================================================
   Percentyl · homepage · v5 « clair »
   Un seul fichier CSS. Palette « Encre & Couronne », tokens light
   validés (brand.md v2). Référence de ton : 1x.tech, calme,
   aéré, peu de mots.
   Lois : indigo = action · or = rangs (+ pouce du slider, logo)
   vert/rouge = verdicts uniquement, toujours avec signe + libellé.
   ============================================================ */

/* ---------- Fontes (auto-hébergées, latin) ---------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Tokens (light, brand.md v2) ---------- */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface2: #eef0f8;
  --line: #e4e7f2;
  --text: #14162b;
  --muted: #5a6078;
  --dim: #8a90a8;
  --indigo: #4f5bd5;
  --gold: #b27e14;
  --gold-vif: #e8b33c;
  --ok: #1e7a4c;
  --ko: #c03a4b;
  --cat-marches: #2a78d6;
  --cat-business: #eb6834;
  --cat-tech: #1baf7a;
  --cat-logique: #eda100;
  --cat-monde: #e87ba4;
  --cat-science: #4a3aa7;

  /* tokens dark, pour les artefacts qui restent en encre (carte) */
  --ink-bg: #0e1018;
  --ink-surface: #181b2a;
  --ink-surface2: #222642;
  --ink-line: #2c3052;
  --ink-text: #f2f3f8;
  --ink-muted: #9ba1b8;
  --ink-dim: #6e7590;
  --ink-indigo: #7d8cff;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --w: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 18px;
  --shadow: 0 10px 40px -18px rgba(20, 22, 43, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  color-scheme: light;
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
button,
input {
  font: inherit;
  color: inherit;
}
::selection {
  background: rgba(232, 179, 60, 0.35);
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Primitives ---------- */
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.k {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--dim);
}
.k--indigo {
  color: var(--indigo);
}
.k--gold {
  color: var(--gold);
}
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s var(--ease);
}
.masthead.scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.masthead__in {
  max-width: var(--w);
  margin: 0 auto;
  padding-inline: var(--pad);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
}
.brand svg {
  flex: none;
  width: 24px;
  height: 24px;
}
.masthead__nav {
  margin-inline: auto;
  display: flex;
  gap: clamp(18px, 3vw, 40px);
}
.masthead__nav a {
  position: relative;
  padding-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  transition: color 0.2s var(--ease);
}
.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transition: right 0.25s var(--ease);
}
.masthead__nav a:hover {
  color: var(--text);
}
.masthead__nav a:hover::after {
  right: 0;
}
.avatar {
  position: relative;
}
.avatar__btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--indigo);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.avatar__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(79, 91, 213, 0.5);
}
.avatar__btn:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}
.avatar__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px -16px rgba(20, 22, 43, 0.22);
  padding: 6px;
  z-index: 60;
}
.avatar__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.avatar__item:hover {
  background: var(--surface2);
}
.avatar__item--btn {
  color: var(--muted);
}
.avatar__sep {
  height: 1px;
  margin: 6px 8px;
  background: var(--line);
}

.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lang__seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.lang__seg--on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(20, 22, 43, 0.12);
}
.lang:hover .lang__seg:not(.lang__seg--on) {
  color: var(--muted);
}
.lang:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  background: var(--indigo);
  color: #ffffff;
  border: 1px solid var(--indigo);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.pill:hover {
  background: #4350c4;
  border-color: #4350c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(79, 91, 213, 0.5);
}
.pill:active {
  transform: translateY(0);
}
.pill--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.pill--ghost:hover {
  background: var(--surface);
  border-color: var(--dim);
  color: var(--text);
  box-shadow: none;
}
.pill:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
@media (max-width: 860px) {
  .masthead__nav {
    display: none;
  }
  .masthead__in {
    justify-content: space-between;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: -72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 247, 251, 0.35) 0%,
    rgba(246, 247, 251, 0) 48%,
    rgba(246, 247, 251, 0) 60%,
    rgba(246, 247, 251, 0.2) 100%
  );
}
.hero__in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 96px var(--pad) 180px;
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero__k {
  margin-bottom: 22px;
}
.hero__title {
  font-weight: 550;
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.07;
  letter-spacing: -0.028em;
}
.hero__title > span {
  display: block;
  text-wrap: balance;
}
.nobr {
  white-space: nowrap;
}
.hero__title .t1 {
  color: var(--dim);
}
.hero__title .word {
  position: relative;
  white-space: nowrap;
}
.hero__title .word::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: -0.04em;
  height: 0.055em;
  background: var(--gold-vif);
  border-radius: 2px;
}
.hero__sub {
  margin-top: 24px;
  max-width: 44ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(15.5px, 1.7vw, 18px);
}
.hero__cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .hero__cta {
    width: 100%;
    max-width: 340px;
    flex-direction: column;
    gap: 10px;
  }
  .hero__cta .pill {
    width: 100%;
  }
}
.hero__axis {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  right: var(--pad);
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}
.hero__axis .gold {
  color: var(--gold);
}

/* Entrée du hero */
.rv-h {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.hero.go .rv-h {
  opacity: 1;
  transform: none;
}
.hero__k { --d: 0s; }
.hero__title { --d: 0.08s; }
.hero__sub { --d: 0.22s; }
.hero__cta { --d: 0.34s; }
@media (prefers-reduced-motion: reduce) {
  .rv-h {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(40px, 6vw, 60px);
}
.section--tight {
  padding-block: clamp(30px, 4.5vw, 44px);
}
.section--flush {
  padding-top: 8px;
}
.section__title {
  font-weight: 550;
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-top: 18px;
  max-width: 30ch;
  text-wrap: balance;
}
.section__title .soft {
  color: var(--dim);
}
.section__intro {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
}

/* ---------- Le cas du jour ---------- */
.case__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.case__meta .sep {
  color: var(--line);
}
.case__meta .cat {
  color: var(--cat-business);
}
@media (max-width: 520px) {
  .meta-opt {
    display: none;
  }
}
.case__title {
  font-weight: 550;
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 14px;
  max-width: 30ch;
  text-wrap: balance;
}
.case__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin-top: 26px;
}
@media (min-width: 1080px) {
  .case__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 72px;
  }
}
.case__chapo {
  font-size: clamp(15.5px, 1.8vw, 17px);
  color: var(--muted);
  max-width: 58ch;
}
.case__q {
  font-family: var(--serif);
  font-style: italic;
  font-optical-sizing: auto;
  font-weight: 440;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
  color: var(--text);
  margin-top: 20px;
  max-width: 44ch;
}
.case__q::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-vif);
  vertical-align: 0.3em;
  margin-right: 14px;
}

/* Marginalia */
.margin-note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
@media (min-width: 1080px) {
  .margin-note {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}
.margin-note summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.margin-note summary::-webkit-details-marker {
  display: none;
}
.margin-note__t {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--indigo);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.margin-note__t::after {
  content: "›";
  font-family: var(--mono);
  transition: transform 0.15s var(--ease);
}
.margin-note[open] .margin-note__t::after {
  transform: rotate(90deg);
}
.margin-note__hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}
.margin-note__body {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.margin-note__body .src {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* ---------- L'instrument ---------- */
.instrument {
  margin-top: 32px;
  max-width: 660px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
}
.instrument__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.readout {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.readout__val {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(46px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--indigo);
  min-width: 2.6ch;
}
.readout__unit {
  font-size: 0.45em;
  color: var(--dim);
  margin-left: 0.12em;
  letter-spacing: 0;
}
.readout__lbl {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--dim);
  max-width: 26ch;
  line-height: 1.45;
}
.slider {
  margin-top: 14px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: grab;
}
input[type="range"]:active {
  cursor: grabbing;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--indigo) 0%,
    var(--indigo) var(--fill, 50%),
    var(--line) var(--fill, 50%),
    var(--line) 100%
  );
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-vif);
  border: 2px solid #ffffff;
  margin-top: -10.5px;
  box-shadow: 0 2px 10px rgba(20, 22, 43, 0.25);
  transition: transform 0.15s var(--ease);
}
input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.12);
}
input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}
input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 2px;
  background: var(--indigo);
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-vif);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 10px rgba(20, 22, 43, 0.25);
}
input[type="range"]:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 8px;
}
input[type="range"]:disabled {
  opacity: 0.5;
  cursor: default;
}
.scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--dim);
  margin-top: 2px;
}

/* Verrouillage */
.lockrow {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 50px;
}
.lock {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  background: transparent;
  border: 1.5px solid var(--indigo);
  color: var(--indigo);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s var(--ease);
}
.lock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(79, 91, 213, 0.16);
  transform: scaleX(var(--hold, 0));
  transform-origin: left;
}
.lock.is-holding::before {
  transition: transform 0.72s linear;
}
.lock:not(.is-holding)::before {
  transition: transform 0.15s var(--ease);
}
.lockhint {
  font-size: 13px;
  color: var(--dim);
  max-width: 30ch;
  line-height: 1.5;
}
.lockhint em {
  font-family: var(--serif);
  color: var(--muted);
}

/* Tampon */
.stamp {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px;
  border: 1.5px solid var(--indigo);
  border-radius: 6px;
  outline: 1px solid rgba(79, 91, 213, 0.25);
  outline-offset: 3px;
  color: var(--indigo);
  transform: rotate(-1.6deg);
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.4;
  animation: stampIn 0.28s var(--ease) both;
}
.stamp small {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--dim);
}
@keyframes stampIn {
  from {
    transform: rotate(-6deg) scale(1.35);
    opacity: 0;
  }
  to {
    transform: rotate(-1.6deg) scale(1);
    opacity: 1;
  }
}

/* ---------- Résolution ---------- */
.reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.reveal.open {
  grid-template-rows: 1fr;
}
.reveal > div {
  overflow: hidden;
}
.phase {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.phase.in {
  opacity: 1;
  transform: none;
}
.resolution {
  margin-top: 32px;
  max-width: 660px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
}
.res-method {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.res-method__chip {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  border: 1px solid rgba(79, 91, 213, 0.4);
  border-radius: 999px;
  padding: 5px 11px;
  margin-top: 2px;
  white-space: nowrap;
}
.res-method p {
  font-size: 14px;
  color: var(--muted);
  max-width: 54ch;
}
.res-method p b {
  color: var(--text);
  font-weight: 600;
}
.res-issue {
  padding-top: 22px;
}
.verdict-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.verdict-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1px solid rgba(30, 122, 76, 0.4);
  border-radius: 999px;
  padding: 5px 11px;
}
.verdict-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.res-issue h3 {
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: 14px;
}
.res-issue .story {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  max-width: 58ch;
}
.lesson {
  margin-top: 20px;
  padding: 16px 20px 16px 22px;
  border-left: 3px solid var(--gold-vif);
  background: var(--surface2);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif);
  font-style: italic;
  font-optical-sizing: auto;
  font-size: 16.5px;
  line-height: 1.55;
  max-width: 58ch;
}

/* Distribution */
.dist {
  margin-top: 28px;
}
.dist__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.dist svg {
  width: 100%;
  height: auto;
  margin-top: 12px;
}
.dist__curve {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.8;
}
.dist__area {
  fill: var(--surface2);
}
.dist__slice {
  fill: var(--gold-vif);
}
.dist__you {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  fill: var(--gold);
  text-transform: uppercase;
}
.dist__stem {
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.dist__base {
  stroke: var(--line);
  stroke-width: 1;
}
.dist__grid {
  stroke: var(--surface2);
  stroke-width: 1;
}
.dist__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  margin-top: 6px;
}
.dist__caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--dim);
  max-width: 60ch;
  line-height: 1.65;
}
.res-cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.res-cta .stat {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 44ch;
}
.res-cta .stat b {
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Animation de la distribution */
.dist__curve {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--ease) 0.1s;
}
.dist svg.on .dist__curve {
  stroke-dashoffset: 0;
}
.dist__area {
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.45s;
}
.dist svg.on .dist__area {
  opacity: 1;
}
.dist__slice {
  transform: scaleY(0);
  transform-origin: bottom;
  transform-box: fill-box;
  transition: transform 0.5s var(--ease) 0.95s;
}
.dist svg.on .dist__slice {
  transform: scaleY(1);
}
.dist__you,
.dist__stem {
  opacity: 0;
  transition: opacity 0.35s var(--ease) 1.3s;
}
.dist svg.on .dist__you,
.dist svg.on .dist__stem {
  opacity: 1;
}

/* ---------- Références (citations) ---------- */
.quotes {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.quotes__list {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vh, 56px) clamp(48px, 6vw, 88px);
}
@media (max-width: 980px) {
  .quotes__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 820px;
  }
}
.quote {
  display: grid;
  gap: 14px;
  align-content: start;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.quote blockquote {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 420;
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.42;
  letter-spacing: -0.008em;
  color: var(--text);
  text-wrap: balance;
}
.quote figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.quote figcaption b {
  color: var(--muted);
  font-weight: 500;
}
.quote--feature {
  grid-column: 1 / -1;
  margin-top: clamp(12px, 2vh, 24px);
  padding: clamp(26px, 4vw, 48px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  max-width: 900px;
}
.quote--feature blockquote {
  font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.38;
}
.quote--feature blockquote em {
  font-style: italic;
  color: var(--indigo);
}
.quotes__close {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
  max-width: 52ch;
}
.quotes__close b {
  color: var(--text);
  font-weight: 600;
}
.quotes__note {
  margin-top: clamp(36px, 5vh, 56px);
  font-size: 12px;
  color: var(--dim);
}

/* ---------- Le rituel ---------- */
.steps {
  margin-top: 40px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step__n {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.12em;
}
.step h4 {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  max-width: 58ch;
}
.cats {
  margin-top: 48px;
}
.catledger {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.catrow {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}
.catrow__i {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

/* ---------- Le score ---------- */
.score-rows {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.score-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 680px) {
  .score-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}
.score-row__name {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.score-row__name .mono {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}
.score-row p {
  color: var(--muted);
  font-size: 15px;
  max-width: 58ch;
}
.score-row p b {
  color: var(--text);
  font-weight: 600;
}

/* Figure calibration */
.figure {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) {
  .figure {
    grid-template-columns: minmax(0, 1fr);
  }
}
.figure__plot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.6vw, 30px);
}
.figure__plot .figno {
  display: block;
  margin-bottom: 12px;
}
.figure svg {
  width: 100%;
  height: auto;
}
.cal__grid {
  stroke: var(--line);
  stroke-width: 1;
}
.cal__diag {
  stroke: var(--dim);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  fill: none;
}
.cal__you {
  stroke: var(--indigo);
  stroke-width: 2.2;
  fill: none;
}
.cal__label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  fill: var(--dim);
  text-transform: uppercase;
}
.cal__label--indigo {
  fill: var(--indigo);
}
.cal__gap {
  stroke: var(--gold);
  stroke-width: 1.4;
}
.cal__gaplabel {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  fill: var(--gold);
  text-transform: uppercase;
}
.figure__side .quotebis {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 430;
  line-height: 1.5;
  max-width: 44ch;
}
.figure__side .quotebis b {
  font-weight: 600;
}
.figure__side .quotebis sup {
  color: var(--dim);
  font-size: 0.6em;
}
.figure__side .figcap {
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
  max-width: 46ch;
  line-height: 1.65;
}
.score-note {
  margin-top: 24px;
  max-width: 860px;
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
}

/* ---------- La référence + accès ---------- */
.s0 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}
@media (min-width: 960px) {
  .s0 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
  }
}
.s0__how {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.s0__how > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
  align-items: baseline;
}
.s0__how b {
  color: var(--text);
  font-weight: 600;
}
.s0__how .n {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.s0__close {
  margin-top: 20px;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 52ch;
}
.s0__close b {
  color: var(--gold);
  font-weight: 650;
}
.wait {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.2vw, 36px);
}
.wait h3 {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.wait > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 46ch;
}
.wait form {
  margin-top: 26px;
}
.wait__ok .okline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
}
.wait__ok .okline .tick {
  color: var(--ok);
  font-family: var(--mono);
}
.wait__ok p + p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 44ch;
}
.wait__ok b {
  color: var(--text);
}
/* ---------- FAQ ---------- */
.faq {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 780px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary {
  transition: color 0.2s var(--ease);
}
.faq summary:hover {
  color: var(--indigo);
}
.faq summary .qn {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.08em;
  flex: none;
}
.faq summary .plus {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--dim);
  transition: transform 0.2s var(--ease);
}
.faq details[open] .plus {
  transform: rotate(45deg);
}
.faq .a {
  padding: 0 0 20px 46px;
  color: var(--muted);
  font-size: 15px;
  max-width: 58ch;
}
@media (max-width: 560px) {
  .faq .a {
    padding-left: 0;
  }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot {
  max-width: var(--w);
  margin: 0 auto;
  padding: 44px var(--pad) 56px;
}
.foot__mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot__mark svg {
  width: 48px;
  height: 48px;
}
.foot__mark .name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.foot__notes {
  margin-top: 26px;
  font-size: 12px;
  color: var(--dim);
  max-width: 78ch;
  line-height: 1.75;
}
.foot__notes p + p {
  margin-top: 8px;
}
.foot__legal {
  margin-top: 16px;
  font-size: 12px;
  color: var(--dim);
  max-width: 78ch;
  line-height: 1.75;
}
.foot__colophon {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12.5px;
  color: var(--dim);
}
.foot__colophon a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.15s;
}
.foot__colophon a:hover {
  color: var(--indigo);
}

/* ---------- Ancres et apparitions ---------- */
section[id] {
  scroll-margin-top: 80px;
}
@media (max-width: 460px) {
  .scale-x {
    display: none;
  }
}
.scale i {
  font-style: normal;
}
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.rv.in {
  opacity: 1;
  transform: none;
}
.case__chapo { --d: 0.06s; }
.case__q { --d: 0.12s; }
.instrument { --d: 0.2s; }
.margin-note { --d: 0.28s; }
.steps .step:nth-child(2) { --d: 0.06s; }
.steps .step:nth-child(3) { --d: 0.12s; }
.steps .step:nth-child(4) { --d: 0.18s; }
.quotes__list .quote:nth-child(2) { --d: 0.05s; }
.quotes__list .quote:nth-child(3) { --d: 0.1s; }
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
  }
  .phase {
    opacity: 1;
    transform: none;
  }
  .reveal {
    transition: none;
  }
}

/* ============================================================
   Formation · contrarian thinking (formation.html)
   ============================================================ */
.fhero {
  padding-top: clamp(28px, 5vh, 52px);
  padding-bottom: clamp(24px, 4vh, 40px);
}
.fhero__chips {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fchip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.fchip--gold {
  color: var(--gold);
  border-color: rgba(178, 126, 20, 0.35);
}
.fhero__cta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fprogram {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.fprogram > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}
.fprogram .n {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.fprogram .t {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}

/* Leçons */
.lesson {
  max-width: 64ch;
}
.lesson p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}
.lesson p b {
  color: var(--text);
  font-weight: 600;
}
.lesson .refline {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.takeaway {
  margin-top: 26px;
  max-width: 64ch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
}
.takeaway ul {
  margin-top: 12px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.takeaway li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--muted);
}
.takeaway li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--indigo);
}

/* Quiz */
.quiz {
  margin-top: 28px;
  max-width: 64ch;
  display: grid;
  gap: 14px;
}
.quiz__q {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
}
.quiz__t {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.quiz__opts {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease),
    opacity 0.15s var(--ease);
}
.opt:hover:not(:disabled) {
  border-color: var(--dim);
}
.opt:disabled {
  cursor: default;
}
.opt.is-off {
  opacity: 0.55;
}
.opt.is-ok {
  border-color: var(--ok);
  background: rgba(30, 122, 76, 0.07);
}
.opt.is-ko {
  border-color: var(--ko);
  background: rgba(192, 58, 75, 0.07);
}
.opt__i {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  padding-top: 3px;
}
.quiz__fb {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.quiz__fb.show {
  display: block;
}
.quiz__fb b {
  font-weight: 650;
}
.quiz__fb .okt {
  color: var(--ok);
}
.quiz__fb .kot {
  color: var(--ko);
}

/* Examen + certificat */
.exam__bar {
  margin-top: 24px;
  max-width: 64ch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.exam__result {
  margin-top: 28px;
  max-width: 64ch;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 26px 28px;
}
.exam__result h3 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.exam__result p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}
.exam__result .pill {
  margin-top: 16px;
}
.exam__result .score {
  font-family: var(--mono);
  color: var(--gold);
  font-weight: 600;
}
.cert__form {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cert__form input {
  flex: 1;
  min-width: 220px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 10px 0;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.cert__form input:focus {
  outline: none;
  border-bottom-color: var(--indigo);
}
/* Certification de fin de parcours : liée au profil, partageable */
.cdone {
  margin-top: 36px;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--gold-vif);
  border-radius: var(--r);
  box-shadow: 0 14px 44px -18px rgba(178, 126, 20, 0.25);
  padding: clamp(22px, 3.2vw, 34px);
}
.cdone__t {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.cdone__meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.cdone__meta b { color: var(--gold); font-weight: 700; }
.cdone__link {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cdone__url {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}
.cdone__p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}
.cdone .sharebox {
  margin-top: 20px;
}
.cdone__cta {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   Classement en direct (démo, alimenté par leaderboard.json)
   ============================================================ */
.lb {
  margin-top: 44px;
  max-width: 860px;
}
.lb__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease),
    background 0.15s var(--ease);
}
.lb__tab:hover {
  border-color: var(--dim);
}
.lb__tab.is-on {
  border-color: var(--indigo);
  color: var(--indigo);
  background: rgba(79, 91, 213, 0.06);
}
.lb__board {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lb__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.lb__updated {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.lb__updated .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  margin-right: 7px;
  vertical-align: 1px;
  animation: lbpulse 2.4s ease-in-out infinite;
}
@keyframes lbpulse {
  50% {
    opacity: 0.3;
  }
}
.lb__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s var(--ease);
}
.lb__row:last-of-type {
  border-bottom: none;
}
.lb__row:hover {
  background: var(--bg);
}
.lb__rank {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.lb__row--podium .lb__rank {
  color: var(--gold);
  font-weight: 600;
}
.lb__pseudo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb__pseudo .crown {
  margin-left: 6px;
}
.lb__cases {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}
.lb__delta {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: right;
}
.lb__delta.up {
  color: var(--indigo);
}
.lb__delta.down,
.lb__delta.flat {
  color: var(--dim);
}
.lb__rating {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.lb__pctl {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  min-width: 68px;
  text-align: right;
}
.lb__foot {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.lb__note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--dim);
  max-width: 62ch;
  line-height: 1.65;
}
.lb__cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .lb__row {
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 12px 16px;
  }
  .lb__cases,
  .lb__delta {
    display: none;
  }
  .lb__head,
  .lb__foot {
    padding-inline: 16px;
  }
}

/* ============================================================
   Documents légaux (legal.html)
   ============================================================ */
.ldoc h3 {
  margin-top: 34px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  max-width: 70ch;
}
.ldoc p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  max-width: 70ch;
}
.ldoc p b,
.ldoc li b {
  color: var(--text);
  font-weight: 600;
}
.ldoc ul {
  margin-top: 10px;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 70ch;
}
.ldoc li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
}
.ldoc li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--indigo);
}
.ldoc-link,
.ldoc a:not(.pill) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.15s var(--ease);
}
.ldoc-link:hover,
.ldoc a:not(.pill):hover {
  color: var(--indigo);
}
.wait__legal {
  margin-top: 14px;
  font-size: 12px;
  color: var(--dim);
  max-width: 46ch;
  line-height: 1.6;
}
.wait__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line);
}
.wait__legal a:hover {
  color: var(--indigo);
}

/* ============================================================
   Authentification (compte.html + formulaires)
   ============================================================ */
.form__error {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ko);
  max-width: 46ch;
}
.form__status {
  margin-top: 10px;
  font-size: 13.5px;
  min-height: 1em;
}
.form__status--ok { color: var(--ok); }
.form__status--ko { color: var(--ko); }

/* Vue déconnectée de compte.html : titre + carte, centrés. */
.authcenter {
  text-align: center;
}
.authcenter .auth-card {
  margin-inline: auto;
  text-align: left;
}

/* Carte d'authentification : onglets + champs empilés, stables à
   toutes les largeurs. */
.auth-card {
  margin-top: 30px;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3.2vw, 34px);
}
.authtabs {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface2);
}
.authtabs__tab {
  flex: 1;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.authtabs__tab--on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(20, 22, 43, 0.12);
}
.authtabs__tab:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}
.auth-card form {
  margin-top: 6px;
}
.fieldrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (max-width: 420px) {
  .fieldrow { grid-template-columns: 1fr; }
}
.field {
  margin-top: 20px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 9px 0;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--indigo);
}
.field input::placeholder {
  color: var(--dim);
}
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
}
.field textarea {
  resize: vertical;
  line-height: 1.6;
}
.field__hint {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--dim);
  max-width: 46ch;
}
.field__hint--center {
  margin-top: 14px;
  text-align: center;
  max-width: none;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  cursor: pointer;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.check__box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--dim);
  border-radius: 5px;
  background: var(--surface);
  position: relative;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.check__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.check input:checked + .check__box {
  background: var(--indigo);
  border-color: var(--indigo);
}
.check input:checked + .check__box::after {
  opacity: 1;
}
.check input:focus-visible + .check__box {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}
.check__t {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.check__t a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line);
}
.check__t a:hover {
  color: var(--indigo);
}
.pill--full {
  width: 100%;
  margin-top: 24px;
}
.btn-link--center {
  display: block;
  margin: 16px auto 0;
}

/* Paramètres du compte */
.acct-card.acct-set {
  max-width: none;
}
.setrow {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.setrow label {
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.setrow .field__hint {
  margin-top: 4px;
}
.setrow__form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 12px;
  max-width: 460px;
}
.setrow__form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 9px 0;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.setrow__form input:focus {
  outline: none;
  border-bottom-color: var(--indigo);
}
.setrow__form input::placeholder {
  color: var(--dim);
}
.setrow__form .pill {
  flex: none;
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}
@media (max-width: 480px) {
  .setrow__form {
    flex-direction: column;
    align-items: stretch;
  }
  .setrow__form .pill {
    width: 100%;
  }
}
.acct-card {
  margin-top: 26px;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 30px);
}
.acct-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 880px;
}
.acct-grid .acct-card {
  margin-top: 0;
  max-width: none;
}
.acct-card--link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.acct-card--link:hover {
  transform: translateY(-3px);
  border-color: var(--dim);
  box-shadow: 0 16px 44px -18px rgba(20, 22, 43, 0.18);
}
.acct-card--link h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.acct-card--link p:not(.k) {
  color: var(--muted);
  font-size: 14px;
}
.acct-card__go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--indigo);
}
.acct-email {
  font-weight: 650;
  color: var(--text);
}
.btn-link {
  margin-top: 36px;
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.btn-link:hover {
  color: var(--ko);
}


/* ============================================================
   App connectee - page Aujourd'hui (app.html)
   ============================================================ */
.appmain {
  padding-block: 40px 56px;
  display: grid;
  gap: clamp(26px, 4vh, 40px);
  max-width: 860px;
}
.appstatus {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.chipstat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 650;
}
.chipstat__i { font-size: 13px; }
.chipstat__dim { color: var(--dim); font-weight: 500; }
@media (max-width: 640px) {
  .appstatus .chipstat:nth-child(2) { display: none; }
  .masthead__in { gap: 10px; }
  .appstatus { gap: 8px; }
  .appstatus .chipstat { padding: 0 9px; }
  .appstatus ~ .masthead__cta { height: 40px; padding: 0 14px; font-size: 14px; }
  .lang { padding: 2px; }
  .lang__seg { height: 24px; padding: 0 8px; font-size: 11px; }
}
@media (max-width: 430px) {
  .brand .brand__n { display: none; }
}
.appsec__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.applink { font-size: 13px; font-weight: 600; color: var(--indigo); }
.applink:hover { text-decoration: underline; text-underline-offset: 3px; }
.app-note { margin-top: 12px; font-size: 13px; color: var(--dim); }

.moment {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.4vw, 36px);
}
.moment--reward {
  border-color: rgba(178, 126, 20, 0.4);
  box-shadow: 0 14px 44px -18px rgba(178, 126, 20, 0.25);
}
.moment__t {
  margin-top: 10px;
  font-weight: 650;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.moment__sub { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 58ch; }
.moment__sub b { color: var(--gold); font-family: var(--mono); }
.moment .pill { margin-top: 20px; }
.moment__q {
  font-family: var(--serif);
  font-style: italic;
  font-optical-sizing: auto;
  font-size: 18px;
  color: var(--text);
  margin-top: 10px;
  max-width: 50ch;
}
.moment__cd { margin-top: 16px; font-size: 13px; color: var(--dim); }
.moment__cd b { color: var(--indigo); font-variant-numeric: tabular-nums; }
.moment__delta { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.moment__delta b { color: var(--gold); font-family: var(--mono); }
.moment .res-method {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: none;
  padding-bottom: 0;
}
.moment .res-issue { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.moment .res-issue h3 {
  font-weight: 650;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.qrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.qrow + .qrow { margin-top: 10px; }
.qrow--action { cursor: pointer; transition: border-color 0.15s var(--ease), transform 0.15s var(--ease); }
.qrow--action:hover { border-color: var(--indigo); transform: translateY(-1px); }
.qrow__l { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.qrow__cat { font-size: 14px; font-weight: 650; white-space: nowrap; }
.qrow__cat--business { color: var(--cat-business); }
.qrow__cat--tech { color: var(--cat-tech); }
.qrow__no { font-size: 11px; color: var(--dim); }
.qrow__st {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.qrow__st.is-play { color: var(--indigo); }
.qrow__st.is-wait { color: var(--dim); }
.qrow__st.is-done { color: var(--muted); }
.qrow__st.is-reward { color: var(--gold); }
.queue__cd { margin-top: 14px; font-size: 12px; color: var(--dim); }
.queue__cd b { color: var(--indigo); font-variant-numeric: tabular-nums; }

.playcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
  margin-top: 14px;
}
.case__title--app { font-size: clamp(22px, 2.8vw, 30px); margin-top: 10px; }
.case__q--app { font-size: clamp(17px, 2vw, 21px); margin-top: 14px; }
.margin-note--app { margin-top: 16px; border-top: none; padding-top: 0; position: static; }
.margin-note--app .margin-note__body p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.instrument--app {
  margin-top: 22px;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  max-width: none;
}
.instrument--app input[type="range"] { margin-top: 8px; }

.sharebox {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
}
@media (max-width: 640px) {
  .sharebox { grid-template-columns: minmax(0, 1fr); }
}
.sharebox__grid {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.sharebox__actions { display: grid; gap: 8px; justify-items: start; }

.prow {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}
@media (max-width: 560px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow__bar { grid-column: 1 / -1; }
}
.prow__cat { font-size: 14px; font-weight: 650; white-space: nowrap; }
.prow__bar { height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.prow__fill {
  height: 100%;
  width: var(--p, 0%);
  border-radius: 4px;
  background: var(--indigo);
  transition: width 0.6s var(--ease);
}
.prow__fill--form { --p: 33%; background: var(--gold-vif); }
.prow__bar--solo { margin-top: 12px; max-width: 280px; }
.prow__n { font-size: 12px; color: var(--dim); }

.lb__board--mini { margin-top: 14px; box-shadow: none; }
.lb__row--mini { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
.lb__board--mini .app-note { padding: 10px 22px 14px; margin-top: 0; }

.acct-card--row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  max-width: none;
}
.acct-card--row > div { flex: 1; min-width: 0; }
.acct-card--row .acct-card__go { margin-top: 0; padding-top: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .acct-card--row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.acct-card--row h2 { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.acct-card--row p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.histbox {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.hrow {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto 28px auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
}
.hrow:last-child { border-bottom: none; }
@media (max-width: 560px) {
  .hrow { grid-template-columns: minmax(0, 1fr) auto 24px auto; }
  .hrow__d { display: none; }
}
.hrow__d { font-size: 11px; color: var(--dim); }
.hrow .qrow__cat { font-size: 13px; }
.hrow__p { font-size: 12.5px; color: var(--muted); }
.hrow__ok { font-family: var(--mono); font-size: 13px; text-align: center; }
.hrow__ok.is-ok { color: var(--ok); }
.hrow__ok.is-ko { color: var(--ko); }
.hrow__delta { font-size: 12.5px; min-width: 34px; text-align: right; }
.hrow__delta.up { color: var(--indigo); }
.hrow__delta.down { color: var(--dim); }

.foot--app { padding-block: 28px 36px; }
.btn-link--inline { margin-top: 0; }

/* ============================================================
   Administration
   ============================================================ */
.admin { max-width: 980px; }
.arow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 10px;
}
.arow__main { flex: 1; min-width: 0; }
.arow__t {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.arow__no { font-size: 12.5px; color: var(--dim); }
.arow__title {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.arow__meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--dim);
}
.arow__acts {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.arow__acts .pill { height: 38px; padding: 0 16px; font-size: 13.5px; }
.qrow__st.is-draft { color: var(--dim); }
.aform {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--gold-vif);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 30px);
}
.aform__actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
/* la section #cas en mode réel : invisible tant que le cas vitrine
   n'a pas remplacé le contenu de démonstration (anti-flash) */
.cas--loading { visibility: hidden; }
@media (max-width: 640px) {
  .arow { flex-direction: column; }
  .arow__acts { flex-direction: row; align-items: center; }
}

/* ============================================================
   Parcours contrarian thinking : chemin, noeuds, sessions
   ============================================================ */
.cnext {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 30px);
  max-width: 640px;
}
.cnext__t {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.cnext__p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 56ch;
}
.cnext .pill { margin-top: 18px; }

.crace {
  margin-top: 16px;
}
.crace__list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.crace__row {
  display: grid;
  grid-template-columns: 18px minmax(0, 92px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.crace__rank {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
}
.crace__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crace__row--you .crace__name { color: var(--indigo); font-weight: 700; }
.crace__row--you .crace__rank { color: var(--indigo); }
.crace__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.crace__fill {
  height: 100%;
  width: var(--p, 0%);
  border-radius: 999px;
  background: var(--dim);
  transition: width 0.5s var(--ease);
}
.crace__fill--you { background: var(--indigo); }
.crace__pct {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
}

.cinvite {
  margin-top: 16px;
  border-color: var(--gold-vif);
}
.cinvite__form {
  margin-top: 16px;
}
.cinvite__row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.cinvite__row + .cinvite__row,
.cinvite__form .field__hint + .cinvite__row {
  margin-top: 14px;
}
.cinvite__row input {
  flex: 1;
  min-width: 170px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 9px 0;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.cinvite__row input:focus {
  outline: none;
  border-bottom-color: var(--indigo);
}
.cinvite__row input::placeholder {
  color: var(--dim);
}
.cinvite__row .pill {
  flex: none;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}
.cinvite__row .pill:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (max-width: 480px) {
  .cinvite__row {
    flex-direction: column;
    align-items: stretch;
  }
  .cinvite__row .pill {
    width: 100%;
  }
}

.cband {
  margin-top: 44px;
}
.cband:first-child { margin-top: 0; }
.cband__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
}
.cband__n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--indigo);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cband__n--gold { background: var(--gold-vif); color: #14162b; }
.cband__tt { flex: 1; min-width: 0; }
.cband__t { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.cband__s { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.cband__bar {
  margin-top: 10px;
  height: 6px;
  max-width: 320px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.cband__fill {
  height: 100%;
  width: var(--p, 0%);
  border-radius: 999px;
  background: var(--indigo);
  transition: width 0.5s var(--ease);
}
.cnext__bar {
  margin-top: 12px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.cnext__fill {
  height: 100%;
  width: var(--p, 0%);
  border-radius: 999px;
  background: var(--indigo);
  transition: width 0.5s var(--ease);
}
.cband__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.cband--exam .pill { margin-top: 16px; }

/* Écran du chemin : parcours au centre, session du jour en colonne */
.cgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}
.cgrid__side { order: -1; }
@media (min-width: 1080px) {
  .cgrid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(44px, 5vw, 80px);
    align-items: start;
  }
  .cgrid__side {
    order: 0;
    position: sticky;
    top: 96px;
  }
}
.cgrid__side .cnext { max-width: none; }

/* Le chemin : gros nœuds tactiles, colonne étroite, rythme serré.
   Pas d'étiquettes : le titre vit dans le title/aria et la carte
   « Aujourd'hui ». */
.cmap {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 400px;
  margin-inline: auto;
  padding-block: 6px;
}
.cstep {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cstep--now {
  margin-block: 34px 8px;
}
.cstep--o0 { transform: translateX(0); }
.cstep--o1 { transform: translateX(44px); }
.cstep--o2 { transform: translateX(84px); }
.cstep--om1 { transform: translateX(-44px); }
.cstep--om2 { transform: translateX(-84px); }
@media (max-width: 560px) {
  .cstep--o1 { transform: translateX(32px); }
  .cstep--o2 { transform: translateX(58px); }
  .cstep--om1 { transform: translateX(-32px); }
  .cstep--om2 { transform: translateX(-58px); }
}
.cn {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  border: none;
  background: var(--surface2);
  box-shadow: 0 6px 0 var(--line);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
    filter 0.15s var(--ease);
}
.cn:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.03); }
.cn:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.cn__i {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--dim);
}
.cn--done {
  background: var(--indigo);
  box-shadow: 0 6px 0 #39429f;
}
.cn--done .cn__i { color: #ffffff; }
.cn--done:not(:disabled):active { box-shadow: 0 1px 0 #39429f; }
.cn--now {
  background: var(--indigo);
  box-shadow: 0 6px 0 #39429f, 0 0 0 5px rgba(79, 91, 213, 0.16);
}
.cn--now .cn__i { color: #ffffff; }
.cn--now:not(:disabled):active { box-shadow: 0 1px 0 #39429f, 0 0 0 5px rgba(79, 91, 213, 0.16); }
.cn--open {
  background: var(--surface);
  border: 2px solid var(--indigo);
}
.cn--open .cn__i { color: var(--indigo); }
.cn--locked {
  cursor: default;
  opacity: 0.5;
}
.cn--star .cn__i { font-size: 24px; }
.cn--star.cn--done,
.cn--star.cn--now {
  background: var(--gold-vif);
  box-shadow: 0 6px 0 var(--gold);
}
.cn--star.cn--done .cn__i,
.cn--star.cn--now .cn__i { color: #14162b; }
.cn--star.cn--now:not(:disabled):active { box-shadow: 0 1px 0 var(--gold); }
.cn--star.cn--now {
  box-shadow: 0 6px 0 var(--gold), 0 0 0 5px rgba(232, 179, 60, 0.22);
}
.cn__tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--indigo);
  border: 2px solid var(--indigo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
  animation: cnbob 1.6s ease-in-out infinite;
  z-index: 2;
}
.cn__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--indigo);
}
.cn--star .cn__tip { color: var(--gold); border-color: var(--gold-vif); }
.cn--star .cn__tip::after { border-top-color: var(--gold-vif); }
@keyframes cnbob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .cn__tip { animation: none; }
}
@media (max-width: 560px) {
  .cn { width: 68px; height: 68px; }
  .cn__i { font-size: 19px; }
}

.cdemo {
  margin-top: 30px;
  font-size: 13px;
  color: var(--dim);
}

.clesson { max-width: 720px; }
.clesson__p { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--text); }
.clesson__h { margin-top: 30px; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.clesson__q {
  margin-top: 22px;
  padding-left: 20px;
  border-left: 2px solid var(--gold-vif);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}
.clesson__q cite {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--dim);
}
.clesson__ex {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-vif);
  border-radius: 12px;
}
.clesson__ex p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }

.cvalid {
  margin-top: 26px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ok);
}
.cconvert {
  margin-top: 8px;
}
.cconvert__row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cconvert__row .btn-link {
  margin-bottom: 0;
}
.cquiz-k { margin-top: 40px; }
#course-view .btn-link { margin-bottom: 18px; }
#course-view .takeaway { max-width: 720px; }
#course-view .quiz { max-width: 720px; }

.opt.is-pick {
  border-color: var(--indigo);
  background: #eef0fc;
}
.exam__submit {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}
.exam__count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
