/* ============================================================
   ACADÉMIE IA INFORMATIQUE — style.css
   Design: Dark tech, navy + electric blue/cyan
   Fonts: Syne (headings) + DM Sans (body)
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --navy:        #050d1a;
  --navy-2:      #0a1628;
  --navy-3:      #0f1f3d;
  --blue:        #1a56ff;
  --blue-light:  #3d7eff;
  --cyan:        #00d4ff;
  --purple:      #7c3aed;
  --purple-light:#9d5cf5;
  --tg-blue:     #2AABEE;
  --green-wa:    #25D366;
  --green-wa-d:  #1da851;
  --white:       #ffffff;
  --gray-100:    #f0f4ff;
  --gray-400:    #8899bb;
  --gray-600:    #4a5f8a;
  --card-bg:     rgba(15, 31, 61, 0.85);
  --card-border: rgba(26, 86, 255, 0.2);
  --shadow-glow: 0 0 40px rgba(26, 86, 255, 0.25);
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; /* Updated to modern system sans-serif stack */
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
em { font-style: normal; color: var(--cyan); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: inherit; /* Headings inherit the base sans-serif for consistent, modern typography */
  font-weight: 700; /* Balanced heading weight for clean readability */
  line-height: 1.15; /* Ensures comfortable heading spacing across devices */
  letter-spacing: normal; /* Remove tight/condensed letter spacing */
}
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700; }

p {
  line-height: 1.7; /* Improved paragraph spacing for cleaner reading */
  letter-spacing: 0.01em; /* Subtle spacing for better legibility */
}

/* ── Section Tag ── */
.section-tag {
  display: inline-block;
  font-family: inherit; /* Use base font for consistency */
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

/* ── Section Containers ── */
.section-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--gray-400); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--green-wa);
  color: #fff;
  font-family: inherit; /* Use base font for a cohesive typographic system */
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
}
.btn-primary:hover {
  background: var(--green-wa-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: transparent;
  color: var(--white);
  font-family: inherit; /* Match the body font for consistent button styling */
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.07);
}
.btn-large { font-size: 1.1rem; padding: 18px 42px; }

/* ── Telegram Banner ── */
.telegram-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  margin-bottom: 2rem;
  font-size: 0.97rem;
  color: var(--gray-100);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}
.tg-icon { font-size: 1.4rem; flex-shrink: 0; }
.telegram-banner strong { color: var(--tg-blue); }

/* ── Telegram pill (in programmes header) ── */
.telegram-pill {
  display: inline-block;
  margin-top: 1rem;
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.3);
  color: var(--tg-blue);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
}
.telegram-pill strong { color: var(--tg-blue); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26, 86, 255, 0.15);
  padding: 12px 0;
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit; /* Use body font for consistent nav branding */
  font-size: 1.2rem;
  font-weight: 600;
}
.nav-logo strong { color: var(--cyan); }
.logo-icon { font-size: 1.5rem; color: var(--blue-light); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--gray-400);
  transition: color var(--transition);
  font-weight: 500;
}
.nav-links a:hover { color: var(--white); }
.btn-nav-whatsapp {
  background: var(--green-wa) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-family: inherit; /* Inherit base font for easier readability */
  transition: var(--transition) !important;
}
.btn-nav-whatsapp:hover { background: var(--green-wa-d) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 86, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 255, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero-bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(26,86,255,0.18) 0%, transparent 70%);
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: rgba(26,86,255,0.18); top: -80px; right: 5%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: rgba(124,58,237,0.15); bottom: 10%; left: -5%; animation-delay: 3s; }
.orb-3 { width: 250px; height: 250px; background: rgba(0,212,255,0.1); top: 40%; right: 20%; animation-delay: 6s; }
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-title {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-400);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.75;
}
.hero-subtitle strong { color: var(--tg-blue); -webkit-text-fill-color: var(--tg-blue); }
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
/* Hero Video */
.hero-video { margin-top: 1rem; }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-glow), 0 40px 80px rgba(0,0,0,0.6);
  background: var(--navy-3);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--gray-400);
  text-align: center;
}

/* ============================================================
   WHY JOIN SECTION
   ============================================================ */
.pourquoi {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.benefit-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.benefit-telegram {
  border-color: rgba(42, 171, 238, 0.35);
  background: rgba(42, 171, 238, 0.06);
}
.benefit-telegram:hover { border-color: var(--tg-blue); box-shadow: 0 0 40px rgba(42,171,238,0.2); }
.benefit-icon { font-size: 2.2rem; margin-bottom: 0.9rem; display: block; }
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--white); }
.benefit-card p { color: var(--gray-400); font-size: 0.93rem; }
.benefit-card strong { color: var(--tg-blue); }

/* ============================================================
   PROGRAMMES SECTION
   ============================================================ */
