/* style.css — RAD 4 BMX, site vitrine.
   Palette dérivée du vrai logo (rouge #7e0000, blanc, gris) plutôt que la
   palette Admin/RAD4BIKE_PYTHON (bleu) - ce site public porte l'identité de
   marque réelle, pas celle des outils internes.
   --accent   : rouge de marque exact du logo, pour les surfaces pleines
                (boutons, badges) avec texte blanc dessus, comme sur le logo.
   --accent-2 : variante éclaircie du même rouge, pour le texte/liens/bordures
                sur fond sombre - le rouge de marque brut y serait illisible.
   Typo distincte du document de pricing interne : Barlow Condensed (titres,
   registre "vitesse/motorsport") + IBM Plex Sans/Mono (corps/données). */

/* Polices chargées depuis <head> (base.html, preconnect + <link>) plutôt
   qu'ici : un @import CSS force le navigateur à télécharger et parser tout
   ce fichier avant même de découvrir l'URL des polices - une cascade
   sérielle en plus qui retarde l'affichage du texte (Core Web Vitals). */

:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1c2129;
  --border: #30363d;
  --accent: #7e0000;
  --accent-hover: #9c1206;
  --accent2: #ff5b47;
  --power: #ffa657;
  --hr: #ff7b72;
  --altitude: #7ee787;
  --text: #e6edf3;
  --muted: #8b949e;
  --radius: 8px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: var(--font-mono); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0 0 0.4em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.5vw, 46px); }
h3 { font-size: clamp(20px, 2.6vw, 26px); }

p { margin: 0 0 1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent2); }
/* Sur-titre placé DANS le h1 (SEO : les mots-clés font partie du titre
   principal) : même rendu qu'un .eyebrow posé au-dessus du h1. */
h1 > .eyebrow { display: flex; width: fit-content; font-weight: 400; line-height: normal; text-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.btn--primary { background: var(--accent); color: #ffffff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--accent2); color: var(--accent2); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 16.5px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  text-decoration: none; color: var(--text);
  display: flex; align-items: center;
}
.brand-logo { height: 38px; width: auto; display: block; }
footer .brand-logo { height: 44px; }
.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px; transition: color 0.12s ease, background-color 0.12s ease;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--text); }
.nav-mobile-account { display: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); width: 40px; height: 40px; cursor: pointer; font-size: 18px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; box-shadow: 0 16px 24px rgba(0,0,0,0.45); }
  .nav-links a {
    display: block; padding: 12px 6px; border-bottom: 1px solid var(--border);
    border-radius: 0; text-decoration: none;
  }
  .nav-mobile-account { display: block; }
  .nav-mobile-account a { color: var(--accent2); font-weight: 600; }
  .nav-cta .btn--secondary { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero-wrap {
  background:
    linear-gradient(180deg, rgba(13,17,23,0.72) 0%, rgba(13,17,23,0.88) 55%, var(--bg) 100%),
    url('../images/fond_matrix.jpg');
  background-size: cover, cover;
  background-position: center, center 30%;
}
.hero {
  padding: 88px 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 56px; } }

