/* =============================================
   Cover IPTV — Stylesheet
   Couleurs : #7C3AED (principal), #A855F7 (secondaire)
   Police : Inter (Google Fonts)
   ============================================= */

:root {
  --color-primary: #7C3AED;
  --color-primary-dark: #6D28D9;
  --color-secondary: #A855F7;
  --color-bg: #FFFFFF;
  --color-bg-light: #F9FAFB;
  --color-bg-section: #F3F4F6;
  --color-surface: #F9FAFB;
  --color-heading: #111827;
  --color-text: #111827;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --transition: 0.22s ease;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--color-text); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; }

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.3);
}
.btn.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

/* ---- Header / Nav ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  background-color: #3B0764;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a:hover { color: #C4B5FD; }
.nav-links a.active { color: #C4B5FD; font-weight: 600; }
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255,255,255,0.75);
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: #FFFFFF;
  color: #3B0764;
  border-color: #FFFFFF;
}
.btn-solid {
  display: inline-flex;
  align-items: center;
  background: #A855F7;
  color: #FFFFFF;
  border: 2px solid #A855F7;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-solid:hover {
  background: #9333EA;
  border-color: #9333EA;
  color: #FFFFFF;
}

/* ---- Burger button (mobile) ---- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}
.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.burger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ---- Mobile nav overlay ---- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #3B0764;
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: #FFFFFF;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active { color: #C4B5FD; }
.mobile-nav-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.mobile-nav-close:hover { opacity: 1; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 50%, #F9FAFB 100%);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.1);
  color: var(--color-primary);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(124,58,237,0.2);
}
.hero h1 {
  margin-bottom: 1.25rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2.25rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ---- Section base ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-light); }
.section-dark { background: var(--color-bg-section); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; }
.section-tag {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ---- Feature cards (Avantages) ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(124,58,237,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.feature-card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { border-color: var(--color-secondary); box-shadow: var(--shadow); }
.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.pricing-screens {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.35rem;
  background: rgba(124,58,237,0.07);
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
  width: fit-content;
}
.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.pricing-price sup { font-size: 1.2rem; vertical-align: super; }
.pricing-price span { font-size: 1rem; color: var(--color-text-muted); font-weight: 500; }
.pricing-total { font-size: 0.85rem; color: var(--color-text-muted); }
.pricing-features {
  list-style: none;
  padding: 0;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Compatibility ---- */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.compat-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.compat-item:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.compat-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.compat-item span { font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted); }

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.review-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.review-stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: 0.75rem; }
.review-text { color: var(--color-text-muted); font-size: 0.95rem; font-style: italic; margin-bottom: 1rem; }
.review-author { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.8rem; color: var(--color-text-muted); }
.rating-summary {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(168,85,247,0.05));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,58,237,0.12);
}
.rating-big { font-size: 4rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.rating-stars-big { font-size: 1.6rem; color: #F59E0B; margin: 0.5rem 0; }
.rating-count { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--color-white);
  border: none;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition);
  font-family: inherit;
}
.faq-question:hover { background: var(--color-bg-light); }
.faq-question[aria-expanded="true"] { background: rgba(124,58,237,0.04); color: var(--color-primary); }
.faq-chevron {
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--color-primary);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}
.faq-answer.open { display: block; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 4.5rem 0;
  text-align: center;
  color: white;
}
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.btn-white {
  background: white;
  color: var(--color-primary);
  border-color: white;
}
.btn-white:hover {
  background: #F5F3FF;
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: white; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  background: #111827;
  color: #9CA3AF;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .site-logo { color: white; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #9CA3AF; font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1F2937;
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #9CA3AF; }
.footer-legal a:hover { color: white; }

/* ---- Breadcrumb ---- */
.breadcrumb-nav { padding: 0.9rem 0; background: var(--color-bg-light); border-bottom: 1px solid var(--color-border); }
.breadcrumb { list-style: none; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; color: var(--color-text-muted); }
.breadcrumb li a { color: var(--color-primary); }
.breadcrumb li a:hover { text-decoration: underline; }
.breadcrumb li span { color: var(--color-text-muted); }

/* ---- Table des matières ---- */
.toc {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.toc-title { font-weight: 700; font-size: 1rem; margin-bottom: 1rem; color: var(--color-text); }
.toc ol { margin: 0; }
.toc li { font-size: 0.95rem; margin-bottom: 0.4rem; }
.toc a { color: var(--color-primary); }
.toc a:hover { text-decoration: underline; }

/* ---- Article / Blog ---- */
.article-header { padding: 3.5rem 0 2.5rem; background: var(--color-bg-light); }
.article-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.article-tag {
  background: rgba(124,58,237,0.1);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.article-date { font-size: 0.9rem; color: var(--color-text-muted); }
.article-body { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.article-body h2 { margin: 2.5rem 0 1rem; }
.article-body h3 { margin: 1.75rem 0 0.75rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { margin-bottom: 1.2rem; }
.article-category {
  display: inline-block;
  background: rgba(124,58,237,0.1);
  color: var(--color-primary);
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.article-intro {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 720px;
  margin-top: 1rem;
}

/* ---- Verdict / Note ---- */
.verdict-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(168,85,247,0.05));
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}
.verdict-score { font-size: 3.5rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.verdict-stars { font-size: 1.4rem; color: #F59E0B; margin: 0.5rem 0; }
.verdict-label { font-size: 1.1rem; font-weight: 600; }

/* ---- Pros/Cons ---- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.pros, .cons {
  border-radius: var(--radius);
  padding: 1.5rem;
}
.pros { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); }
.cons { background: rgba(239,68,68,0.05); border: 1px solid rgba(239,68,68,0.15); }
.pros h4 { color: #059669; margin-bottom: 1rem; }
.cons h4 { color: #DC2626; margin-bottom: 1rem; }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros ul li::before { content: "✓ "; color: #059669; font-weight: 700; }
.cons ul li::before { content: "✗ "; color: #DC2626; font-weight: 700; }

/* ---- HowTo Steps ---- */
.howto-steps { counter-reset: step; list-style: none; padding: 0; }
.howto-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2px;
}
.step-content h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.step-content p { color: var(--color-text-muted); font-size: 0.96rem; margin: 0; }

/* =============================================
   RESPONSIVE — Mobile First
   ============================================= */

/* Global overflow guard */
html, body { overflow-x: hidden; }

/* Images responsive by default */
img { max-width: 100%; height: auto; }

/* Touch-target minimum */
.btn {
  min-height: 48px;
}
.btn-outline, .btn-solid {
  min-height: 44px;
}
.faq-question {
  min-height: 52px;
}

/* ---- Mobile nav overlay (slide from right) ---- */
/* Replace display:none/flex toggle with transform for animation */
.mobile-nav {
  display: flex;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 3rem;
  gap: 0;
  overflow-y: auto;
}
.mobile-nav.open {
  pointer-events: auto;
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.3s ease, visibility 0s linear 0s;
}

/* Mobile nav inner list */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
}
.mobile-nav ul li a {
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.mobile-nav ul li a:hover,
.mobile-nav ul li a.active { color: #C4B5FD; }

/* Mobile nav CTA buttons */
.mobile-nav-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
  margin-top: 2.5rem;
}
.mobile-nav .btn-outline,
.mobile-nav .btn-solid {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  font-size: 1rem;
}

/* Scroll lock when menu open */
body.menu-open { overflow: hidden; }

/* ---- Footer brand logo ---- */
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-brand a { display: inline-block; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { font-size: 0.9rem; line-height: 1.65; color: #9CA3AF; margin: 0; }

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: repeat(2, 1fr); }
  .compat-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .reviews-grid  { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr 1fr; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {

  /* Nav bar */
  nav { padding: 0 1rem; }
  .nav-links  { display: none; }
  .nav-buttons { display: none; }
  .burger-btn { display: flex; }

  /* Sections spacing */
  .section { padding: 2.5rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .container { padding: 0 1rem; }

  /* Hero split (index.html 2-col hero) */
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0 2rem;
  }
  .hero-visual { display: none; }
  .hero-text { text-align: center; }
  .hero-text .hero-actions { justify-content: center; }

  /* CTA actions: stack & full-width */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .hero-actions a { width: 100%; justify-content: center; text-align: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; max-width: 340px; margin: 0 auto; justify-content: center; }

  /* Grids → 1 colonne */
  .features-grid,
  .pricing-grid,
  .reviews-grid,
  .reviews-grid-4,
  .pros-cons { grid-template-columns: 1fr; }

  /* Pricing cards: centred */
  .pricing-card { max-width: 400px; margin: 0 auto; width: 100%; }
  .pricing-card.featured { order: -1; }

  /* Compatibilité → 3 colonnes */
  .compat-grid { grid-template-columns: repeat(3, 1fr); }

  /* Reviews */
  .review-card { padding: 1.25rem; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-legal { flex-direction: column; gap: 0.5rem; text-align: center; }
  .site-footer { padding: 2.5rem 0 1.5rem; }

  /* Hero stats */
  .hero-stats { gap: 1rem; }
  .hero-stat-value { font-size: 1.5rem; }

  /* CTA banner */
  .cta-banner { padding: 2.5rem 0; }

  /* Article / Blog */
  .article-body { padding: 1.5rem 1rem; }
  .article-header { padding: 1.75rem 0 1.25rem; }
  .article-body h2,
  .article-header h2 { font-size: clamp(1.15rem, 4.5vw, 1.45rem); margin: 1.75rem 0 0.75rem; }
  .breadcrumb li,
  .breadcrumb-nav { font-size: 0.8rem; }
  .toc { padding: 1rem 1.25rem; }
  .article-meta { gap: 0.5rem; }
  .article-intro { font-size: 1rem; }

  /* Steps */
  .howto-step { gap: 0.75rem; }
  .step-num { width: 34px; height: 34px; font-size: 0.9rem; flex-shrink: 0; }

  /* Tables */
  .compare-table { font-size: 0.8rem; }
  .compare-table td,
  .compare-table th { padding: 0.55rem 0.4rem; }

  /* Misc */
  body { font-size: 15px; }
  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}

/* ---- Petit mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  nav { height: 62px; }
  .nav-logo img { height: 40px; }
  .compat-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-price { font-size: 2.4rem; }
  .hero-stat-value { font-size: 1.4rem; }
  .footer-grid { gap: 1.25rem; }
  .article-body { padding: 1.25rem 0.85rem; }
}

/* ---- Bouton WhatsApp flottant ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background-color: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
  display: block;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
