/* ===== TVLUNA — Global Styles ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --dark: #050817;
  --dark2: #0a1030;
  --accent: #e8b84b;
  --accent2: #f5d07a;
  --text: #e8eaf0;
  --muted: #7a8499;
  --card-bg: #0a1028;
  --card-border: rgba(232,184,75,0.15);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark);
  background-image:
    radial-gradient(circle at 78% 0%, rgba(11,85,255,0.24), transparent 34%),
    radial-gradient(circle at 12% 22%, rgba(232,184,75,0.08), transparent 26%);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
.bebas { font-family: 'Bebas Neue', sans-serif; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-align: center;
  display: block;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 1rem;
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s;
  box-shadow: 0 0 30px rgba(232,184,75,0.2);
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid rgba(232,184,75,0.35);
  color: var(--accent);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(232,184,75,0.08); }

/* ===== CARDS ===== */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,184,75,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(232,184,75,0.35); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }

/* ===== ANIMATIONS ===== */
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes sportScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.3); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Aurora */
@keyframes auroraColor {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== SECTION DECORATIONS ===== */

/* Thin glowing separator between all consecutive sections */
section + section {
  position: relative;
}
section + section::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(50,100,220,0.2) 25%,
    rgba(232,184,75,0.32) 50%,
    rgba(50,100,220,0.2) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Section with subtle blue gradient overlay */
.section-blue-tint {
  background: linear-gradient(180deg,
    var(--dark) 0%,
    #071020 50%,
    var(--dark) 100%
  ) !important;
}

/* Section with deeper blue center */
.section-blue-mid {
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(12,22,55,0.5) 0%,
    var(--dark) 70%
  ) !important;
}

/* ===== CHANNELS BAR ===== */
.channels-bar {
  background: var(--dark);
  border-top: 1px solid rgba(232,184,75,0.08);
  border-bottom: 1px solid rgba(232,184,75,0.08);
  padding: 1.25rem 0;
  overflow: hidden;
}
.channels-track {
  display: flex;
  gap: 0.85rem;
  animation: scroll 50s linear infinite;
  width: max-content;
}
.channels-track:hover { animation-play-state: paused; }
.channel-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
  height: 46px;
  min-width: 60px;
}
.channel-badge:hover {
  border-color: rgba(232,184,75,0.6);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.channel-badge img {
  height: 28px;
  width: auto;
  max-width: 85px;
  object-fit: contain;
  display: block;
}

/* ===== SPORT SCROLL ===== */
.sport-scroll-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.sport-scroll-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: sportScroll 20s linear infinite;
}
.sport-scroll-track:hover { animation-play-state: paused; }
.sport-poster {
  flex-shrink: 0;
  width: 170px;
  height: 255px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.sport-poster:hover { transform: scale(1.06) translateY(-4px); border-color: rgba(232,184,75,0.5); }
.sport-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sport-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,30,0.8) 0%, transparent 50%);
}

/* ===== LOGOS SPORT ===== */
.sport-logos-wrap {
  margin-top: 2rem;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}
.sport-logos-track {
  display: flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  animation: scroll 28s linear infinite;
}
.sport-logos-track:hover { animation-play-state: paused; }

/* ── Desktop: boîtes blanches, taille fixe ── */
.sport-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.sport-logo-item img {
  width: 104px !important;
  height: 104px !important;
  object-fit: contain !important;
}

/* ── Mobile: boîtes blanches carrées, 5 logos visibles ── */
@media (max-width: 768px) {
  .sport-logo-item {
    width: 20vw;
    height: 20vw;
  }
  .sport-logo-item img {
    width: calc(20vw - 16px) !important;
    height: calc(20vw - 16px) !important;
  }
}
.sport-logo-name { font-size: 0.68rem; color: var(--muted); font-weight: 600; text-align: center; }