.programmes {
  padding: 80px 0;
  background: var(--navy-2);
  position: relative;
}
.programmes::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.pricing-featured {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(26,86,255,0.15) 0%, rgba(0,212,255,0.08) 100%);
  transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-6px); }
.featured-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: var(--white);
  font-family: inherit; /* Match the base text font for consistency */
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 0 0 12px 12px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.card-header { margin-bottom: 24px; }
.card-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.card-header h3 { color: var(--white); margin-bottom: 8px; }
.card-desc { color: var(--gray-400); font-size: 0.9rem; line-height: 1.6; }
.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 24px;
  flex: 1;
}
.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-100);
  font-size: 0.91rem;
}
.check { color: var(--cyan); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.check.tg { color: var(--tg-blue); }
.card-price {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--card-border);
}
.price-amount {
  font-family: inherit; /* Use the base font for pricing numbers */
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
}
.price-currency {
  font-size: 1rem;
  color: var(--gray-400);
  margin-left: 4px;
  font-weight: 500;
}
.price-old {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-600);
  text-decoration: line-through;
  margin-bottom: 4px;
}
.price-savings {
  display: block;
  font-size: 0.82rem;
  color: var(--cyan);
  margin-top: 4px;
  font-weight: 600;
}
.btn-card {
  display: block;
  text-align: center;
  padding: 13px 20px;
  background: rgba(26, 86, 255, 0.15);
  border: 1.5px solid var(--blue);
  color: var(--white);
  font-family: inherit; /* Keep button text aligned with page typography */
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-card:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 86, 255, 0.4);
}
.btn-card-featured {
  background: var(--green-wa);
  border-color: var(--green-wa);
}
.btn-card-featured:hover {
  background: var(--green-wa-d);
  border-color: var(--green-wa-d);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   TRAINER SECTION
   ============================================================ */
.formateur {
  padding: 80px 0;
  background: var(--navy);
  position: relative;
}
.formateur::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}
.trainer-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

