/* Twinrun — styles communs (page de vente, pages légales, outil). Pensé téléphone d'abord. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --text: #f5f5f2;
  --muted: #a3a39c;
  --faint: #8a8a83;
  --soft: #d6d6d0;
  --line: #2a2a27;
  --line-soft: #1c1c1a;
  --accent: #ff5a1f;
  --cta: #1d4ed8;     /* boutons « Comparer ma foulée » et « Obtenir mon rapport » */
  --me: #3d9bff;      /* squelette du coureur */
  --twin: #ff4b4b;    /* jumeau élite */
  --display: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--faint); }

/* En-tête */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo svg .b { stroke: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text);
  font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.btn.primary.blue { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 500; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn:disabled { opacity: .45; cursor: default; }
.link { display: inline-flex; align-items: center; min-height: 52px; font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1px solid #3a3a36; }

/* Page de vente */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: 32px; padding-bottom: 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 11vw, 76px); line-height: .98; letter-spacing: -0.035em; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 480px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.hero figure { flex: 1 1 320px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero figure img { width: 100%; aspect-ratio: 738 / 941; object-fit: cover; border-radius: 28px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
.legend i.twin-img { background: #9fd8f0; }
.legend i.me { background: var(--me); }
.legend i.twin { background: var(--twin); }

.band { border-top: 1px solid var(--line-soft); padding-top: 72px; padding-bottom: 72px; }
.band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 7vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.step .n { font-family: var(--display); font-size: 14px; color: var(--accent); }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--soft); }

.offer { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.offer-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.offer-text .lead { font-size: 17px; color: var(--muted); }
.quote { padding-left: 18px; border-left: 2px solid var(--accent); font-size: 19px; line-height: 1.5; }
.price-card { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font-family: var(--display); font-weight: 700; font-size: 56px; letter-spacing: -0.03em; line-height: 1; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 6px; transform: translateY(-2px); }

.about { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.about img { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.about div { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.about h2 { font-size: 28px; }

.faq { display: flex; flex-direction: column; gap: 28px; }
.qa { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 22px; }
.qa h3 { font-size: 17px; font-weight: 600; }
.qa p { color: var(--muted); }

.site-foot { border-top: 1px solid var(--line-soft); }
.site-foot .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--faint); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-foot a { color: var(--faint); min-height: 44px; display: inline-flex; align-items: center; }

/* Pages légales */
.legal { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-family: var(--display); font-size: clamp(30px, 7vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.legal h2 { font-family: var(--display); font-size: 21px; margin-top: 18px; }
.legal p, .legal li { color: var(--soft); }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.todo { background: #3a2a00; color: #ffd27a; border-radius: 4px; padding: 0 5px; }
.draft { border: 1px solid #5a4200; background: #1c1500; color: #ffd27a; border-radius: 12px; padding: 14px 16px; font-size: 14px; }

@media (min-width: 760px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 56px; padding-bottom: 96px; }
  .band { padding-top: 96px; padding-bottom: 96px; }
  .price-card { padding: 36px; }
}
