/*
 * Direction : sobre et éditorial. Fond presque noir, texte blanc cassé,
 * une seule famille (Geist) avec sa version mono pour les étiquettes,
 * un bleu électrique réservé aux actions, un vert pour ce qui est acquis.
 * Pas d'icônes décoratives : des aperçus de l'interface à la place.
 */
:root {
  --bg: #09090b;
  --bg-2: #0e0e11;
  --surface: #111114;
  --surface-2: #16161a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f3f2ef;
  --text-2: #c9cbd1;
  --muted: #8b8e96;
  --accent: #3d4dff;
  --accent-soft: rgba(61, 77, 255, .14);
  --accent-text: #9aa8ff;
  --accent-grad: linear-gradient(#5c6cff, #2f43ff 55%, #1f33f5);
  --green: #34d27b;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 620; letter-spacing: -.025em; }
.mono { font-family: var(--mono); }

/* ---------- En-tête ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 70; }
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 60; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-head.solid { background: rgba(9, 9, 11, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.head-in { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; font-weight: 640; font-size: 15px; letter-spacing: -.01em; }
.brand svg { width: 18px; height: 18px; }
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--muted); font-weight: 500; font-size: 14px; transition: color .2s; }
.link:hover { color: var(--text); }
.nav-builder { display: none; }
.in-builder .nav-home { display: none; }
.in-builder .nav-builder { display: flex; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .02); font-weight: 560; font-size: 14px; transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s; }
.btn:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .05); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent-grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(120, 135, 255, .35) inset, 0 10px 30px -10px rgba(61, 77, 255, .7); }
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(150, 160, 255, .5) inset, 0 14px 36px -10px rgba(61, 77, 255, .85); }
.btn.lg { padding: 13px 14px 13px 24px; font-size: 15px; }
.btn .arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 13px; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: 13px; }

/* ---------- Apparition au défilement ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.pre { opacity: 0; transform: translateY(18px); transition-delay: 0ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.in { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0ms); }

/* ---------- Éléments communs de la page d'accueil ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: 13px; font-weight: 500; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(52, 210, 123, .7); }
.kicker { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(154, 168, 255, .25); background: var(--accent-soft); color: var(--accent-text); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; letter-spacing: -.045em; font-weight: 620; margin-top: 16px; }
.lede { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 34em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.grad { background: linear-gradient(90deg, #f3f2ef 0%, #b9c4ff 45%, #5c6cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 40px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 88px); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000, transparent 75%); }
.hero-title { font-size: clamp(42px, 7vw, 82px); line-height: 1.0; letter-spacing: -.055em; font-weight: 640; margin: 22px auto 22px; max-width: 13em; }
.hero-sub { color: var(--text-2); font-size: clamp(16px, 1.5vw, 18px); max-width: 33em; margin: 0 auto; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* Aperçu produit sous le hero */
.showcase { position: relative; max-width: 940px; margin: 64px auto 0; padding: 0 0 0; }
.showcase::before { content: ""; position: absolute; left: 10%; right: 10%; top: 8%; bottom: -6%; background: radial-gradient(closest-side, rgba(61, 77, 255, .35), transparent); filter: blur(30px); pointer-events: none; }
.frame { position: relative; border-radius: 22px; padding: 10px; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); text-align: left; }
.frame-in { border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-family: var(--mono); }
.frame-bar .dots { display: flex; gap: 6px; }
.frame-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.frame-body { display: grid; grid-template-columns: 1fr 1.35fr; gap: 0; }
.frame-side { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.frame-main { padding: 22px; min-width: 0; }
.mini-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini-value { font-size: 15px; font-weight: 560; }
.mini-row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; padding-bottom: 0; }
.meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent-grad); }
.proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.proof b { color: var(--text); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 110px 0 0; }
.section:last-of-type { padding-bottom: 0; }
.head-center { text-align: center; max-width: 720px; margin: 0 auto; }