.hero-copy p.lede { font-size: 19px; color: var(--muted); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.appstore-badge { height: 42px; width: auto; display: inline-block; }
/* Badges officiels App Store + Google Play (templates/_store_badges.html),
   même hauteur pour les deux comme le demandent les chartes Apple/Google. */
.store-badges { display: inline-flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.store-badge { height: 44px; width: auto; display: block; }

/* ── Ligne appli (templates/_app_line.html : hero de l'accueil, produit) ──
   Filet fin + badges + phrase mono, dans le registre des .hero-note plutôt
   qu'un encadré à part. */
.app-line {
  display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); max-width: 560px;
}
.app-line .store-badges { justify-content: flex-start; flex-shrink: 0; gap: 10px; }
.app-line .store-badge { height: 40px; }
.app-line__text { flex: 1 1 180px; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ── Prix mis en avant dans le hero (retour utilisateur du 2026-09-23) ──
   Le prix doit dominer visuellement le titre (cf. artifact de référence) -
   .hero-copy h1 est donc réduit ici, seulement pour ce hero (h1 générique
   inchangé partout ailleurs sur le site). */
.hero-copy h1 { font-size: clamp(32px, 4.5vw, 52px); }
.hero-price { display: flex; align-items: flex-end; gap: 16px; margin: 6px 0 20px; }
.hero-price-value { line-height: 1; }
.hero-price-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.hero-price-value .value {
  font-family: var(--font-mono); font-size: clamp(72px, 9vw, 128px); font-weight: 700; color: var(--accent2);
  text-shadow: 0 0 50px rgba(255, 91, 71, 0.5); line-height: 0.9;
}
.hero-price-detail { padding-bottom: 10px; }
.hero-price-detail .d1 { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.hero-price-detail .d2 { display: block; font-size: 12.5px; color: var(--muted); }

/* ── Carrousel hero (pilote / coach) ─────────────────────────────────── */
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: heroFadeIn 0.4s ease; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 4px 0 28px;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--border); cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease;
}
.hero-dot.is-active { background: var(--accent2); transform: scale(1.3); }

.hero-visual {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px 28px;
}
.hero-visual .cap {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px; text-align: center;
}
.saddle-photo-wrap { position: relative; display: flex; justify-content: center; }
.saddle-photo { width: 100%; max-width: 340px; height: auto; border-radius: 12px; display: block; }
/* Carrousel de vues de la selle (hero accueil) : images superposées, fondu
   entre la vue active et la suivante - hauteur fixe pour que le cadre ne
   saute pas d'une vue paysage à la vue de dessous (portrait). */
.saddle-carousel {
  /* Un seul cadre ("scène") sur toute la largeur du panneau : fond éclairci
     en halo doux (la selle et son détourage se fondent dedans), bordure à
     peine visible - plus de liseré rouge concurrent. */
  position: relative; width: 100%; height: 250px; border-radius: 14px;
  /* Projecteur venant du haut sur fond sombre (la selle, noire, en ressort) */
  background: radial-gradient(ellipse 65% 85% at 50% -8%, rgba(214, 220, 232, 0.36), rgba(214, 220, 232, 0.08) 62%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.saddle-frame, .saddle-still img { filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.55)); }
.saddle-frame {
  position: absolute; left: 6%; right: 6%; top: 18px; bottom: 34px; width: 88%; height: calc(100% - 52px);
  object-fit: contain; opacity: 0; transition: opacity 0.7s ease;
}
.saddle-frame.is-active { opacity: 1; }
/* Photos fixes de la selle, même « scène » claire que le carrousel (page produit) */
.saddle-stills { margin-top: 28px; }
.saddle-stills figure { margin: 0; }
.saddle-still {
  height: 260px; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(ellipse 65% 85% at 50% -8%, rgba(214, 220, 232, 0.36), rgba(214, 220, 232, 0.08) 62%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.saddle-still img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.saddle-stills figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
/* Variante compacte (récapitulatif de commande) */
.saddle-carousel--compact { height: 190px; margin-bottom: 22px; }
.saddle-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; }
.saddle-dot {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.28); transition: background 0.2s, transform 0.2s;
}
.saddle-dot.is-active { background: var(--accent2); transform: scale(1.25); }
@media (max-width: 600px) {
  .saddle-carousel { height: 200px; }
  .price-sticker { right: 8px; }  /* sur le coin, sans déborder de l'écran */
}
.price-sticker {
  position: absolute; top: -18px; right: -8px; transform: rotate(8deg);
  background: var(--accent2); color: var(--bg); border-radius: 14px; padding: 12px 18px;
  box-shadow: 0 10px 26px rgba(255, 91, 71, 0.4), 0 0 0 5px var(--panel);
  text-align: center;
}
.price-sticker .ps-value { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 700; line-height: 1.1; }
.saddle-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.saddle-callouts--2 { grid-template-columns: repeat(2, 1fr); }
.cell-highlight {
  margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--accent2); background: rgba(88,166,255,0.08);
  font-size: 12px; color: var(--text); text-align: center; line-height: 1.4;
}
.cell-highlight strong { color: var(--accent2); }
.callout {
  border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; text-align: center;
}
.callout .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.callout .label { font-size: 11.5px; color: var(--text); font-weight: 600; }
.callout .sub { font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); }

