/* ============================================================
   PRENIUM · Club d'acces (abonnement credits)
   Page-specific styles · club.html
   Reutilise les tokens de base.css (--blue, --surface, glass...)
   ============================================================ */

/* ── HERO (photo voiture + overlay · meme langage que index/leasing) ── */
.club-hero {
  position: relative;
  min-height: 82vh;
  min-height: 82dvh;
  display: flex;
  align-items: flex-end;
  background: var(--surface);
  color: var(--text-dark);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.club-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.club-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.78) 30%, rgba(255, 255, 255, 0.28) 56%, transparent 76%),
    linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.30) 42%, transparent 66%);
  pointer-events: none;
}
.club-hero .container { position: relative; z-index: 2; width: 100%; padding-bottom: 5rem; }
.club-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.club-hero__eyebrow {
  color: var(--text-light);
  margin-bottom: 1.6rem;
  display: inline-block;
}
.club-hero__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: 0.01em;
  margin-bottom: 1.6rem;
}
.club-hero__title em {
  font-style: normal;
  color: var(--blue);
}
.club-hero__sub {
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 56ch;
  margin-bottom: 2.6rem;
}
.club-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
/* Bouton encre pour le hero clair */
.btn--ink {
  color: #fff;
  background: #14151a;
  border: 1px solid #14151a;
}
.btn--ink:hover { background: #000; color: #fff; }
.club-hero__meta {
  margin-top: 2.6rem;
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  color: var(--text-mid);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.club-hero__meta strong { color: var(--text-dark); font-weight: 600; }
/* lisibilité du texte sur la photo, sans voile */
.club-hero__eyebrow,
.club-hero__title,
.club-hero__sub,
.club-hero__meta { text-shadow: 0 1px 18px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(255, 255, 255, 0.5); }

/* ── Section titres ── */
.club-head { text-align: center; max-width: 720px; margin: 0 auto 3.4rem; }
.club-head .t-label { display: block; margin-bottom: 1rem; }
.club-head h2 { margin-bottom: 1rem; }
.club-head p { color: var(--text-mid); font-weight: 300; line-height: 1.8; }

/* ── COMMENT CA MARCHE : credits ── */
.credits { background: var(--off-white); }
.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.credit-step {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-xs);
}
.credit-step__n {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.credit-step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; letter-spacing: 0.01em; }
.credit-step p { color: var(--text-mid); font-weight: 300; font-size: 0.92rem; line-height: 1.7; }

/* Bareme de credits */
.credit-rate {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 2rem 2.4rem;
  box-shadow: var(--shadow-xs);
}
.credit-rate__title { font-weight: 600; font-size: 0.95rem; margin-bottom: 1.4rem; letter-spacing: 0.02em; }
.credit-rate__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.92rem;
}
.credit-rate__row:last-child { border-bottom: none; }
.credit-rate__lead { display: flex; align-items: center; gap: 1.1rem; }
.credit-rate__thumb { width: 78px; height: 52px; border-radius: 6px; object-fit: cover; background: #ececec; flex-shrink: 0; box-shadow: var(--shadow-xs); }
.credit-rate__car { color: var(--text-dark); font-weight: 400; }
.credit-rate__car span { display: block; color: var(--text-light); font-size: 0.74rem; letter-spacing: 0.02em; margin-top: 2px; }
.credit-rate__val { font-weight: 600; color: var(--blue); white-space: nowrap; }

/* ── GALERIE FLOTTE (photos · rendre vivant) ── */
.fleet { background: var(--white); }
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.fleet-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0d0d0d;
  box-shadow: var(--shadow-sm);
}
.fleet-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.fleet-card:hover .fleet-card__img { transform: scale(1.06); }
.fleet-card__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.1) 70%, transparent 100%);
}
.fleet-card__name { font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; }
.fleet-card__name span { display: block; font-weight: 300; font-size: 0.66rem; opacity: 0.72; text-transform: uppercase; letter-spacing: 0.14em; margin-top: 3px; }
.fleet-card__cr { font-size: 0.72rem; font-weight: 600; color: #9db4ff; white-space: nowrap; }
.fleet-note { text-align: center; margin-top: 2.2rem; color: var(--text-light); font-size: 0.82rem; font-weight: 300; }
.fleet-note a { color: var(--blue); }

/* ── LES TIERS · cartes membre (réplique du mockup wallet) ── */
.tiers { background: var(--off-white); }
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.8rem;
  align-items: start;
}
.memtier { display: flex; flex-direction: column; }

/* ── La carte (texture + nom + prix, comme l'accueil) ── */
.memcard {
  position: relative;
  aspect-ratio: 1 / 1.4;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.3rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.memcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; z-index: 0; }