/* Étapes (cartes avec aperçu d'interface) */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.mcard { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); min-width: 0; }
.mcard .mock { height: 172px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 0%, rgba(61, 77, 255, .16), transparent 60%), var(--bg-2); padding: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 7px; margin-bottom: 8px; }
.mcard .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); padding: 0 8px; }
.mcard h3 { font-size: 19px; padding: 0 8px; }
.mcard p { color: var(--muted); font-size: 15px; padding: 0 8px; }
.mock-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.mock-item.on { background: var(--accent-soft); border-color: rgba(154, 168, 255, .3); color: var(--text); }
.mock-item .radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.mock-item.on .radio { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 3px rgba(52, 210, 123, .15); }
.mock-item .end { margin-left: auto; white-space: nowrap; padding-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-chips span { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.mock-chips span.on { border-color: rgba(154, 168, 255, .4); background: var(--accent-soft); color: var(--text); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stats div { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.mock-stats small { display: block; font-size: 11px; color: var(--muted); }
.mock-stats b { font-size: 20px; font-weight: 600; }

/* Cycle de 4 semaines */
.timeline { position: relative; max-width: 560px; margin: 52px auto 0; padding-left: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 1px; background: linear-gradient(var(--accent), rgba(61, 77, 255, .3) 70%, var(--green)); }
.tl-item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding: 14px 0; }
.tl-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-grad); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600; box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(61, 77, 255, .55); }
.tl-item:last-child .tl-dot { background: var(--green); color: #05230f; box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(52, 210, 123, .55); }
.tl-item h3 { font-size: 18px; margin-top: 4px; }
.tl-item p { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* Nuage de disciplines */
.cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 44px auto 0; max-width: 960px; }
.dchip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--text-2); font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.dchip:hover { border-color: rgba(154, 168, 255, .45); color: var(--text); background: var(--accent-soft); }
.dchip.more { color: var(--accent-text); border-style: dashed; }

/* Exemple */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; margin-top: 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; align-items: stretch; }
.plan { padding: 28px 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); display: flex; flex-direction: column; gap: 16px; }
.plan.pro { border-color: rgba(154, 168, 255, .35); background: radial-gradient(120% 70% at 50% 0%, rgba(61, 77, 255, .18), transparent 70%), var(--surface); }
.plan .mini-label { color: var(--accent-text); }
.plan h3 { font-size: 18px; }
.price { font-size: 44px; font-weight: 640; letter-spacing: -.045em; line-height: 1; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.plan li, .paywall li { position: relative; padding-left: 26px; }
.plan li::before, .paywall li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: rgba(52, 210, 123, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%2334d27b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq { max-width: 760px; margin: 44px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 560; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 14px; line-height: 1; color: var(--text-2); transition: background .2s, transform .2s; }
.faq details[open] summary::after { content: "−"; background: var(--accent); border-color: var(--accent); color: #fff; }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; }

.final { text-align: center; padding: 130px 0 120px; }
.final .cta-row { margin-top: 28px; }
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }

/* ---------- Séance (accueil + programme) ---------- */
.session { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 12px; }
.frame-main .session { background: transparent; border: 0; padding: 0; margin: 0; }
.session-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 4px; }
.session-head h4 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.session-head .free { color: var(--green); border: 1px solid rgba(52, 210, 123, .35); background: rgba(52, 210, 123, .08); font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.session-head .dur { color: var(--muted); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.block-name { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin: 16px 0 4px; }
.ex { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.block-name + .ex { border-top: 0; }
.ex-name { font-weight: 500; font-size: 15px; min-width: 0; }
.ex-detail { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
.ex-dose { color: var(--text-2); font-family: var(--mono); font-size: 12.5px; text-align: right; white-space: nowrap; padding-top: 2px; }

/* ---------- Parcours de création ---------- */
.container { max-width: 880px; margin: 0 auto; padding: 108px max(24px, env(safe-area-inset-right, 0px)) 140px max(24px, env(safe-area-inset-left, 0px)); }
.steps { display: flex; gap: 6px; margin-bottom: 34px; }
.bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); transform-origin: 0 50%; }
.bar.done { background: var(--accent); }
.bar.cur { animation: grow .6s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step-label { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.step-title { font-size: clamp(30px, 4.6vw, 44px); font-weight: 640; letter-spacing: -.045em; line-height: 1.05; margin: 10px 0 10px; }
.step-sub { color: var(--muted); margin: 0 0 28px; font-size: 16px; }
.stage.enter { animation: stageIn .45s var(--ease) both; }
@keyframes stageIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 20px)); } to { opacity: 1; transform: none; } }
.stage.leave { opacity: 0; transform: translateX(calc(var(--dir, 1) * -20px)); transition: opacity .16s, transform .16s; }
.stage.enter .card, .stage.enter .field, .stage.enter .stat, .stage.enter .adapt { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }

.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px 40px 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background .2s, transform .2s var(--ease); min-width: 0; }
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card:active { transform: scale(.99); }
.card::after { content: ""; position: absolute; top: 15px; right: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background .2s, border-color .2s; }
.card.selected { border-color: rgba(154, 168, 255, .55); background: var(--accent-soft); }
.card.selected::after { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.card .name { font-weight: 560; font-size: 15px; }
.card .desc { color: var(--muted); font-size: 13.5px; }
.badge { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.badge.accent { border-color: rgba(154, 168, 255, .45); color: var(--accent-text); }
.family { color: var(--muted); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; margin: 28px 0 12px; }
.search { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; margin-bottom: 6px; transition: border-color .2s, box-shadow .2s; }
.search::placeholder { color: var(--muted); }
.search:focus, .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 77, 255, .22); }
.section-title { font-size: 15px; font-weight: 600; margin: 30px 0 12px; }
.section-title .hint, .field .hint { color: var(--muted); font-weight: 400; font-size: 13px; }
.field { margin-bottom: 26px; }
.field-row { display: flex; flex-wrap: wrap; gap: 24px; }
.field > label, .field > .label { display: block; font-weight: 560; font-size: 15px; margin-bottom: 10px; }
.field input[type=number] { width: 130px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-family: var(--mono); }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented button { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-weight: 500; font-size: 14px; transition: border-color .2s, background .2s; text-align: left; }
.segmented button:hover { border-color: rgba(255, 255, 255, .28); }
.segmented button.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.segmented button small { display: block; font-size: 12px; opacity: .7; font-weight: 400; }
.chipbar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chipbar::-webkit-scrollbar { display: none; }
.fchip { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13.5px; color: var(--text-2); white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.fchip:hover { border-color: var(--line-strong); color: var(--text); }
.fchip.selected { border-color: var(--text); background: var(--text); color: var(--bg); }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(9, 9, 11, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 12px max(24px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); }
.nav-inner { max-width: 832px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.nav .info { color: var(--muted); font-size: 13.5px; }

/* ---------- Programme ---------- */
.summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--text-2); }
.chip-accent { border-color: rgba(52, 210, 123, .4); color: var(--green); background: rgba(52, 210, 123, .07); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat { padding: 16px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; }
.adapt { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; background: var(--surface); }
.adapt h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.adapt ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.adapt li { margin: 5px 0; }
.adapt li::marker { color: var(--muted); }
.insights { background: radial-gradient(100% 120% at 0% 0%, rgba(61, 77, 255, .12), transparent 60%), var(--surface); border-color: rgba(154, 168, 255, .25); }
.sources { margin: 0 0 30px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; }
.sources summary { cursor: pointer; font-size: 14px; font-weight: 560; color: var(--text-2); }
.sources ul { margin: 12px 0 2px; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.sources li { margin: 6px 0; }
.sources a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-color: rgba(154, 168, 255, .4); overflow-wrap: anywhere; }
.jump { margin: 0 0 32px; }
.week { margin-bottom: 30px; }
.week-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.week-head h3 { font-size: 21px; font-weight: 620; letter-spacing: -.03em; }
.week-head .note { color: var(--muted); font-size: 14px; }
.locked { position: relative; }
.locked-content { filter: blur(6px); user-select: none; pointer-events: none; opacity: .55; }
.locked-overlay { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: 40px 0; background: linear-gradient(180deg, rgba(9, 9, 11, 0), rgba(9, 9, 11, .7) 10%, rgba(9, 9, 11, .7)); }
.paywall { position: sticky; top: 90px; width: min(430px, 100%); background: radial-gradient(120% 60% at 50% 0%, rgba(61, 77, 255, .2), transparent 70%), var(--surface); border: 1px solid rgba(154, 168, 255, .3); border-radius: 20px; padding: 26px 24px; text-align: left; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.paywall .mini-label { color: var(--accent-text); }
.paywall h3 { font-size: 22px; margin: 10px 0 6px; letter-spacing: -.03em; }
.paywall p { color: var(--text-2); margin-bottom: 16px; font-size: 15px; }
.paywall .price { font-size: 40px; }
.paywall ul { margin: 18px 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text-2); font-size: 14.5px; }
.paywall .btn { width: 100%; }
.paywall .secure { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; text-align: center; }
.paywall .testmode { font-family: var(--mono); font-size: 12px; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(154, 168, 255, .4); color: var(--text-2); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.restart { margin-top: 0; }
.toast { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-strong); padding: 11px 16px; border-radius: 12px; max-width: calc(100% - 32px); z-index: 80; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; }

/* Nutrition */
.nutrition { margin-top: 48px; scroll-margin-top: 90px; }
.nutri-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 22px; }
.nutri-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nutri-title { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.nutri-card b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nutri-detail { font-size: 13px; color: var(--muted); }
.nutri-sub { font-size: 16px; font-weight: 600; margin: 8px 0 12px; }
.ex-dose.nutri-day { white-space: normal; max-width: 62%; font-family: var(--font); font-size: 14px; }
.nutri-notes { color: var(--text-2); padding-left: 20px; margin: 16px 0 24px; font-size: 15px; }
.nutri-notes li { margin: 5px 0; }

.demo-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; text-align: center; font-size: 12.5px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(14, 14, 17, .92); border-top: 1px solid var(--line); color: var(--muted); }
.demo-banner b { color: var(--accent-text); font-weight: 560; }
.in-builder .demo-banner { display: none; }