/* ── Circular Professional Photo ── */
.trainer-image-side {
  display: flex;
  justify-content: center;
  align-items: center;
}
.trainer-photo-outer {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinning ring 1 */
.trainer-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
}
.trainer-ring-1 {
  inset: -18px;
  border-top-color: var(--cyan);
  border-right-color: rgba(0,212,255,0.3);
  border-bottom-color: transparent;
  border-left-color: rgba(0,212,255,0.3);
  animation: spinRing1 6s linear infinite;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.2);
}
.trainer-ring-2 {
  inset: -36px;
  border-top-color: transparent;
  border-right-color: var(--purple-light);
  border-bottom-color: rgba(157,92,245,0.3);
  border-left-color: transparent;
  animation: spinRing2 10s linear infinite reverse;
}
@keyframes spinRing1 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spinRing2 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Circular photo frame */
.trainer-photo-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(0, 212, 255, 0.4);
  box-shadow:
    0 0 0 6px rgba(26, 86, 255, 0.15),
    0 0 40px rgba(0, 212, 255, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
  background: var(--navy-3);
}
.trainer-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Decorative glowing dots on ring */
.trainer-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 3;
}
.trainer-dot-1 {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(0,212,255,0.5);
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation: dotPulse 2s ease-in-out infinite;
}
.trainer-dot-2 {
  background: var(--purple-light);
  box-shadow: 0 0 12px var(--purple-light);
  bottom: 10px;
  right: 0px;
  animation: dotPulse 2s ease-in-out infinite 0.7s;
}
.trainer-dot-3 {
  background: var(--blue-light);
  box-shadow: 0 0 12px var(--blue-light);
  bottom: 0px;
  left: 15px;
  width: 7px; height: 7px;
  animation: dotPulse 2s ease-in-out infinite 1.4s;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.4; transform: translateX(-50%) scale(1.5); }
}
.trainer-dot-2, .trainer-dot-3 {
  animation-name: dotPulse2;
}
@keyframes dotPulse2 {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

/* Trainer text side */
.trainer-content-side .section-tag { display: inline-block; }
.trainer-content-side h2 {
  margin: 0.8rem 0 0.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
.trainer-title {
  color: var(--blue-light);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.trainer-bio {
  color: var(--gray-400);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.trainer-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}
.stat { text-align: center; min-width: 80px; }
.stat-num {
  display: block;
  font-family: inherit; /* Inherit base font for numeric stats */
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.4;
  margin-top: 4px;
  display: block;
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.final-cta {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
}
.cta-box {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-3), rgba(26,86,255,0.12));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,255,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-box h2 {
  position: relative;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-box p {
  position: relative;
  color: var(--gray-400);
  font-size: 1.05rem;
  margin-bottom: 2.4rem;
}
.cta-box p strong { color: var(--tg-blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-2);
  border-top: 1px solid rgba(26,86,255,0.12);
  padding: 40px 0;
}
.footer-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit; /* Keep footer branding aligned with page font */
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.footer-logo strong { color: var(--cyan); }
.footer p { color: var(--gray-600); font-size: 0.88rem; }

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 62px; height: 62px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  animation: bounceIn 0.6s 1.5s both;
}
@keyframes bounceIn {
  0% { transform: scale(0) translateY(30px); opacity: 0; }
  60% { transform: scale(1.15) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.whatsapp-float:hover {
  background: var(--green-wa-d);
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65);
}
.float-tooltip {
  position: absolute;
  right: 74px;
  white-space: nowrap;
  background: var(--navy-3);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit; /* Consistent tooltip typography */
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: var(--transition);
}
.whatsapp-float:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — LARGE TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-featured {
    grid-column: 1 / -1;
    max-width: 500px;
    justify-self: center;
    transform: scale(1);
  }
  .pricing-featured:hover { transform: translateY(-6px); }
  .trainer-wrapper { grid-template-columns: 1fr 1.3fr; gap: 40px; }
  .trainer-photo-outer { width: 260px; height: 260px; }
  .trainer-photo-frame { width: 240px; height: 240px; }
}

/* ============================================================
   RESPONSIVE — TABLET (max 860px)
   ============================================================ */
@media (max-width: 860px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-featured { grid-column: auto; max-width: 100%; transform: scale(1); }
  .pricing-featured:hover { transform: translateY(-6px); }
  .trainer-wrapper { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .trainer-image-side { justify-content: center; }
  .trainer-photo-outer { width: 270px; height: 270px; }
  .trainer-photo-frame { width: 250px; height: 250px; }
  .trainer-stats { justify-content: center; }
  .trainer-content-side .section-tag { display: inline-block; }
  .trainer-content-side .btn-primary { margin: 0 auto; display: inline-flex; }
  h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }
  h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Navbar */
  .navbar { position: fixed; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(5, 13, 26, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 28px 24px 36px;
    gap: 22px;
    border-bottom: 1px solid var(--card-border);
    text-align: center;
    z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links a { font-size: 1.05rem; padding: 4px 0; }
  .btn-nav-whatsapp { padding: 12px 28px !important; font-size: 1rem !important; }

  /* Hero */
  .hero { padding: 90px 0 60px; min-height: auto; }
  .hero-container { padding: 0 18px; }
  .hero-title { font-size: clamp(2rem, 9.5vw, 2.8rem); line-height: 1.15; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta a { justify-content: center; width: 100%; }
  .btn-primary, .btn-secondary { padding: 14px 20px; font-size: 0.95rem; }

  /* Telegram banner */
  .telegram-banner { padding: 12px 16px; font-size: 0.88rem; gap: 10px; }
  .tg-icon { font-size: 1.2rem; }

  /* Video */
  .video-wrapper { border-radius: var(--radius-sm); }
  .video-caption { font-size: 0.82rem; }

  /* Sections */
  section { padding: 64px 0; }
  .section-container { padding: 0 16px; }
  .section-header { margin-bottom: 2.4rem; }
  .section-header h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .section-header p { font-size: 0.92rem; }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr; gap: 14px; }
  .benefit-card { padding: 22px 18px; }
  .benefit-icon { font-size: 2rem; }

  /* Pricing */
  .pricing-grid { max-width: 100%; gap: 16px; }
  .pricing-card { padding: 26px 18px; border-radius: var(--radius-md); }
  .card-icon { font-size: 1.9rem; }
  .price-amount { font-size: 2rem; }
  .featured-badge { font-size: 0.7rem; padding: 4px 12px; }

  /* Trainer */
  .trainer-photo-outer { width: 230px; height: 230px; }
  .trainer-photo-frame { width: 210px; height: 210px; }
  .trainer-ring-1 { inset: -14px; }
  .trainer-ring-2 { inset: -28px; }
  .trainer-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 16px;
  }
  .stat-num { font-size: 1.4rem; }
  .trainer-bio { font-size: 0.93rem; }

  /* CTA */
  .cta-box { padding: 44px 18px; border-radius: var(--radius-md); }
  .btn-large { font-size: 0.95rem; padding: 15px 20px; width: 100%; justify-content: center; }

  /* Footer */
  .footer { padding: 28px 0; }

  /* WhatsApp float */
  .whatsapp-float { bottom: 18px; right: 18px; width: 56px; height: 56px; }
  .float-tooltip { display: none; }
}

/* ============================================================
   RESPONSIVE — VERY SMALL MOBILE (max 380px)
   ============================================================ */
@media (max-width: 380px) {}

/* reduce section padding on smaller screens */
@media (max-width: 768px) {
  .pourquoi, .programmes, .formateur, .final-cta {
    padding: 60px 0;
  }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.85rem; }
  .nav-logo { font-size: 1rem; }
  .trainer-photo-outer { width: 190px; height: 190px; }
  .trainer-photo-frame { width: 175px; height: 175px; }
  .pricing-card { padding: 20px 14px; }
  .hero-badge { font-size: 0.72rem; }
}