/* =====================================================
   STYLE.CSS — iptv-test.fr
   Police : Poppins uniquement
   Couleurs : #5b2be0 (violet) / #ff6b35 (orange)
===================================================== */

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

:root {
  --primary: #5b2be0;
  --primary-dark: #4520b0;
  --accent: #ff6b35;
  --text: #0d0d0d;
  --text-light: #444444;
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --bg-dark: #0f0f1a;
  --border: #e5e7eb;
  --radius: 50px;
  --shadow: 0 4px 24px rgba(91,43,224,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--text-light);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1 {
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
}
h2 {
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  text-align: center;
  margin-bottom: .5rem;
}
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin: .6rem auto 0;
}
h3 {
  font-weight: 600;
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
p { margin-bottom: 1rem; color: var(--text-light); }
strong { font-weight: 700; color: var(--text); }

.overline {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  display: block;
  margin-bottom: .5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-align: center;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(91,43,224,.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(91,43,224,.4); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,107,53,.35);
}
.btn-accent:hover { background: #e05a25; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 1rem 2.6rem; font-size: 1.05rem; }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* ---------- CONTAINER ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.75); }

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.logo img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-brand .logo img {
  height: 27px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-text {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--text); }
/* Footer logo */
.footer-brand .logo img {
  border-radius: 8px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
nav a {
  font-weight: 500;
  font-size: .9rem;
  color: var(--text-light);
  transition: color .2s;
}
nav a:hover, nav a.active { color: var(--primary); }
.nav-cta { margin-left: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { flex-direction: column; gap: .8rem; }
.mobile-menu a { display: block; font-size: 1rem; padding: .3rem 0; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, #f0ebff 0%, #fff 60%);
  padding: 6rem 0 5rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91,43,224,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-text .overline { margin-bottom: .8rem; }
.hero-text h1 { margin-bottom: 1.2rem; }
.hero-text p { font-size: 1.1rem; max-width: 520px; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.trust-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-light);
}
.trust-badge svg { color: var(--primary); }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(91,43,224,.18);
  padding: 2rem 2.2rem;
  min-width: 280px;
  border: 1px solid rgba(91,43,224,.12);
}
.hero-card-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-card-price span { font-size: 1.1rem; font-weight: 500; color: var(--text-light); }
.hero-card-title { font-weight: 700; color: var(--text); margin: .5rem 0 1rem; }
.hero-card-features { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.hero-card-feature { font-size: .87rem; font-weight: 500; color: var(--text-light); }
.hero-card-feature::before { content: '✓ '; color: var(--primary); font-weight: 700; }

/* ---------- STATS BAND ---------- */
.stats-band {
  background: var(--primary);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  margin-top: .3rem;
}

/* ---------- PRESENTATION ---------- */
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.presentation-text h2 { text-align: left; }
.presentation-text h2::after { margin: .6rem 0 0; }
.presentation-text p { margin-top: 1rem; }

/* ---------- AVANTAGES ---------- */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.avantage-card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.avantage-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.avantage-icon {
  font-size: 2.2rem;
  margin-bottom: .8rem;
}
.avantage-card h3 { font-size: 1rem; }
.avantage-card p { font-size: .9rem; margin: 0; }

/* ---------- TEMOIGNAGES ---------- */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.avis-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: .7rem; }
.avis-text { font-size: .93rem; font-style: italic; margin-bottom: 1rem; color: var(--text-light); }
.avis-author { font-weight: 700; font-size: .88rem; color: var(--text); }
.avis-date { font-size: .78rem; color: #999; }

/* ---------- BLOG APERCU ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card-img {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img-link { display: block; text-decoration: none; }
.blog-card-body { padding: 1.5rem; }
.blog-tag {
  display: inline-block;
  background: rgba(91,43,224,.1);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .2rem .7rem;
  border-radius: 50px;
  margin-bottom: .7rem;
}
.blog-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.blog-card p { font-size: .88rem; color: var(--text-light); margin: 0; }
.blog-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- OFFRE CARD ---------- */
.offre-card {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: 24px;
  padding: 3rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(91,43,224,.3);
  max-width: 600px;
  margin: 0 auto;
}
.offre-price {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}
.offre-price small { font-size: 1.2rem; font-weight: 500; opacity: .8; }
.offre-duration { opacity: .8; font-size: .95rem; margin: .4rem 0 1.5rem; }
.offre-features {
  text-align: left;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.offre-feature { font-size: .95rem; font-weight: 500; }
.offre-feature::before { content: '✓ '; font-weight: 700; }

/* ---------- CHECKOUT ---------- */
.checkout-form {
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.08);
  border: 1px solid var(--border);
}
.checkout-form h3 { text-align: center; font-size: 1.4rem; margin-bottom: 1.8rem; color: var(--text); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-group input,
.form-group select {
  width: 100%;
  padding: .8rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: .92rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--primary); }
.form-submit { width: 100%; margin-top: .8rem; font-size: 1rem; padding: 1rem; }

/* ---------- STEPS ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: center;
}
.step-number {
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .8rem;
}

/* ---------- PAIEMENTS ---------- */
.paiements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.paiement-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
}
.paiement-icon { font-size: 2rem; margin-bottom: .4rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.5rem; max-width: 780px; margin-left: auto; margin-right: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question .icon { font-size: 1.2rem; color: var(--primary); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.4rem 1.2rem; font-size: .93rem; color: var(--text-light); }
.faq-item.open .faq-answer { display: block; }

/* ---------- SEO LONG PAGE ---------- */
.toc {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.toc h4 { font-weight: 700; color: var(--text); margin-bottom: .8rem; }
.toc ol { padding-left: 1.2rem; }
.toc li { margin-bottom: .4rem; }
.toc a { color: var(--primary); font-size: .92rem; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

.content-section { margin-bottom: 3rem; }
.content-section h2 { text-align: left; margin-bottom: 1.2rem; }
.content-section h2::after { margin: .4rem 0 0; }
.content-section h3 { margin: 1.5rem 0 .6rem; }
.content-section ul, .content-section ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.content-section li { margin-bottom: .4rem; font-size: .97rem; color: var(--text-light); }

.highlight-box {
  background: rgba(91,43,224,.08);
  border: 1px solid rgba(91,43,224,.2);
  border-radius: 12px;
  padding: 1.4rem 1.8rem;
  margin: 1.5rem 0;
}

/* ---------- ARTICLE BLOG ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.article-content h2 { text-align: left; }
.article-content h2::after { margin: .4rem 0 0; }
.article-content h3 { margin: 1.8rem 0 .6rem; }
.article-content p { font-size: .97rem; }
.article-content ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: .4rem; color: var(--text-light); }

.sidebar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 90px;
}
.sidebar-card h4 { font-weight: 700; color: var(--text); font-size: 1rem; margin-bottom: 1rem; }
.sidebar-features { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.sidebar-feature { font-size: .85rem; font-weight: 500; }
.sidebar-feature::before { content: '✓ '; color: var(--primary); font-weight: 700; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-light);
  flex-wrap: wrap;
  padding: 1.2rem 0;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { color: #fff; margin-bottom: .8rem; display: flex; align-items: center; gap: .4rem; }
.footer-brand .logo .logo-text { color: #fff; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-col h5 {
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ---------- WHATSAPP WIDGET ---------- */
.wa-widget {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 999;
}
.wa-widget a {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #25d366;
  color: #fff;
  padding: .8rem 1.3rem .8rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.wa-widget a:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,211,102,.5); }
.wa-icon { font-size: 1.4rem; }

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { color: #fff; }
.cta-section h2::after { background: rgba(255,255,255,.5); }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 560px; margin: 1rem auto 2rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .paiements-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .presentation-grid { grid-template-columns: 1fr; gap: 2rem; }
  .avantages-grid { grid-template-columns: 1fr; }
  .avis-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .paiements-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .checkout-form { padding: 1.5rem; }
  .offre-card { padding: 2rem 1.5rem; }
  .wa-widget a span:last-child { display: none; }
}
