/* =========================================================
   Charte « Pulse » — Reprendre le sport après 40 ans
   Mobile-first : sm 640px · md 768px · lg 1024px
   ========================================================= */

:root {
  --paper: #f3f3ef;
  --pearl: #e2e4de;
  --ink: #121212;
  --lime: #c6f432;
  --lime-hover: #b6e428;
  --text: #1e1e1e;
  --muted: #6b706b;
  --soft: #d5d6d0;
  --easy: #3dbe7a;
  --normal: #f2c200;
  --hard: #e0314b;

  --font-sans: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

::selection { background: var(--ink); color: var(--lime); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.page { padding-bottom: 6rem; }
@media (min-width: 768px) { .page { padding-bottom: 0; } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.section { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .section { padding-top: 6rem; padding-bottom: 6rem; } }

.grid-12 { display: grid; gap: 2.5rem; }
.grid-12.center, .grid-12-lg.center { align-items: center; }
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid-12 > .col-7 { grid-column: span 7; }
  .grid-12 > .col-5 { grid-column: span 5; }
}

.grid-12-lg { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .grid-12-lg { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid-12-lg > .col-lg-5 { grid-column: span 5; }
  .grid-12-lg > .col-lg-7 { grid-column: span 7; }
}

.cols-3 { display: grid; }
.gap-3 { gap: 0.75rem; }
@media (min-width: 768px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.narrow { max-width: 48rem; }
.narrow-2 { max-width: 42rem; }
.narrow-3 { max-width: 48rem; }

.block { display: block; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

/* ---------- Fonds ---------- */
.bg-paper { background: var(--paper); }
.bg-pearl { background: var(--pearl); }
.bg-white { background: #fff; }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-easy { background: var(--easy); color: var(--ink); }
.bg-normal { background: var(--normal); color: var(--ink); }
.bg-hard { background: var(--hard); color: #fff; }

/* ---------- Typographie ---------- */
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow-sm {
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.lime { color: var(--lime) !important; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }

.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.125rem;
  letter-spacing: 0.025em; text-transform: uppercase; color: var(--ink);
}

.h2 {
  margin-top: 0.75rem;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 2.25rem; line-height: 0.9; color: var(--ink);
}
.bg-ink .h2 { color: var(--paper); }
@media (min-width: 640px) { .h2 { font-size: 3.75rem; } .h2.h2-md { font-size: 3rem; } }

.h3, .h3-lg, .h3-xl {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 0.95;
}
.h3 { font-size: 1.5rem; }
.h3-lg { font-size: 1.875rem; line-height: 1; color: var(--ink); }
.h3-xl { font-size: 1.875rem; line-height: 0.9; }
.lh-1 { line-height: 1; }

.lead { font-size: 1.125rem; max-width: 36rem; }
.small { font-size: 0.875rem; }

.num-xl { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--ink); }
.num-2xl { font-family: var(--font-display); font-weight: 800; font-size: 3.75rem; line-height: 1; }

/* ---------- Icônes (style Lucide) ---------- */
.icon {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-hard { color: var(--hard); margin-top: 0.125rem; }

/* ---------- Bouton CTA ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 1rem 1.75rem;
  background: var(--lime); color: var(--ink); text-decoration: none; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.125rem;
  letter-spacing: 0.025em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { transform: translateY(-2px); background: var(--lime-hover); }
.cta:active { transform: translateY(2px); box-shadow: none; }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cta-dark { box-shadow: 3px 3px 0 var(--paper); }
.cta-dark:focus-visible { outline-color: var(--lime); }
@media (min-width: 640px) { .cta { width: auto; } }

/* ---------- Badges de niveau ---------- */
.level {
  display: inline-flex; align-self: flex-start; padding: 0.125rem 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.025em; text-transform: uppercase;
}
.level-easy { background: var(--easy); color: #fff; }
.level-normal { background: var(--normal); color: var(--ink); }
.level-hard { background: var(--hard); color: #fff; }

/* =========================================================
   Sections
   ========================================================= */

/* ---------- Hero ---------- */
.hero { padding-top: 1.5rem; }
@media (min-width: 768px) { .hero { padding-top: 2rem; } }

.hero-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(18, 18, 18, 0.15);
}
.hero-grid { gap: 2rem; padding: 2rem 0; align-items: center; }
@media (min-width: 768px) { .hero-grid { gap: 2.5rem; padding: 3rem 0; } }

.hero-title {
  margin-top: 1rem;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 2.7rem; line-height: 0.86; letter-spacing: -0.025em; color: var(--ink);
}
@media (min-width: 640px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.05rem; } }

.hero-mark {
  display: inline-block; padding: 0 0.5rem; white-space: nowrap;
  background: var(--ink); color: var(--lime);
  transform-origin: left center;
}

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badges li {
  border: 1px solid rgba(18, 18, 18, 0.2); background: var(--pearl);
  padding: 0.375rem 0.75rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.025em; text-transform: uppercase; color: var(--ink);
}

.scene { width: 100%; height: auto; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); padding: 1rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-row { display: flex; flex-shrink: 0; align-items: center; }
.marquee-item {
  padding: 0 1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: 0.025em; text-transform: uppercase; color: var(--lime);
}
.marquee-bolt { color: var(--lime); }
@media (min-width: 768px) { .marquee-item { font-size: 1.5rem; } }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Constat ---------- */
.quotes { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quotes li {
  background: var(--pearl); padding: 1rem 1.25rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  text-transform: uppercase; color: var(--ink);
}

/* ---------- Solution (cartes flottantes) ---------- */
.solution { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.pillars { display: grid; gap: 1rem; }
.pillar { position: relative; z-index: 10; width: 100%; background: var(--pearl); padding: 1.25rem; }
.solution-figure { width: 100%; max-width: 28rem; margin: 0 auto; }

@media (min-width: 1024px) {
  .solution { display: block; min-height: 44rem; }
  .pillar { position: absolute; width: 24rem; height: 13.5rem; }
  .spot-1 { top: 0.75rem; left: 0; }
  .spot-2 { top: 0.5rem; right: 0; }
  .spot-3 { top: 29rem; left: calc(50% - 12rem); }
  .solution-figure {
    position: absolute; z-index: 0; top: 12.5rem; left: 50%;
    width: 25rem; max-width: none; transform: translateX(-50%);
  }
}

.float-card { animation: float-card 5.6s ease-in-out infinite; }
.float-card-b { animation-duration: 6.4s; animation-delay: -2.1s; }
.float-card-c { animation-duration: 5s; animation-delay: -3.4s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Aperçu ---------- */
.preview-cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .preview-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-outline { display: flex; flex-direction: column; border: 4px solid var(--ink); background: #fff; padding: 1.25rem; }
.card-dark { background: var(--ink); color: var(--paper); padding: 1.25rem; }

/* ---------- Programme ---------- */
.phases { display: grid; gap: 1rem; }
@media (min-width: 768px) { .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.phase {
  display: flex; flex-direction: column; min-height: 280px;
  border: 1px solid rgba(243, 243, 239, 0.15); padding: 1.25rem;
  transition: border-color 0.2s ease;
}
@media (min-width: 768px) { .phase { padding: 1.5rem; } }
@media (hover: hover) { .phase:hover { border-color: var(--lime); } }

.phase-num {
  font-family: var(--font-display); font-weight: 800; font-size: 3.75rem; line-height: 1; color: var(--lime);
}
@media (min-width: 768px) { .phase-num { font-size: 4.5rem; } }
.phase-weeks {
  margin-top: 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime);
}
.phase-text { margin-top: auto; padding-top: 1.5rem; }

/* ---------- Sécurité ---------- */
.warning {
  display: flex; gap: 1rem;
  border: 2px solid var(--hard); background: #fff; color: var(--text);
  padding: 1.25rem;
}
@media (min-width: 768px) { .warning { padding: 1.75rem; } }
.warning .h3 { color: var(--ink); }

.level-card { display: flex; flex-direction: column; background: var(--paper); padding: 1.5rem; }
.level-card .h3 { color: var(--ink); }
.signal { padding: 1.25rem; }

/* ---------- Pas pour vous ---------- */
.notfor { border: 2px solid var(--ink); background: #fff; padding: 1.5rem; }
.notfor .h3 { color: var(--ink); }
.notfor-num {
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--hard);
}

/* ---------- Inclus ---------- */
.included { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .included { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .included { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.included-item { display: flex; flex-direction: column; background: var(--pearl); padding: 1.5rem; }
.included-head { display: flex; align-items: center; justify-content: space-between; }
.included-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; background: var(--ink); color: var(--lime);
}
.included-icon .icon { width: 20px; height: 20px; }
.included-index {
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.16em; color: var(--muted);
}
.included-item .h3 { margin-top: 1.25rem; color: var(--ink); }

/* ---------- Créateur ---------- */
.founder-media { position: relative; overflow: hidden; background: var(--ink); min-height: 320px; }
.founder-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.2), transparent);
}
@media (min-width: 768px) { .founder-media { min-height: 420px; } }

/* ---------- Garantie ---------- */
.guarantee {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding-top: 4rem; padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .guarantee { flex-direction: row; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
}
.guarantee-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 5rem; height: 5rem; background: var(--lime); color: var(--ink);
}
.guarantee-icon .icon { width: 36px; height: 36px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid rgba(18, 18, 18, 0.1); }
.faq-item { border-bottom: 1px solid rgba(18, 18, 18, 0.1); }
.faq-button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; text-align: left;
}
.faq-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.faq-question {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.25;
  text-transform: uppercase; color: var(--ink);
}
@media (min-width: 640px) { .faq-question { font-size: 1.5rem; } }
.faq-button .icon { color: var(--easy); }
.faq-button .icon-minus { display: none; }
.faq-button[aria-expanded="true"] .icon-plus { display: none; }
.faq-button[aria-expanded="true"] .icon-minus { display: block; }

.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease-out; }
.faq-panel.is-open { grid-template-rows: 1fr; }
.faq-panel > div { min-height: 0; overflow: hidden; }
.faq-panel p { max-width: 48rem; padding-bottom: 1.25rem; }

/* ---------- CTA final ---------- */
@media (min-width: 768px) { .final { padding-top: 7rem; padding-bottom: 7rem; } }
.countdown {
  margin-top: 0.5rem;
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1;
  color: var(--lime); font-variant-numeric: tabular-nums;
}
.final-title {
  max-width: 56rem;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 3rem; line-height: 0.88;
}
@media (min-width: 640px) { .final-title { font-size: 4.5rem; } }

.payments { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.payment {
  display: inline-flex; align-items: center; gap: 0.625rem; height: 3rem;
  padding: 0 0.75rem 0 0.5rem; background: var(--paper); color: var(--ink);
}
.payment-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1;
  letter-spacing: 0.025em; text-transform: uppercase;
}
.payment-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  font-family: var(--font-display); font-weight: 800; font-size: 0.875rem; color: var(--ink);
}
.payment-mark.light { color: var(--paper); }
.payment-logo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2rem; padding: 0 0.25rem;
}
.payment-logo img { height: 1.25rem; width: auto; max-width: 4.5rem; }
.payment-logo.square { width: 2rem; padding: 0; }
.payment-logo.square img { width: 2rem; height: 2rem; object-fit: contain; }
.payment-mark svg { width: 2rem; height: 2rem; }

/* ---------- Paiement Chariow ---------- */
/* Le bouton du widget est masqué : les boutons d'achat de la page l'activent. */
#chariow-widget .cw-button-base { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(18, 18, 18, 0.1); background: var(--paper); }
.footer-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* ---------- Sticky CTA mobile ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  border-top: 1px solid rgba(243, 243, 239, 0.15); background: var(--ink);
  padding: 0.75rem 1rem;
  animation: sticky-up 0.35s var(--ease-out) both;
}
.sticky-cta[hidden] { display: none; }
@media (min-width: 768px) { .sticky-cta { display: none !important; } }

@keyframes sticky-up {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

/* =========================================================
   Animations
   ========================================================= */

/* Survol léger (cartes « Inclus », moyens de paiement) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lift { transition: transform 0.2s var(--ease-out); }
  .lift:hover { transform: translateY(-4px); }
  .marquee-track:hover { animation-play-state: paused; }
}

/* Entrée du hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-rise { animation: hero-rise 0.7s var(--ease-out) both; }
  .hero-rise.d1 { animation-delay: 0.08s; }
  .hero-rise.d2 { animation-delay: 0.16s; }
  .hero-rise.d3 { animation-delay: 0.24s; }
  .hero-rise.d4 { animation-delay: 0.32s; }
  .hero-rise.d5 { animation-delay: 0.4s; }
  .hero-rise.d6 { animation-delay: 0.2s; }
  .hero-mark { animation: hero-mark 0.6s var(--ease-out) 0.5s both; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-mark {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Apparition des sections au scroll.
   1) Navigateurs récents : animation liée au scroll (CSS pur).
   2) Sinon : le JS ajoute .reveal-js puis .is-in (IntersectionObserver). */
.reveal-wrap { overflow-x: clip; }

@keyframes reveal-left { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes reveal-rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes reveal-down { from { opacity: 0; transform: translateY(-32px); } to { opacity: 1; transform: none; } }
@keyframes reveal-zoom { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes reveal-panel { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes reveal-compress { from { opacity: 0; transform: scaleX(0.9); } to { opacity: 1; transform: none; } }
@keyframes reveal-unfold { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes reveal-settle { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
    .reveal-left { animation-name: reveal-left; }
    .reveal-right { animation-name: reveal-right; }
    .reveal-rise { animation-name: reveal-rise; }
    .reveal-down { animation-name: reveal-down; }
    .reveal-zoom { animation-name: reveal-zoom; }
    .reveal-fade { animation-name: reveal-fade; }
    .reveal-wipe { animation-name: reveal-wipe; }
    .reveal-panel { animation-name: reveal-panel; }
    .reveal-compress { animation-name: reveal-compress; }
    .reveal-unfold { animation-name: reveal-unfold; }
    .reveal-settle { animation-name: reveal-settle; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-js.reveal-left { opacity: 0; transform: translateX(-48px); }
  .reveal-js.reveal-right { opacity: 0; transform: translateX(48px); }
  .reveal-js.reveal-rise { opacity: 0; transform: translateY(36px); }
  .reveal-js.reveal-down { opacity: 0; transform: translateY(-32px); }
  .reveal-js.reveal-zoom { opacity: 0; transform: scale(0.92); }
  .reveal-js.reveal-fade { opacity: 0; }
  .reveal-js.reveal-wipe { clip-path: inset(100% 0 0 0); }
  .reveal-js.reveal-panel { clip-path: inset(0 0 0 100%); }
  .reveal-js.reveal-compress { opacity: 0; transform: scaleX(0.9); }
  .reveal-js.reveal-unfold { clip-path: inset(0 0 100% 0); }
  .reveal-js.reveal-settle { opacity: 0; transform: scale(1.05); }

  .reveal-js.is-in {
    opacity: 1; transform: none; clip-path: inset(0 0 0 0);
    transition:
      opacity 0.65s ease,
      transform 0.65s var(--ease-out),
      clip-path 0.7s var(--ease-out);
  }
}

/* Mouvement réduit : tout s'affiche sans animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
  .marquee-clone { display: none; }
  .float-card, .sticky-cta, .reveal { animation: none; }
  .faq-panel { transition: none; }
}
