/* ==========================================================================
   IPTV Québec Officiel - Canadian Red & White Theme
   Domain: iptvquebecofficiel.com
   Keyword Focus: IPTV Quebec
   ========================================================================== */

:root {
  --primary: #d81b2a;             /* Canadian Flag Red */
  --primary-dark: #991b1b;        /* Deep Red */
  --primary-light: #fef2f2;       /* Soft Red Tint */
  --accent: #ef4444;              /* Vibrant Red */
  --accent-gold: #f59e0b;         /* Promo Gold */
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebd56;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-light: #ffffff;            /* Pure Canadian White */
  --bg-alt: #fff5f5;              /* Light Red Warm Background */
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(216, 27, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(216, 27, 42, 0.12);
  --shadow-lg: 0 10px 25px rgba(216, 27, 42, 0.18);
  --shadow-glow: 0 0 25px rgba(216, 27, 42, 0.35);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease-in-out;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Sticky Top Promo Banner (Canadian Red & Gold)
   -------------------------------------------------------------------------- */
.sticky-promo-banner {
  background: linear-gradient(90deg, #b91c1c 0%, #d81b2a 50%, #991b1b 100%);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 3px 8px rgba(185, 28, 28, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 2px solid var(--white);
}

.sticky-promo-banner a {
  background: var(--white);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.sticky-promo-banner a:hover {
  background: var(--dark-bg);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 41px;
  z-index: 1000;
  border-bottom: 2px solid var(--primary);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo span.highlight {
  color: #ef4444;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #d81b2a 0%, #ef4444 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 0 12px rgba(216, 27, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ef4444;
}

.header-cta {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #16a34a 100%);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Breadcrumbs Component
   -------------------------------------------------------------------------- */
.breadcrumbs-bar {
  background-color: var(--bg-alt);
  border-bottom: 1px solid #fee2e2;
  padding: 12px 20px;
  font-size: 0.88rem;
}

.breadcrumbs-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumbs-container a {
  color: var(--text-muted);
}

.breadcrumbs-container a:hover {
  color: var(--primary);
}

.breadcrumbs-container span.separator {
  color: #fca5a5;
}

.breadcrumbs-container span.current {
  color: var(--primary-dark);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Layout Containers & Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
}

.section-dark {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  border: 1px solid #fecaca;
}

.section-dark .section-tag {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.section-dark .section-subtitle {
  color: #94a3b8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #16a34a 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-primary {
  background: linear-gradient(135deg, #d81b2a 0%, #b91c1c 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(216, 27, 42, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 27, 42, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Section 1: Hero Section (Canadian Red & White Theme)
   -------------------------------------------------------------------------- */
.hero-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b1e 100%);
  color: var(--text-light);
  padding: 80px 0 90px 0;
  position: relative;
  border-bottom: 3px solid var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(216, 27, 42, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span.highlight {
  background: linear-gradient(90deg, #ef4444 0%, #fca5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.trust-item strong {
  color: var(--white);
}

.hero-card-preview {
  background: var(--dark-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.hero-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--dark-border);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.2);
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Section 2: Pricing Section (Tarifs - Canadian Red Highlights)
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--white);
  border: 2px solid #fee2e2;
  border-radius: var(--radius-lg);
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

.popular-tag {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #d81b2a 0%, #b91c1c 100%);
  color: var(--white);
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
}

.pricing-header {
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #fee2e2;
  margin-bottom: 25px;
}

.pricing-plan-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 5px;
}

.pricing-price span.currency {
  font-size: 1.8rem;
}

.pricing-old-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 1.1rem;
  margin-right: 8px;
  font-weight: 600;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-main);
  border-bottom: 1px dashed #fee2e2;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: #d81b2a;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Section 3: GEO / AI Overview Direct Answer Block
   -------------------------------------------------------------------------- */
.ai-overview-box {
  background: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 20px 0 40px 0;
  box-shadow: var(--shadow-sm);
}

.ai-overview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 12px;
}

.ai-overview-body {
  font-size: 1.05rem;
  color: #7f1d1d;
  line-height: 1.65;
}

.ai-overview-body strong {
  color: #450a0a;
}

/* --------------------------------------------------------------------------
   Grids & Content Cards
   -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid #fee2e2;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.section-dark .card {
  background: var(--dark-card);
  border-color: var(--dark-border);
  color: var(--text-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  border: 1px solid #fca5a5;
}

.section-dark .card-icon {
  background: rgba(216, 27, 42, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .card-text {
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Comparison Table (Canadian Red Header)
   -------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #fee2e2;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--white);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #fee2e2;
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--dark-bg);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
}

.comparison-table th.highlight-col {
  background: var(--primary-dark);
}

.comparison-table tr:nth-child(even) {
  background: var(--bg-alt);
}

.comparison-table tr:hover {
  background: #fef2f2;
}

/* --------------------------------------------------------------------------
   FAQ Accordion (Section 24)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #fee2e2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  background: #fffafa;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px 24px;
}

/* --------------------------------------------------------------------------
   Blog Styles
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #fee2e2;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, #991b1b 0%, #d81b2a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-title a {
  color: var(--text-main);
}

.blog-title a:hover {
  color: var(--primary);
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 70px 0 30px 0;
  border-top: 3px solid var(--primary);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about p {
  font-size: 0.93rem;
  margin-top: 15px;
  line-height: 1.6;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: #ef4444;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 15px;
}

.payment-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge-tag {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive Layout Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid,
  .pricing-grid,
  .grid-3,
  .grid-4,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--dark-border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .sticky-promo-banner {
    font-size: 0.82rem;
    flex-direction: column;
    gap: 4px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