/* coach roster mock (2e vue du carrousel) */
.coach-roster { display: flex; flex-direction: column; gap: 16px; padding: 4px 6px; }
.coach-roster-row { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 12px; }
.coach-roster-row .crn { font-size: 12.5px; color: var(--text); font-weight: 600; }
.coach-roster-row .crbar { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.coach-roster-row .crbar-fill { display: block; height: 100%; border-radius: 3px; }
.coach-roster-row .crv { font-family: var(--font-mono); font-size: 11.5px; color: var(--altitude); text-align: right; }

/* ── Mon compte ──────────────────────────────────────────────────────── */
.account-section {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px 26px; margin-bottom: 20px;
}
.account-section h3 { font-size: 16px; margin-bottom: 16px; }
.account-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px;
}
.account-row:first-of-type { border-top: none; }
.account-row .k { color: var(--muted); }
.account-row .v { color: var(--text); font-weight: 500; text-align: right; }
.pill {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px;
  border-radius: 999px; font-weight: 600;
}
.pill--good { background: rgba(126, 231, 135, 0.12); color: #7ee787; }
.pill--warn { background: rgba(255, 166, 87, 0.14); color: var(--power); }
.pill--muted { background: rgba(139, 148, 158, 0.12); color: var(--muted); }

/* ── Value prop cards ────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent2);
  border: 1px solid var(--border); border-radius: 6px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; }

/* ── Steps (comment ça marche) ───────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-num {
  counter-increment: step;
  font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--accent2);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 6px; }
.step p { max-width: 60ch; }
.steps-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.steps-visual { position: sticky; top: 24px; }
@media (max-width: 860px) {
  .steps-layout { grid-template-columns: 1fr; gap: 28px; }
  .steps-visual { position: static; }
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.plan-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; display: flex; flex-direction: column; position: relative;
}
.plan-card.featured { border-color: var(--accent2); box-shadow: 0 0 0 1px var(--accent2); }
.plan-card .badge {
  position: absolute; top: -11px; right: 20px; background: var(--accent2); color: #04141f;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; font-weight: 700;
}
.plan-card .plan-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.plan-card .plan-for { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.plan-card .plan-price { font-family: var(--font-mono); font-size: 38px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-card .plan-price .unit { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan-card .plan-note { font-size: 12.5px; color: var(--altitude); font-family: var(--font-mono); margin-bottom: 20px; min-height: 1.4em; }
.plan-card ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan-card li {
  font-size: 14px; padding: 9px 0 9px 22px; position: relative;
  border-top: 1px solid var(--border);
}
.plan-card li:first-child { border-top: none; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--altitude); font-weight: 700; }

.coach-tranches { overflow-x: auto; }
table.tranches { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.tranches th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border);
}
table.tranches td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
table.tranches td.num, table.tranches th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.tranches tr:last-child td { border-bottom: none; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-card {
  max-width: 460px; margin: 0 auto; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-family: var(--font-body);
  box-sizing: border-box; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent2); outline-offset: 1px; border-color: var(--accent2); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.promo-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--accent2); border-radius: 8px; font-size: 15px; font-family: var(--font-body);
  letter-spacing: 0.03em;
}
.promo-input::placeholder { color: var(--muted); letter-spacing: normal; }
.promo-input:focus { outline: 2px solid var(--accent2); outline-offset: 1px; }
.trial-banner {
  background: rgba(255, 91, 71, 0.06); border: 1px solid var(--accent2);
  border-radius: 8px; padding: 14px 16px; font-size: 13.5px; color: var(--muted);
}
.trial-banner .mono { color: var(--accent2); font-weight: 600; }
.radio-group { display: grid; gap: 8px; }
.radio-option {
  display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 14px; cursor: pointer; font-size: 14px;
}
.radio-option:has(input:checked) { border-color: var(--accent2); background: rgba(255,91,71,0.08); }
.radio-option input {
  margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent2); cursor: pointer; flex-shrink: 0;
}
.radio-option .rt { font-weight: 600; display: block; }
.radio-option .rd { color: var(--muted); font-size: 12.5px; }

.flash {
  padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 20px;
}
.flash-error { background: rgba(255, 123, 114, 0.12); border: 1px solid var(--hr); color: var(--hr); }
.flash-success { background: rgba(126, 231, 135, 0.1); border: 1px solid var(--altitude); color: var(--altitude); }

/* ── Bandeau confidentialité ─────────────────────────────────────────── */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 640px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
/* .cookie-notice { display:flex } a une origine/spécificité qui bat la règle
   navigateur [hidden] { display:none } - sans cette ligne, JS a beau ajouter
   l'attribut hidden au clic sur "J'ai compris", le bandeau reste affiché. */
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; font-size: 12.5px; color: var(--muted); flex: 1 1 320px; }
.cookie-notice a { color: var(--accent2); }
.cookie-notice .btn { flex-shrink: 0; }

