/* Sphely IPTV — site vitrine. Polices système uniquement (aucune ressource externe). */
:root {
  --bg: #07090e;
  --bg-2: #0d1018;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f4f8;
  --dim: #b7bfd3;
  --mute: #8a93a8;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --pink: #f472b6;
  --radius: 18px;
  --wrap: 1180px;
  --font: ui-sans-serif, -apple-system, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: ui-sans-serif, -apple-system, 'Segoe UI Variable Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c4b5fd; }
:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-size: 0.92em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -60px; padding: 10px 14px; border-radius: 10px; background: var(--violet); color: #fff; z-index: 20; }
.skip:focus { top: 12px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 9, 14, 0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 9px; }
.brand b { background: linear-gradient(90deg, var(--violet-2), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a, .lang { color: var(--dim); text-decoration: none; font-size: 15px; }
.nav a:hover, .lang:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
@media (max-width: 760px) { .nav { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none;
  background: linear-gradient(90deg, var(--violet), #c026d3 60%, #ec4899); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35); }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* Accueil */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 40px; }
.glow { position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background: radial-gradient(700px 480px at 18% 18%, rgba(139, 92, 246, 0.42), transparent 70%), radial-gradient(640px 460px at 88% 30%, rgba(236, 72, 153, 0.22), transparent 70%), radial-gradient(520px 380px at 60% 70%, rgba(59, 130, 246, 0.14), transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--violet-2); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--violet-2), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 34em; }
.price { color: var(--mute); font-size: 14px; margin-top: 14px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 14px; background: #000; border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 19px; line-height: 1.1; min-width: 190px; }
.store:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.store small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.85; }
.store-ico { width: 28px; height: 28px; flex: none; }
.hero-visual { position: relative; min-height: 360px; }
.device { margin: 0; padding: 8px; border-radius: 22px; background: linear-gradient(160deg, #262a36, #0c0e14 55%, #1b1e27);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 90px rgba(139, 92, 246, 0.22); }
.device img { border-radius: 15px; }
.device.tablet { width: 100%; }
.hero-visual .phone { position: absolute; width: 27%; right: -2%; bottom: -12%; border-radius: 30px; padding: 6px; }
.hero-visual .phone img { border-radius: 25px; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual .phone { width: 30%; right: 2%; }
}

.notice { margin-top: 36px; }
.notice p { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 18px 22px; border-radius: var(--radius); background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(167, 139, 250, 0.25); color: var(--dim); font-size: 15px; }
.notice .ico { flex: none; width: 24px; height: 24px; color: var(--violet-2); margin-top: 1px; }

.section { padding: clamp(56px, 8vw, 96px) 0 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.compat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 1000px) { .features, .compat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features, .compat { grid-template-columns: 1fr; } }
.card { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.card .ico { width: 30px; height: 30px; color: var(--violet-2); margin-bottom: 16px; }
.card p { color: var(--dim); font-size: 15px; margin: 0; }
.card.small h3 { color: #fff; }

.gallery-wrap { overflow: hidden; }
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 32px max(16px, calc((100% - var(--wrap)) / 2)) 40px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery .phone { flex: 0 0 auto; width: clamp(200px, 22vw, 250px); border-radius: 30px; padding: 6px; scroll-snap-align: center; }
.gallery .phone img { border-radius: 25px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--dim); }
.checks .ico { flex: none; width: 22px; height: 22px; color: #34d399; margin-top: 2px; }

.tv { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .tv { grid-template-columns: 1fr; } }
.tv-text p { color: var(--dim); font-size: 18px; }
.tvset { border-radius: 14px; padding: 10px; }
.tvset img { border-radius: 6px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--violet-2); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--dim); margin: 12px 0 0; }
.faq .more { margin-top: 22px; }

.cta { text-align: center; padding-bottom: 24px; }
.cta .stores { justify-content: center; }

/* Pages de texte */
.doc { max-width: 820px; padding: clamp(40px, 6vw, 72px) 0 24px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; }
.doc .intro { font-size: 18px; color: var(--dim); }
.doc section { margin-top: 36px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--dim); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin: 4px 0; }
.doc b { color: var(--text); }
.center { text-align: center; }

/* Pied de page */
.foot { margin-top: clamp(64px, 9vw, 110px); border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 44px 0 20px; }
.foot-brand p { color: var(--mute); font-size: 14px; margin: 10px 0 0; max-width: 30em; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 32px; align-content: start; }
.foot-links a { color: var(--dim); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.foot-legal { padding: 18px 0 32px; border-top: 1px solid var(--line); }
.foot-legal p { color: var(--mute); font-size: 12.5px; margin: 6px 0 0; }
