/* PabIPTV — site vitrine. Jetons repris de src/theme (voir docs/charte-graphique.md). */

@font-face { font-family: 'Archivo'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Archivo-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Archivo'; font-weight: 600; font-display: swap; src: url('/assets/fonts/Archivo-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Archivo'; font-weight: 700; font-display: swap; src: url('/assets/fonts/Archivo-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Archivo'; font-weight: 800; font-display: swap; src: url('/assets/fonts/Archivo-ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Archivo'; font-weight: 900; font-display: swap; src: url('/assets/fonts/Archivo-Black.ttf') format('truetype'); }

:root {
  --bg: #0B0A0A;
  --surface: #171615;
  --surface-2: #211F1E;
  --dialog: #161514;
  --border: rgba(243, 242, 242, 0.12);
  --accent: #EC3013;
  --accent-muted: #3A1108;
  --text: #F3F2F2;
  --text-muted: rgba(243, 242, 242, 0.62);
  --text-faint: rgba(243, 242, 242, 0.42);
  --danger: #D6336C;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-top: rgba(255, 255, 255, 0.30);
  --glow: rgba(236, 48, 19, 0.45);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-media: 10px; --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 30px; --r-full: 999px;
  --gutter: 16px;
  --max: 1180px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Typo ---------- */
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-weight: 900; letter-spacing: -0.03em; font-size: clamp(40px, 7vw, 76px); }
h2 { font-weight: 900; letter-spacing: -0.025em; font-size: clamp(30px, 4.6vw, 50px); }
h3 { font-weight: 800; letter-spacing: -0.01em; font-size: 20px; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); max-width: 40em; }
.eyebrow {
  text-wrap: balance;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.header.scrolled, .header.solid {
  background: rgba(11, 10, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand .dot { color: var(--accent); }
.nav { display: none; gap: 28px; margin-left: 16px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text-muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--text-muted); padding: 8px 10px; border-radius: var(--r-full); border: 1px solid var(--border); }
.lang:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.header .btn { height: 40px; padding: 0 18px; font-size: 14px; display: none; }
@media (min-width: 900px) { .nav { display: flex; } }
@media (min-width: 560px) { .header .btn { display: inline-flex; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--r-full);
  font: 700 16px/1 var(--font); color: #fff; text-decoration: none; white-space: nowrap;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.22);
  transition: transform .18s ease-out, background .18s, color .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); font-weight: 800; box-shadow: 0 10px 30px -8px var(--glow); }
.btn:hover, .btn:focus-visible {
  background: #fff; color: var(--bg); border-color: #fff;
  transform: scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,.5); outline: none;
}

/* Boutons des stores */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px;
  border-radius: 16px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.2);
  transition: transform .18s ease-out, background .18s, color .18s, border-color .18s;
}
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-muted); line-height: 1.2; }
.store strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
a.store:hover, a.store:focus-visible { background: #fff; color: var(--bg); border-color: #fff; transform: scale(1.04); outline: none; }
a.store:hover small, a.store:focus-visible small { color: rgba(11,10,10,.62); }
.store.soon { cursor: default; opacity: .9; }
.store .badge { margin-left: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-muted); border-radius: var(--r-full); padding: 3px 8px; }

