/* ══════════════════════════════════════════════
   ClassPass Parrainage — style.css
   ══════════════════════════════════════════════ */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cp-black:     #0B0B0B;
  --cp-white:     #FAFAFA;
  --cp-coral:     #FF5A5F;
  --cp-coral2:    #FF3A3F;
  --cp-teal:      #00B3B3;
  --cp-teal2:     #009999;
  --cp-gray:      #6B6B6B;
  --cp-lightgray: #F2F2F2;
  --cp-border:    rgba(255,255,255,0.08);
  --radius:       14px;
  --radius-sm:    8px;
  --font-head:    'avenir', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cp-black);
  color: var(--cp-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── GRADIENT BG ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(0,179,179,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(255,90,95,0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.container {
  max-width: 860px;
  margin: 0 auto;
   margin-top: 30px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── HEADER / NAV ── */
header {
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--cp-white);
}

.logo-text span { color: var(--cp-teal); }

.logo-img-real {
  width: 100%;
  height: auto;
  max-width: 150px;   /* ajuste selon tes préférences */
  border-radius: 16px;
  object-fit: contain;  /* plus de crop, l'image entière est visible */
  display: block;
}


.badge-parrainage {
  background: rgba(255,90,95,0.15);
  border: 1px solid rgba(255,90,95,0.3);
  color: var(--cp-coral);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}


/* Background image section hero */
.hero.offer-section::before {
  display: none;
}

.hero-bg-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
   height: 100vh;
  background-image: url('https://raw.githubusercontent.com/camillebournier-commits/classpass-parrainage/main/bg-classpass-parrainage.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}
/* Le contenu reste 100% opaque par-dessus */
.hero-bg-wrapper > * {
  position: relative;
  z-index: 1;
}


/* ── HERO ── */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}

/* ── CTA BUTTON ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cp-coral) 0%, var(--cp-coral2) 100%);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  padding: 18px 40px;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(255,90,95,0.35), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255,90,95,0.45), 0 4px 12px rgba(0,0,0,0.3);
}

.btn-cta:hover::before { opacity: 1; }
.btn-cta:active { transform: translateY(-1px) scale(1.01); }

.btn-arrow {
  font-size: 1.3rem;
  transition: transform var(--transition);
}

.btn-cta:hover .btn-arrow { transform: translateX(4px); }

#inline-btn {
   margin-top: 25px;
   margin-bottom: 25px;
}

.cta-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.02em;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 64px 0;
}

/* ── SECTION LABELS & TITLES ── */
.section-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cp-teal);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  max-width: 480px;
  line-height: 1.7;
}

/* ── HOW IT WORKS STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.step-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cp-teal), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.step-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0,179,179,0.2);
}

.step-card:hover::before { opacity: 1; }

.step-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(0,179,179,0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

.step-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ── OFFER CARD ── */
.offer-section { padding: 0 0 16px; }

.offer-card {
  background: linear-gradient(135deg, rgba(0,179,179,0.08) 0%, rgba(255,90,95,0.06) 100%);
  border: 1px solid rgba(0,179,179,0.2);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,179,179,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.offer-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,95,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.offer-badge {
  display: inline-block;
  background: rgba(0,179,179,0.15);
  border: 1px solid rgba(0,179,179,0.3);
  color: var(--cp-teal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.offer-headline {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.offer-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.offer-items {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
   margin-top: 36px;

}

.offer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}

.offer-item .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,179,179,0.2);
  border: 1px solid rgba(0,179,179,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--cp-teal);
  flex-shrink: 0;
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.feature-emoji {
  font-size: 1.9rem;
  margin-bottom: 14px;
  display: block;
}

.feature-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: rgba(255,255,255,0.13); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--cp-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-chevron {
  font-size: 0.75rem;
  opacity: 0.5;
  transition: transform var(--transition), opacity var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--cp-teal);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a { max-height: 200px; }

.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.faq-a-inner a {
  color: var(--cp-teal);
  text-decoration: none;
}

/* ── BOTTOM CTA ── */
.bottom-cta {
  text-align: center;
  padding: 64px 0 80px;
}

.bottom-cta h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.bottom-cta p {
  color: rgba(255,255,255,0.48);
  margin-bottom: 32px;
  font-size: 0.93rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
  max-width: 560px;
}

.footer-note a {
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 6px 16px;
  transition: color var(--transition), border-color var(--transition);
}

.footer-link:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}

/* ── FLOATING CTA (mobile sticky) ── */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 16px 24px;
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.07);
  z-index: 100;
}

.floating-cta .btn-cta {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 24px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .header-inner { justify-content: center; gap: 16px; flex-wrap: wrap; }
  .hero { padding: 48px 0 36px; }
  .offer-card { padding: 36px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .floating-cta { display: block; }
  body { padding-bottom: 80px; }
}
