/* ============================================================
   IPTVIA — site vitrine. Design system Netflix/Apple dark.
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --bg-2: #111114;
  --card: rgba(255, 255, 255, .04);
  --card-border: rgba(255, 255, 255, .08);
  --accent: #e50914;
  --accent-2: #ff2b36;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .62);
  --muted-2: rgba(255, 255, 255, .42);
  --radius: 16px;
  --maxw: 1180px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---- Glow / décor de fond ---- */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -5%, rgba(229, 9, 20, .18), transparent 70%),
    radial-gradient(40% 30% at 90% 10%, rgba(229, 9, 20, .08), transparent 70%);
}

/* ---- Header sticky ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 10, 10, .72);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.player-link { color: var(--text); border: 1px solid var(--card-border); padding: 7px 14px; border-radius: 10px; }
.nav-links a.player-link:hover { border-color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 11px; font-weight: 700; }
.nav-cta:hover { background: var(--accent-2); }
.burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.burger svg { width: 26px; height: 26px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px;
  padding: 14px 26px; border-radius: 13px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(229, 9, 20, .35); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: var(--card-border); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .3); }

/* ---- Headings ---- */
.eyebrow { display: inline-block; color: var(--accent-2); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---- Hero ---- */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  color: var(--muted); font-size: 14px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 0 4px rgba(56, 211, 159, .18); }

/* Phone mockup en CSS */
.phone { width: 290px; height: 590px; margin: 0 auto; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2a2a2e, #0d0d10); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow); position: relative; }
.phone::before { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #050505; border-radius: 16px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000;
  display: flex; flex-direction: column; }
.phone-screen .ps-top { padding: 40px 16px 8px; }
.ps-row { display: flex; gap: 8px; overflow: hidden; margin-bottom: 14px; }
.ps-poster { flex: 0 0 84px; height: 120px; border-radius: 8px;
  background: linear-gradient(135deg, #232328, #14141a); border: 1px solid rgba(255,255,255,.06); }
.ps-poster.red { background: linear-gradient(135deg, rgba(229,9,20,.6), #1a0a0c); }
.ps-title { height: 12px; width: 60%; background: rgba(255,255,255,.14); border-radius: 6px; margin: 0 16px 10px; }
.ps-hero { margin: 0 0 14px; height: 150px; background:
  linear-gradient(180deg, rgba(229,9,20,.35), rgba(0,0,0,.2)), linear-gradient(135deg,#26262c,#0e0e12); }

/* ---- Platforms strip ---- */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.plat { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border); font-weight: 600; font-size: 15px; }
.plat .ic { font-size: 22px; }

/* ---- Feature grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, border-color .2s, background .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(229, 9, 20, .35); background: rgba(255,255,255,.06); }
.card .ic { font-size: 30px; margin-bottom: 14px; display: block; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
/* Grille 4 juillet 2026 : 5 cartes (Gratuit + 1/3/6/12 mois) */
.pricing.pricing-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.price-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(229,9,20,.1), var(--card)); box-shadow: 0 20px 50px rgba(229,9,20,.18); }
.price-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.price-card .amount { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.price-card .amount small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price-card .save { color: #38d39f; font-size: 14px; font-weight: 600; margin-top: 4px; }
.price-card ul { list-style: none; margin: 22px 0; display: grid; gap: 11px; }
.price-card li { color: var(--muted); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.price-card li::before { content: '✓'; color: var(--accent-2); font-weight: 800; }
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---- Devices ---- */
.devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.device { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; text-align: center; }
.device .ic { font-size: 38px; margin-bottom: 12px; }
.device h3 { font-size: 16px; }
.device p { color: var(--muted-2); font-size: 13px; margin-top: 4px; }

/* ---- Download badges ---- */
.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.store-badge { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border); min-width: 210px; transition: border-color .2s, transform .15s; }
.store-badge:hover { border-color: var(--accent); transform: translateY(-2px); }
.store-badge .ic { font-size: 28px; }
.store-badge small { display: block; color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.store-badge b { font-size: 16px; font-weight: 700; }
.store-badge.soon { opacity: .55; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: #fff; cursor: pointer;
  padding: 20px 22px; font-size: 16.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: inherit; }
.faq-q .plus { color: var(--accent-2); font-size: 24px; transition: transform .25s; flex: 0 0 auto; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---- CTA band ---- */
.cta-band { text-align: center; background: linear-gradient(135deg, rgba(229,9,20,.16), rgba(255,255,255,.03));
  border: 1px solid var(--card-border); border-radius: 24px; padding: 56px 24px; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 28px; max-width: 520px; }

/* ---- Footer (style LinkySend : 4 colonnes, dark, séparateur rouge) ---- */
.footer { background: #0d0d0d; border-top: 1px solid var(--accent); margin-top: 90px; padding: 60px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.footer-top .brand { margin: 0; }
.footer-top p { color: #888; max-width: 360px; font-size: 14px; margin-top: 0; }
.footer-cols { display: grid; grid-template-columns: 1.1fr 1.1fr 1.4fr 1.3fr; gap: 36px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; color: #888; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-dl { display: grid; gap: 10px; }
.footer-dl .store-badge { min-width: 0; padding: 11px 16px; }
.footer-dl .store-badge .ic { font-size: 22px; }
.footer-dl .store-badge b { font-size: 14px; }
.footer-bottom { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; color: #888; font-size: 13px; }
.footer-bottom .fb-left { display: flex; align-items: center; gap: 12px; }
.footer-bottom .fb-left img { width: 22px; height: 22px; border-radius: 6px; }
.footer-bottom .fb-center { text-align: center; }
.footer-bottom .fb-right { display: flex; justify-content: flex-end; gap: 14px; }
.footer-bottom .fb-right a { color: #888; transition: color .2s; display: inline-flex; }
.footer-bottom .fb-right a:hover { color: var(--accent); }
.footer-bottom .fb-right svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom .fb-left { justify-content: center; }
  .footer-bottom .fb-right { justify-content: center; }
}
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---- Spacing ---- */
.sec { padding: 84px 0; }
.sec-sm { padding: 56px 0; }

/* ---- Legal / prose pages ---- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 8px; }
.prose .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--accent-2); }
.prose strong { color: #fff; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Contact form ---- */
.form { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.form label { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: block; }
.form input, .form textarea { width: 100%; background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 14px 16px; color: #fff; font-family: inherit; font-size: 15px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-btns, .hero-badge { justify-content: center; }
  .hero-visual { order: -1; }
  .grid-3, .pricing, .devices, .contact-cards { grid-template-columns: 1fr; }
  .devices { grid-template-columns: repeat(2, 1fr); }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(10,10,10,.98); border-bottom: 1px solid var(--card-border); padding: 16px 24px 24px;
    gap: 4px; transform: translateY(-120%); transition: transform .3s; margin-left: 0; }
  .nav-links a { padding: 14px 4px; font-size: 17px; }
  .nav-links a.player-link { text-align: center; margin-top: 8px; }
  .nav.open .nav-links { transform: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 520px) {
  .devices { grid-template-columns: 1fr; }
  .sec { padding: 60px 0; }
}