.disclaimer { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-muted); max-width: 36em; }
.disclaimer svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 128px 0 40px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(48% 55% at 12% 18%, rgba(236,48,19,.30), transparent 70%),
    radial-gradient(40% 40% at 88% 30%, rgba(236,48,19,.12), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 .line2 { color: var(--text-muted); }
.hero-visual { position: relative; padding-bottom: 12%; }
@media (min-width: 1000px) {
  .hero { padding-top: 150px; }
  .hero-grid { grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
}

/* Cadres d'appareils */
.device-tv {
  position: relative; border-radius: 18px; padding: 10px; background: linear-gradient(180deg, #2a2827, #121110);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 120px -30px var(--glow);
}
.device-tv img { border-radius: 10px; width: 100%; height: auto; object-fit: contain; background: var(--surface-2); }
.device-tv::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 26%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #1b1a19; }
.device-phone {
  position: relative; border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #3a3837, #121110);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.1) inset;
}
.device-phone img { border-radius: 32px; width: 100%; height: auto; object-fit: contain; background: var(--surface-2); }
.device-phone.android { border-radius: 30px; }
.device-phone.android img { border-radius: 23px; }
.hero-visual .device-phone { position: absolute; width: 22%; right: -4%; bottom: -4%; }
@media (max-width: 999px) { .hero-visual { padding-bottom: 30%; margin-top: 8px; } .hero-visual .device-phone { width: 22%; right: 0; } }

/* ---------- Bandeau de confiance ---------- */
.trust { padding: 40px 0 24px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-full);
  background: var(--glass); border: 1px solid var(--glass-border); border-top-color: var(--glass-border-top);
  font-weight: 600; font-size: 14.5px; color: var(--text);
}
.trust svg { width: 17px; height: 17px; color: var(--accent); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
@media (max-width: 719px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

/* Blocs fonctionnalité alternés */
.feature { display: grid; gap: 40px; align-items: center; padding: 56px 0; }
.feature-copy { display: grid; gap: 18px; align-content: start; }
.feature-copy h2 { font-size: clamp(28px, 3.6vw, 42px); }
.feature-copy ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.feature-copy li { display: flex; gap: 12px; color: var(--text-muted); }
.feature-copy li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.feature-copy li strong { color: var(--text); font-weight: 700; }
.shot {
  border-radius: 16px; overflow: hidden; background: var(--surface-2); cursor: zoom-in;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .25s ease-out, box-shadow .25s;
}
.shot img { width: 100%; height: auto; object-fit: contain; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0,0,0,.55), 0 30px 70px -25px rgba(0,0,0,.9); }
@media (min-width: 960px) {
  .feature { grid-template-columns: 0.65fr 1.35fr; gap: 56px; }
  .feature.reverse .feature-copy { order: 2; }
}

/* Rangée de téléphones */
.phones { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 28px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.phones::-webkit-scrollbar { display: none; }
.phones .device-phone { flex: 0 0 min(62vw, 250px); scroll-snap-align: center; cursor: zoom-in; }
@media (min-width: 1100px) { .phones { justify-content: center; overflow: visible; --pw: min(1420px, 100vw - 2 * var(--gutter)); width: var(--pw); margin-left: calc((100% - var(--pw)) / 2); margin-right: 0; padding-inline: 0; } .phones .device-phone { flex: 1 1 0; max-width: 260px; } .phones .device-phone:nth-child(odd) { transform: translateY(28px); } }
.phone-points { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 760px) { .phone-points { grid-template-columns: repeat(3, 1fr); } }

/* Grille de cartes */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 26px;
  border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--border); border-top-color: rgba(255,255,255,.18);
  transition: transform .2s ease-out, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); background: #1b1a19; }
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--accent-muted); color: var(--accent);
}
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--text-muted); font-size: 15.5px; }

/* Appareils */
.devices { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .devices { grid-template-columns: repeat(4, 1fr); } }
.device-card { padding: 28px 22px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-border); border-top-color: var(--glass-border-top); text-align: center; display: grid; gap: 10px; justify-items: center; }
.device-card svg { width: 40px; height: 40px; color: var(--text); }
.device-card strong { font-size: 17px; font-weight: 800; }
.device-card span { font-size: 14px; color: var(--text-muted); }

/* Étapes */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 30px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-weight: 900; font-size: 44px; letter-spacing: -0.03em; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15.5px; }
.step code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }

/* Confidentialité */
.privacy-band {
  display: grid; gap: 32px; padding: 48px; border-radius: var(--r-xl);
  background: radial-gradient(60% 120% at 0% 0%, rgba(236,48,19,.18), transparent 60%), var(--surface);
  border: 1px solid var(--border);
}
.privacy-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy-band li { display: flex; gap: 12px; color: var(--text-muted); }
.privacy-band li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.privacy-band li strong { color: var(--text); }
@media (min-width: 900px) { .privacy-band { grid-template-columns: 1fr 1fr; align-items: center; padding: 64px; } }
@media (max-width: 599px) { .privacy-band { padding: 30px 22px; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.faq details[open] { border-color: rgba(255,255,255,.22); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 22px 22px; color: var(--text-muted); display: grid; gap: 10px; }
.faq .answer a { color: var(--text); }

/* CTA final */
.final {
  text-align: center; display: grid; justify-items: center; gap: 24px; padding: 88px 24px; border-radius: var(--r-xl);
  background: radial-gradient(70% 90% at 50% 0%, rgba(236,48,19,.32), transparent 70%), var(--surface);
  border: 1px solid var(--border); overflow: hidden;
}
.final img.logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 20px 50px -10px var(--glow); }
.final .stores { justify-content: center; }

/* ---------- Footer ---------- */
.footer { margin-top: 96px; padding: 56px 0 40px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text-muted); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer .fine { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 13px; color: var(--text-faint); }
.footer .tmdb { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Pages de texte (légal, aide) ---------- */
.page { padding: 132px 0 40px; }
.page .wrap { max-width: 820px; }
.page-head { display: grid; gap: 16px; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(34px, 5.4vw, 54px); }
.prose { display: grid; gap: 16px; color: var(--text-muted); }
.prose h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); margin-top: 24px; }
.prose h3 { font-size: 17px; color: var(--text); margin-top: 8px; }
.prose a { color: var(--text); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.note {
  display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--accent-muted); border: 1px solid rgba(236,48,19,.35); color: var(--text);
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.panel { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 12px; }
.panel h3 { margin: 0; }
.panel .btn { justify-self: start; }
.meta { font-size: 14px; color: var(--text-faint); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { color: var(--text); font-weight: 700; }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 120px 16px 40px; }
.notfound .big { font-size: clamp(90px, 18vw, 180px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 24px; background: rgba(5,5,5,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.8); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