/* ── FAQ accordion ───────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: var(--font-body); font-size: 16.5px; font-weight: 600; padding: 20px 0;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { font-family: var(--font-mono); color: var(--accent2); transition: transform 0.15s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 20px; font-size: 14.5px; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band {
  background:
    linear-gradient(135deg, rgba(22,27,34,0.93), rgba(28,33,41,0.96)),
    url('../images/fond_matrix.jpg');
  background-size: cover, cover;
  background-position: center, center;
  border: 1px solid var(--border); border-radius: 16px; padding: 56px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 50ch; margin: 0 auto 28px; }

/* ── Capture d'appli (screenshot réel, pas une maquette) ────────────────
   Chrome de fenêtre minimal (3 points) pour signaler "vraie appli" sans
   photo de matériel qui n'existe pas encore - cf. templates/product.html. */
.app-shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 28px 64px rgba(0,0,0,0.5); background: var(--panel);
}
.app-shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 16px; background: var(--panel-2); border-bottom: 1px solid var(--border);
}
.app-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.app-shot img { display: block; width: 100%; height: auto; }
.app-shot-caption {
  font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px;
}

/* ── Capture mobile, encadrée façon téléphone ────────────────────────── */
.phone-shot {
  border-radius: 32px; border: 6px solid var(--panel-2);
  box-shadow: 0 28px 64px rgba(0,0,0,0.5); overflow: hidden;
  max-width: 300px; margin: 0 auto;
}
.phone-shot img { display: block; width: 100%; height: auto; }
/* Trois captures mobiles côte à côte (accueil) */
.app-captures { margin-top: 40px; gap: 32px; }
.app-captures figure { margin: 0; }
.app-captures .phone-shot { max-width: 270px; }
.app-captures figcaption { max-width: 300px; margin: 18px auto 0; text-align: center; font-size: 14px; color: var(--muted); }
.app-captures figcaption strong { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 4px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); font-family: var(--font-mono);
}

/* ── Legal pages ─────────────────────────────────────────────────────── */
.legal-content { max-width: 720px; }
.legal-content h2 { margin-top: 40px; font-size: 22px; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 15px; }
.legal-notice {
  background: rgba(255, 166, 87, 0.08); border: 1px solid var(--power); color: var(--power);
  border-radius: 8px; padding: 14px 18px; font-size: 13.5px; margin-bottom: 32px;
}

/* ── Simple page header (non-hero pages) ─────────────────────────────── */
/* padding-block seulement : posé sur un .container, un « padding: 64px 0 24px »
   lui retirait ses marges latérales (en-têtes collés au bord sur téléphone). */
.page-header { padding-block: 64px 24px; }
.page-header p.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }
/* En-tête avec photo de la selle à droite (page produit) */
.page-header--visual { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .page-header--visual { grid-template-columns: 1fr; gap: 28px; } }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.page-404 { text-align: center; padding: 140px 0; }
.page-404 .code { font-family: var(--font-mono); font-size: 15px; color: var(--accent2); }

/* ── Commander (offre selle engagée) : formulaire + récap en 2 colonnes ── */
.order-steps-nav { display: flex; align-items: center; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.order-steps-nav .dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.order-steps-nav .dot.is-active { background: var(--accent2); color: #0d1117; font-weight: 700; }
.order-steps-nav .step-label { margin: 0 10px 0 8px; font-weight: 500; }
.order-steps-nav .step-label.is-active { color: var(--text); font-weight: 600; }
.order-steps-nav .sep { width: 20px; height: 1px; background: var(--border); }

.order-layout { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.order-form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.order-step { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 26px 28px; }
.order-step h2 { display: flex; align-items: center; gap: 12px; font-size: 17px; margin-bottom: 20px; }
.order-step .step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent2); color: #0d1117;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.order-step p.step-hint { font-size: 13px; color: var(--muted); margin: -12px 0 16px; }

.order-summary { flex: 0 0 360px; width: 360px; position: sticky; top: 24px; }
.order-summary-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 10px; color: var(--muted); }
.order-line .mono { color: var(--text); }
.order-total {
  display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border);
  padding-top: 14px; margin-top: 4px; font-weight: 600;
}
.order-total .mono { font-size: 24px; color: var(--accent2); }
.order-subscription { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.order-subscription .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.order-subscription .amount { font-size: 20px; font-weight: 700; }
.order-subscription .amount .unit { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.order-subscription .tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); background: var(--panel-2); border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.order-disclosure summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 500; list-style: none; }
.order-disclosure summary::-webkit-details-marker { display: none; }
.order-disclosure summary::before { content: "▸ "; }
.order-disclosure[open] summary::before { content: "▾ "; }
.order-disclosure p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }

