/* Sections de la page d'accueil. */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

.hero { background: linear-gradient(var(--bg), var(--surface)); padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero__in { text-align: center; display: grid; justify-items: center; gap: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); font-weight: 700; letter-spacing: -0.03em; max-width: 14ch; }
.hl { white-space: nowrap; background: linear-gradient(var(--red), var(--red)) no-repeat left 92% / 100% 0.12em; padding-bottom: 0.04em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fine { font-size: 14px; color: var(--muted); }
.fine a { color: var(--text); font-weight: 600; }

/* Aperçu de l'app */
.preview { margin-top: clamp(32px, 5vw, 56px); }
.tabs { display: flex; gap: 6px; justify-content: center; overflow-x: auto; padding: 4px; margin: 0 auto 14px; width: fit-content; max-width: 100%; background: var(--surface2); border-radius: 12px; scrollbar-width: none; }
.tabs [role="tab"] { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel[hidden] { display: none; }
.phones { display: flex; justify-content: center; gap: clamp(16px, 4vw, 40px); flex-wrap: wrap; }

/* Écrans de l'app : mêmes jetons que Gym Tracker en mode sombre (direction « Plate »). */
.app-ui {
  --a-bg: oklch(0.20 0.012 250); --a-surface: oklch(0.25 0.012 250); --a-surface2: oklch(0.30 0.012 250);
  --a-border: oklch(0.37 0.014 250); --a-text: oklch(0.95 0.005 90); --a-muted: oklch(0.75 0.010 250);
  --a-red: oklch(0.64 0.21 27); --a-red-ink: oklch(0.16 0.02 27); --a-red-text: color-mix(in oklch, oklch(0.64 0.21 27) 70%, oklch(0.95 0.005 90));
  --a-blue: oklch(0.64 0.16 255);
  color: var(--a-text); background: var(--a-bg); font-family: var(--font-ui);
}
.phone { margin: 0; width: min(300px, 100%); aspect-ratio: 390 / 844; border-radius: 36px; border: 8px solid oklch(0.12 0.01 250); background: oklch(0.20 0.012 250); box-shadow: 0 40px 70px -40px oklch(0.15 0.02 250 / 0.6); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.a-scroll { flex: 1; overflow: hidden; padding: 22px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.a-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a-muted); margin-top: 4px; }
.a-h1 { font-size: 26px; font-weight: 700; line-height: 1.1; }
.a-h2 { font-size: 21px; font-weight: 700; line-height: 1.15; }
.a-sub { font-size: 13px; color: var(--a-muted); }
.a-top { font-weight: 700; font-size: 15px; padding-bottom: 6px; border-bottom: 1px solid var(--a-border); }
.a-card { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.a-card > p:not([class]) { font-size: 13.5px; line-height: 1.45; }
.a-card--note { border-left: 3px solid var(--a-red); }
.a-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 10px; background: var(--a-red); color: var(--a-red-ink); font-weight: 700; font-size: 14.5px; margin-top: 4px; }
.a-btn--ghost { background: var(--a-surface2); color: var(--a-text); }
.a-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--a-border); border-bottom: 1px solid var(--a-border); padding: 10px 0; }
.a-stats div { padding: 0 8px; display: grid; gap: 2px; }
.a-stats div + div { border-left: 1px solid var(--a-border); }
.a-stats span { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a-muted); }
.a-stats b { font-family: var(--font-display); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-choice { background: var(--a-surface); border-radius: 12px; padding: 11px 12px; display: grid; gap: 2px; }
.a-choice b { font-size: 15px; }
.a-choice span { font-size: 11.5px; color: var(--a-muted); }
.a-choice.on { background: var(--a-red); color: var(--a-red-ink); }
.a-choice.on span { color: var(--a-red-ink); opacity: 0.8; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a-chips span { background: var(--a-surface); border-radius: 9px; padding: 8px 11px; font-size: 13px; font-weight: 600; }
.a-chips .on { background: var(--a-red); color: var(--a-red-ink); }
.a-list { display: grid; gap: 6px; }
.a-list div { background: var(--a-surface); border-radius: 10px; padding: 9px 11px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.a-list span { font-size: 13px; font-weight: 600; }
.a-list b { font-family: var(--font-display); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.a-list i { grid-column: 1 / -1; justify-self: start; font-style: normal; font-size: 11px; font-weight: 700; color: var(--a-red-text); background: oklch(0.64 0.21 27 / 0.16); border-radius: 5px; padding: 1px 6px; }
.a-list i.steel { color: var(--a-muted); background: var(--a-surface2); }
.a-sets { display: grid; gap: 6px; }
.a-sets div { display: flex; justify-content: space-between; background: var(--a-surface); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.a-sets b { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.a-sets .done { color: var(--a-muted); }
.a-sets .done b { text-decoration: line-through; }
.a-sets .now { background: var(--a-red); color: var(--a-red-ink); font-weight: 700; }
.a-rest { margin-top: auto; background: var(--a-surface); border-radius: 14px; padding: 14px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.a-timer { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.a-bar { width: 100%; height: 6px; border-radius: 99px; background: var(--a-surface2); overflow: hidden; }
.a-bar span { display: block; width: 62%; height: 100%; background: var(--a-red); }
.a-phases { display: flex; gap: 3px; height: 10px; margin-top: 6px; }
.a-phases span { border-radius: 3px; }
.p-prog { background: var(--a-blue); }
.p-int { background: var(--a-red); }
.p-del { background: var(--a-muted); }
.a-legend { display: grid; gap: 4px; font-size: 12px; color: var(--a-muted); }
.a-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.a-week { display: grid; gap: 6px; }
.a-week div { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; background: var(--a-surface); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.a-week span { font-family: var(--font-display); color: var(--a-muted); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
.a-week i { font-style: normal; font-size: 12px; color: var(--a-muted); }
.a-week .rest { background: transparent; border: 1px dashed var(--a-border); color: var(--a-muted); }
.a-week .today { outline: 2px solid var(--a-red); }
.a-big { font-family: var(--font-display); font-weight: 600; font-size: 46px; line-height: 1; }
.a-big small { font-size: 22px; color: var(--a-muted); }
.a-spark { width: 100%; height: 70px; color: var(--a-red); }
.a-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--a-border); background: oklch(0.18 0.012 250); padding: 10px 4px 14px; }
.a-nav span { text-align: center; font-size: 11px; font-weight: 600; color: var(--a-muted); }
.a-nav span::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 4px; border-radius: 5px; border: 2px solid currentColor; opacity: 0.8; }
.a-nav .on { color: var(--a-red-text); }

/* Blocs */
.block { padding: clamp(56px, 8vw, 104px) 0; }
.block--tint { background: var(--bg); }
.block h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -0.02em; max-width: 22ch; }
.sub { color: var(--muted); font-size: 19px; margin-top: 10px; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: clamp(36px, 6vw, 72px); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.step:nth-child(even) .step__text { order: 2; }
.step__text { display: grid; gap: 12px; }
.step__text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.step__text p { color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }

.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.profile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.profile h3 { font-size: 21px; font-weight: 700; }
.profile p { color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--bg); }
tbody th { font-weight: 600; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.us { background: var(--red-soft); font-weight: 600; }
thead .us { color: var(--red-text); background: var(--red-soft); }

.price { max-width: 760px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(28px, 5vw, 56px); }
.price h2 { max-width: none; }
.price p { color: var(--muted); max-width: 40em; }

.faq { max-width: 820px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--red); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 65ch; }

.final { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 8vw, 96px) 0; }
.final__in { text-align: center; display: grid; justify-items: center; gap: 20px; }
.final h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; letter-spacing: -0.02em; }
.final .fine { color: oklch(0.78 0.01 250); }
.btn--light { background: var(--on-ink); color: var(--ink); }
.btn--light:hover { background: oklch(0.9 0.005 250); }

@media (max-width: 860px) {
  .step, .profiles { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) .step__text { order: 0; }
  .tabs { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 38px; }
  .hl { white-space: normal; }
  .cta-row .btn { width: 100%; }
}

/* Illustrations des étapes : cartes de l'app en mode sombre. */
.step__art { border-radius: 18px; padding: 18px; display: grid; gap: 10px; border: 1px solid oklch(0.3 0.012 250); }
.step__art .eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a-muted); }
.step__art .rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step__art .rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; background: var(--a-surface); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.step__art .rows b { font-family: var(--font-display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.step__art .tag { font-style: normal; font-size: 12px; font-weight: 700; color: var(--a-red-text); background: oklch(0.64 0.21 27 / 0.16); border-radius: 6px; padding: 2px 8px; }
.step__art .tag--steel { color: var(--a-muted); background: var(--a-surface2); }
.step__art .quote { font-size: 14.5px; line-height: 1.5; padding: 12px 14px; background: var(--a-surface); border-left: 3px solid var(--a-red); border-radius: 0 10px 10px 0; }
.step__art .bubble { justify-self: end; max-width: 90%; background: var(--a-red); color: var(--a-red-ink); font-weight: 600; border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: 14.5px; }
.step__art s { color: var(--a-muted); }
