/* Allure en ligne : page d'accueil publique et formulaires de compte. */
html[data-allure-cloud]:not(.allure-authenticated) .shell { visibility: hidden; }
#allureCloudGate { position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: var(--paper); scroll-behavior: smooth; }
#allureCloudGate[hidden] { display: none; }

/* ---------- Bandeau d'ouverture : le même bleu nuit que la barre de l'application ---------- */
.landing { --band: var(--night, #15181D); --band-ink: #F4F6FA; --band-text: #C3CCD8; --band-faint: #9AA8BA; }
.landing-band { background: var(--band); color: var(--band-ink); }
.landing-band :focus-visible { outline-color: #8EA4FF; }
.landing-band ::selection { background: #3B4F9C; color: #fff; }
.landing-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1220px; margin: 0 auto; padding: 22px 32px; }
.landing-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--band-ink); }
.landing-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--cobalt); color: var(--on-cobalt); }
.landing-mark svg { width: 22px; height: 22px; }
.landing-nav { display: flex; align-items: center; gap: 18px; }
.landing-link { padding: 8px 2px; border: 0; background: none; color: var(--band-text); font-weight: 600; font-size: 14.5px; transition: color .15s; }
.landing-link:hover { color: var(--band-ink); }
.landing-nav .btn { background: var(--band-ink); border-color: var(--band-ink); color: #142033; }
.landing-nav .btn:hover { background: #fff; border-color: #fff; }

.landing-main { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 52px; align-items: start; max-width: 1220px; margin: 0 auto; padding: 34px 32px 84px; }
.landing-hero h1 { margin: 0 0 24px; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5.6vw, 80px); line-height: .93; letter-spacing: -.02em; max-width: 17ch; text-wrap: balance; color: var(--band-ink); }
.landing-hero > p { margin: 0; max-width: 54ch; color: var(--band-text); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.auth-card { padding: 28px; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.auth-card h2 { margin: 0 0 16px; font-family: var(--display); font-size: 32px; line-height: 1.05; }
.auth-card .btn[type="submit"] { width: 100%; margin-top: 4px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.auth-error { min-height: 20px; margin-top: 10px; color: var(--bad); font-size: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--cobalt); flex: none; }
.legacy { margin-bottom: 14px; }
.legacy summary { cursor: pointer; color: var(--cobalt); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.legacy-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--cobalt-soft); color: var(--cobalt-ink); font-size: 14px; }

/* ---------- La démonstration : un plan qui se recale ---------- */
.demo { margin: 40px 0 0; }
.demo-board { padding: 18px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.demo-total > span { grid-area: 1 / 1; }
.demo-total { display: inline-grid; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-swap > .demo-was, .demo-swap > .demo-now { grid-area: 2 / 1; }
.demo-total > span, .demo-swap > .demo-was, .demo-swap > .demo-now { transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1); }
.demo-total .demo-now { opacity: 0; transform: translateY(6px); }
.demo-advice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; max-height: 0; margin: 0; padding: 0 14px; overflow: hidden; border-radius: 14px; background: var(--surface-2); opacity: 0; transform: translateY(-8px); transition: max-height .6s cubic-bezier(.16, 1, .3, 1), opacity .5s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1), padding .6s cubic-bezier(.16, 1, .3, 1), margin .6s cubic-bezier(.16, 1, .3, 1); }
.demo-advice-text { font-size: 13.5px; color: var(--ink-2); }
.demo-advice-text b { display: block; margin-bottom: 1px; color: var(--ink); font-size: 14.5px; }
.demo-advice-text b::before, .demo-done::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--z-vma); vertical-align: 1px; }
.demo-actions { display: flex; gap: 8px; }
.demo-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: 10px; background: var(--cobalt); color: var(--on-cobalt); font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform .15s, background-color .15s; }
.demo-btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.demo-done { display: none; grid-column: 1 / -1; color: var(--good); font-size: 13.5px; font-weight: 600; }
.demo-done::before { background: var(--good); }
.demo.is-advice .demo-advice { max-height: 140px; margin-bottom: 12px; padding: 12px 14px; opacity: 1; transform: none; }
.demo.is-pressing .demo-btn:first-child { transform: scale(.94); background: var(--cobalt-ink); }
.demo.is-applied .demo-advice-text, .demo.is-applied .demo-actions { display: none; }
.demo.is-applied .demo-done { display: block; }
.demo.is-applied .demo-total .demo-was, .demo.is-applied .demo-swap > .demo-was { opacity: 0; transform: translateY(-6px); }
.demo.is-applied .demo-total .demo-now, .demo.is-applied .demo-swap > .demo-now { opacity: 1; transform: none; }
.demo-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.demo-day { display: grid; grid-template-rows: auto 1fr; gap: 6px; min-height: 104px; padding: 10px 9px; border-radius: 12px; background: var(--surface-2); transition: background-color .5s, box-shadow .5s; }
.demo-dname { color: var(--muted); font-size: 12px; font-weight: 600; }
.demo-day b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.demo-day[data-zone] b::before, .demo-now b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--zone); vertical-align: 1px; }
.demo-day em { display: block; margin-top: 4px; font-family: var(--display); font-style: normal; font-size: 17px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.demo-rest b { color: var(--faint); font-weight: 500; }
.demo-swap .demo-now { opacity: 0; transform: translateY(6px); }
.demo.is-applied .demo-swap { background: var(--good-soft); box-shadow: inset 0 0 0 1.5px var(--good); }
.demo figcaption { margin-top: 12px; color: var(--band-faint); font-size: 13px; }

/* ---------- Sections ---------- */
.landing-section { max-width: 1220px; margin: 0 auto; padding: 104px 32px 0; }
.landing-section h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.2vw, 56px); line-height: .98; letter-spacing: -.015em; max-width: 18ch; text-wrap: balance; }
.landing-level { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.level-copy p { margin: 0 0 12px; max-width: 52ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.ladder { margin: 0; padding: 0; list-style: none; }
.ladder li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.ladder li:first-child { border-top: 0; }
.ladder-name { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 16px; }
.ladder-name small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.ladder-pace { font-family: var(--display); font-size: clamp(40px, 5vw, 68px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ladder-pace small { margin-left: 4px; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.landing-track { display: flex; gap: 10px; margin-top: 30px; }
.lt-phase { display: grid; align-content: start; min-width: 0; }
.lt-blocks { display: flex; gap: 3px; height: 64px; margin-bottom: 12px; }
.lt-blocks i { flex: 1; border-radius: 6px; background: var(--phase-base); }
.lt-phase[data-phase="dev"] i { background: var(--phase-dev); }
.lt-phase[data-phase="spec"] i { background: var(--phase-spec); }
.lt-phase[data-phase="taper"] i { background: var(--phase-taper); }
.lt-phase[data-phase="race"] i { background: var(--z-race); }
.lt-blocks i.deload { opacity: .55; }
.lt-phase strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-phase small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prep-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 44px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.prep-facts strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; }

.watch-names { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 26px 0 22px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.15; }
.watch-names span:nth-child(even) { color: var(--muted); }
.watch-note { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 18px; margin-top: 26px; }
.price-card { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.price-card.featured { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.price-card h3 { margin: 0; font-size: 16px; }
.price { margin: 6px 0 0; font-family: var(--display); font-size: 38px; font-weight: 700; }
.price-alt { margin: 0; color: var(--muted); font-size: 13.5px; }
.price-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }

.landing-final { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-bottom: 0; }
.landing-final h2 { margin: 0; }
.landing-final .btn { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.landing-foot { max-width: 1220px; margin: 96px auto 0; padding: 26px 32px 44px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.landing-foot a { color: var(--muted); }
.landing-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.landing-foot-links a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.landing-foot-links a:hover { text-decoration: underline; }
a.landing-link { text-decoration: none; }

@media (max-width: 980px) {
  .landing-main { grid-template-columns: 1fr; gap: 36px; padding: 18px 20px 56px; }
  .landing-top { padding: 16px 20px; }
  .landing-section { padding: 76px 20px 0; }
  .landing-level { grid-template-columns: 1fr; gap: 28px; }
  .prep-facts { grid-template-columns: 1fr; gap: 20px; }
  .landing-foot { margin-top: 72px; padding: 22px 20px 36px; }
}
@media (max-width: 640px) {
  .landing-brand { font-size: 26px; }
  .landing-mark { width: 36px; height: 36px; }
  .landing-nav { gap: 12px; }
  .landing-calc { display: none; }
  .landing-hero > p { font-size: 16.5px; }
  .demo { margin-top: 30px; }
  .demo-board { padding: 14px; }
  .demo-advice { grid-template-columns: 1fr; }
  .demo-week { grid-template-columns: 1fr; gap: 4px; }
  .demo-day { grid-template-rows: none; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; min-height: 0; padding: 9px 10px; }
  .demo-swap { grid-template-columns: 40px minmax(0, 1fr); }
  .demo-swap > .demo-was, .demo-swap > .demo-now { grid-area: 1 / 2; }
  .demo-day > span:last-child, .demo-swap > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .demo-day em { margin: 0; font-size: 16px; }
  .demo-rest { display: none; }
  .landing-track { gap: 6px; }
  .lt-blocks { height: 44px; gap: 2px; }
  .lt-phase small { display: none; }
  .lt-phase strong { font-size: 12.5px; }
  .price-grid { grid-template-columns: 1fr; }
  .landing-final .btn { width: 100%; }
}
.landing-session { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.session-copy > p { margin: 0 0 12px; max-width: 52ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.session-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 28px 0 24px; padding: 0; list-style: none; counter-reset: none; }
.session-steps li { display: grid; gap: 4px; padding: 14px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.session-steps i { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--z-threshold); }
.session-steps small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.session-steps strong { font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.session-note { font-size: 15px !important; color: var(--muted) !important; }
.session-card { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.sc-head { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sc-day { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.sc-head strong { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.05; }
.sc-figs { color: var(--ink-2); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-steps { margin: 0; padding: 0; list-style: none; }
.sc-steps li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-top: 10px; }
.sc-steps li.sc-main { background: color-mix(in srgb, var(--z-threshold) 16%, var(--surface)); }
.sc-steps span { color: var(--muted); font-size: 13px; font-weight: 600; }
.sc-steps b { font-size: 17px; }
.sc-steps small { color: var(--ink-2); font-size: 14px; }
.sc-foot { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 980px) {
  .landing-session { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .session-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-card { padding: 20px; }
  .sc-head strong { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-advice, .demo-total > span, .demo-swap > span, .demo-day { transition: none; }
}
.pricing-lead { margin: 0 0 8px; max-width: 60ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
