/* ================= Page d'accueil (éditorial) ================= */
.lp { background: var(--bg); color: var(--ink); font-size: 16px; overflow-x: clip; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.lp h2 { font: 400 clamp(38px, 5vw, 60px)/1.02 var(--serif); letter-spacing: -.015em; }
.lp h2 em, .lp h1 em { color: var(--muted); }
.lp p { color: var(--ink-2); line-height: 1.65; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* nav */
.lp-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.lp-nav.scrolled { background: color-mix(in oklab, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-color: var(--rule); }
.lp-nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lp-links { display: flex; gap: 34px; font-size: 14px; color: var(--muted); }
.lp-links a { transition: color .15s; } .lp-links a:hover { color: var(--ink); }
.lp-nav-cta { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.lp-signin { color: var(--ink-2); } .lp-signin:hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding: 72px 0 96px; }
.kicker { font-size: 14px; color: var(--muted) !important; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--ink); }
.hero h1 { font: 400 clamp(52px, 7.2vw, 96px)/.96 var(--serif); letter-spacing: -.025em; margin: 22px 0 26px; }
.hero-sub { font-size: 19px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.lp-more { font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; transition: border-color .15s; }
.lp-more:hover { border-color: var(--ink); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13px; color: var(--muted) !important; }
.hero-note .i { width: 14px; height: 14px; }

/* board (encart sombre façon terminal) */
.board { margin: 0; background: var(--surface); color: var(--ink); border-radius: 18px; border: 1px solid var(--rule); box-shadow: 0 50px 90px -40px rgb(22 20 15 / .55), 0 0 0 6px color-mix(in oklab, var(--bg) 0%, #16140f0d); overflow: hidden; font-size: 13px; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); font-weight: 500; }
.board-head span:first-child { display: flex; align-items: center; gap: 9px; }
.board-tag { font: 11px var(--mono); color: var(--faint); }
.board-cols, .b-row { display: grid; grid-template-columns: 1fr 76px 84px 78px; gap: 12px; align-items: center; padding: 0 20px; }
.board-cols { padding-top: 12px; padding-bottom: 8px; font-size: 11.5px; color: var(--faint); }
.board-cols span:nth-child(n+3) { text-align: right; }
.b-row { height: 54px; border-top: 1px solid var(--rule); transition: background .8s; }
.b-row.flash-up { background: color-mix(in oklab, var(--up) 12%, transparent); transition: none; }
.b-row.flash-down { background: color-mix(in oklab, var(--down) 12%, transparent); transition: none; }
.b-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.b-name i { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.b-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-row svg { width: 76px; height: 24px; display: block; }
.b-ccu { text-align: right; font: 500 13.5px var(--mono); }
.b-row .chip { justify-self: end; }
.board-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--rule); background: var(--surface-2); color: var(--muted); }
.board-foot b { font: 500 20px var(--mono); color: var(--ink); letter-spacing: -.02em; }

/* chiffres */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.figures div { padding: 26px 26px 28px; border-left: 1px solid var(--rule); }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures b { display: block; font: 400 64px/1 var(--serif); letter-spacing: -.02em; }
.figures small { font: 400 22px var(--serif); color: var(--muted); margin-left: 6px; }
.figures span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* chapitres */
.chapter { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; padding: 140px 0 0; scroll-margin-top: 40px; }
.chapter.flip { grid-template-columns: 7fr 5fr; }
.chapter.flip .ch-copy { order: 2; }
.ch-num { display: block; font: 500 13px var(--mono); color: var(--accent); margin-bottom: 22px; }
.ch-copy p { margin-top: 22px; font-size: 17px; max-width: 470px; }
.facts { margin: 30px 0 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.facts dt { font-weight: 500; } .facts dd { margin: 0; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks .i { width: 18px; height: 18px; color: var(--up); stroke-width: 2.2; }

.fig { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 22px 16px; }
.fig header { display: flex; justify-content: space-between; align-items: flex-start; }
.fig header b { display: block; font-weight: 500; font-size: 15px; }
.fig header span:not(.chip) { font-size: 13px; color: var(--muted); }
.fig-chart { position: relative; height: 300px; margin-top: 14px; }
.fig-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fig-chart .tip { position: absolute; top: 0; pointer-events: none; background: var(--btn-ink); color: var(--btn-ink-text); padding: 6px 9px; border-radius: 8px; font: 500 12px var(--mono); white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; }
.fig figcaption { font-size: 12.5px; color: var(--faint); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }

.studio { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.studio-top { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 26px; align-items: center; }
.studio canvas { width: 220px; height: 220px; border-radius: 22%; box-shadow: 0 24px 40px -20px rgb(22 20 15 / .6); }
.studio-ctrl { display: flex; flex-direction: column; gap: 16px; }
.timeline { list-style: none; margin: 0; padding: 6px 26px 22px; border-top: 1px solid var(--rule); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 13px 0 13px 22px; font-size: 14px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--rule-2); background: var(--surface); }
.timeline li::after { content: ''; position: absolute; left: 4.5px; top: 30px; bottom: -8px; width: 1px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); } .timeline li.done::before { background: var(--warn); border-color: var(--warn); }
.timeline time { font: 12.5px var(--mono); color: var(--faint); padding-top: 1px; }

.discord { margin: 0; background: #313338; border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.dc { display: flex; gap: 14px; padding: 14px 16px; border-radius: 10px; }
.dc + .dc { margin-top: 2px; }
.dc:hover { background: #2e3035; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; background: #16140f; color: #f5f2ec; display: grid; place-items: center; flex: none; }
.dc-av .i { stroke-width: 2.4; }
.dc p { color: #dbdee1 !important; font-size: 15px; line-height: 1.45; }
.dc b { color: #fff; font-weight: 600; }
.dc .dc-who { color: #f2f3f5 !important; font-weight: 500; display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.dc-who em { font: 600 10px var(--sans); font-style: normal; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; }
.dc-who small { font-size: 12px; color: #949ba4; font-weight: 400; }

/* comment ça marche */
.how { padding: 150px 0 0; }
.how h2 { max-width: 640px; }
.how-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.how-list li { padding: 28px 30px 0 0; }
.how-list li + li { padding-left: 30px; border-left: 1px solid var(--rule); }
.how-list span { font: 400 44px/1 var(--serif); color: var(--accent); }
.how-list h3 { font-size: 19px; font-weight: 500; margin: 18px 0 10px; }
.how-list p { font-size: 15px; color: var(--muted); }

/* faq */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; padding: 150px 0 0; scroll-margin-top: 40px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 500; transition: color .15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 40px 24px 0; font-size: 16px; color: var(--muted); }

/* fin */
.closing { padding: 170px 0 150px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 38px; }
.closing h2 { font-size: clamp(48px, 7vw, 92px); line-height: .98; }
.lp-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0 36px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.lp-foot p { font-size: 13px; color: var(--faint); }

@media (max-width: 1020px) {
  .lp-links { display: none; }
  .hero, .chapter, .chapter.flip, .faq { grid-template-columns: 1fr; gap: 44px; }
  .chapter.flip .ch-copy { order: 0; }
  .hero { padding-top: 48px; }
  .chapter { padding-top: 110px; }
}
@media (max-width: 640px) {
  .lp-signin { display: none; }
  .lp-nav-cta .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .figures div { padding: 20px 16px; } .figures b { font-size: 48px; }
  .board-cols, .b-row { grid-template-columns: 1fr 70px 64px; padding: 0 14px; }
  .board-cols span:nth-child(2), .b-row svg { display: none; }
  .studio-top { grid-template-columns: 1fr; justify-items: center; padding: 20px; }
  .studio-ctrl { width: 100%; }
  .timeline { padding: 6px 20px 18px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .how-list { grid-template-columns: 1fr; }
  .how-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .how-list li { padding-bottom: 26px; }
  .closing { padding: 120px 0 100px; }
}
