/* ==========================================================================
   FITNESS ARENA — design system
   Charte : noir #000000 · rouge #ff3131 · blanc #ffffff
   Typo : Montserrat variable (self-host) — titres 800 uppercase
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-italic-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --noir: #000000;
  --noir-2: #0c0c0e;      /* fonds de section alternés */
  --noir-3: #141417;      /* cards */
  --rouge: #ff3131;
  --rouge-sombre: #c81e1e;
  --blanc: #ffffff;
  --gris: #a7a7ad;
  --gris-sombre: #55555c;
  --trait: rgba(255, 255, 255, .08);

  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --transition: .3s cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;

  --shadow-rouge: 0 8px 40px rgba(255, 49, 49, .25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--noir);
  color: var(--blanc);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

::selection { background: var(--rouge); color: var(--blanc); }

/* ---------- Typographie ---------- */
h1, h2, h3, .h-style {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.accent { color: var(--rouge); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--rouge);
}

.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--noir-2); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--gris); margin-top: 16px; font-size: 1.05rem; }

/* Chiffre géant décoratif en fond de section */
.giant-num {
  position: absolute;
  top: 8px; right: 4vw;
  font-size: clamp(6rem, 16vw, 13rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 49, 49, .18);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn .arr { transition: transform var(--transition); }
.btn:hover .arr { transform: translateX(5px); }

.btn--rouge {
  background: var(--rouge);
  color: var(--blanc);
  box-shadow: var(--shadow-rouge);
}
.btn--rouge:hover { transform: translateY(-2px); background: #ff4747; }

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, .25);
  color: var(--blanc);
}
.btn--ghost:hover { border-color: var(--rouge); color: var(--rouge); }

.btn--blanc { background: var(--blanc); color: var(--noir); }
.btn--blanc:hover { transform: translateY(-2px); }

/* ---------- Bandeau promo ---------- */
/* ---------- Topbar (bandeau + header) ---------- */
/* Bloc fixe escamotable : pattern position:fixed + padding-top compensé sur body.
   On n'utilise PAS position:sticky ici : sticky + overflow-x:clip sur html/body
   lâche silencieusement sur Safari iOS (header qui disparaît au scroll).
   ⚠️ Ne jamais poser backdrop-filter/transform permanent sur .topbar/.header :
   ça ferait du bloc le containing block du menu mobile position:fixed. */
:root { --topbar-h: 76px; }
html { scroll-padding-top: calc(var(--topbar-h) + 12px); }
body { padding-top: var(--topbar-h); }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: transform .3s ease;
}
.topbar.is-hidden { transform: translateY(-110%); }

.bandeau {
  background: var(--rouge);
  color: var(--blanc);
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  padding: 9px 16px;
}

/* ---------- Header ---------- */
.header {
  position: relative;
  background: rgba(0, 0, 0, .82);
  border-bottom: 1px solid var(--trait);
  transition: box-shadow var(--transition);
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.header__logo img { height: 34px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 32px; }
.header__nav a {
  font-weight: 600;
  font-size: .92rem;
  color: var(--gris);
  transition: color var(--transition);
  position: relative;
}
.header__nav a:hover, .header__nav a[aria-current="page"] { color: var(--blanc); }
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--rouge);
  transition: width var(--transition);
}
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__cta .btn { padding: 11px 22px; font-size: .85rem; }

.burger { display: none; position: relative; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--blanc); transition: var(--transition); }

.header__nav-socials { display: none; }
.nav-close { display: none; }

