/* ============================================================
   GymHub — site vitrine
   Tokens repris de l'app (src/theme/colors.ts + GYMHUB-DESIGN-SYSTEM.md) :
   épuré, hairlines (pas d'ombres lourdes), hiérarchie par graisse,
   signature = chiffres en Space Grotesk, accent orange signal.
   ============================================================ */

:root {
  --ink: #0E0E0F;
  --paper: #FAFAF8;
  --surface: #FFFFFF;
  --surface-alt: #F1F1EE;
  --muted: #6B6B70;
  --muted-soft: #9A9AA0;
  --hairline: #E9E9E6;
  --hairline-strong: #DADAD6;
  --accent: #FF4D00;
  --accent-press: #E64500;
  --accent-soft: rgba(255, 77, 0, 0.10);
  --success: #1FA971;

  /* Pendant sombre (bandeau CTA, pill de tabs) */
  --ink-d: #0A0A0B;
  --surface-d: #161618;
  --hairline-d: #26262A;
  --text-d: #F5F5F3;
  --muted-d: #9A9AA0;
  --accent-d: #FF5E1A;

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Grotesk", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1120px;
  --radius: 16px;
  --radius-sm: 12px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Jamais de scroll horizontal : tout débordement latéral est rogné. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Étiquette mono — la voix "data" de GymHub */
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-press);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: baseline;
}

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 14px;
}
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 15px; font-weight: 600;
  color: var(--paper) !important;
  background: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-press); }
/* « Se connecter » → portail web (/app). Pilule contour, distincte du CTA plein. */
.nav-login {
  font-size: 15px; font-weight: 600;
  color: var(--ink) !important;
  border: 1.5px solid var(--hairline-strong);
  padding: 7.5px 16px;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-login:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  /* halo orange discret derrière le téléphone */
  content: "";
  position: absolute;
  right: -180px; top: 40px;
  width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(255, 77, 0, 0.09), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 40px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 20px;
  font-size: 19px;
  color: var(--muted);
  max-width: 480px;
}
.hero-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* Badges stores */
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.store-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 14px;
  padding: 10px 20px 10px 16px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); background: #232326; }
