/* Roadmap : une colonne, barre de progression collante, chemin vertical qui se remplit au scroll, étapes cochables. */
body { font-size: 1.0625rem; line-height: 1.6; padding-block: 0 64px; overflow-x: hidden; }
.wrap { max-width: 46rem; margin-inline: auto; }
a { text-decoration-thickness: 1.5px; }
a:hover { color: var(--sand); }

/* PROGRESS BAR */
.progress {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  margin-inline: -16px; padding: 10px 16px;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--outline);
}
.progress .wrap { display: flex; align-items: center; gap: 14px; }
.progress .brand { font-size: 1.15rem; white-space: nowrap; }
.bar { flex: 1; height: 12px; border: 2px solid var(--outline); background: var(--ink-deep); min-width: 60px; }
.bar i { display: block; height: 100%; width: 0; background: var(--terra); transition: width .5s var(--bounce); }
.count { font-size: .85rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.count b { color: var(--terra-soft); }

/* HERO */
.hero { padding-block: 52px 36px; display: grid; gap: 22px; }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--terra-soft); }
h1 {
  font-size: clamp(3rem, 11vw, 5.2rem); line-height: .95; margin: 0;
  -webkit-text-stroke: 2px var(--outline); paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--outline); text-wrap: balance;
}
h1 .line { display: block; animation: rise .7s var(--bounce) both; }
h1 .line:nth-child(2) { animation-delay: .1s; }
h1 .block {
  display: inline-block; background: var(--terra); color: var(--sand);
  padding: 0 .12em; border: 3px solid var(--outline); box-shadow: 6px 6px 0 var(--outline);
  transform: rotate(-2deg); animation: slam .8s var(--bounce) .3s both;
}
.lead { font-size: 1.15rem; max-width: 36rem; margin: 0; }
.lead strong { color: var(--terra-soft); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--sand);
  border: 2px solid var(--outline); background: var(--ink-raise); padding: 7px 11px; box-shadow: 3px 3px 0 var(--outline);
  transition: transform .15s, box-shadow .15s;
}
.chip:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--outline); color: var(--sand); }

/* SECTIONS */
section { padding-block: 32px; scroll-margin-top: 70px; }
h2 {
  font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1; margin: 0 0 22px; text-wrap: balance;
  -webkit-text-stroke: 1.5px var(--outline); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--outline);
}
h2 .hl { color: var(--terra); }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; }
li::marker { color: var(--terra); }

/* METHOD */
.method { display: grid; gap: 16px; }
.tip {
  background: var(--ink-deep); border: 3px solid var(--outline); padding: 20px; display: grid; gap: 10px;
  box-shadow: 5px 5px 0 var(--outline); transition: transform .18s, box-shadow .18s;
}
.tip:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--outline); }
.tip.main { border-color: var(--terra); background: var(--ink-raise); }
.tip .tag { font-size: .9rem; font-weight: 700; color: var(--terra-soft); }
.tip p, .tip li { color: var(--sand-dim); }
.tip strong { color: var(--sand); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.refs { display: grid; gap: 10px; }
.ref a { font-weight: 700; }
.ref span { color: var(--sand-dim); }

/* ROADMAP */
.note { color: var(--sand-dim); font-size: .95rem; margin-bottom: 28px; }
.path-wrap { position: relative; }
.path { display: grid; gap: 24px; list-style: none; padding: 0; margin: 0; }
.rail, .rail-fill { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 4px; }
.rail { background: var(--line); }
.rail-fill { background: var(--terra); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; }
.num {
  width: 46px; height: 46px; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; font-stretch: 75%;
  background: var(--ink-raise); border: 3px solid var(--outline); box-shadow: 3px 3px 0 var(--outline);
  transition: background .3s, transform .4s var(--bounce);
}
.step.reached .num { background: var(--terra); transform: rotate(-6deg) scale(1.08); }
.step.done .num { background: var(--ok); color: var(--outline); transform: rotate(0) scale(1); }
.step.done .num span { display: none; }
.step.done .num::after { content: ""; width: 9px; height: 17px; border: solid var(--outline); border-width: 0 4px 4px 0; transform: rotate(45deg) translate(-1px, -2px); animation: pop .35s var(--bounce); }
@keyframes pop { from { transform: rotate(45deg) scale(0); } }
.card {
  background: var(--ink-raise); border: 3px solid var(--outline); box-shadow: 5px 5px 0 var(--outline);
  padding: 20px; display: grid; gap: 12px; min-width: 0;
  transition: transform .2s, box-shadow .2s, border-color .3s;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--outline); }
.step.done .card { border-color: var(--ok); }
.step.final .card { border-color: var(--terra); }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.card-head h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.dur { font-size: .9rem; font-weight: 600; color: var(--terra-soft); white-space: nowrap; }
.card > p, .card li { color: var(--sand-dim); }
.learn { border-top: 2px solid var(--line); padding-top: 12px; display: grid; gap: 6px; font-size: .97rem; }
.label { font-size: .9rem; font-weight: 700; color: var(--sand); }
.learn p, .learn li { color: var(--sand); }
.project { background: var(--ink-deep); border: 2px solid var(--outline); padding: 12px 14px; display: grid; gap: 2px; }
.project p { color: var(--sand); }
.done-btn {
  justify-self: start; font: 700 .9rem var(--f-body); cursor: pointer; color: var(--sand);
  background: var(--ink-deep); border: 2px solid var(--outline); padding: 9px 14px; box-shadow: 3px 3px 0 var(--outline);
  display: inline-flex; gap: 8px; align-items: center; transition: transform .12s, box-shadow .12s, background .2s;
}
.done-btn::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--sand-dim); }
.done-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--outline); }
.done-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--outline); }
.step.done .done-btn { background: var(--ok); color: var(--outline); }
.step.done .done-btn::before { border-color: var(--outline); background: var(--outline); }
.checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; color: var(--sand); }
.checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border: 2px solid var(--terra); }

/* FINISH */
.finish {
  margin-top: 36px; background: var(--terra); border: 3px solid var(--outline); box-shadow: 8px 8px 0 var(--outline);
  padding: 26px 24px; display: grid; gap: 14px; transform: rotate(-.8deg);
}
.finish h2 { margin: 0; color: var(--sand); }
.finish p { color: var(--sand); font-weight: 500; max-width: 34rem; }
.btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; color: var(--sand); background: var(--ink); padding: 13px 20px;
  border: 3px solid var(--outline); box-shadow: 5px 5px 0 var(--outline); transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--sand); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--outline); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

footer { margin-top: 48px; padding-top: 22px; border-top: 3px solid var(--outline); display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 1.5rem; }
footer p { color: var(--sand-dim); font-size: .95rem; }

@media (max-width: 560px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .rail, .rail-fill { left: 17px; }
  .step { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .num { width: 38px; height: 38px; font-size: 1.25rem; }
  .card { padding: 16px; }
  .progress .brand { display: none; }
}