/* ===== PRICING ===== */
.plan-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s;
}
.plan-card.featured { border-color: var(--accent); }
.plan-card:hover { transform: translateY(-6px); }
.plan-feature-free { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: #25d366; font-weight: 600; }
.check-free { width: 18px; height: 18px; background: rgba(37,211,102,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-size: 0.65rem; color: #25d366; }

/* ===== TESTIMONIALS ===== */
.testi-img-item { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; transition: all 0.55s cubic-bezier(0.4,0,0.2,1); }
.testi-img-item img { width: 100%; height: 100%; object-fit: cover; }
.testi-img-item.active { opacity: 1; transform: scale(1) rotate(0deg); z-index: 10; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.testi-img-item.inactive { opacity: 0.3; transform: scale(0.88) rotate(var(--rot)); z-index: 1; }

/* ===== FAQ ===== */
.faq-item { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.faq-item:first-child { border-radius: 12px 12px 0 0; }
.faq-item:last-child { border-radius: 0 0 12px 12px; }
.faq-arrow { transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(45deg); color: var(--accent); }

/* ===== ABU BANNER ===== */
.abu-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(232,184,75,0.1), rgba(232,184,75,0.04));
  border: 1px solid rgba(232,184,75,0.3);
  border-radius: 16px;
  padding: 1.1rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.abu-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,184,75,0.6), transparent);
}

/* ===== DEVICES ===== */
.device-pill {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}
.device-pill:hover { border-color: rgba(232,184,75,0.3); color: var(--text); }

/* ===== GUARANTEE STRIP ===== */
.guarantee-strip {
  background: rgba(232,184,75,0.06);
  border: 1px solid rgba(232,184,75,0.15);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 2rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== TRUSTPILOT ===== */
.trustpilot-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(0,182,122,0.06);
  border: 1px solid rgba(0,182,122,0.2);
  border-radius: 14px;
  padding: 1rem 2rem;
  margin: 2rem auto;
  max-width: 700px;
}

/* ===== HOW STEPS ===== */
.step-line {
  position: absolute;
  left: 19px;
  top: 52px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(to bottom, rgba(232,184,75,0.4), rgba(232,184,75,0.05));
}

/* ===== LOGOS SECTION ===== */
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 0.6rem 1rem;
  transition: all 0.2s;
  min-width: 100px;
  height: 52px;
}
.logo-chip:hover { border-color: rgba(232,184,75,0.5); background: #fff; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.logo-chip img { height: 26px !important; max-width: 90px !important; width: auto !important; object-fit: contain; filter: none; }
.logo-chip span { display: none; }

/* ===== CINEMA SECTION ===== */
.cinema-section {
  position: relative;
  width: 100%;
  min-height: 560px;
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinema-fade-top { position: absolute; top: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, var(--dark), transparent); z-index: 4; pointer-events: none; }
.cinema-fade-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, var(--dark), transparent); z-index: 4; pointer-events: none; }
.cinema-fade-center { position: absolute; inset: 0; background: radial-gradient(ellipse 42% 62% at 50% 45%, rgba(6,12,30,0.75) 0%, rgba(6,12,30,0.22) 55%, transparent 100%); z-index: 3; pointer-events: none; }

/* ===== STICKY WHATSAPP ===== */
@keyframes waBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.12) translateY(-4px); }
  70% { transform: scale(0.96) translateY(2px); }
}

/* ===== PLAN CARD FEATURED GLOW ===== */
.plan-card.featured {
  box-shadow: 0 0 40px rgba(232,184,75,0.18), 0 0 0 1px var(--accent);
}
.plan-card.featured:hover {
  box-shadow: 0 0 60px rgba(232,184,75,0.3), 0 0 0 1px var(--accent);
}

