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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #171717;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.iptv-site-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #171717;
  overflow-x: hidden;
}

/* ── FLOATING GLASS PILL NAV ── */
.glass-nav-pill {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 1200px;
  height: 72px;
  z-index: 1000;
  border-radius: 24px;
  background-color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}

.glass-nav-pill::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(90deg, transparent 0%, transparent 40%, #6EC1E4 50%, transparent 60%, transparent 100%);
  background-size: 200% 100%;
  animation: beam-slide 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  z-index: 2;
}

@keyframes beam-slide {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

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

@media (max-width: 991px) {
  .glass-nav-pill {
    width: calc(100% - 24px);
    top: 16px;
    height: 64px;
    border-radius: 20px;
  }
  .glass-nav-pill::after { border-radius: 20px; }
  .nav-desktop { display: none !important; }
  .nav-mobile  { display: flex !important; }
  #iptv-main   { padding-top: 104px !important; }
}

/* ── REMOVE TOP GAP ── */
/* The fixed header already reserves space via #iptv-main's padding-top, so each
   page's first (hero) section must NOT add a large top padding of its own —
   otherwise the page opens with a big empty band under the header. Every page
   uses a different wrapper/hero class, so they are all listed here. */
#iptv-main section.hero,                                    /* iptv-france, iptv-premium, abonnement-iptv (nested <main>) */
#iptv-main > div.iptv-landing-page:first-of-type > section, /* accueil, iptv-pas-cher */
.tarifs-page-wrapper .tp-hero,                             /* tarifs */
.hp-wrapper .hp-hero,                                      /* aide */
.dl-page-wrapper .dl-hero,                                 /* telechargement */
.faq-page-wrapper .faq-hero,                              /* faq */
.contact-page-wrapper .cp-hero {                           /* contact */
  padding-top: 24px !important;
}
@media (max-width: 991px) {
  #iptv-main section.hero,
  #iptv-main > div.iptv-landing-page:first-of-type > section,
  .tarifs-page-wrapper .tp-hero,
  .hp-wrapper .hp-hero,
  .dl-page-wrapper .dl-hero,
  .faq-page-wrapper .faq-hero,
  .contact-page-wrapper .cp-hero {
    padding-top: 16px !important;
  }
}

/* Nav link hover */
.iptv-nav-link:hover {
  color: #2563EB !important;
  background: rgba(255,255,255,0.6) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.iptv-dropdown-item:hover {
  color: #2563EB !important;
  background: rgba(255,255,255,0.8) !important;
}

/* ── DESKTOP DROPDOWN (CSS-driven, works even if JS fails) ── */
/* The menu has inline display:none; only !important can override an inline style. */
.iptv-dropdown-wrap:hover .iptv-dropdown-menu,
.iptv-dropdown-wrap:focus-within .iptv-dropdown-menu {
  display: flex !important;
}
/* Transparent bridge covering the 10px gap between the button and the menu so the
   pointer never leaves the hover zone while moving down to the submenu. */
.iptv-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
/* Rotate the chevron while the dropdown is open via hover. */
.iptv-dropdown-wrap:hover .iptv-chevron,
.iptv-dropdown-wrap:focus-within .iptv-chevron {
  transform: rotate(180deg);
}

.iptv-mob-link:hover { background: rgba(0,0,0,0.03); }

/* ── FOOTER LINKS ── */
.iptv-footer-link {
  display: block;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.15s;
}
.iptv-footer-link:hover { color: #94A3B8; }

.iptv-legal-link {
  font-size: 12px;
  color: #334155;
  text-decoration: none;
  transition: color 0.15s;
}
.iptv-legal-link:hover { color: #94A3B8; }

.iptv-social-btn:hover {
  background: #2563EB !important;
  color: #fff !important;
}

/* ── WA FLOAT ── */
.iptv-wa-float:hover { transform: scale(1.1) !important; }

/* ── MARQUEE ── */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

/* ── FAQ ACCORDION ── */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-content.open { max-height: 600px; }

/* ── COUNTDOWN ── */
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.live-dot { animation: pulse-badge 1.5s ease-in-out infinite; }

/* ── SECTION PATTERNS ── */
.iptv-section        { padding: 64px 24px; }
.iptv-section-sm     { padding: 48px 24px; }
.iptv-section-white  { background: #fff; border-bottom: 1px solid #EAEAEA; }
.iptv-section-gray   { background: #FAFAFA; border-bottom: 1px solid #EAEAEA; }
.iptv-section-dark   { background: #0F172A; color: #fff; }

.iptv-container      { max-width: 1120px; margin: 0 auto; }
.iptv-container-sm   { max-width: 700px;  margin: 0 auto; }

/* ── BADGE ── */
.iptv-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #2563EB;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: #2563EB;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid #2563EB;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-outline:hover { background: #2563EB; color: #fff; }

/* ── CARD GRID ── */
.iptv-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.iptv-card-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ── CARDS ── */
.iptv-card {
  background: #fff;
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.iptv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.12);
}

/* ── PRICING CARDS ── */
.iptv-pricing-card {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #F4F8FF 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15,23,42,0.05);
  transition: transform 0.2s;
}
.iptv-pricing-card:hover { transform: translateY(-4px); }
.iptv-pricing-card.popular {
  background: linear-gradient(180deg, #fff 0%, #EEF5FF 100%);
  border: 2px solid #2563EB;
  box-shadow: 0 15px 40px rgba(37,99,235,0.18);
}
.iptv-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563EB;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── FAQ BUTTON ── */
.iptv-faq-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #0F172A;
  text-align: left;
  font-family: inherit;
  transition: color 0.15s;
}
.iptv-faq-btn:hover { color: #2563EB; }
.iptv-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
}
.iptv-faq-btn.active .iptv-faq-icon {
  background: #2563EB;
  color: #fff;
}

/* ── SPLIT GRID ── */
.iptv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) {
  .iptv-split { grid-template-columns: 1fr; gap: 32px; }
}

/* ── HERO ── */
.iptv-hero {
  padding: 80px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, #F8FBFF 0%, #fff 100%);
  border-bottom: 1px solid #EAEAEA;
}
.iptv-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0F172A;
  line-height: 1.15;
  margin-bottom: 20px;
}
.iptv-hero p {
  font-size: 17px;
  color: #4B5563;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ── DARK HERO ── */
.iptv-hero-dark {
  background: linear-gradient(135deg, #1E3A5F 0%, #0F172A 50%, #1a237e 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  border-bottom: 1px solid #1E293B;
}
.iptv-hero-dark h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 20px; }
.iptv-hero-dark p  { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.7; max-width: 640px; margin: 0 auto 32px; }

/* ── CONTACT FORM ── */
.iptv-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #374151;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
.iptv-form-input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.iptv-form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #374151;
  background: #fff;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.iptv-form-select:focus { border-color: #2563EB; }

/* ── STEP TIMELINE ── */
.iptv-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid #EAEAEA;
}
.iptv-step:last-child { border-bottom: none; }
.iptv-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2563EB;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── INFO BOX / ALERT ── */
.iptv-alert {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: #92400E;
  line-height: 1.65;
}
.iptv-alert-blue {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: #1E40AF;
  line-height: 1.65;
}

/* ── TRUST BAR ── */
.iptv-trust-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 14px 24px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 13px;
  color: #374151;
  justify-content: center;
  align-items: center;
}

/* ── CHECK LIST ── */
.iptv-check-list { list-style: none; padding: 0; }
.iptv-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
}
.iptv-check-list li::before {
  content: '✓';
  color: #2563EB;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .iptv-card-grid-3, .iptv-card-grid-4 {
    grid-template-columns: 1fr;
  }
  .iptv-hero h1 { font-size: 1.9rem; }
  .iptv-hero-dark h1 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .iptv-trust-bar { flex-direction: column; text-align: center; }
  .iptv-section { padding: 48px 16px; }
}

/* ── SEO CONTENT ZONE (editable via Elementor / WP editor) ── */
.iptv-seo-content {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #374151;
  font-size: 15px;
  line-height: 1.8;
}
.iptv-seo-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #EFF6FF;
}
.iptv-seo-content h2:first-child { margin-top: 0; }
.iptv-seo-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E40AF;
  margin: 28px 0 10px;
}
.iptv-seo-content p { margin-bottom: 14px; }
.iptv-seo-content ul,
.iptv-seo-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.iptv-seo-content ul li,
.iptv-seo-content ol li {
  margin-bottom: 7px;
  line-height: 1.7;
}
.iptv-seo-content a { color: #2563EB; text-decoration: underline; }
.iptv-seo-content strong { color: #0F172A; font-weight: 700; }

/* ── FOOTER LIGHT OVERRIDES ── */
.iptv-social-btn:hover {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #fff !important;
}
@media (max-width: 768px) {
  footer > div > div:first-child {
    grid-template-columns: 1fr !important;
  }
}