@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .steps3, .plans { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .frame-body { grid-template-columns: 1fr; }
  .frame-side { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; gap: 14px 22px; }
  .frame-side .mini-row { border-bottom: 0; padding-bottom: 0; }
  .section { padding-top: 84px; }
  .link.hide-sm { display: none; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ex { flex-direction: column; gap: 2px; }
  .ex-dose { text-align: left; }
  .ex-dose.nutri-day { max-width: none; }
  .nav .info { display: none; }
  .head-nav { gap: 14px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
}

/* ---------- Plusieurs lieux : répartition des séances ---------- */
.split-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.split-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--surface); }
.split-row + .split-row { border-top: 1px solid var(--line); }
.split-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.split-text .name { font-weight: 560; font-size: 15px; }
.split-text .desc { color: var(--muted); font-size: 13.5px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .05); font-size: 16px; line-height: 1; transition: background .2s; }
.stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper b { min-width: 26px; text-align: center; font-family: var(--mono); font-weight: 500; }
.session-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.session-head .place { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); border: 1px solid rgba(154, 168, 255, .3); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
@media (max-width: 600px) {
  .session-head { flex-wrap: wrap; }
  .split-row { align-items: flex-start; }
}

/* ---------- Menu : liens selon la page ---------- */
.builder-only, .only-program { display: none; }
.in-builder .builder-only { display: inline-flex; }
.in-builder .home-only { display: none; }
.has-program .only-program { display: inline-flex; }
.nav-home, .nav-builder { display: contents; }