/* ===== DESKTOP: réduire le padding vertical des sections ===== */
@media (min-width: 1280px) {
  section:not(.hero-section):not(.cinema-section) {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* ===== NAV RESPONSIVE ===== */
.nav-desktop { display: flex; }
.nav-mobile { display: none; }

/* ===== FEATURES GRID RESPONSIVE ===== */
@media (max-width: 1024px) {
  #features .feature-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  #features .feature-grid-3 { grid-template-columns: 1fr !important; }
}

/* ===== LOGOS & APPS GRIDS: flex-wrap on mobile ===== */
@media (max-width: 768px) {
  .logos-grid,
  .apps-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
}

/* ===== LOGOS SECTION: tighter spacing on mobile ===== */
@media (max-width: 768px) {
  /* Override global section padding for logos section */
  section.logos-section {
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
  }
  /* Reduce label margin inside logos section */
  .logos-section .section-label {
    margin-bottom: 0.1rem !important;
  }
  /* Section title smaller margin on mobile */
  .section-label + .section-title {
    margin-top: 0.1rem !important;
    margin-bottom: 0 !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-title { font-size: clamp(1.8rem, 6vw, 3rem); }
  .cinema-section { min-height: 560px; }

  /* Hero: no excessive empty space on mobile */
  .hero-section {
    min-height: auto !important;
    justify-content: flex-start !important;
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
  }

  /* Tighter section spacing on mobile */
  section:not(.hero-section):not(.cinema-section) {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  /* Nav */
  .nav-desktop { display: none !important; }
  .nav-mobile { display: flex !important; }

  /* Footer grid → 2 cols on mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  /* Testimonials: stack on mobile */
  .testi-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .testi-img-wrap {
    height: 280px !important;
  }

  /* Guarantee strip: 2 colonnes compactes sur mobile */
  .guarantee-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem 0.5rem !important;
    padding: 0.85rem 0.9rem !important;
    border-radius: 12px !important;
    margin-top: 1rem !important;
    justify-items: start;
    align-items: center;
  }
  .guarantee-strip .gs-sep {
    display: none !important;
  }
  .guarantee-strip .gs-item {
    font-size: 0.76rem !important;
    gap: 0.3rem !important;
    white-space: normal !important;
    line-height: 1.3;
    align-items: flex-start !important;
  }

  /* Trustpilot bar: column */
  .trustpilot-bar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  /* Abu banner: column */
  .abu-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-align: center;
  }

  /* Section padding */
  section { padding-left: 1rem !important; padding-right: 1rem !important; }
}

@media (max-width: 480px) {
  /* Footer grid → 1 col on very small */
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  /* Pricing: reduce padding */
  .plan-card { padding: 1.5rem !important; }

  /* Hero buttons: stack on very small screens */
  .hero-section .btn-primary,
  .hero-section .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Logos section title: smaller */
  .section-title { font-size: clamp(1.5rem, 5vw, 2.5rem) !important; }
}

/* ===== PREVENT HORIZONTAL OVERFLOW GLOBALLY ===== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* ===== PRICING CARDS: reduce gap on mobile ===== */
@media (max-width: 768px) {
  .pricing-cards-grid {
    gap: 1.5rem !important;
  }
}

/* ===== HOW SECTION — 4 COLONNES ===== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.how-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.how-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(232,184,75,0.2);
}

/* Flèche entre les cartes */
.how-arrow {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(232,184,75,0.5);
  font-size: 1.2rem;
  z-index: 2;
  pointer-events: none;
}

/* Mobile: retour en colonne */
@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .how-arrow { display: none; }
}

/* ===== BLOG CARDS ===== */
.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s;
  cursor: pointer;
  height: 100%;
}
.blog-card:hover {
  background: rgba(232,184,75,0.05);
  border-color: rgba(232,184,75,0.2);
  transform: translateY(-3px);
}

.related-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
  transition: border-color 0.2s;
}
.related-card:hover {
  border-color: rgba(232,184,75,0.3);
}

/* ===== MOBILE FOOTER SAFE AREA ===== */
@media (max-width: 768px) {
  /* Add breathing room above sticky WhatsApp button */
  footer {
    padding-bottom: 6rem !important;
  }
  /* Footer bottom bar wraps nicely */
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
}
