/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --primary: #5b2be0;
  --primary-dark: #4520b0;
  --primary-light: #7c52e8;
  --accent: #ff6b35;
  --white: #ffffff;
  --bg: #f8f9fc;
  --bg-dark: #0f0f1a;
  --text: #0d0d0d;
  --text-light: #555555;
  --border: #e5e7eb;
  --gradient: linear-gradient(135deg, #5b2be0, #7c52e8);
  --shadow: 0 4px 24px rgba(91,43,224,0.12);
  --shadow-lg: 0 8px 48px rgba(91,43,224,0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* TYPOGRAPHY — Style IPTV Smarters Pro */
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.2; color: var(--text); }

/* H1 : grand, noir, uppercase, extra bold */
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #0d0d0d;
}

/* H2 : centré, uppercase, avec soulignement violet */
h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
  color: #0d0d0d;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* H3 : semi-bold, pas uppercase */
h3 { font-size: 1.05rem; font-weight: 600; color: #0d0d0d; }

/* Corps : 400, gris foncé, bien lisible */
p { font-weight: 400; color: #444444; font-size: 1rem; line-height: 1.85; }

/* Gras inline */
strong { font-weight: 700; color: #0d0d0d; }

/* Overline — style "WELCOME TO IPTV SMARTERS PRO" */
.overline {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-family: var(--font); font-size: 0.9rem; font-weight: 600; transition: all 0.25s ease; white-space: nowrap; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 16px rgba(91,43,224,0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,43,224,0.45); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* BADGE */
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(91,43,224,0.08); color: var(--primary); padding: 7px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; margin-bottom: 16px; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 1.2rem; font-weight: 800; flex-shrink: 0; color: var(--text); }
.logo-icon { background: var(--primary); color: white; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.logo-text strong { color: var(--primary); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-weight: 500; font-size: 0.9rem; color: var(--text-light); transition: color 0.2s; }
.nav a:hover { color: var(--primary); }
.menu-toggle { display: none; font-size: 1.4rem; color: var(--text); margin-left: auto; padding: 8px; }
.mobile-menu { display: none; flex-direction: column; gap: 16px; padding: 20px 24px; background: white; border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-weight: 500; color: var(--text); padding: 8px 0; border-bottom: 1px solid var(--border); }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 80px 0 64px; background: #ffffff; }
.hero::before { content: ''; position: absolute; top: -150px; right: -150px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(91,43,224,0.06) 0%, transparent 70%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-title { margin-bottom: 20px; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 1rem; font-weight: 400; color: var(--text-light); margin-bottom: 32px; line-height: 1.8; }
.hero-subtitle strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-light); font-weight: 500; }

/* TV MOCKUP */
.hero-visual { position: relative; display: flex; justify-content: center; }
.tv-mockup { background: #1a1a2e; border-radius: 20px; padding: 16px; box-shadow: 0 24px 64px rgba(0,0,0,0.2); width: 100%; max-width: 400px; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.tv-screen { background: #0d0d1a; border-radius: 12px; overflow: hidden; }
.tv-topbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #111126; }
.tv-dot { width: 10px; height: 10px; border-radius: 50%; }
.tv-dot.red { background: #ff5f57; } .tv-dot.yellow { background: #febc2e; } .tv-dot.green { background: #28c840; }
.tv-title { margin-left: 8px; font-size: 0.72rem; color: rgba(255,255,255,0.45); font-weight: 400; }
.tv-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; }
.channel-card { background: #1e1e35; border-radius: 10px; padding: 14px 8px; text-align: center; transition: all 0.2s; border: 2px solid transparent; }
.channel-card.active, .channel-card:hover { background: var(--primary); border-color: var(--primary-light); }
.channel-icon { font-size: 1.4rem; margin-bottom: 6px; }
.channel-card span { font-size: 0.68rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.tv-now-playing { padding: 12px 16px; background: rgba(91,43,224,0.25); display: flex; align-items: center; gap: 10px; }
.now-label { background: var(--primary); color: white; font-size: 0.62rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px; }
.now-channel { font-size: 0.78rem; color: rgba(255,255,255,0.8); font-weight: 400; }
.floating-badge { position: absolute; background: white; border-radius: 14px; padding: 12px 16px; text-align: center; font-weight: 700; font-size: 1.1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.12); color: var(--primary); line-height: 1.2; }
.floating-badge small { font-size: 0.68rem; color: var(--text-light); font-weight: 400; display: block; }
.badge-1 { bottom: 20px; left: -20px; animation: float 4s ease-in-out infinite 1s; }
.badge-2 { top: 20px; right: -20px; animation: float 4s ease-in-out infinite 2s; }

/* STATS */
.stats { background: var(--primary); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: white; line-height: 1; margin-bottom: 6px; }
.stat-number span { font-size: 1.5rem; opacity: 0.75; }
.stat-label { color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 400; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-dark); }
.section-grey { background: var(--bg); }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-light); font-size: 1rem; font-weight: 400; }
.section-header.light h2 { color: white; }
.section-header.light p { color: rgba(255,255,255,0.6); }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--border); transition: all 0.25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { margin-bottom: 10px; font-size: 0.95rem; }
.feature-card p { color: var(--text-light); font-size: 0.875rem; line-height: 1.7; font-weight: 400; }
.feature-card strong { color: var(--primary); font-weight: 600; }

/* OFFER */
.offer-wrapper { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start; }
.offer-card { background: white; border-radius: var(--radius); padding: 40px 36px; text-align: center; box-shadow: 0 16px 56px rgba(91,43,224,0.14); border: 1px solid rgba(91,43,224,0.12); }
.offer-badge { display: inline-block; background: var(--accent); color: white; font-size: 0.78rem; font-weight: 700; padding: 6px 16px; border-radius: 50px; margin-bottom: 20px; }
.offer-duration { font-size: 0.82rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.offer-price { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin-bottom: 6px; }
.price-amount { font-size: 3.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.price-period { color: var(--text-light); font-size: 1rem; padding-bottom: 8px; font-weight: 400; }
.offer-equiv { color: var(--text-light); font-size: 0.82rem; margin-bottom: 28px; font-weight: 400; }
.offer-features { text-align: left; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.offer-features li { font-size: 0.875rem; color: var(--text); font-weight: 500; }
.offer-payment { display: flex; justify-content: center; gap: 12px; margin-top: 16px; font-size: 0.82rem; color: var(--text-light); flex-wrap: wrap; }
.offer-info h3 { color: white; font-size: 1.3rem; margin-bottom: 28px; }
.steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num { background: var(--primary); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.step-content strong { display: block; color: white; margin-bottom: 4px; font-size: 0.95rem; font-weight: 600; }
.step-content p { color: rgba(255,255,255,0.55); font-size: 0.875rem; font-weight: 400; }

/* ADVANTAGES */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.advantage-item { padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); transition: all 0.25s; }
.advantage-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.adv-icon { font-size: 2rem; margin-bottom: 14px; }
.advantage-item h3 { margin-bottom: 10px; font-size: 0.95rem; }
.advantage-item p { color: var(--text-light); font-size: 0.875rem; font-weight: 400; }

/* REVIEWS */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: white; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.review-stars { font-size: 1rem; margin-bottom: 12px; }
.review-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; font-weight: 400; }
.review-card strong { color: var(--primary); font-weight: 600; }
.review-author { font-size: 0.82rem; font-weight: 600; color: var(--text); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px 24px; font-size: 0.9rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background 0.2s; background: white; font-family: var(--font); }
.faq-question:hover { background: var(--bg); }
.faq-question.open { color: var(--primary); background: rgba(91,43,224,0.04); }
.faq-arrow { font-size: 0.78rem; transition: transform 0.3s; flex-shrink: 0; color: var(--primary); }
.faq-question.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 24px 20px; background: white; }
.faq-answer.open { display: block; }
.faq-answer p { color: var(--text-light); font-size: 0.875rem; line-height: 1.8; font-weight: 400; }
.faq-answer strong { color: var(--primary); font-weight: 600; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: white; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--border); transition: all 0.25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-cat { display: inline-block; background: rgba(91,43,224,0.08); color: var(--primary); font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.8px; }
.blog-card h3 { margin-bottom: 10px; font-size: 0.95rem; line-height: 1.5; }
.blog-card h3 a { color: var(--text); transition: color 0.2s; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-light); font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; font-weight: 400; }
.blog-link { color: var(--primary); font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.blog-link:hover { gap: 10px; }

/* FOOTER */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.6); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; margin-bottom: 20px; font-weight: 400; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 2px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color 0.2s; font-weight: 400; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom a:hover { color: white; }

/* WHATSAPP WIDGET */
.whatsapp-widget { position: fixed; bottom: 28px; right: 28px; z-index: 999; }
.whatsapp-btn { width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); font-size: 1.6rem; cursor: pointer; transition: all 0.25s; animation: pulse-wa 2.5s ease-in-out infinite; }
.whatsapp-btn:hover { transform: scale(1.1); }
@keyframes pulse-wa { 0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7); } }
.whatsapp-bubble { position: absolute; bottom: 70px; right: 0; background: white; border-radius: 16px 16px 0 16px; padding: 16px 20px; width: 265px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); display: none; }
.whatsapp-bubble.open { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.bubble-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bubble-avatar { width: 38px; height: 38px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.bubble-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.bubble-status { font-size: 0.72rem; color: #25d366; font-weight: 500; }
.bubble-msg { font-size: 0.83rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; font-weight: 400; }
.bubble-cta { display: block; background: #25d366; color: white; text-align: center; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; }
.bubble-cta:hover { opacity: 0.9; }

/* CHECKOUT MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: 24px; width: 100%; max-width: 480px; padding: 40px 36px; position: relative; animation: modalIn 0.3s ease; max-height: 90vh; overflow-y: auto; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 20px; font-size: 1.3rem; color: var(--text-light); cursor: pointer; transition: color 0.2s; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.modal-subtitle { color: var(--text-light); font-size: 0.875rem; margin-bottom: 16px; font-weight: 400; }
.modal-price { display: inline-block; background: rgba(91,43,224,0.08); color: var(--primary); font-weight: 700; padding: 6px 16px; border-radius: 50px; font-size: 0.95rem; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group input, .form-group select { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; font-family: var(--font); font-weight: 400; color: var(--text); transition: border-color 0.2s; background: white; -webkit-appearance: none; appearance: none; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,43,224,0.1); }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-option { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; }
.radio-option:hover { border-color: var(--primary); background: rgba(91,43,224,0.04); }
.radio-option.selected { border-color: var(--primary); background: rgba(91,43,224,0.07); color: var(--primary); }
.form-submit { margin-top: 24px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .offer-wrapper { grid-template-columns: 1fr; }
  .offer-card { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header-inner .btn-primary { display: none; }
  .menu-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .modal { padding: 28px 20px; }
  .stats-grid { gap: 20px; }
}
