/* 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). */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;600&display=swap');

: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); }

/* ── 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.png');
  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); }
.klarna-highlight {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 4px 0 14px; padding: 8px 14px 8px 8px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel);
}
.klarna-highlight .klarna-logo { height: 22px; width: auto; display: block; border-radius: 5px; }
.klarna-highlight span { font-size: 13px; color: var(--text); font-weight: 600; }
.appstore-badge { height: 42px; width: auto; display: inline-block; }

/* ── 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 { display: flex; justify-content: center; }
.saddle-photo { width: 100%; max-width: 340px; height: auto; border-radius: 12px; display: block; }
.saddle-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.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; }

/* ── 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; }
.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; }
.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.png');
  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; }

/* ── 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) ─────────────────────────────── */
.page-header { padding: 64px 0 24px; }
.page-header p.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }

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