html[data-mode="coach"] .store-badge:hover { background: #ffffff; }
/* — Badges des stores pas encore publiés. —
   Ils n'ont pas de href tant que les apps ne sont pas en ligne : sans ça, le
   clic ajoutait « # » à l'URL et ne faisait rien, ce qui se lit comme un site
   cassé. pointer-events neutralise d'un coup curseur, survol et clic : une
   règle :hover ciblée se ferait battre par html[data-mode="coach"] ... :hover.
   Au lancement, remettre href et supprimer role/aria-disabled dans le HTML. */
.store-badge[aria-disabled="true"] { pointer-events: none; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11px; font-weight: 400; opacity: 0.75; line-height: 1.2; }
.store-badge strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.badges-invert .store-badge { background: #fff; color: #0e0e0f; border-color: #fff; }
.badges-invert .store-badge:hover { background: #efefec; }

/* Badge PORTAIL WEB — le seul déjà en ligne : couleur accent (clair, vif) pour
   se démarquer des badges stores (sombres) et signaler « clique ici ». */
.web-badge,
.badges-invert .web-badge { background: var(--accent); color: #fff; border-color: var(--accent); }
.web-badge:hover,
.badges-invert .web-badge:hover,
html[data-mode="coach"] .web-badge:hover { background: var(--accent-press); }
.web-badge small { opacity: 0.9; }

/* Téléphone (mockup CSS de l'écran Accueil) — il « vole » doucement */
.phone-wrap {
  display: flex; justify-content: center; position: relative;
  perspective: 1200px;
  animation: phoneFloat 6s ease-in-out infinite;
}
.phone {
  width: 320px;
  background: var(--ink);
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 24px 60px -24px rgba(14, 14, 15, 0.35);
  transform: rotate(2.5deg);
  /* Pendant le vol (rotateY), les écrans cachent leur face arrière :
     on voit le DOS du téléphone (la coque) au lieu d'un écran en miroir. */
  transform-style: preserve-3d;
}
.phone-screen {
  position: relative;
  background: var(--paper);
  border-radius: 34px;
  padding: 14px 16px 18px;
  overflow: hidden;
  min-height: 600px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Vraie capture d'écran de l'app (remplace le mockup dessiné) : l'image remplit
   le cadre, coins arrondis via l'overflow du parent. object-fit cover rogne un
   peu le bas (barre de gestes système) ; la barre d'état Android reste — c'est
   une VRAIE capture, donc authentique. */
.phone-screen.is-shot { padding: 0; }
.phone-shot {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 2320;
  object-fit: cover;
  object-position: top center;
}
.p-status {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 2px 6px 10px;
}
.p-status .dots { display: flex; gap: 3px; }
.p-status .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: 0.85; }
.p-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.p-date {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-soft);
}
.p-greet { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }
.p-bell { width: 20px; height: 20px; stroke: var(--ink); }

.p-stories { display: flex; gap: 10px; margin-bottom: 12px; }
.p-story {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--hairline-strong);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.p-story.ring { border: 2px solid var(--accent); background: var(--surface); }
.p-story i {
  position: absolute; right: -3px; bottom: -3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-style: normal; font-size: 11px; line-height: 15px; text-align: center;
  border: 2px solid var(--paper);
}

.p-rail {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 0;
  margin-bottom: 12px;
}
.p-block { text-align: center; border-right: 1px solid var(--hairline); }
.p-block:last-child { border-right: 0; }
.p-num { display: block; font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.p-num.is-accent { color: var(--accent); }
.p-cap {
  display: block; font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-soft);
  margin-top: 2px;
}

.p-kicker {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-press);
}
.p-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; }
.p-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* — Héros ink (séance du jour / import) : sombre = action, orange = accent — */
.p-hero {
  display: flex; align-items: center; gap: 10px;
  background: var(--hero-bg, #0e0e0f);
  border-radius: var(--radius-sm);
  padding: 13px 12px;
  margin-bottom: 12px;
}
.p-hero-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
}
.p-hero-icon svg { width: 17px; height: 17px; stroke: var(--accent); }
.p-hero-text { flex: 1; min-width: 0; }
.p-hero .p-kicker { color: var(--accent); }
.p-hero .p-title { color: #f5f5f3; font-size: 14.5px; margin-top: 3px; }
.p-hero .p-meta { color: rgba(245, 245, 243, 0.65); font-size: 11.5px; margin-top: 1px; }
.p-go {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
}
.p-go svg { width: 14px; height: 14px; stroke: #fff; }

/* — Anneaux du jour (conic-gradient) — */
.p-rings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.p-ringcard {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 8px 10px;
  text-align: center;
}
.p-ring {
  width: 84px; height: 84px; margin: 0 auto 8px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
    conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-alt) 0);
  display: grid; place-content: center;
}
.p-ring b { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.p-ring small { font-family: var(--mono); font-size: 9px; color: var(--muted-soft); }

/* — Fil d'activité (écran coach) — */
.p-feed {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  margin-bottom: 12px;
}
.p-frow {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}
.p-frow:last-child { border-bottom: 0; }
.p-favatar {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft, rgba(255, 77, 0, 0.12));
  color: var(--accent-press);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.p-fbody { flex: 1; min-width: 0; }
.p-fname { font-size: 12px; font-weight: 600; }
.p-fmeta { font-size: 10.5px; color: var(--muted); }
.p-fchip {
  flex: none;
  font-family: var(--mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 3px 7px;
}
.p-ftime { flex: none; font-size: 10px; color: var(--muted-soft); }

/* — Sélecteur Coach / Athlète (héros) : LE choix d'entrée, bien en évidence — */
.mode-block { margin-bottom: 26px; }
.mode-label {
  font-size: 16px; font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.mode-toggle {
  display: inline-flex; gap: 5px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 10px 34px -18px rgba(255, 77, 0, 0.5);
}
.mt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; background: transparent;
  font: inherit; font-size: 16px; font-weight: 700;
  color: var(--muted);
  padding: 12px 28px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mt-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.mt-btn:hover { color: var(--ink); }
.mt-btn.active {
  background: var(--accent);
  color: #fff;
  transform: scale(1.03);
}

/* — Sélecteur de langue (nav) — */
.lang-toggle { display: inline-flex; gap: 2px; }
.lang-btn {
  border: 0; cursor: pointer; background: transparent;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
  padding: 6px 8px; border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn.active { color: var(--ink); background: var(--surface-alt); }

/* — Téléphone volant + swoosh de bascule — */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
/* Le trajet droite↔gauche avec retournement est animé en JS (WAAPI, FLIP) :
   voir setMode() dans site.js. */
@media (prefers-reduced-motion: reduce) {
  .phone-wrap { animation: none !important; }
}

/* — Chip « populaire » : texte selon la langue — */
html[data-lang="en"] .price-card.is-featured::before { content: "MOST POPULAR"; }

/* ============================================================
   Face COACH = tout le site passe en sombre (tokens rethémés)
   ============================================================ */
html[data-mode="coach"] {
  --paper: #0a0a0b;
  --ink: #f5f5f3;
  --surface: #161618;
  --surface-alt: #1f1f22;
  --muted: #9a9aa0;
  --muted-soft: #6b6b70;
  --hairline: #26262a;
  --hairline-strong: #34343a;
  --accent: #ff5e1a;
  --accent-press: #ff7a40;
  --accent-soft: rgba(255, 94, 26, 0.16);
}
html[data-mode="coach"] .nav { background: rgba(10, 10, 11, 0.82); }
html[data-mode="coach"] .feature:hover { background: var(--surface-alt); }
/* Bascule douce entre les deux faces */
body, .nav, .feature, .price-card, .split, .databand, .mode-toggle,
.mt-btn, .lang-btn, .store-badge, .catband, .price-unavail {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* — Le téléphone change de côté selon la face (athlète = à gauche) — */
html[data-mode="athlete"] .hero-grid > div:first-child { order: 2; }
html[data-mode="athlete"] .hero-grid .phone-wrap { order: 1; }
html[data-mode="athlete"] .hero::before { right: auto; left: -180px; }
html[data-mode="athlete"] .phone { transform: rotate(-2.5deg); }

/* — Grand chat GymHub qui traverse l'écran (s'arrête à l'haltère) — */
.catband {
  position: relative;
  height: 150px;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.cb-prop { position: absolute; color: var(--muted); opacity: 0.45; }
.cb-rings { left: 14%; top: 0; }
.cb-dumbbell { left: calc(42vw + 130px); bottom: 14px; }
.cb-pullup { right: 5%; bottom: 12px; }
.cb-cat {
  position: absolute;
  bottom: 12px; left: 0;
  width: 150px;
  will-change: transform;
  animation: catCross 30s linear infinite;
}
/* .cb-lift = tractions (translateY synchronisé sur les 30 s du trajet),
   .cb-inner = trot/rebond continu. */
.cb-lift { animation: catPull 30s linear infinite; }
.cb-inner { animation: catBob 0.55s ease-in-out infinite alternate; }
@keyframes catCross {
  0% { transform: translateX(-170px); }
  28% { transform: translateX(42vw); }
  42% { transform: translateX(42vw); } /* curl à l'haltère */
  60% { transform: translateX(calc(95vw - 120px)); }
  82% { transform: translateX(calc(95vw - 120px)); } /* tractions à la barre */
  100% { transform: translateX(104vw); }
}
@keyframes catPull {
  0%, 61% { transform: translateY(0); }
  63.5% { transform: translateY(-36px); }
  66% { transform: translateY(-6px); }
  68.5% { transform: translateY(-36px); }
  71% { transform: translateY(-6px); }
  73.5% { transform: translateY(-36px); }
  76% { transform: translateY(-6px); }
  78.5% { transform: translateY(-36px); }
  81.5%, 100% { transform: translateY(0); }
}
@keyframes catBob {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .cb-cat { animation: none; transform: translateX(42vw); }
  .cb-lift { animation: none; }
  .cb-inner { animation: none; }
}

/* — Tarifs par face : 2 cartes centrées, la carte de l'autre métier est masquée — */
/* (Les tarifs = 3 cartes visibles sur les 2 faces : Gratuit + palier 1 + palier IA.
   L'ancien CSS masquait une carte par face et forçait 2 colonnes → la 3e passait
   à la ligne. La grille `repeat(3, 1fr)` de `.pricing` s'applique de nouveau.) */
.price-alt {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* — Écran coach : mode SOMBRE (les tokens locaux rethèment tout le mockup) — */
.phone-screen.dark {
  --paper: #0a0a0b;
  --surface: #161618;
  --surface-alt: #1f1f22;
  --hairline: #26262a;
  --hairline-strong: #34343a;
  --ink: #f5f5f3;
  --muted: #9a9aa0;
  --muted-soft: #6b6b70;
  --accent: #ff5e1a;
  --accent-press: #ff7a40;
  --accent-soft: rgba(255, 94, 26, 0.18);
  --hero-bg: #1f1f22;
  background: var(--paper);
  color: var(--ink);
}

.p-tabbar {
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: flex; gap: 22px;
  background: var(--ink-d);
  border-radius: 999px;
  padding: 13px 24px;
  box-shadow: 0 10px 24px -10px rgba(10, 10, 11, 0.5);
}
.p-tabbar svg { width: 20px; height: 20px; stroke: var(--muted-d); }
.p-tabbar svg.active { stroke: var(--accent-d); }

/* ---------- Bandeau data (marquee) ---------- */
.databand {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  overflow: hidden;
  padding: 18px 0;
}
.databand-track {
  display: flex; gap: 48px;
  width: max-content;
  animation: slide 46s linear infinite;
}
.databand span {
  font-family: var(--mono); font-size: 19px; font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink);
}
.databand b { color: var(--accent); font-weight: 500; }
.databand em { font-style: normal; color: var(--muted-soft); font-size: 13px; letter-spacing: 0.12em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Fonctionnalités ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.feature {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  padding: 32px 28px 36px;
  transition: background 0.2s ease;
}
.feature:hover { background: var(--paper); }
.feature .f-num {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--muted-soft);
}
.feature:hover .f-num { color: var(--accent-press); }
.feature svg { width: 26px; height: 26px; stroke: var(--ink); margin-top: 22px; }
.feature h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-top: 14px; }
.feature p { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.55; }

/* ---------- Pour qui ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.split-col { padding: 48px 44px; }
.split-col + .split-col { border-left: 1px solid var(--hairline); }
.split-col h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; }
.split-col > p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.checklist { margin-top: 26px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checklist li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E64500' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
/* Face athlète : UN SEUL forfait payant (GymHub Plus, IA incluse) — la carte
   « palier 1 » n'existe que côté coach (Pro). */
html[data-mode="athlete"] #price-t1 { display: none; }
/* Face athlète : 2 cartes seulement (Gratuit + Plus) → on les CENTRE au lieu de
   les laisser collées à gauche (la 3e colonne serait vide). Desktop uniquement ;
   en mobile la grille passe déjà à une seule colonne (voir Responsive). */
html[data-mode="athlete"] .pricing {
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s ease;
}
.price-card:hover { border-color: var(--hairline-strong); }
.price-card.is-featured { border-color: var(--accent); }
.price-card.is-featured::before {
  content: "LE PLUS POPULAIRE";
  position: absolute; top: -11px; left: 28px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em;
  background: var(--accent); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}
.price-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.price-card h3 { font-size: 22px; font-weight: 700; margin-top: 10px; letter-spacing: -0.01em; }
.crown {
  width: 19px; height: 19px;
  fill: var(--accent);
  margin-right: 8px;
  vertical-align: -2px;
}
.price-unavail {
  display: inline-block;
  align-self: flex-start;
  margin-top: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 5px 12px;
}
/* Prix : le montant sur sa ligne, la période en dessous → même hauteur pour les
   3 cartes (sinon « 29,99 $ / mois (CAD) » passe à la ligne et décale tout). */
.price-value { font-family: var(--mono); font-size: 38px; font-weight: 500; letter-spacing: -0.02em; margin-top: 18px; }
.price-value small {
  display: block; margin-top: 6px;
  font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: 0;
}
.price-card .checklist { margin-top: 24px; margin-bottom: 8px; }
.price-card .checklist li { font-size: 14.5px; }
.price-foot { margin-top: auto; padding-top: 22px; font-size: 12.5px; color: var(--muted-soft); }
.pricing-note {
  margin-top: 28px;
  font-size: 13.5px; color: var(--muted);
  text-align: center;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--ink-d);
  color: var(--text-d);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: auto -20% -70% -20%;
  height: 340px;
  background: radial-gradient(closest-side, rgba(255, 94, 26, 0.22), transparent 72%);
  pointer-events: none;
}
.cta .kicker { color: var(--accent-d); }
.cta h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  margin-top: 16px;
}
.cta p { color: var(--muted-d); margin-top: 14px; font-size: 17px; }
.cta .badges { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 48px 0 56px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer img { height: 56px; width: auto; }
/* Wordmark à deux variantes : sombre (face coach) / claire (face athlète). */
.footer .wm-dark { display: none; }
html[data-mode="coach"] .footer .wm-dark { display: inline-block; }
html[data-mode="coach"] .footer .wm-light { display: none; }
.footer-tag { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 320px; }
.footer-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
.footer-links a { color: var(--muted); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 36px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

/* ---------- Page Confidentialité ---------- */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--hairline); }
.page-head h1 { font-size: clamp(32px, 4.5vw, 46px); font-weight: 700; letter-spacing: -0.025em; margin-top: 14px; }
.page-head .updated { font-family: var(--mono); font-size: 13px; color: var(--muted-soft); margin-top: 14px; letter-spacing: 0.06em; }
.lang-chips { display: flex; gap: 10px; margin-top: 24px; }
.lang-chips a {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-chips a:hover { border-color: var(--accent); color: var(--accent-press); }

.prose { max-width: 760px; padding: 56px 0 40px; }
.prose h2 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  padding-top: 40px; margin-bottom: 6px;
}
.prose h3 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p { margin: 12px 0; color: #3A3A3E; }
.prose ul { list-style: none; margin: 14px 0; display: grid; gap: 10px; }
.prose ul li { padding-left: 22px; position: relative; color: #3A3A3E; }
.prose ul li::before {
  content: "";
  position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
}
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 56px 0 8px; }
.prose a { color: var(--accent-press); font-weight: 500; }
.prose a:hover { text-decoration: underline; }

/* ---------- Reveals ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 0.85s; }

/* stagger au chargement du hero */
.hero [data-d="1"] { transition-delay: 0.05s; }
.hero [data-d="2"] { transition-delay: 0.15s; }
.hero [data-d="3"] { transition-delay: 0.25s; }
.hero [data-d="4"] { transition-delay: 0.35s; }
.hero [data-d="5"] { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .databand-track { animation: none; }
  .store-badge:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero-sub { max-width: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  html[data-mode="athlete"] .pricing { grid-template-columns: 1fr; } /* athlète : 1 colonne sur mobile */
  .split { grid-template-columns: 1fr; }
  .split-col + .split-col { border-left: 0; border-top: 1px solid var(--hairline); }
  .nav-links a:not(.nav-cta):not(.nav-login) { display: none; }
  /* Empilé : le TEXTE d'abord, le téléphone ensuite — quelle que soit la face. */
  html[data-mode="athlete"] .hero-grid > div:first-child { order: 0; }
  html[data-mode="athlete"] .hero-grid .phone-wrap { order: 0; }
}
@media (max-width: 640px) {
  /* — Tout est réduit sur téléphone : typo, marges, badges, mockup. — */
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 23px; }
  .section-head p { font-size: 14px; margin-top: 8px; }
  .kicker { font-size: 11px; }

  /* — Barre de navigation : elle DÉBORDAIT sur téléphone. —
     Marque + FR/EN + « Se connecter » + « Télécharger » sur une seule ligne
     dépassaient 375 px : le logo était tronqué en « GymH », « Se connecter »
     passait sur deux lignes et « Télécharger » sortait de l'écran.
     On garde la marque, la langue et UNE action. « Télécharger » disparaît :
     les badges des stores sont déjà bien visibles juste en dessous, dans le
     héros — alors que la connexion au portail n'existe nulle part ailleurs. */
  .nav-inner { height: 56px; gap: 10px; }
  .brand { font-size: 16px; gap: 7px; flex: 0 0 auto; }
  .brand img { width: 24px; height: 24px; }
  .nav-links { gap: 6px; flex: 0 1 auto; min-width: 0; }
  .nav-cta { display: none; }
  .nav-login {
    font-size: 13px;
    padding: 10px 14px;      /* 44 px de haut : cible tactile confortable */
    white-space: nowrap;      /* jamais coupé en deux lignes */
  }
  /* Cibles tactiles : 32×27 avant, sous le minimum recommandé de 44 px. */
  .lang-btn { font-size: 12px; padding: 12px 9px; }

  .hero-grid { padding-top: 18px; gap: 14px; }
  .hero h1 { font-size: 29px; line-height: 1.12; margin-top: 12px; }
  .hero-sub { font-size: 15px; margin-top: 12px; }
  .hero-note { font-size: 10px; margin-top: 10px; }
  .badges { gap: 10px; margin-top: 18px; }
  .store-badge { padding: 7px 14px 7px 12px; gap: 9px; border-radius: 11px; }
  .store-badge svg { width: 20px; height: 20px; }
  .store-badge small { font-size: 9.5px; }
  .store-badge strong { font-size: 14px; }

  .mode-block { margin-bottom: 16px; }
  .mode-label { font-size: 13.5px; margin-bottom: 8px; }
  .mt-btn { padding: 8px 15px; font-size: 13.5px; gap: 6px; }
  .mt-btn svg { width: 15px; height: 15px; }

  /* Téléphone TRÈS réduit : échelle 0,55, l'espace libéré est repris
     (marge négative ≈ hauteur × 0,45). Sélecteurs par face répétés pour
     battre la spécificité de html[data-mode=...] .phone. */
  .phone,
  html[data-mode="coach"] .phone,
  html[data-mode="athlete"] .phone {
    transform: rotate(0deg) scale(0.55);
    transform-origin: top center;
    margin-bottom: -285px;
  }

  .databand { padding: 12px 0; }
  .databand span { font-size: 14px; }
  .databand em { font-size: 10.5px; }

  .catband { height: 84px; }
  .cb-cat { width: 84px; }
  .cb-rings { width: 44px; height: 52px; }
  .cb-pullup { width: 58px; height: 60px; }
  .cb-dumbbell { width: 42px; }

  .features-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature h3 { font-size: 15.5px; margin-top: 10px; }
  .feature p { font-size: 13.5px; }
  .feature svg { width: 21px; height: 21px; margin-top: 12px; }

  .split-col h3 { font-size: 18px; }
  .checklist li { font-size: 13.5px; }

  .price-card h3 { font-size: 18px; }
  .price-value { font-size: 26px; }
  .price-card .checklist li { font-size: 13px; }
  .price-alt { font-size: 11px; }

  .cta { padding: 40px 20px; border-radius: 18px; }
  .cta h2 { font-size: 24px; }
  .cta p { font-size: 14px; }

  .footer-tag { font-size: 13px; }
  .footer-legal { font-size: 10px; }
}