.memcard::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%); }
.memtier--select .memcard::after { background: linear-gradient(to top, rgba(255, 255, 255, 0.6) 0%, transparent 100%); }
.memcard__meta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.memcard__meta b { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; opacity: 0.92; }
.memcard__meta em { font-style: normal; font-family: var(--font-title); font-weight: 800; font-size: 1.65rem; color: #fff; letter-spacing: 0.01em; white-space: nowrap; }
.memcard__meta em i { font-style: normal; font-weight: 400; font-size: 0.72rem; opacity: 0.7; margin-left: 2px; }
.memtier--select .memcard__meta b, .memtier--select .memcard__meta em { color: #15161b; }
.memtier:hover .memcard { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2); }

/* ── L'offre sous la carte (comme le mockup : prix sous la carte) ── */
.memoffer { padding: 1.6rem 0.3rem 0; }
.memoffer__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.9rem; margin-bottom: 0.7rem; }
.memoffer__name { font-family: var(--font-title); font-weight: 800; font-size: 1.18rem; letter-spacing: 0.1em; }
.memoffer__price b { font-family: var(--font-title); font-weight: 800; font-size: 1.95rem; letter-spacing: 0.01em; }
.memoffer__price span { font-size: 0.82rem; color: var(--text-mid); }
.memoffer__credits { font-size: 0.86rem; color: var(--blue); font-weight: 600; margin: 0.5rem 0 1.9rem; padding-bottom: 1.9rem; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.memoffer__perks { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.2rem; }
.memoffer__perks li { position: relative; padding-left: 1.5rem; font-size: 0.9rem; font-weight: 300; color: var(--text-mid); line-height: 1.65; }
.memoffer__perks li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.memoffer__perks li b { color: var(--text-dark); font-weight: 600; }
.memoffer__cta {
  display: block;
  text-align: center;
  padding: 19px;
  border-radius: 100px;
  background: #14151a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.memtier--signature .memoffer__cta { background: var(--blue); }
.memoffer__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); }
.memoffer__wallet { display: block; margin-top: 1.5rem; text-align: center; }
.memoffer__wallet img { height: 48px; width: auto; display: inline-block; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.memoffer__wallet:hover img { transform: translateY(-1px); opacity: 0.86; }

/* ── PERK cashback ── */
.perk { background: var(--off-white); }
.perk-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}
.perk-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-bottom: 1rem; letter-spacing: 0.02em; }
.perk-card p { color: var(--text-mid); font-weight: 300; line-height: 1.8; margin-bottom: 1rem; }
.perk-card .small { font-size: 0.78rem; color: var(--text-light); }
.perk-example { background: var(--blue-subtle); border: 1px solid rgba(27, 63, 228, 0.12); border-radius: 10px; padding: 0.9rem 1.1rem; font-size: 0.92rem; color: var(--text-dark); font-weight: 400; line-height: 1.6; margin-bottom: 1rem; }
.perk-example b { color: var(--blue); font-weight: 700; }
.perk-stats { display: flex; flex-direction: column; gap: 1rem; }
.perk-stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  border-radius: 12px;
  background: linear-gradient(150deg, #2d4bea 0%, #1733ad 100%);
  color: #fff;
}
.perk-stat b { font-family: var(--font-title); font-weight: 800; font-size: 2rem; white-space: nowrap; flex-shrink: 0; }
.perk-stat span { font-size: 0.86rem; font-weight: 300; opacity: 0.9; line-height: 1.4; }
.perk-stat.alt { background: linear-gradient(150deg, #2a2b31 0%, #0d0d0f 100%); }

/* ── FAQ ── */
.faq { background: var(--white); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}
.faq-q__icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; transition: transform 0.3s var(--ease); }
.faq-q__icon::before, .faq-q__icon::after {
  content: '';
  position: absolute;
  background: var(--blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q__icon::before { width: 14px; height: 2px; }
.faq-q__icon::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a__inner { padding: 0 0 1.5rem; color: var(--text-mid); font-weight: 300; line-height: 1.8; font-size: 0.92rem; max-width: 70ch; }

/* ── Note legale discrete ── */
.club-legal { background: var(--off-white); }
.club-legal p { max-width: 900px; margin: 0 auto; text-align: center; font-size: 0.78rem; color: var(--text-light); font-weight: 300; line-height: 1.7; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .credits-grid { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .perk-card { grid-template-columns: 1fr; padding: 2.2rem; gap: 2rem; }
}
@media (max-width: 768px) {
  .club-hero { min-height: 84vh; min-height: 84dvh; }
  .club-hero .container { padding-bottom: 3rem; }
  .club-hero__meta { gap: 1.4rem; }
  .tier { min-height: auto; }
  .credit-rate__thumb { width: 60px; height: 42px; }
  .credit-rate__val { font-size: 0.82rem; }
}
@media (max-width: 420px) {
  .fleet-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-q__icon, .faq-q__icon::after, .memoffer__cta { transition: none; }
}

/* ── Barème crédits · adapté mobile (évite le chevauchement liste/valeur) ── */
@media (max-width: 600px) {
  .credit-rate { padding: 1.3rem 1.1rem; }
  .credit-rate__title { font-size: 0.84rem; line-height: 1.45; margin-bottom: 1.1rem; }
  .credit-rate__row { gap: 0.7rem; padding: 0.9rem 0; }
  .credit-rate__lead { gap: 0.8rem; min-width: 0; }
  .credit-rate__thumb { width: 50px; height: 36px; }
  .credit-rate__car { font-size: 0.88rem; font-weight: 500; }
  .credit-rate__car span { display: none; }
  .credit-rate__val { font-size: 0.78rem; white-space: nowrap; flex-shrink: 0; }
}

/* ── Perk cashback · mobile compact (% sur une ligne, blocs serrés) ── */
@media (max-width: 600px) {
  .perk-card { padding: 1.8rem 1.4rem; gap: 1.8rem; }
  .perk-stat { padding: 1.1rem 1.3rem; gap: 0.8rem; }
  .perk-stat b { font-size: 1.7rem; }
  .perk-stat span { font-size: 0.82rem; line-height: 1.45; }
  .perk-example { font-size: 0.88rem; padding: 0.8rem 1rem; }
}