.seatpost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.seatpost-grid .radio-option {
  flex-direction: column; justify-content: center; text-align: center; gap: 2px; padding: 12px 6px;
  position: relative; font-size: 13px; font-weight: 600;
}
.seatpost-grid .radio-option input { position: absolute; opacity: 0; pointer-events: none; }

@media (max-width: 860px) {
  .order-summary { position: static; width: 100%; flex-basis: 100%; }
}

/* ── Simulateur tarif club ──────────────────────────────────────────── */
.club-sim-stepper { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.club-sim-stepper-label { font-size: 13px; color: var(--muted); }
.club-sim-stepper-value { font-size: 20px; font-weight: 700; width: 26px; text-align: center; display: inline-block; }
.club-sim-stepper-note { font-size: 12.5px; color: var(--muted); }
.club-sim-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 16px; cursor: pointer; line-height: 1;
}
.club-sim-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.club-sim-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--muted); }
.club-sim-line .mono { color: var(--text); }
.club-sim-line--total {
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; font-weight: 600; color: var(--text);
}
.club-sim-option {
  flex: 1; border-radius: 10px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--border);
}
.club-sim-option.is-best { background: rgba(126, 231, 135, 0.08); border-color: var(--altitude); color: var(--altitude); }
.club-sim-option-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.club-sim-option-detail { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.club-sim-option-value { font-size: 26px; font-weight: 700; }
.club-sim-option-unit { font-size: 13px; font-weight: 500; color: var(--muted); }

/* Fin du prix de lancement (launch_price_db) : bandeau, étiquette du bloc prix, mention du récapitulatif */
.launch-banner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 9px 16px; background: var(--accent); color: #fff; font-size: 14px; text-align: center; }
.launch-banner a { color: #fff; font-weight: 600; text-decoration: underline; }
.launch-banner__count { font-family: var(--font-mono); font-size: 12px; background: rgba(0, 0, 0, 0.28); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.launch-tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bg); background: var(--accent2); padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.launch-next { color: var(--power); font-weight: 600; }
.launch-note { display: block; font-size: 12px; color: var(--altitude); margin-top: 2px; }

/* ── Guide d'utilisation (/guide, 2026-10-21) ────────────────────────────
   Accueil : parcours en 3 cartes + accès direct par mode / par écran.
   Pages : vidéo verticale collante à gauche avec chapitres cliquables
   (static/js/guide.js), pas-à-pas à droite avec captures de l'appli. */
.guide-crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.guide-crumbs a { color: var(--accent2); text-decoration: none; }
.guide-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.guide-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; transition: border-color 0.15s ease, transform 0.12s ease; }
.guide-card:hover { border-color: var(--accent2); transform: translateY(-2px); }
.guide-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.guide-thumb--text { display: grid; place-items: center; background: linear-gradient(135deg, var(--panel-2), var(--bg)); }
.guide-thumb--text span { font-family: var(--font-display); font-size: 64px; font-weight: 800; color: var(--accent2); line-height: 1; }
.guide-play { position: absolute; inset: 0; display: grid; place-items: center; }
.guide-play i { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,0.5); }
.guide-play i::before { content: ""; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.guide-dur { position: absolute; right: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 12px; background: rgba(0,0,0,0.75); color: var(--text); padding: 2px 7px; border-radius: 4px; }
.guide-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide-card-step { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent2); }
.guide-card h3 { font-size: 26px; margin: 0; }
.guide-card p { font-size: 14.5px; margin: 0; }
.guide-card-meta { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.guide-chip { font-family: var(--font-mono); font-size: 11.5px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.guide-chip--video { color: var(--text); border-color: var(--accent); }
.guide-modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.guide-modes--4 { grid-template-columns: repeat(4, 1fr); }
.guide-mode { border: 1px solid var(--border); border-radius: 8px; padding: 14px 14px 16px; text-decoration: none; background: var(--bg); transition: border-color 0.15s ease; }
.guide-mode:hover { border-color: var(--accent2); }
.guide-mode-dot { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--bg); margin-bottom: 10px; }
.guide-mode h3 { font-size: 20px; margin: 0 0 4px; }
.guide-mode p { font-size: 13px; margin: 0; }
.guide-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.guide-topic { font-size: 14px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--text); white-space: nowrap; }
.guide-topic:hover { border-color: var(--accent2); color: var(--accent2); }
.guide-soon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 14px 0 0; list-style: none; padding: 0; }
.guide-soon li { padding: 12px 0; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--muted); }
.guide-soon li strong { color: var(--text); font-weight: 600; display: block; }