@media (max-width: 900px) {
  .header__nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: var(--noir);
    background: linear-gradient(160deg, #000 55%, #1a0505);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s ease, visibility 0s .35s;
    z-index: 55;
  }
  .header__nav.is-open { transform: translateX(0); visibility: visible; transition: transform .35s ease; }
  .header__nav a { font-size: 1.3rem; color: var(--blanc); }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px; right: 18px;
    width: 48px; height: 48px;
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1;
    color: var(--blanc);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
  }
  .nav-close:hover { border-color: var(--rouge); color: var(--rouge); }
  .header__nav-socials {
    display: flex;
    gap: 22px;
    margin-top: 14px;
  }
  .header__nav-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
  }
  .header__nav-socials a::after { display: none; }
  .header__nav-socials svg { width: 20px; height: 20px; fill: var(--blanc); }
  .header__nav-socials a:hover { border-color: var(--rouge); }
  .header__nav-socials a:hover svg { fill: var(--rouge); }
  .burger { display: flex; z-index: 56; }

  /* Header compact : la rangée doit tenir dans le viewport (sinon burger hors écran) */
  .header__in { gap: 12px; }
  .header__logo { flex-shrink: 1; min-width: 0; }
  .header__logo img { height: 26px; }
  .header__cta { gap: 8px; flex-shrink: 0; }
  .header__cta .btn { padding: 10px 14px; font-size: .76rem; }
  .burger.is-open { opacity: 0; pointer-events: none; } /* la croix .nav-close prend le relais dans l'overlay */
  .header__cta .btn--ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg, .hero__bg picture, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg { will-change: transform; scale: 1.08; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(255, 49, 49, .28), transparent 65%),
    linear-gradient(100deg, rgba(0, 0, 0, .94) 20%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .35));
}
.hero__in {
  position: relative;
  z-index: 2;
  padding: 120px 24px 150px;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.hero__sub {
  color: #c9c9cf;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 22px auto 14px;
  max-width: 600px;
}
.hero__sub strong { color: var(--blanc); }
.hero__prix {
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: 30px;
}
.hero__prix .accent { font-size: 1.15em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero__avis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: #c9c9cf;
  font-size: .92rem;
  font-weight: 600;
}
.hero__avis .stars { color: #ffb400; letter-spacing: 2px; }
.hero__avis:hover { color: var(--blanc); }

/* Compteurs */
.stats {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.stats__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--trait);
  padding: 22px 0;
  gap: 12px;
}
.stat { text-align: center; }
.stat__num {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--blanc);
}
.stat__num .accent { color: var(--rouge); }
.stat__label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-top: 2px;
}
@media (max-width: 700px) {
  .stats__in { grid-template-columns: repeat(2, 1fr); }
  .hero__in { padding-bottom: 210px; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--trait);
  padding: 18px 0;
  background: var(--noir);
}
.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee span {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .35);
}
.marquee span.full { color: var(--rouge); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards tarifs ---------- */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}
.tarif {
  position: relative;
  background: var(--noir-3);
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.tarif:hover { transform: translateY(-6px); border-color: rgba(255, 49, 49, .55); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.tarif--star { border-color: var(--rouge); box-shadow: var(--shadow-rouge); }
.tarif__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--rouge);
  color: var(--blanc);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.tarif__nom { font-size: 1.15rem; margin-bottom: 4px; }
.tarif__engagement { color: var(--gris); font-size: .85rem; margin-bottom: 20px; }
.tarif__prix { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.tarif__prix .num {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blanc);
}
.tarif__prix .eur { font-size: 1.6rem; font-weight: 800; color: var(--rouge); }
.tarif__prix .per { color: var(--gris); font-size: .85rem; font-weight: 600; }
.tarif__list { flex: 1; display: grid; gap: 11px; margin-bottom: 26px; }
.tarif__list li {
  display: flex;
  gap: 10px;
  font-size: .93rem;
  color: #d6d6db;
}
.tarif__list li::before {
  content: '';
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 4px;
  background: var(--rouge);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);  /* chevron "A" de la charte */
}
.tarif .btn { width: 100%; }
.tarifs-note { color: var(--gris-sombre); font-size: .85rem; margin-top: 26px; max-width: 760px; }
.tarifs-note strong { color: var(--gris); }