/* ---------- Programme : une page par semaine ---------- */
.weeks-pager { margin-bottom: 28px; }
.week-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.week-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-size: 14px; font-weight: 560; transition: border-color .2s, background .2s; min-width: 0; }
.week-tab:hover { border-color: var(--line-strong); }
.week-tab.active { border-color: rgba(154, 168, 255, .55); background: var(--accent-soft); }
.weeks-track { outline: none; touch-action: pan-y; }
.week-page { min-width: 0; }
.week-page.enter { animation: stageIn .4s var(--ease) both; }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.nutri-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(154, 168, 255, .3); background: radial-gradient(100% 120% at 0% 0%, rgba(61, 77, 255, .14), transparent 60%), var(--surface); }
.nutri-cta p { color: var(--text-2); max-width: 36em; }

/* ---------- Page Nutrition ---------- */
.nutri-locked { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.nutri-locked .paywall { position: static; width: 100%; }
.nutri-why { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: var(--text-2); }
.nutri-why li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.nutri-why b { color: var(--text); font-weight: 600; }
.nutri-form .field-row { gap: 16px 20px; }
.nutri-form .field input[type=number] { width: 140px; }
.nutri-form select.search { max-width: 420px; }
.meals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.meal-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.meal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meal-card .btn { align-self: flex-start; }
.food-row { display: grid; grid-template-columns: minmax(0, 1fr) 74px minmax(0, 112px) 30px; gap: 6px; align-items: center; }
.food-row input, .food-row select { width: 100%; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; }
.food-row input:focus, .food-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 77, 255, .22); }
.food-qty { font-family: var(--mono); }
.food-del { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 16px; line-height: 1; }
.food-del:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.food-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.food-label { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.food-kcal { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.food-help, .food-sources { font-size: 13.5px; color: var(--muted); margin: -4px 0 14px; max-width: 70ch; }
.food-sources { margin: 12px 0 0; font-size: 12px; }
.food-search { position: relative; }
.food-input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.food-input::placeholder { color: var(--muted); }
.food-input:focus { outline: none; border-style: solid; border-color: var(--accent); background: var(--bg-2); box-shadow: 0 0 0 3px rgba(61, 77, 255, .22); }
.food-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.sugg-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.sugg-item:hover, .sugg-item.active { background: var(--accent-soft); }
.sugg-name { font-size: 14px; }
.sugg-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--accent-text); font-family: var(--mono); }
.sugg-kcal { color: var(--muted); }
.sugg-group { padding: 10px 10px 4px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sugg-empty { margin: 0; padding: 10px; font-size: 13px; color: var(--text-2); }
.sugg-more { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--accent-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.sugg-more:hover { color: var(--text); }
.form-error { color: #ff8a8a; margin: 14px 0 0; font-size: 14px; }
.nutri-result { margin-top: 40px; scroll-margin-top: 90px; }
.table-wrap { overflow-x: auto; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; }
.macro-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.macro-table th, .macro-table td { padding: 10px 14px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.macro-table thead th { border-top: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.macro-table tbody th { text-align: left; font-weight: 560; }
.macro-table tbody tr:last-child { color: var(--accent-text); }
.meal-plan .ex-dose b { color: var(--text); font-weight: 600; }
.chg { margin-left: 8px; font-size: 10.5px; padding: 2px 6px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--line-strong); color: var(--muted); }
.chg.up { color: var(--green); border-color: rgba(52, 210, 123, .4); }
.chg.down { color: #ffb36b; border-color: rgba(255, 179, 107, .4); }
.ex.add .ex-name { color: var(--green); }
.meal-note { color: #ffb36b; font-size: 14px; margin: 10px 0 0; }
.page-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .nutri-locked, .meals-grid { grid-template-columns: 1fr; }
  .week-tabs { grid-template-columns: repeat(2, 1fr); }
  .week-nav .btn { padding: 7px 10px; font-size: 12.5px; }
  .head-in { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .head-nav { gap: 12px; }
  .head-nav .link { font-size: 13px; }
  .brand { font-size: 14px; white-space: nowrap; }
}
@media (max-width: 420px) {
  .brand span, .brand { font-size: 0; gap: 0; }
  .brand svg { width: 20px; height: 20px; }
}
@media (max-width: 600px) {
  .food-row { grid-template-columns: 90px minmax(0, 1fr) 30px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .food-row .food-name { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- Compte */
.account-link { color: var(--text-2); }
body.signed-in .account-link { color: var(--accent-text); }
.account-dialog { width: min(440px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 28px 26px 24px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.account-dialog::backdrop { background: rgba(4, 4, 6, .72); backdrop-filter: blur(4px); }
.account-dialog[open] { animation: dlg-in .22s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.account-dialog h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
.dlg-close:hover { color: var(--text); }
.dlg-sub, .dlg-hint, .dlg-legal { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.dlg-legal { font-size: 12.5px; margin: 14px 0 0; }
.dlg-note { margin: 4px 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--text-2); font-size: 14px; }
.dlg-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.dlg-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.dlg-form .hint { color: var(--muted); font-size: 12.5px; }
.dlg-form input { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; }
.dlg-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 77, 255, .22); }
.dlg-form .form-error { margin: 0; }
.dlg-form .btn.primary { margin-top: 4px; justify-content: center; padding-left: 14px; }
.dlg-switch { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.dlg-switch .link { color: var(--accent-text); padding: 0; font-size: 14px; }
.dlg-forgot.link { align-self: flex-end; margin-top: -6px; padding: 0; font-size: 13px; color: var(--accent-text); }
.dlg-hint strong { color: var(--text-2); font-weight: 600; word-break: break-all; }
.dlg-offers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.link-danger { margin-top: 18px; background: none; border: 0; padding: 0; color: #ff8a8a; font-size: 13px; opacity: .8; }
.link-danger:hover { opacity: 1; text-decoration: underline; }
.btn.danger { background: rgba(255, 90, 90, .12); border-color: rgba(255, 120, 120, .45); color: #ffb3b3; }
@media (max-width: 600px) {
  .account-dialog { padding: 24px 18px 20px; }
  .account-dialog[open] { margin-top: auto; margin-bottom: 12px; }
}