.guide-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 64px; }
.guide-player { position: sticky; top: 88px; min-width: 0; }
.guide-player video { width: 100%; aspect-ratio: 9 / 16; max-height: calc(100vh - 230px); min-height: 320px; border-radius: 14px; border: 1px solid var(--border); background: #000; object-fit: contain; display: block; }
.guide-player-cap { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 10px 0 6px; display: flex; justify-content: space-between; }
.guide-chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.guide-chapters button { width: 100%; display: flex; gap: 12px; align-items: baseline; background: none; border: 0; border-top: 1px solid var(--border); color: var(--muted); text-align: left; padding: 6px 2px; cursor: pointer; font-family: var(--font-body); font-size: 14px; }
.guide-chapters button:hover, .guide-chapters button.is-current { color: var(--text); }
.guide-chapters button.is-current .t { color: var(--accent2); }
.guide-chapters .t { font-family: var(--font-mono); font-size: 12px; min-width: 38px; font-variant-numeric: tabular-nums; }
.guide-main { min-width: 0; }
.guide-main--narrow { max-width: 860px; padding-bottom: 64px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.guide-block { padding: 30px 0; border-top: 1px solid var(--border); scroll-margin-top: 84px; }
.guide-block-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.guide-block-head h2 { font-size: clamp(28px, 4vw, 38px); margin: 0; }
.guide-watch { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--accent2); background: none; border: 1px solid var(--accent); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.guide-watch::before { content: ""; border-left: 7px solid var(--accent2); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.guide-watch:hover { background: var(--accent); color: #fff; }
.guide-intro { font-size: 16.5px; color: var(--text); max-width: 62ch; }
.guide-block-grid { display: grid; grid-template-columns: 1fr 170px; gap: 28px; align-items: start; }
.guide-block-grid > div { min-width: 0; }
.guide-shot { margin: 0; }
.guide-shot img { border-radius: 14px; border: 1px solid var(--border); background: #000; width: 100%; height: auto; }
.guide-shot figcaption { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }
.guide-steps { list-style: none; counter-reset: gstep; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.guide-steps li { counter-increment: gstep; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.guide-steps li::before { content: counter(gstep); width: 26px; height: 26px; border-radius: 50%; background: var(--accent2); color: var(--bg); font-family: var(--font-mono); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.guide-steps strong { color: var(--text); font-weight: 600; display: block; }
.guide-steps li > div > span { color: var(--muted); font-size: 15px; }
.guide-tip { margin-top: 16px; border: 1px solid var(--border); border-left: 3px solid var(--power); border-radius: 6px; padding: 10px 14px; font-size: 14.5px; color: var(--muted); max-width: 62ch; }
.guide-tip strong { color: var(--power); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 6px; }
.guide-facts { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.guide-facts li { padding-left: 18px; position: relative; color: var(--muted); font-size: 15px; max-width: 62ch; }
.guide-facts li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 2px; background: var(--accent2); }
.guide-facts li strong { color: var(--text); font-weight: 600; }
.guide-ui { font-family: var(--font-mono); font-size: 0.9em; color: var(--text); background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.guide-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.guide-pn { border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; text-decoration: none; transition: border-color 0.15s ease; }
.guide-pn:hover { border-color: var(--accent2); }
.guide-pn small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); display: block; }
.guide-pn strong { font-family: var(--font-display); font-size: 22px; }
.guide-pn--next { text-align: right; }
.guide-help { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.guide-help h2 { font-size: 26px; }
.guide-help-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 1000px) { .guide-modes { grid-template-columns: repeat(3, 1fr); } .guide-modes--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .guide-path, .guide-soon, .guide-help { grid-template-columns: 1fr; }
  .guide-modes { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .guide-player { position: static; }
  .guide-player video { max-width: 340px; max-height: 70vh; margin: 0 auto; }
  .guide-chapters { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .guide-chapters button { border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; white-space: nowrap; width: auto; }
}
@media (max-width: 560px) {
  .guide-block-grid { grid-template-columns: 1fr; }
  .guide-shot { max-width: 180px; }
  .guide-watch { margin-left: 0; }
  .guide-prevnext, .guide-modes { grid-template-columns: 1fr; }
  .guide-pn--next { text-align: left; }
}