/* ---------- Espaces ---------- */
.espaces-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}
.espace {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  grid-column: span 4;
  isolation: isolate;
}
.espace--lg { grid-column: span 8; }
.espace picture, .espace img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  z-index: -1;
}
.espace:hover img { transform: scale(1.05); }
.espace::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 8%, rgba(0,0,0,.15) 55%, transparent);
  transition: background var(--transition);
}
.espace__txt { position: relative; z-index: 1; padding: 26px; }
.espace__txt h3 { margin-bottom: 6px; }
.espace__txt p { color: var(--gris); font-size: .9rem; max-width: 420px; }
.espace__tag {
  display: inline-block;
  background: rgba(255, 49, 49, .92);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .espace, .espace--lg { grid-column: span 12; min-height: 260px; }
}

/* ---------- Clubs ---------- */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}
.club {
  background: var(--noir-3);
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.club:hover { transform: translateY(-6px); border-color: rgba(255,49,49,.5); }
.club__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.club__img img { width: 100%; height: 100%; object-fit: cover; }
.club__statut {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--rouge);
  color: var(--blanc);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.club__statut--soon { background: var(--blanc); color: var(--noir); }
.club__body { padding: 24px; }
.club__body h3 { margin-bottom: 8px; }
.club__meta { display: grid; gap: 6px; color: var(--gris); font-size: .9rem; margin-bottom: 18px; }
.club__meta svg { flex: 0 0 auto; width: 15px; height: 15px; fill: var(--rouge); margin-top: 4px; }
.club__meta span { display: flex; gap: 9px; }
.club__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--blanc);
  margin-bottom: 16px;
}
.club__rating .stars { color: #ffb400; letter-spacing: 2px; }
.club__rating .nb { color: var(--gris); font-weight: 500; }
.club__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.club__actions .btn { flex: 1 1 auto; }

/* ---------- Bloc coaching / large CTA image ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.split__img { border-radius: var(--radius); overflow: hidden; }
.split__txt p { color: var(--gris); margin: 16px 0 26px; }
.split__list { display: grid; gap: 12px; margin: 22px 0 30px; }
.split__list li { display: flex; gap: 11px; color: #d6d6db; font-size: .95rem; }
.split__list li::before {
  content: '';
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 4px;
  background: var(--rouge);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; position: relative; z-index: 1; }
.faq details {
  border-bottom: 1px solid var(--trait);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rouge);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { color: var(--gris); padding-bottom: 20px; max-width: 700px; }

/* ---------- CTA final ---------- */
.cta-final {
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(0,0,0,.35), transparent),
    var(--rouge);
  color: var(--blanc);
  text-align: center;
  padding: clamp(70px, 9vw, 110px) 0;
}
.cta-final h2 { max-width: 720px; margin-inline: auto; }
.cta-final p { margin: 18px auto 34px; max-width: 520px; font-weight: 500; }
.cta-final .btn--blanc { box-shadow: 0 12px 40px rgba(0,0,0,.3); }

/* ---------- Footer ---------- */
.footer {
  background: var(--noir-2);
  border-top: 1px solid var(--trait);
  padding: 60px 0 30px;
  color: var(--gris);
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer__logo img { height: 30px; width: auto; margin-bottom: 16px; }
.footer h4 {
  color: var(--blanc);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--rouge); }
.footer__bottom {
  border-top: 1px solid var(--trait);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
  color: var(--gris-sombre);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Sticky CTA mobile ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: none;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom));
}
.sticky-cta .btn {
  display: flex;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(255, 49, 49, .35); }
  50% { box-shadow: 0 8px 44px rgba(255, 49, 49, .65); }
}
@media (max-width: 700px) {
  .sticky-cta.is-visible { display: block; }
  body { padding-bottom: 76px; }
}

/* ---------- Reveal au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .sticky-cta .btn { animation: none; }
  .hero__bg { will-change: auto; scale: 1; }
}
