/* =================================================
   main.css — Abonnement IPTV 12 Mois
   Design 2026 — Clean Modern
   ================================================= */

/* --- Variables --- */
:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #111827;
  --white: #ffffff;
  --accent: #f59e0b;
  --border: #e2e8f0;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* --- Typography --- */
.h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.sub { color: var(--muted); margin: .5rem 0 2.5rem; font-size: 1.05rem; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

/* --- Layout --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.logo { width: 40px; height: auto; }
.brand span { font-size: 0.92rem; }
.menu { display: flex; gap: 2rem; align-items: center; }
.menu a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
  transition: color 0.2s;
}
.menu a:hover { color: var(--primary); }
.menu .btn--nav-cta {
  background: var(--dark);
  color: var(--white);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}
.menu .btn--nav-cta:hover { background: #1f2937; color: var(--white); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: .3rem; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  gap: 0.4rem;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}
.btn--dark {
  background: var(--dark);
  color: var(--white);
}
.btn--dark:hover { background: #1f2937; transform: translateY(-1px); }
.btn--ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,99,235,0.04);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 55%, #fdf4ff 100%);
  text-align: center;
  padding: 7rem 1rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.09) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.07) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  border-radius: 50%;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }
.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239,68,68,0.10);
  color: #dc2626;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.clients {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 600;
}
.seo-intro { color: var(--muted); font-size: 0.93rem; margin: 1rem auto; max-width: 700px; line-height: 1.7; }
.cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* --- Channels Section --- */
.channels-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0 1rem;
}
.channels-headline {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.channels-headline strong {
  color: var(--primary);
  font-weight: 700;
}

/* --- Channel Marquee --- */
.channels-marquee {
  overflow: hidden;
  padding: 0.45rem 0;
}
.channels-marquee--reverse { margin-top: 0.5rem; }
.channels-section:hover .marquee-inner,
.channels-section:hover .marquee-inner--reverse {
  animation-play-state: paused;
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee-inner--reverse {
  animation-name: marqueeScrollReverse;
  animation-duration: 44s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.marquee-content {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding-right: 0.7rem;
  white-space: nowrap;
}
.marquee-content span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.28rem 0.85rem 0.28rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Colored dots */
.marquee-content span::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #2563eb;
}
.marquee-content span:nth-child(5n+2)::before { background: #7c3aed; }
.marquee-content span:nth-child(5n+3)::before { background: #059669; }
.marquee-content span:nth-child(5n+4)::before { background: #f59e0b; }
.marquee-content span:nth-child(5n)::before   { background: #dc2626; }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeScrollReverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* --- Cards (features, garanties, why) --- */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Icon box (features section) */
.card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #eef2ff;
  border-radius: 14px;
  margin: 0 auto 1.2rem;
  color: var(--primary);
}
.card .icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
}

/* Inline icon (why / garanties sections) */
.card-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 0.35rem;
  color: var(--primary);
}
.card-icon svg {
  width: 1.05em;
  height: 1.05em;
  stroke: currentColor;
  vertical-align: middle;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.card p { color: var(--muted); font-size: 0.9rem; }

/* Highlighted center card for features */
.card--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.card--dark p { color: rgba(255,255,255,0.65); }
.card--dark .icon { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 0.5rem; display: inline-block; }

/* --- Steps --- */
.steps { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin: 2.5rem 0; }
.step { flex: 1; min-width: 200px; text-align: center; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  margin-bottom: 0.8rem;
  font-weight: 700;
  font-size: 1rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* --- Tarifs / Pricing --- */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  gap: 0.4rem;
  flex-wrap: wrap;
  background: var(--bg-alt);
  padding: 0.35rem;
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tab-btn {
  background: transparent;
  border: none;
  padding: 0.52rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.pricing { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.p-card {
  background: var(--dark);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  color: var(--white);
  transition: transform 0.25s, box-shadow 0.25s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.25); }
.p-card .btn--primary {
  background: var(--white);
  color: var(--dark);
  box-shadow: none;
}
.p-card .btn--primary:hover { background: #e2e8f0; transform: none; }

.p-card--recommended {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.35);
}

.p-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 0.5rem;
}
.p-price { font-size: 2.3rem; font-weight: 800; margin: 0.8rem 0 0.3rem; color: var(--white); }
.p-feats {
  list-style: none;
  text-align: left;
  margin: 1rem 0 1.5rem;
}
.p-feats li {
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.p-feats li::before { content: "✓"; color: #60a5fa; font-weight: 700; flex-shrink: 0; }
.badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: .25rem .85rem;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --- Stats --- */
.stat { text-align: center; }
.stat h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.4rem; }
.stat p { color: var(--muted); font-size: 0.95rem; }

/* --- Comparatif --- */
.comparatif {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comparatif th, .comparatif td { border: 1px solid var(--border); padding: 0.85rem 1rem; text-align: center; font-size: 0.9rem; }
.comparatif th { background: var(--dark); color: var(--white); font-weight: 600; border-color: var(--dark); }
.comparatif tr:nth-child(even) td { background: var(--bg-alt); }

/* --- Avis Slider --- */
.avis-viewport {
  overflow: hidden;
  margin-top: 2rem;
  width: 100%;
}
.avis-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  cursor: grab;
  user-select: none;
  padding: 0.5rem 2rem 1.5rem;
  will-change: transform;
}
.avis-track.is-dragging { cursor: grabbing; }
.avis-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.avis-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.avis-stars {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.avis-card blockquote {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.avis-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.3rem;
}
.avis-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.avis-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.avis-verified {
  display: block;
  font-size: 0.73rem;
  color: #059669;
  font-weight: 600;
}

@media (max-width: 480px) {
  .avis-card { width: 280px; }
}

/* --- Movie Slider --- */
.movies-section { background: var(--bg); overflow: hidden; }
.movies-section .container { margin-bottom: 1.5rem; }
.movies-viewport {
  overflow: hidden;
  width: 100%;
}
.movies-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  cursor: grab;
  user-select: none;
  padding: 0.5rem 0 1rem;
  will-change: transform;
}
.movies-track.is-dragging { cursor: grabbing; }
.movie-card {
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.movie-card:hover { transform: scale(1.04); }
.movie-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.movie-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1.2rem 0.6rem 0.5rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* --- Garanties / Revendeur --- */
#garanties .card h3 { margin-bottom: .5rem; color: var(--primary); }
#revendeur-teaser { text-align: center; }
#revendeur-teaser p { margin: 1rem 0 2rem; color: var(--muted); }

/* --- FAQ --- */
.faq {
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 1.2rem 0;
  background: transparent;
}
.faq:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq p { margin-top: 0.8rem; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }
#faq .h2 { text-align: center; margin-bottom: 2.5rem; }

/* --- Contact --- */
.contact { text-align: center; }
.contact-list { list-style: none; margin-top: 1.5rem; }
.contact-list li { margin-bottom: 1rem; font-size: 1rem; }
.contact-list a { color: var(--primary); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

/* --- Footer --- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.foot { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer p { font-size: 0.88rem; color: var(--muted); }
.footer nav { margin-top: 0.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer nav a { font-size: 0.88rem; color: var(--muted); transition: color 0.2s; }
.footer nav a:hover { color: var(--text); }

/* --- WhatsApp Floating --- */
.whatsapp-float {
  position: fixed; bottom: 90px; right: 24px;
  background: #25d366; color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 1000;
  transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- Sticky Bar --- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}
.sticky-bar a { font-weight: 600; text-decoration: none; color: var(--text); font-size: 0.9rem; }

/* --- Shimmer --- */
.shimmer {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: hidden;
}
.shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer-move 3s infinite;
  pointer-events: none;
}
@keyframes shimmer-move {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}


/* =================================================
   Responsive
   ================================================= */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    position: absolute;
    top: 62px; right: 10px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    z-index: 999;
  }
  .menu.show { display: flex; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  html, body { font-size: 15px; overflow-x: hidden; }

  .hero { padding: 4rem 1rem 3.5rem; }
  .cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; text-align: center; }

  .grid-3 { grid-template-columns: 1fr; gap: 1.1rem; }
  .card { padding: 1.3rem; }
  .steps { flex-direction: column; gap: 1.5rem; }

  .pricing { grid-template-columns: 1fr; }
  .p-card { padding: 1.5rem; }

  .tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    max-height: 85vh;
    -webkit-overflow-scrolling: touch;
  }

  .testis { flex-direction: column; align-items: center; }
  .testi { max-width: 100%; }

  .movie-card { width: 130px; }
  .movie-card img { height: 195px; }

  .sticky-bar {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    text-align: center;
  }
  .sticky-bar a { width: 100%; }

  .whatsapp-float { bottom: 85px; right: 16px; width: 46px; height: 46px; font-size: 1.2rem; }

  .promo-popup { bottom: 10px; right: 10px; width: 240px; padding: 1rem; }
  .promo-popup h3 { font-size: 1.1rem; }
  .promo-popup p { font-size: 0.9rem; }

  .footer nav { flex-direction: column; gap: 0.5rem; }
  .comparatif { font-size: 0.82rem; }
  .comparatif th, .comparatif td { padding: 0.6rem 0.5rem; }

  #tarifs .container { padding-left: 0; padding-right: 0; overflow-x: hidden; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero { padding: 5rem 1.5rem; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
  .pricing { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
  .footer nav { flex-wrap: wrap; gap: 0.8rem; }
}

/* Hero badge & h1 fix */
.hero .badge-top {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto 1.5rem auto;
}
.hero .h1 {
  display: block;
  width: 100%;
  text-align: center;
}
.hero .h1.shimmer {
  display: block;
  width: 100%;
  text-align: center;
}
