/* ============================================================
   Diablo 8K — Shared CSS
   Theme: Black & Red with Yellow accent
   ============================================================ */

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

:root {
  --bg: #0a0a0a;
  --bg2: #0f0505;
  --card: #141010;
  --card2: #1a0a0a;
  --border: rgba(220, 50, 50, 0.15);
  --primary: #cc2020;
  --primary-light: #ff4444;
  --primary-dark: #991515;
  --accent: #f5d020;
  --accent-light: #fde68a;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.5);
  --muted2: rgba(255,255,255,0.3);
  --radius: 1rem;
  --header-height: 68px;
}

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

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { font-size: 1rem; color: var(--muted); }
a { color: var(--primary-light); }

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, #e53030, #ff6b6b, #f5d020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
section.alt { background: rgba(220, 50, 50, 0.03); }

/* ── HERO ── */
.hero {
  padding: calc(var(--header-height) + 5rem) 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(220,50,50,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(220,50,50,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(220,50,50,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(220,50,50,0.12); border: 1px solid rgba(220,50,50,0.25);
  color: var(--primary-light); font-size: .8rem; font-weight: 700;
  padding: .4rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem;
  letter-spacing: .03em; text-transform: uppercase;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, #cc2020, #e53030);
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: .85rem 2rem; border-radius: .75rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .2s; box-shadow: 0 0 24px rgba(220,50,50,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(220,50,50,0.5); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(220,50,50,0.1); border: 1px solid rgba(220,50,50,0.3);
  color: rgba(255,255,255,0.88); font-weight: 600; font-size: 1rem;
  padding: .85rem 2rem; border-radius: .75rem;
  text-decoration: none; cursor: pointer; transition: all .2s;
}
.btn-ghost:hover { background: rgba(220,50,50,0.2); border-color: rgba(220,50,50,0.5); }

/* ── CARDS ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all .3s;
}
.card:hover { border-color: rgba(220,50,50,0.35); transform: translateY(-3px); }

/* ── FEATURES GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-icon {
  width: 48px; height: 48px; border-radius: .75rem;
  background: rgba(220,50,50,0.15); border: 1px solid rgba(220,50,50,0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: var(--primary-light);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: .5rem; font-size: 1.1rem; color: #fff; }

/* ── SECTION HEAD ── */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { margin-top: 1rem; }

/* ── HERO BADGES ── */
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; padding: .35rem .85rem; border-radius: 9999px;
  border: 1px solid; white-space: nowrap;
}
.hero-badge svg { width: 13px; height: 13px; }
.hero-badge.green { color: #4ade80; border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.08); }
.hero-badge.blue  { color: #60a5fa; border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.08); }
.hero-badge.gold  { color: var(--accent); border-color: rgba(245,208,32,0.3); background: rgba(245,208,32,0.08); }
.hero-badge.purple { color: #f87171; border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08); }
.hero-badge.cyan  { color: #67e8f9; border-color: rgba(103,232,249,0.3); background: rgba(103,232,249,0.08); }
.hero-badge.red   { color: var(--primary-light); border-color: rgba(220,50,50,0.3); background: rgba(220,50,50,0.08); }

/* ── STATS ── */
.stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 2.5rem;
}
.stat-box {
  text-align: center; padding: 1rem 1.5rem;
  background: rgba(220,50,50,0.08); border: 1px solid rgba(220,50,50,0.15);
  border-radius: .75rem; min-width: 90px;
}
.stat-box .val { font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat-box .lbl { font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-top: .2rem; }

/* ── COUNTDOWN ── */
.countdown-bar {
  display: inline-flex; align-items: center; gap: .75rem;
  background: rgba(220,50,50,0.1); border: 1px solid rgba(220,50,50,0.2);
  padding: .5rem 1.25rem; border-radius: 9999px; margin: 1.5rem 0;
}
.countdown-label { font-size: .8rem; font-weight: 700; color: var(--primary-light); }
.countdown-digits { display: flex; align-items: center; gap: .3rem; }
.cd {
  font-size: .95rem; font-weight: 800; color: #fff;
  background: rgba(220,50,50,0.2); border-radius: .35rem; padding: .15rem .4rem; min-width: 2ch; text-align: center;
}

/* ── HERO CTA ── */
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ── TRUST / PRICING CARDS ── */
.trust-card { text-align: center; }
.trust-card.gold-card { border-color: rgba(245,208,32,0.25); }
.trust-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.5rem; border-radius: .6rem; font-weight: 700; font-size: .9rem; text-decoration: none; margin-top: 1rem; transition: all .2s; }
.trust-btn.gold { background: rgba(245,208,32,0.15); border: 1px solid rgba(245,208,32,0.3); color: var(--accent); }
.trust-btn.gold:hover { background: rgba(245,208,32,0.25); }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.plan-card { position: relative; border-radius: var(--radius); padding: 2rem 1.5rem; background: var(--card); border: 1px solid var(--border); transition: all .3s; text-align: center; }
.plan-card.featured { border-color: rgba(220,50,50,0.4); box-shadow: 0 0 40px rgba(220,50,50,0.15); }
.plan-card:hover { transform: translateY(-4px); border-color: rgba(220,50,50,0.35); }
.plan-price { font-size: 2.5rem; font-weight: 800; color: #fff; }
.plan-price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary-light); }
.plan-features { list-style: none; text-align: left; margin: 1.5rem 0; display: flex; flex-direction: column; gap: .6rem; }
.plan-features li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.plan-features li::before { content: "✓"; color: var(--primary-light); font-weight: 700; }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#cc2020,#e53030); color:#fff; font-size:.72rem; font-weight:800; padding:.3rem .9rem; border-radius:9999px; white-space:nowrap; }

/* ── FAQ ── */
.faq-grid { display: flex; flex-direction: column; gap: .75rem; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: rgba(220,50,50,0.3); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer; text-align: left; color: #fff; font-size: 1rem; font-weight: 700; font-family: inherit; }
.faq-q .faq-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(220,50,50,0.15); border: 1px solid rgba(220,50,50,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .3s; }
.faq-q .faq-icon svg { width: 12px; height: 12px; stroke: var(--primary-light); transition: transform .3s; }
.faq-item.open .faq-q .faq-icon { background: rgba(220,50,50,0.25); }
.faq-item.open .faq-q .faq-icon svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 1.5rem 1.25rem; color: var(--muted); font-size: .95rem; }

/* ── MODAL ── */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.75); z-index:9999; align-items:center; justify-content:center; padding:1rem; }
.modal-overlay.open { display:flex; }
.modal-box { position:relative; background:#140808; border:1px solid rgba(220,50,50,0.25); border-radius:1.25rem; padding:2rem; width:100%; max-width:480px; max-height:90vh; overflow-y:auto; }
.modal-close { position:absolute; top:1rem; right:1rem; background:rgba(220,50,50,0.12); border:1px solid rgba(220,50,50,0.2); color:#fff; width:32px; height:32px; border-radius:50%; cursor:pointer; font-size:1rem; display:flex; align-items:center; justify-content:center; }
.modal-badge { display:inline-flex; align-items:center; background:rgba(220,50,50,0.12); border:1px solid rgba(220,50,50,0.2); color:var(--primary-light); font-size:.75rem; font-weight:700; padding:.3rem .8rem; border-radius:9999px; margin-bottom:.75rem; }
.modal-title { font-size:1.5rem; font-weight:800; margin-bottom:.5rem; }
.modal-sub { color:var(--muted); font-size:.875rem; margin-bottom:1.5rem; }
.modal-form { display:flex; flex-direction:column; gap:.75rem; }
.modal-input { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:.6rem; padding:.75rem 1rem; color:#fff; font-size:.95rem; font-family:inherit; width:100%; outline:none; transition:border-color .2s; }
.modal-input:focus { border-color:rgba(220,50,50,0.4); }
.modal-select { cursor:pointer; appearance:none; }

/* ── FOOTER ── */
footer { background:#080404; border-top:1px solid var(--border); padding:4rem 0 2rem; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:3rem; margin-bottom:3rem; }
.footer-brand .logo { display:flex; align-items:center; gap:10px; text-decoration:none; margin-bottom:1rem; }
.logo-icon { width:40px; height:40px; }
.logo-brand-name { font-family:Outfit,sans-serif; font-weight:800; font-size:1.15rem; }
.logo-8k { font-size:.75rem; color:var(--accent); }
footer p { font-size:.875rem; color:var(--muted); margin-bottom:1rem; }
.footer-socials { display:flex; gap:.75rem; margin-top:1rem; }
.social-btn { width:38px; height:38px; border-radius:.6rem; display:flex; align-items:center; justify-content:center; transition:all .2s; }
.social-btn:hover { transform:scale(1.1); }
.footer-col h3 { font-size:.875rem; font-weight:700; color:rgba(255,255,255,0.5); text-transform:uppercase; letter-spacing:.08em; margin-bottom:1rem; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:.6rem; }
.footer-col a { color:var(--muted); text-decoration:none; font-size:.875rem; transition:color .2s; }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding-top:2rem; border-top:1px solid var(--border); }
.footer-bottom p { font-size:.75rem; color:var(--muted2); margin:0; }
.footer-bottom-right { display:flex; align-items:center; gap:.75rem; }
.footer-payment-logos { display:flex; gap:.5rem; flex-wrap:wrap; }
.pay-logo { width:46px; height:30px; border-radius:.35rem; overflow:hidden; }

/* ── LANG SWITCHER ── */
.lang-float { position:fixed; bottom:1.5rem; left:1.5rem; z-index:199; }
.ls-widget { position:relative; }
.ls-toggle { display:flex; align-items:center; gap:.4rem; background:rgba(15,5,5,0.9); border:1px solid rgba(220,50,50,0.2); color:#fff; border-radius:.6rem; padding:.45rem .75rem; cursor:pointer; font-size:.8rem; font-weight:700; font-family:inherit; backdrop-filter:blur(8px); transition:all .2s; }
.ls-toggle:hover { border-color:rgba(220,50,50,0.4); }
.ls-menu { display:none; position:absolute; bottom:calc(100% + .5rem); left:0; background:#140808; border:1px solid rgba(220,50,50,0.2); border-radius:.75rem; overflow:hidden; min-width:160px; box-shadow:0 8px 32px rgba(0,0,0,0.5); }
.ls-menu.open { display:block; }
.ls-option { display:block; padding:.65rem 1rem; font-size:.85rem; color:var(--muted); text-decoration:none; transition:all .2s; }
.ls-option:hover, .ls-option.active { background:rgba(220,50,50,0.12); color:#fff; }

/* ── CHANNELS ── */
.channels-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; }
.channel-card { background:var(--card); border:1px solid var(--border); border-radius:.85rem; padding:1rem; display:flex; align-items:center; gap:.75rem; transition:all .2s; }
.channel-card:hover { border-color:rgba(220,50,50,0.3); }
.channel-flag { font-size:1.5rem; }
.channel-info h4 { font-size:.875rem; font-weight:700; }
.channel-info p { font-size:.75rem; color:var(--muted); }

/* ── TUTORIAL STEPS ── */
.steps-list { display:flex; flex-direction:column; gap:1.5rem; max-width:760px; margin:0 auto; }
.step-item { display:flex; gap:1.25rem; align-items:flex-start; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; }
.step-num { width:40px; height:40px; border-radius:50%; background:rgba(220,50,50,0.15); border:1px solid rgba(220,50,50,0.25); color:var(--primary-light); font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* ── CONTACT ── */
.contact-form { max-width:600px; margin:0 auto; display:flex; flex-direction:column; gap:1rem; }
.form-input { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:.6rem; padding:.75rem 1rem; color:#fff; font-size:.95rem; font-family:inherit; outline:none; transition:border-color .2s; }
.form-input:focus { border-color:rgba(220,50,50,0.4); }
textarea.form-input { resize:vertical; min-height:140px; }

/* ── ANIMATIONS ── */
@keyframes fadeup { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.animate-fadeup { animation: fadeup .7s ease both; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

/* ── SITE LOGO BG (original) ── */
.site-logo-bg { display:none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 3.5rem 0; }
  .hero { padding: calc(var(--header-height) + 3rem) 0 3rem; min-height: auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ── MOVIE CAROUSEL FALLBACK ── */
.movie-poster img {
  background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 50%, #1a0505 100%);
}
.movie-poster img[src=""] , .movie-poster img:not([src]) {
  min-height: 220px;
  display: block;
}

/* ── ICON SIZE FIXES ── */
/* SVGs inside feature-icon, step-icon, tivi-check must be small */
.feature-icon svg { width: 22px !important; height: 22px !important; flex-shrink: 0; }
.step-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(220,50,50,0.15); border: 1px solid rgba(220,50,50,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary-light); }
.step-icon svg { width: 20px !important; height: 20px !important; }
.tivi-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; }
.tivi-check svg { width: 14px !important; height: 14px !important; }
/* Social btn icons */
.social-btn svg { width: 16px !important; height: 16px !important; }
/* Hero badge icons */
.hero-badge svg { width: 13px !important; height: 13px !important; flex-shrink: 0; }
/* WhatsApp float */
a[aria-label="WhatsApp Support"] svg, a[aria-label="Support WhatsApp"] svg { width: 26px !important; height: 26px !important; }
/* Secure badge svg */
.secure-badge svg { width: 16px !important; height: 16px !important; }
/* Faq icon */
.faq-icon svg { width: 12px !important; height: 12px !important; }
/* Trust card btn icons */
.trust-btn svg { width: 16px !important; height: 16px !important; }
/* Footer logo */
.logo-icon img { height: 40px; width: auto; display: block; object-fit: contain; }

/* ── TIVI PLAN CSS ── */
.tivi-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.tivi-plan-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; position: relative; display: flex; flex-direction: column; transition: all .3s; }
.tivi-plan-card:hover { border-color: rgba(220,50,50,0.3); transform: translateY(-3px); }
.tivi-plan-popular { border-color: rgba(220,50,50,0.4); box-shadow: 0 0 40px rgba(220,50,50,0.12); }
.tivi-plan-badge { display: inline-flex; align-items: center; background: rgba(220,50,50,0.12); border: 1px solid rgba(220,50,50,0.2); color: var(--primary-light); font-size: .7rem; font-weight: 800; padding: .25rem .7rem; border-radius: 9999px; margin-bottom: 1rem; width: fit-content; }
.tivi-badge-value { background: rgba(245,208,32,0.12); border-color: rgba(245,208,32,0.25); color: var(--accent); }
.tivi-badge-hot { background: rgba(220,50,50,0.2); border-color: rgba(220,50,50,0.35); color: #ff6666; }
.tivi-plan-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.tivi-plan-price-wrap { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .5rem; }
.tivi-plan-price { font-size: 2.4rem; font-weight: 800; color: #fff; }
.tivi-plan-period { font-size: .9rem; color: var(--muted); }
.tivi-plan-gift { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.tivi-plan-features { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.5rem; flex: 1; }
.tivi-plan-features li { display: flex; align-items: center; gap: .6rem; font-size: .875rem; color: var(--muted); }
.tivi-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(220,50,50,0.15); border: 1px solid rgba(220,50,50,0.2); color: var(--primary-light); flex-shrink: 0; }
.tivi-check svg { width: 10px !important; height: 10px !important; }
.tivi-adult-row { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1rem; font-size: .78rem; color: var(--muted); }
.tivi-adult-row input { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.tivi-adult-row label span { font-size: .7rem; display: block; }
.tivi-plan-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: .85rem; border-radius: .7rem; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; font-family: inherit; transition: all .2s; }
.tivi-btn-primary { background: linear-gradient(135deg,#cc2020,#e53030); color: #fff; box-shadow: 0 4px 20px rgba(220,50,50,0.3); }
.tivi-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(220,50,50,0.45); }
.pricing-secure { margin-top: 2rem; display: flex; justify-content: center; }
.secure-badge { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 9999px; padding: .5rem 1.25rem; font-size: .8rem; color: var(--muted); }
/* Step items */
.step-item { display: flex; gap: 1.25rem; }
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.step-content p { font-size: .9rem; }

/* ══════════════════════════════════════════════
   TITRE ANIMATIONS — Diablo 8K
   ══════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes titleReveal {
  0%   { opacity: 0; transform: translateY(32px) skewY(1.5deg); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) skewY(0); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(220,50,50,0.0); }
  50%       { text-shadow: 0 0 40px rgba(220,50,50,0.35), 0 0 80px rgba(245,208,32,0.15); }
}

@keyframes underlineSlide {
  0%   { width: 0; opacity: 0; }
  100% { width: 100%; opacity: 1; }
}

@keyframes letterFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}

/* ── H1 hero : reveal + glow continu ── */
h1 {
  animation: titleReveal 0.9s cubic-bezier(0.22,1,0.36,1) both, glowPulse 4s ease-in-out 1.2s infinite;
}

/* ── H2 sections : reveal au scroll via IntersectionObserver ── */
h2 {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
h2.title-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── .gradient-text : dégradé animé ── */
.gradient-text {
  background: linear-gradient(135deg, #e53030, #ff6b6b, #f5d020, #ff4444, #e53030);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

/* ── Ligne rouge sous les H2 visibles ── */
h2.title-visible::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #e53030, #f5d020, transparent);
  border-radius: 2px;
  margin-top: 8px;
  animation: underlineSlide 0.6s ease 0.3s both;
}

/* ── H3 : slide léger ── */
h3 {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
h3.title-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Sur les pages sans JS ou pour a11y ── */
@media (prefers-reduced-motion: reduce) {
  h1, h2, h3, .gradient-text {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ══════════════════════════════════════════════
   CORRECTIFS GLOBAUX ICÔNES & FAQ — v5
   ══════════════════════════════════════════════ */

/* ── Force toutes les SVG orphelines à une taille raisonnable ── */
svg {
  max-width: 100%;
  max-height: 100%;
  overflow: visible;
}

/* Conteneurs d'icônes : empêche le débordement */
.feature-icon,
.step-icon,
.device-icon,
.tivi-check,
.faq-chevron,
.faq-num,
.trust-icon,
.card-icon {
  flex-shrink: 0;
  overflow: hidden;
}

/* SVG dans TOUS les conteneurs d'icônes — taille fixe impérative */
.feature-icon svg,
.step-icon svg,
.device-icon svg,
.faq-chevron svg,
.trust-icon svg,
.card-icon svg,
.footer-socials svg,
.secure-badge svg,
.btn-primary svg,
.btn-ghost svg,
.tivi-plan-btn svg,
.hero-badge svg,
.countdown-bar svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  display: block;
  flex-shrink: 0;
}

/* Exceptions légitimement plus grands */
.whatsapp-float svg { width: 26px !important; height: 26px !important; }
.social-btn svg     { width: 16px !important; height: 16px !important; }
.tivi-check svg     { width: 11px !important; height: 11px !important; }
.faq-icon svg       { width: 12px !important; height: 12px !important; }

/* ── FAQ — support des deux variantes de markup ── */

/* Variante A : .faq-q (bouton principal) */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
}

/* Variante B : .faq-btn (markup avec faq-num + faq-chevron) */
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
}
.faq-btn .faq-q {
  flex: 1;
  padding: 0;
  font-size: .95rem;
  display: block;
}
.faq-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220,50,50,0.15);
  border: 1px solid rgba(220,50,50,0.25);
  color: var(--primary-light);
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}
.faq-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220,50,50,0.1);
  border: 1px solid rgba(220,50,50,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s ease, background .2s;
  margin-left: auto;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: rgba(220,50,50,0.25);
}
.faq-chevron svg {
  width: 13px !important;
  height: 13px !important;
  stroke: var(--primary-light);
  transition: none;
}

/* Answer panel — slide via max-height */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 1.4rem;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.4rem 1.2rem;
}
.faq-answer p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Hover states */
.faq-item:hover {
  border-color: rgba(220,50,50,0.25);
}
.faq-item.open {
  border-color: rgba(220,50,50,0.35);
}

/* ══════════════════════════════════════════════
   CORRECTIFS FINAUX v6 — device-card, step-card, parallax
   ══════════════════════════════════════════════ */

/* ── PARALLAX BG — taille correcte, centré ── */
.diablo-parallax-bg {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 420px !important;
  height: 420px !important;
  max-width: 40vw !important;
  max-height: 40vw !important;
  object-fit: contain !important;
  opacity: 0.055 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  filter: blur(0.5px) !important;
}

/* ── DEVICES GRID — grille 3-4 colonnes ── */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .9rem;
  transition: all .25s;
  cursor: default;
}
.device-card:hover {
  border-color: rgba(220,50,50,0.3);
  transform: translateY(-3px);
}

/* ── DEVICE ICON — taille stricte ── */
.device-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: .75rem;
  background: rgba(220,50,50,0.12);
  border: 1px solid rgba(220,50,50,0.2);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0;
  color: var(--primary-light);
}
.device-icon svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block !important;
  flex-shrink: 0;
}

.device-name {
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
}
.device-sub {
  font-size: .72rem;
  color: var(--muted);
}

/* ── STEPS GRID ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.step-card p {
  font-size: .875rem;
  color: var(--muted);
  margin: 0;
}

/* step-num + step-icon row */
.step-card > div:first-child {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.step-num {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50%;
  background: rgba(220,50,50,0.15);
  border: 1px solid rgba(220,50,50,0.25);
  color: var(--primary-light);
  font-weight: 800;
  font-size: .8rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}

/* ── STEP ICON — taille stricte ── */
.step-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: .65rem;
  background: rgba(220,50,50,0.1);
  border: 1px solid rgba(220,50,50,0.18);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0;
  color: var(--primary-light);
}
.step-icon svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block !important;
}

/* Responsive */
@media (max-width: 640px) {
  .devices-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .75rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════
   CORRECTIFS SVG & TESTIMONIALS — v7 final
   ══════════════════════════════════════════════ */

/* ── Règle atomique : aucun SVG ne peut dépasser son conteneur ── */
svg {
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
  flex-shrink: 0;
}

/* ── Stars / étoiles ── */
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: .75rem;
}
.stars svg {
  width: 16px !important;
  height: 16px !important;
  fill: #f5d020;
  stroke: none;
}
.stars svg.empty {
  fill: rgba(245,208,32,0.25);
}

/* ── Testimonials grid ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.testimonial-card blockquote {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin: 0;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
}
.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(220,50,50,0.2);
  border: 1px solid rgba(220,50,50,0.3);
  color: var(--primary-light);
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}
.author-name {
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
}
.author-region {
  font-size: .75rem;
  color: var(--muted);
}
