/* =============================================================
   Style « Salon TV » du site EmIPTV (posé par-dessus site.css).
   ============================================================= */

/* Images-clés partagées */
@keyframes tv-boing { 0% { scale: 1; rotate: 0deg; } 25% { scale: 1.35; rotate: -14deg; } 50% { scale: .88; rotate: 8deg; } 72% { scale: 1.1; rotate: -4deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes tv-float { from { translate: 0 0; } to { translate: 0 -6px; } }

/* ==========================================================================
   1 · SALON TV : la lumière de la TV éclaire la page
   ========================================================================== */
.tv-amb { display: none; }
.tv-amb { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.tv-amb i { position: absolute; border-radius: 50%; filter: blur(110px); background: var(--amb, #8b3dff); opacity: .34; transition: background-color 1.8s ease; }
.tv-amb i:nth-child(1) { width: 70vw; height: 70vw; top: -25vw; right: -15vw; }
.tv-amb i:nth-child(2) { width: 45vw; height: 45vw; bottom: -20vw; left: -10vw; opacity: .18; transition-delay: .4s; animation: tv-breathe 7s ease-in-out infinite alternate; }
@keyframes tv-breathe { to { transform: scale(1.15); opacity: .26; } }
/* Le halo d'origine passe à la couleur de la capture affichée */
header.hero::before { background: var(--amb, #8b3dff); opacity: .55; transition: background-color 1.8s ease; }
.screens.tv { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 160px -30px var(--amb, #8b3dff); transition: box-shadow 1.8s ease; }

/* Allumage cathodique à chaque changement d'écran + lignes de balayage */
.screens.tv img { transition: opacity .12s linear; }
.screens.tv img.on { animation: tv-crt .75s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tv-crt {
  0% { transform: scale(1.02, .006); filter: brightness(5) saturate(0); }
  35% { transform: scale(1, 1.02); filter: brightness(1.8) saturate(.6); }
  60% { transform: scale(1, .99); filter: brightness(1.15); }
  100% { transform: none; filter: none; }
}
.screens.tv::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, .45)); mix-blend-mode: multiply; }
/* Grain d'image sur toute la page */
.tv-grain { display: none; }
.tv-grain { display: block; position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: tv-grain .6s steps(5) infinite; }
@keyframes tv-grain { 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } }
/* Galerie : l'image du centre « allumée » */
.track img.on { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 90px -20px var(--amb, #8b3dff); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow 1.2s; }
/* Badge « 12 langues » qui fait défiler les langues */
.tv-word { display: inline-block; min-width: 6.2em; animation: tv-flip .45s var(--ease) both; }
@keyframes tv-flip { from { opacity: 0; transform: translateY(70%) rotateX(-70deg); } }

/* ==========================================================================

/* ==========================================================================
   1 · SALON TV +++ : allumage, zapping, télécommande, mur d'écrans, néons, extinction
   ========================================================================== */
.tv-again { margin-inline-start: 6px; background: none; border: 1px solid rgba(255, 255, 255, .22); color: var(--text); border-radius: 999px; padding: 1px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.tv-again:hover { border-color: var(--accent); }

/* --- 1. Allumage ---------------------------------------------------------- */
.tv-pre body::after { content: ""; position: fixed; inset: 0; z-index: 299; background: #000; }
/* Pendant l'allumage, le haut de page est affiché tel quel sous le noir (sans ses animations d'entrée).
   S'il restait invisible (opacité 0), Safari iPhone jugerait la page vide et n'afficherait rien à l'écran
   avant la fin : on ne verrait jamais le point s'allumer. */
.tv-booting header.hero, .tv-booting header.hero *, .tv-booting header.hero::before, .tv-booting header.hero::after, .tv-booting .bar { animation: none !important; }
.tv-boot { position: fixed; inset: 0; z-index: 300; cursor: pointer; overflow: hidden; }
.tv-boot i { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; animation: .5s cubic-bezier(.75, 0, .2, 1) .62s both; }
.tv-boot .t { top: 0; animation-name: tv-open-t; }
.tv-boot .b { bottom: 0; animation-name: tv-open-b; }
@keyframes tv-open-t { to { transform: translateY(-100%); } }
@keyframes tv-open-b { to { transform: translateY(100%); } }
.tv-boot s { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(210, 225, 255, .55), transparent 70%); opacity: 0; animation: tv-flash .9s ease-out .6s both; }
@keyframes tv-flash { 20% { opacity: 1; } 100% { opacity: 0; } }
.tv-boot b { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px #fff, 0 0 60px 22px rgba(170, 195, 255, .75); animation: tv-beam 1.15s cubic-bezier(.6, 0, .2, 1) .08s both; }
@keyframes tv-beam {
  0% { width: 8px; height: 8px; opacity: 0; }
  14% { width: 8px; height: 8px; opacity: 1; }
  26% { width: 8px; height: 8px; }
  50% { width: 100vw; height: 3px; border-radius: 2px; opacity: 1; }
  62% { width: 100vw; height: 3px; opacity: 1; }
  100% { width: 100vw; height: 70vh; border-radius: 2px; opacity: 0; }
}
/* Le logo s'allume comme un néon qui grésille */
.tv-on .hero .logo { animation: tv-flicker 1.3s linear .05s both, glow 4s ease-in-out 1.5s infinite alternate; }
@keyframes tv-flicker {
  0% { opacity: 0; filter: none; }
  8% { opacity: 1; filter: drop-shadow(0 0 26px #f2489a); }
  11% { opacity: .12; }
  16% { opacity: 1; }
  22% { opacity: .3; }
  25% { opacity: 1; filter: drop-shadow(0 0 34px rgba(242, 72, 154, .9)); }
  100% { opacity: 1; filter: drop-shadow(0 0 0 rgba(242, 72, 154, 0)); }
}

/* --- 3. Zapping : neige + numéro de chaîne -------------------------------- */
.tv-snow { position: absolute; inset: -4% 0; z-index: 3; width: 100%; height: 108%; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.tv-snow.on { opacity: 1; }
.tv-osd { position: absolute; z-index: 4; top: 15%; left: 4.5%; text-align: left; font: 700 clamp(18px, 2.4vw, 32px)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #7dff8a; letter-spacing: .06em; text-shadow: 0 0 6px rgba(125, 255, 138, .9), 0 0 18px rgba(125, 255, 138, .45), 2px 2px 0 rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; }
.tv-osd span { display: block; margin-top: 7px; font-size: .42em; letter-spacing: .2em; }
.tv-osd i { display: block; margin-top: 10px; font-style: normal; font-size: .62em; letter-spacing: .02em; }
.tv-osd.on { opacity: 1; animation: tv-osd .32s steps(2) both; }
@keyframes tv-osd { 0% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: .3; } }
.tv-osd.center { top: 50%; left: 50%; translate: -50% -50%; text-align: center; white-space: nowrap; font-size: clamp(16px, 2.1vw, 28px); }

/* --- 10. Extinction ------------------------------------------------------- */
.screens.tv.tv-off img.on { animation: tv-crtoff .6s cubic-bezier(.6, 0, .4, 1) forwards; }
@keyframes tv-crtoff {
  0% { transform: none; filter: none; }
  45% { transform: scale(1, .008); filter: brightness(4); }
  78% { transform: scale(.006, .008); filter: brightness(8); }
  100% { transform: scale(0, 0); filter: brightness(8); opacity: 0; }
}
.screens.tv.tv-off { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); }
.dl.tv-loading { position: relative; overflow: hidden; isolation: isolate; }
.dl.tv-loading::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(125, 255, 138, .32), rgba(125, 255, 138, .12)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.dl.tv-done span::after { content: "  ✓"; color: #7dff8a; text-shadow: 0 0 10px rgba(125, 255, 138, .8); }

/* --- 4. Télécommande ------------------------------------------------------ */
.tv-remote { position: absolute; z-index: 6; left: -5%; bottom: -4%; width: 78px; padding: 12px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 9px; border-radius: 32px 32px 38px 38px; background: linear-gradient(160deg, #2c2640, #120f1c 62%); box-shadow: 0 34px 50px -16px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -3px 8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05); rotate: -13deg; transform: translateZ(90px); animation: tv-hover 5s ease-in-out infinite alternate, rise 1s var(--ease) both .9s; }
@keyframes tv-hover { to { translate: 0 -10px; rotate: -10deg; } }
.tv-remote .led { width: 6px; height: 6px; border-radius: 50%; background: #5a1a28; }
.tv-remote .led.blink { animation: tv-led .35s steps(2) 2; }
@keyframes tv-led { 0% { background: #ff3b5c; box-shadow: 0 0 10px 2px #ff3b5c; } }
.tv-remote button { display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; color: #d6cde8; font: 700 11px/1 "Plus Jakarta Sans", system-ui, sans-serif; background: linear-gradient(180deg, #443c5c, #2e2842); box-shadow: 0 2px 0 #0a0812, inset 0 1px 0 rgba(255, 255, 255, .16); transition: transform .08s, box-shadow .08s, background-color .2s; }
.tv-remote button:hover { color: #fff; background: linear-gradient(180deg, #5a4f7a, #3a3254); }
.tv-remote button:active { transform: translateY(2px); box-shadow: 0 0 0 #0a0812, inset 0 1px 0 rgba(255, 255, 255, .1); }
.tv-remote .pw { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff6b85, #d3173d); box-shadow: 0 2px 0 #4a0614, 0 0 14px -2px rgba(255, 59, 92, .8); }
.tv-remote .pw:hover { background: radial-gradient(circle at 40% 35%, #ff8aa0, #e8264d); }
.tv-remote .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tv-remote .nums button { width: 16px; height: 16px; border-radius: 50%; font-size: 9px; }
.tv-remote .rock { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, .3); }
.tv-remote .rock button { width: 30px; height: 24px; border-radius: 10px; font-size: 10px; }
.tv-remote .rock span { font: 800 8px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .12em; color: #8d83a3; }
.tv-remote .brand { font: 800 8px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-hint { position: absolute; left: 82%; top: -14px; rotate: 13deg; white-space: nowrap; padding: 6px 12px; border-radius: 12px 12px 12px 3px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font: 700 12px/1.2 "Plus Jakarta Sans", sans-serif; box-shadow: 0 10px 24px -8px rgba(242, 72, 154, .8); pointer-events: none; animation: tv-scale .5s cubic-bezier(.3, 1.7, .5, 1) 2.6s both, tv-float 1.6s ease-in-out 3.1s infinite alternate; scale: 0; }
.tv-remote.used .tv-hint { opacity: 0; transition: opacity .3s; }
@media (max-width: 860px) { .tv-remote { left: -1%; bottom: -10%; scale: .82; } }

/* --- 6. Mur d'écrans ------------------------------------------------------ */
.feats { gap: 22px; }
.feat { padding: 10px 10px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); border: 1px solid var(--line); transition: border-color .4s, translate .4s var(--ease), opacity .7s var(--ease), transform .7s var(--ease); }
.feat:hover { border-color: color-mix(in srgb, var(--h) 55%, transparent); translate: 0 -4px; }
.feat h3, .feat p { padding-inline: 8px; }
.feat h3 { margin-top: 14px; }
.tv-scr { position: relative; display: grid; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #040308; border: 4px solid #0b0913; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: box-shadow 1s; }
.tv-scr::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .1), transparent 38%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px), radial-gradient(110% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)); }
.tv-scr::before { content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: tv-grain .4s steps(4) infinite; mix-blend-mode: overlay; }
.feat:hover .tv-scr::before { opacity: .55; }
.tv-scr-in { display: grid; place-items: center; background: radial-gradient(120% 100% at 50% 38%, color-mix(in srgb, var(--h) 60%, #000), color-mix(in srgb, var(--h) 12%, #000) 72%); opacity: 0; }
.feat.in .tv-scr-in, html:not(.js) .tv-scr-in { opacity: 1; animation: tv-crt .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k, 0) * .13s + .25s); }
.feat.in .tv-scr { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 46px -10px var(--h); transition-delay: calc(var(--k, 0) * .13s + .5s); }
.tv-scr svg { width: 40px; height: 40px; padding: 0; background: none !important; fill: #fff; opacity: 1 !important; transform: none !important; filter: drop-shadow(0 0 10px var(--h)) drop-shadow(0 0 2px rgba(255, 255, 255, .8)); transition: scale .4s cubic-bezier(.3, 1.6, .5, 1); }
.feat:hover .tv-scr svg { scale: 1.18; }

/* --- 7. Titres néon ------------------------------------------------------- */
main h2.reveal.in, main .sec-head.in h2 { animation: tv-neon 1.7s linear both; animation-delay: var(--d, 0s); }
@keyframes tv-neon {
  0% { opacity: 0; text-shadow: none; }
  6% { opacity: 1; text-shadow: 0 0 10px #fff, 0 0 30px #f2489a, 0 0 70px #f2489a; }
  9% { opacity: .15; }
  13% { opacity: 1; }
  17% { opacity: .35; }
  19% { opacity: 1; }
  40% { text-shadow: 0 0 8px rgba(255, 255, 255, .6), 0 0 26px rgba(242, 72, 154, .9), 0 0 54px rgba(242, 72, 154, .6); }
  100% { opacity: 1; text-shadow: 0 0 20px rgba(242, 72, 154, .35); }
}

@media (prefers-reduced-motion: reduce) {
  .tv-boot, .tv-snow { display: none !important; }
  .tv-scr-in { opacity: 1 !important; }
}
@keyframes tv-scale { to { scale: 1; } }

/* ==========================================================================
   1 · SALON TV : badges, badge Store, section Télécharger
   ========================================================================== */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tv-spin { to { --a: 360deg; } }
@keyframes tv-sweep { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* --- Bouton principal : icône d'appareil, liseré lumineux qui tourne -------- */
.hero .big { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; text-align: start; padding: 11px 28px 11px 11px; border-radius: 20px; border: 2px solid transparent; background: linear-gradient(135deg, var(--accent), var(--accent2)) padding-box, conic-gradient(from var(--a), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 58%, #ffc6e6 78%, rgba(255, 255, 255, .95)) border-box; animation: tv-spin 3.5s linear infinite, tv-ctaglow 2.8s ease-in-out infinite; }
@keyframes tv-ctaglow { 50% { box-shadow: 0 16px 46px -6px rgba(242, 72, 154, .85), 0 0 0 7px rgba(242, 72, 154, .09); } }
.hero .big > span { grid-column: 2; font-size: 20px; line-height: 1.2; }
.hero .big > small { grid-column: 2; margin-top: 1px; }
.tv-cta-ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 14px -6px rgba(0, 0, 0, .4); }
.tv-cta-ico svg { width: 25px; height: 25px; fill: #fff; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.hero .big:hover .tv-cta-ico svg { transform: scale(1.15) rotate(-6deg); }
/* Bouton secondaire */
.hero .alt { display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .04); color: var(--text); font-weight: 600; transition: background-color .25s, border-color .25s; }
.hero .alt::after { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s var(--ease); }
.hero .alt:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }
.hero .alt:hover::after { animation: tv-chev .6s ease-in-out infinite alternate; }
@keyframes tv-chev { to { transform: translateY(3px); } }

/* --- Atouts : bandeau défilant façon chaîne d'info ------------------------ */
.tv-tick { position: relative; display: flex; align-items: stretch; max-width: 560px; height: 50px; margin-top: 26px; border-radius: 14px; overflow: hidden; background: rgba(10, 8, 16, .55); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 34px -20px rgba(0, 0, 0, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tv-tick-tab { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 26px 0 16px; background: linear-gradient(135deg, #ff3b5c, #d3173d); color: #fff; font: 800 13px/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .14em; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); box-shadow: 0 0 24px rgba(255, 59, 92, .5); }
.tv-tick-tab i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: tv-blink 1.2s steps(2) infinite; }
.tv-tick-view { flex: 1; display: flex; align-items: center; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 44px), transparent); }
.tv-tick-track { display: flex; width: max-content; animation: tv-ticker 20s linear infinite; }
.tv-tick:hover .tv-tick-track { animation-play-state: paused; }
@keyframes tv-ticker { to { transform: translateX(-50%); } }
.tv-tick .badges { display: flex; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.tv-tick .badges li { display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 0 0 0 4px; margin: 0; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--text); background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; transform: none; }
.tv-tick .badges li::before { width: 24px; height: 24px; border-radius: 8px; background: var(--ico) center / 14px no-repeat, linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 4px 12px -4px var(--c1); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.tv-tick .badges li::after { content: ""; flex: none; width: 5px; height: 5px; margin: 0 18px 0 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tv-tick .badges li:hover { transform: none; box-shadow: none; }
.tv-tick .badges li:hover::before { transform: scale(1.15) rotate(-8deg); }
.tv-tick .badges li b { font-weight: 600; transition: color .25s; }
.tv-tick .badges li:hover b { color: color-mix(in srgb, var(--c1) 60%, #fff); }
@media (max-width: 860px) { .tv-tick { margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .tv-tick-track { animation: none; } }

/* --- Badge Microsoft Store ------------------------------------------------- */
.stores { margin-top: 20px; gap: 10px; }
.stores a.tv-store:nth-of-type(2)::after { animation-delay: 3.5s; }
.stores > span { display: none; }
.stores a.tv-store { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 11px; padding: 8px 18px 8px 13px; border-radius: 13px; background: #000; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .9); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.stores a.tv-store::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .18) 50%, transparent 62%); transform: translateX(-130%); animation: tv-sweep 6s ease-in-out 2s infinite; pointer-events: none; }
.stores a.tv-store:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .5); box-shadow: 0 16px 34px -12px rgba(0, 164, 239, .55); }
.tv-store .ms { width: 24px; height: 24px; flex: none; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.tv-store:hover .ms { transform: rotate(-90deg) scale(1.08); }
.tv-store:hover .ms[viewBox="0 0 24 24"] { transform: scale(1.12) rotate(-8deg); }
.stores a.tv-store[href*="play.google"]:hover { box-shadow: 0 16px 34px -12px rgba(0, 240, 118, .45); }
.tv-store span { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.tv-store small { font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.tv-store b { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.01em; }

/* --- Section Télécharger : la pièce prend la couleur de l'appareil ---------- */
.tv-dlsec { position: relative; --dc: #3ddc84; }
.tv-dlglow { position: absolute; z-index: -1; left: 50%; top: 52%; width: min(1000px, 100%); height: 70%; translate: -50% -50%; border-radius: 50%; background: var(--dc); opacity: .16; filter: blur(110px); pointer-events: none; transition: background-color 1s ease; }
/* Choix de l'appareil : tuiles avec icône qui s'allume */
.picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.picker button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 96px; padding: 16px 8px 12px; border-radius: 18px; background: rgba(255, 255, 255, .025); font-size: 14px; line-height: 1.2; transition: color .25s, border-color .25s, translate .35s var(--ease), background-color .25s; }
.picker button svg { width: 30px; height: 30px; fill: currentColor; transition: fill .3s, filter .3s, scale .4s cubic-bezier(.3, 1.6, .5, 1); }
.picker button:hover { translate: 0 -3px; }
.picker button:hover svg { fill: var(--bc); scale: 1.12; }
.picker button.on { color: #fff; }
.picker button.on svg { fill: var(--bc); filter: drop-shadow(0 0 10px var(--bc)); animation: tv-crt .6s cubic-bezier(.2, .8, .2, 1) both; }
.picker > .pill { border-radius: 18px; border: 1px solid var(--dc); background: color-mix(in srgb, var(--dc) 13%, transparent); box-shadow: 0 0 34px -8px var(--dc), inset 0 0 24px -10px var(--dc); transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease), opacity .25s, border-color .6s, background-color .6s, box-shadow .6s; }
@media (max-width: 760px) { .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Le panneau devient un écran */
.panel { position: relative; border: 6px solid #0b0913; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--dc) 14%, var(--panel)), var(--panel) 58%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 120px -34px var(--dc); transition: box-shadow 1s; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 18px; background: linear-gradient(120deg, rgba(255, 255, 255, .06), transparent 30%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
.panel > div { animation: tv-crt .7s cubic-bezier(.2, .8, .2, 1) both; }
.panel > .help { animation-delay: .1s; border-color: rgba(255, 255, 255, .06); }
.panel .files { position: relative; overflow: hidden; }
.tv-wm { position: absolute; z-index: -1; right: -26px; bottom: -30px; width: 190px; height: 190px; fill: var(--dc); opacity: .07; rotate: -12deg; pointer-events: none; }
.panel .files { isolation: isolate; }
.tv-chtag { display: inline-block; margin-bottom: 12px; font: 700 13px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; color: #7dff8a; text-shadow: 0 0 8px rgba(125, 255, 138, .7); animation: tv-osd .4s steps(2) .5s both; }
.panel h3 { font-size: 26px; }
/* Boutons de fichier */
.dl { position: relative; gap: 14px; margin-top: 10px; padding: 14px 14px 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); transition: background-color .25s, border-color .25s, translate .3s var(--ease), box-shadow .3s; }
.dl::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / 17px no-repeat, linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 6px 18px -6px var(--accent); transition: transform .3s var(--ease), box-shadow .3s; transform: none; }
.dl:hover { translate: 0 -2px; background: rgba(255, 255, 255, .07); border-color: color-mix(in srgb, var(--dc) 55%, transparent); box-shadow: 0 14px 30px -16px var(--dc); }
.dl:hover::after { animation: tv-arrow .7s ease-in-out infinite alternate; box-shadow: 0 8px 22px -4px var(--accent); }
@keyframes tv-arrow { to { background-position: center 70%, 0 0; transform: scale(1.06); } }
.dl b { font-size: 16.5px; font-weight: 700; }
.dl b em { display: block; margin-top: 3px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--dc); }
.dl span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 600; }
.dl.here { border: 1.5px solid transparent; background: linear-gradient(color-mix(in srgb, var(--dc) 10%, #1d1729), color-mix(in srgb, var(--dc) 10%, #1d1729)) padding-box, conic-gradient(from var(--a), var(--dc), var(--accent), var(--accent2), var(--dc)) border-box; animation: tv-spin 4s linear infinite, tv-pulse 2.6s ease-in-out infinite; }
@keyframes tv-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dc) 45%, transparent); } 60% { box-shadow: 0 0 0 9px transparent; } }
/* Étapes d'installation : pastilles numérotées reliées par une ligne */
.panel .help h4 { color: var(--text); }
.panel ol { position: relative; list-style: none; padding: 0; counter-reset: st; }
.panel ol::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent2), transparent); transform-origin: top; animation: tv-draw 1.1s var(--ease) .35s both; }
@keyframes tv-draw { from { transform: scaleY(0); } }
.panel ol li { position: relative; margin: 0; padding: 4px 0 16px 50px; counter-increment: st; animation: tv-slide .6s var(--ease) both; }
.panel ol li:nth-child(1) { animation-delay: .35s; }
.panel ol li:nth-child(2) { animation-delay: .5s; }
.panel ol li:nth-child(3) { animation-delay: .65s; }
.panel ol li:nth-child(4) { animation-delay: .8s; }
.panel ol li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 5px var(--panel), 0 6px 18px -4px var(--accent); }
.panel ol li:hover::before { animation: tv-boing .8s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tv-slide { from { opacity: 0; transform: translateX(-16px); } }

/* ==========================================================================
   1 · SALON TV : page Nouveautés, frise chronologique d'écrans
   ========================================================================== */
.tv-news h1.tv-neonh { font-size: clamp(40px, 5.4vw, 64px); margin-bottom: 8px; animation: tv-neon 1.8s linear .25s both; }
.tv-news > .tag { color: var(--muted); font-size: 18px; margin-top: 0; }
.tv-tl { position: relative; margin-top: 46px; padding-inline-start: 58px; }
.tv-tl::before { content: ""; position: absolute; inset-inline-start: 19px; top: 14px; bottom: 30px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent2) 55%, rgba(139, 61, 255, 0)); transform-origin: top; animation: tv-draw 1.8s var(--ease) .3s both; }
.tv-rel { position: relative; margin: 0 0 26px; padding: 0 !important; border: 0 !important; opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.tv-rel.in { opacity: 1; transform: none; }
.tv-rel > h3, .tv-rel > time, .tv-rel > p { display: none; }
.tv-rel::before { content: ""; position: absolute; inset-inline-start: -46px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent2); box-shadow: 0 0 0 5px var(--bg), 0 0 14px rgba(139, 61, 255, .7); }
.tv-rel.tv-latest::before { background: var(--accent); border-color: var(--accent); animation: tv-dotpulse 1.8s ease-in-out infinite; }
@keyframes tv-dotpulse { 50% { box-shadow: 0 0 0 5px var(--bg), 0 0 0 11px rgba(242, 72, 154, .22), 0 0 28px var(--accent); } }
.tv-relx { position: relative; overflow: hidden; isolation: isolate; padding: 22px 26px 24px; border-radius: 22px; border: 5px solid #0b0913; background: radial-gradient(120% 140% at 0% 0%, rgba(139, 61, 255, .13), var(--panel) 55%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 70px -40px rgba(0, 0, 0, .9); transition: translate .4s var(--ease), box-shadow .4s; }
.tv-relx::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .05), transparent 30%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
.tv-rel.in .tv-relx { animation: tv-crt .8s cubic-bezier(.2, .8, .2, 1) .1s both; }
.tv-relx:hover { translate: 0 -3px; box-shadow: 0 0 0 1px rgba(139, 61, 255, .35), 0 34px 80px -40px rgba(0, 0, 0, .9), 0 0 70px -30px var(--accent2); }
.tv-latest .tv-relx { background: radial-gradient(120% 140% at 0% 0%, rgba(242, 72, 154, .2), var(--panel) 58%); box-shadow: 0 0 0 1px rgba(242, 72, 154, .35), 0 30px 80px -40px rgba(0, 0, 0, .9), 0 0 100px -34px var(--accent); }
.tv-relhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tv-ver { font: 700 16px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; color: #7dff8a; text-shadow: 0 0 8px rgba(125, 255, 138, .7); }
.tv-new { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; background: #ff3b5c; color: #fff; font: 800 11px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 18px -6px #ff3b5c; }
.tv-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: tv-blink 1.2s steps(2) infinite; }
@keyframes tv-blink { 50% { opacity: .15; } }
.tv-plats { margin-inline-start: auto; display: flex; gap: 6px; }
.tv-plat { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tv-plat svg { width: 17px; height: 17px; fill: var(--muted); transition: fill .3s; }
.tv-relx:hover .tv-plat svg { fill: var(--text); }
.tv-relx h3 { margin: 0; font-size: 24px; }
.tv-relx time { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.tv-relx .lead { margin: 14px 0 0; font-size: 16.5px; line-height: 1.55; }
.tv-relx ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; }
.tv-relx li { position: relative; padding: 10px 12px 10px 40px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); font-size: 14.5px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: border-color .3s, background-color .3s; }
.tv-relx li:hover { border-color: rgba(242, 72, 154, .35); background: rgba(242, 72, 154, .06); }
.tv-relx li::before { content: ""; position: absolute; inset-inline-start: 12px; top: 11px; width: 19px; height: 19px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 3px 10px -3px var(--accent); }
.tv-rel.in li { animation: tv-li .5s var(--ease) both; animation-delay: calc(.55s + var(--i, 0) * .07s); }
@keyframes tv-li { to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .tv-tl { padding-inline-start: 34px; }
  .tv-tl::before { inset-inline-start: 9px; }
  .tv-rel::before { inset-inline-start: -32px; width: 13px; height: 13px; }
  .tv-relx { padding: 18px; }
  .tv-plats { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tv-rel, .tv-relx li { opacity: 1 !important; transform: none !important; } }

/* ==========================================================================
   1 · SALON TV : boutons des stores dans « Télécharger »
   ========================================================================== */
.dl.store { gap: 14px; padding: 14px 14px 14px 16px; background: #050407; border-color: rgba(255, 255, 255, .2); }
.dl.store .slogo { flex: none; width: 30px; height: 30px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.dl.store:hover .slogo { transform: scale(1.12) rotate(-8deg); }
.dl.store b { display: flex; flex-direction: column; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.dl.store b small { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .7); letter-spacing: 0; }
.dl.store::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L16 8M9 8h7v7'/%3E%3C/svg%3E"), linear-gradient(135deg, var(--accent), var(--accent2)); }
.dl.store.here { background: linear-gradient(#08060c, #08060c) padding-box, conic-gradient(from var(--a), var(--dc), var(--accent), var(--accent2), var(--dc)) border-box; }
.panel .files > p.alt-h { margin: 26px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl.alt { padding: 10px 12px 10px 16px; background: transparent; border-style: dashed; }
.dl.alt b { font-size: 15px; font-weight: 600; color: var(--muted); }
.dl.alt::after { width: 28px; height: 28px; background-size: 13px, auto; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 20h14'/%3E%3C/svg%3E"), linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .14)); box-shadow: none; }
.dl.alt:hover b { color: var(--text); }

/* ==========================================================================
   1 · SALON TV : pied de page « fin des programmes »
   ========================================================================== */
footer.tv-foot { position: relative; margin-top: 120px; padding: 0 0 34px; color: var(--muted); font-size: 15px; text-align: start; background: linear-gradient(180deg, rgba(8, 6, 13, 0), rgba(8, 6, 13, .92) 120px); }
.tv-bars { display: flex; height: 7px; box-shadow: 0 0 40px 2px rgba(242, 72, 154, .25); }
.tv-bars i { flex: 1; animation: tv-barflick 6s steps(1) infinite; }
.tv-bars i:nth-child(1) { background: #e9e6f0; } .tv-bars i:nth-child(2) { background: #f5d300; animation-delay: -1s; } .tv-bars i:nth-child(3) { background: #22d3ee; animation-delay: -2.2s; } .tv-bars i:nth-child(4) { background: #22c55e; animation-delay: -3.1s; } .tv-bars i:nth-child(5) { background: #e040fb; animation-delay: -4s; } .tv-bars i:nth-child(6) { background: #ff3b5c; animation-delay: -4.7s; } .tv-bars i:nth-child(7) { background: #3d5afe; animation-delay: -5.5s; }
@keyframes tv-barflick { 0%, 96% { opacity: 1; } 97% { opacity: .45; } 98% { opacity: 1; } 99% { opacity: .7; } }
.tv-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 160px; pointer-events: none; background: radial-gradient(60% 100% at 50% 0%, rgba(139, 61, 255, .16), transparent 70%); }
.tv-foot-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 60px 20px 0; }
.tv-foot-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 56px; }
.tv-foot-logo { display: inline-block; }
.tv-foot-logo img { width: 170px; height: auto; filter: drop-shadow(0 0 18px rgba(242, 72, 154, .35)); transition: filter .4s, transform .5s var(--ease); }
.tv-foot-logo:hover img { filter: drop-shadow(0 0 28px rgba(242, 72, 154, .7)); transform: rotate(-3deg) scale(1.04); animation: tv-flicker 1s linear; }
.tv-foot-brand > p { margin: 12px 0 20px; color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.4; max-width: 18em; }
.tv-foot-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.tv-foot .tv-store { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 11px; border-radius: 12px; background: #000; border: 1px solid rgba(255, 255, 255, .22); text-decoration: none; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.tv-foot .tv-store:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .5); box-shadow: 0 14px 30px -14px rgba(139, 61, 255, .7); }
.tv-foot .tv-store .ms { width: 22px; height: 22px; }
.tv-foot .tv-store b { font-size: 15px; }
.tv-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tv-foot-cols h4 { position: relative; margin: 6px 0 16px; padding-inline-start: 14px; color: var(--text); font: 800 12px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tv-foot-cols h4::before { content: ""; position: absolute; inset-inline-start: 0; top: -2px; width: 4px; height: 16px; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent2)); box-shadow: 0 0 10px var(--accent); }
.tv-foot-cols a:not(.tv-foot-discord) { position: relative; display: block; width: fit-content; padding: 5px 0; color: var(--muted); text-decoration: none; transition: color .25s, translate .3s var(--ease); }
.tv-foot-cols a:not(.tv-foot-discord)::before { content: ""; position: absolute; inset-inline-start: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); opacity: 0; transition: opacity .25s; }
.tv-foot-cols a:not(.tv-foot-discord):hover { color: var(--text); translate: 12px 0; }
.tv-foot-cols a:not(.tv-foot-discord):hover::before { opacity: 1; }
.tv-foot-txt { margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.tv-foot-discord { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: linear-gradient(135deg, #5865f2, #7b5cff); color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; box-shadow: 0 10px 26px -12px #5865f2; transition: transform .3s var(--ease), box-shadow .3s; }
.tv-foot-discord svg { width: 22px; height: 22px; fill: #fff; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.tv-foot-discord:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px #5865f2; }
.tv-foot-discord:hover svg { transform: rotate(-12deg) scale(1.12); }
.tv-foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; }
.tv-foot-bottom p { margin: 0; }
.tv-foot-bottom a { color: var(--muted); text-decoration: none; transition: color .2s; }
.tv-foot-bottom a:hover { color: var(--text); }
.tv-foot-bottom b { color: var(--text); }
.tv-foot-legal { display: flex; gap: 18px; }
.tv-foot-osd { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; color: #7dff8a; text-shadow: 0 0 8px rgba(125, 255, 138, .6); }
.tv-foot-osd i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 8px #ff3b5c; animation: tv-blink 1.4s steps(2) infinite; }
.tv-foot-osd b { color: inherit; }
@media (max-width: 900px) {
  .tv-foot-top { grid-template-columns: 1fr; gap: 40px; }
  .tv-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .tv-foot-cols { grid-template-columns: 1fr; }
  .tv-foot-osd { margin-inline-start: 0; }
}

/* --- Responsive : la grille du haut ne doit jamais s'élargir à cause du bandeau qui défile --- */
.hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.hero-text, .hero-shot { min-width: 0; }
.tv-tick { min-width: 0; max-width: min(560px, 100%); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================
   TÉLÉPHONE ET TABLETTE
   960 px : tablette (le haut de page passe sur une colonne, voir site.css)
   700 px : téléphone
   ============================================================= */
.tv-foot-osd span { text-transform: uppercase; }
a, button { -webkit-tap-highlight-color: transparent; }

/* Écran tactile ou petit écran : pas de télécommande, on zappe en touchant ou en glissant sur la TV */
@media (max-width: 960px), (pointer: coarse) {
  .tv-remote { display: none; }
  .screens.tv { touch-action: pan-y; cursor: pointer; }
}
/* Écran tactile : pas d'effets de survol qui restent « collés », un retour visuel à l'appui à la place */
@media (hover: none) {
  .feat:hover, .dl:hover, .picker button:hover, .tv-relx:hover, .stores a.tv-store:hover, .tv-foot .tv-store:hover, .tv-foot-discord:hover { translate: none; transform: none; }
  .tv-foot-cols a:not(.tv-foot-discord):hover { translate: none; }
  .big:active, .dl:active, .picker button:active, .alt:active, .tv-store:active, .tv-foot-discord:active, .tabs button:active { scale: .97; transition: scale .1s; }
  .gnav .arrow { display: none; }
}
/* Téléphone et tablette : on allège ce qui coûte cher au processeur */
@media (max-width: 960px), (pointer: coarse) {
  .tv-grain { display: none; }
  /* Pas de flou sur ces grandes taches de lumière : sur iPhone, le dessiner bloquait l'écran
     environ une seconde à l'arrivée (on ne voyait pas l'allumage de la TV). Un masque en
     dégradé radial donne le même halo, et la couleur suit toujours la TV en douceur. */
  .tv-amb i, .tv-dlglow { filter: none; -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%); }
  .tv-amb i:nth-child(1) { width: 120vw; height: 120vw; top: -50vw; right: -40vw; }
  .tv-amb i:nth-child(2) { width: 90vw; height: 90vw; bottom: -40vw; left: -35vw; }
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .tv-tick { width: 100%; margin-inline: auto; }
  /* Barre du haut : un peu plus serrée pour que la langue tienne */
  .bar nav a { padding: 10px 11px; font-size: 15px; }
  .bar nav a.cta { padding-inline: 16px; margin-inline-start: 6px; }
  .langlist { max-width: calc(100vw - 32px); }
  /* Mur d'écrans en 2 colonnes : écrans plus plats */
  .tv-scr { aspect-ratio: 21 / 9; }
  /* Pied de page */
  .tv-foot-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .tv-foot-brand { display: flex; flex-direction: column; align-items: center; }
  .tv-foot-brand > p { margin-inline: auto; }
  .tv-foot-stores { justify-content: center; }
  .tv-foot-cols { text-align: start; }
}

@media (max-width: 700px) {
  /* Haut de page : boutons pleine largeur, faciles à toucher au pouce */
  .hero .logo { width: 130px; }
  .hero h1 { font-size: clamp(28px, 8vw, 34px); }
  .hero .tag { font-size: 16.5px; margin-bottom: 24px; }
  .cta { width: 100%; align-items: stretch; gap: 10px; }
  .hero .big { width: 100%; padding: 10px 18px 10px 10px; }
  .hero .big > span { font-size: 18px; }
  .tv-cta-ico { width: 44px; height: 44px; }
  .hero .alt { justify-content: center; width: 100%; padding: 13px 16px; }
  .tv-tick { height: 46px; margin-top: 20px; }
  .tv-tick-tab { padding: 0 20px 0 12px; font-size: 12px; }
  .tv-tick .badges li { font-size: 14px; }
  .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .stores a.tv-store { justify-content: center; padding: 8px 8px; gap: 8px; min-width: 0; }
  .tv-store b { font-size: 14.5px; white-space: nowrap; }
  .tv-store .ms { width: 21px; height: 21px; }
  .hero-shot { padding-inline-end: 9%; }
  .tv-osd { font-size: 17px; }
  .tv-osd.center { font-size: 14px; }

  /* Mur d'écrans : liste, petit écran à gauche et texte à droite */
  .feats { gap: 12px; }
  .feat { grid-template-columns: 112px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 10px; }
  .feat .tv-scr { grid-row: span 2; aspect-ratio: 16 / 10; border-width: 3px; border-radius: 10px; }
  .tv-scr svg { width: 28px; height: 28px; }
  .feat h3, .feat p { padding-inline: 0; }
  .feat h3 { margin: 0 0 3px; font-size: 16px; }
  .feat p { font-size: 14px; line-height: 1.45; }

  /* Galerie : points plus gros pour le doigt */
  .dots button { width: 10px; height: 10px; }

  /* Télécharger */
  .picker { gap: 8px; }
  .picker button { min-height: 78px; padding: 12px 6px 10px; font-size: 13px; gap: 7px; }
  .picker button svg { width: 26px; height: 26px; }
  .panel { border-width: 4px; border-radius: 20px; }
  .panel > div { padding: 20px 18px; }
  .panel h3 { font-size: 23px; }
  .dl:not(.store) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 5px; }
  .dl:not(.store) b { grid-column: 1; }
  .dl:not(.store) span { grid-column: 1; justify-self: start; }
  .dl:not(.store)::after { grid-column: 2; grid-row: 1 / span 2; }
  .dl.store { padding: 12px 12px 12px 14px; }
  .dl.store b { font-size: 18px; }
  .panel ol li { padding-inline-start: 44px; font-size: 14.5px; }
  .tv-wm { width: 140px; height: 140px; }

  /* Pied de page : liens sur 2 colonnes, Discord en pleine largeur */
  footer.tv-foot { margin-top: 90px; }
  .tv-foot-in { padding-top: 44px; }
  .tv-foot-logo img { width: 140px; }
  .tv-foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .tv-foot-cols > div:last-child { grid-column: 1 / -1; }
  .tv-foot-discord { width: 100%; justify-content: center; padding: 13px 16px; }
  .tv-foot-bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-top: 40px; }
  .tv-foot-legal { justify-content: center; flex-wrap: wrap; }
  .tv-foot-osd { margin-inline-start: 0; }
}

/* =============================================================
   TÉLÉPHONE, MISE EN PAGE AÉRÉE
   La TV qui zappe remonte juste sous le titre, les fonctions passent
   en carrousel, plus d'air entre les blocs.
   ============================================================= */
.tv-fdots { display: none; }
@media (max-width: 700px) {
  header.hero { padding-bottom: 36px; }
  .hero .wrap { gap: 0; }
  .hero .hero-text { display: contents; }
  .hero .logo { display: none; }
  .hero h1 { order: 1; margin: 18px auto 14px; font-size: clamp(31px, 9vw, 38px); line-height: 1.06; text-wrap: balance; max-width: 13ch; }
  .hero .tag { order: 2; margin: 0 auto 30px; max-width: 30ch; font-size: 16px; line-height: 1.5; text-wrap: balance; }
  .hero-shot { order: 3; margin: 0 auto 40px; padding: 0 0 10%; max-width: none; }
  .screens.ph { inset-inline-end: 3%; bottom: -4%; width: 23%; border-width: 4px; border-radius: 14px; }
  .hero .cta { order: 4; }
  .hero .tv-tick { order: 5; margin-top: 26px; }
  .hero .stores { order: 6; margin-top: 18px; }
  .tv-osd { font-size: 15px; }

  .sec { padding-top: 84px; }
  h2 { font-size: 28px; line-height: 1.15; margin-bottom: 26px; text-wrap: balance; }
  .note { font-size: 14px; line-height: 1.55; padding: 16px 16px; }

  /* Fonctions : carrousel, une grande carte à la fois, la suivante dépasse pour inviter à glisser */
  .feats { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 8px 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .feats::-webkit-scrollbar { display: none; }
  .feat { flex: 0 0 82%; display: flex; flex-direction: column; align-items: stretch; text-align: start; scroll-snap-align: start; padding: 12px 12px 20px; }
  .feat .tv-scr { aspect-ratio: 16 / 9; border-width: 4px; border-radius: 12px; margin-bottom: 16px; }
  .tv-scr svg { width: 44px; height: 44px; }
  .feat h3, .feat p { padding-inline: 6px; }
  .feat h3 { margin: 0 0 6px; font-size: 19px; }
  .feat p { font-size: 15px; line-height: 1.5; }
  .tv-fdots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
  .tv-fdots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .22); transition: width .3s, background-color .3s; }
  .tv-fdots i.on { width: 22px; background: var(--accent); }

  /* Étapes et galerie */
  .steps li p { font-size: 15px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .tabs { align-self: stretch; display: flex; }
  .tabs button { flex: 1; padding-inline: 8px; }
}

/* Bande fixe tout en haut, sous le menu : Safari iOS 26 prend la couleur d'un élément fixe collé en haut
   pour la barre d'état. Elle fond vers le bas pour rester invisible sur la page. */
.tv-topfill { position: fixed; top: 0; left: 0; right: 0; height: 90px; z-index: 19; pointer-events: none; background-color: var(--bg); -webkit-mask-image: linear-gradient(#000 0, #000 12%, transparent 100%); mask-image: linear-gradient(#000 0, #000 12%, transparent 100%); transition: background-color 1.2s ease; }

/* =============================================================
   MENU TÉLÉPHONE « LISTE DES CHAÎNES »
   Plein écran, s'allume comme une TV (neige puis image), liens en
   cascade avec numéro de chaîne vert, icônes qui se dessinent.
   ============================================================= */
.tv-menu, .tv-prog { display: none; }
@media (max-width: 700px) {
  /* L'ancien menu déroulant laisse sa place au panneau */
  .bar.tv-hasmenu nav { display: none !important; }
  .bar { z-index: 40; }

  /* Fil de lecture au bas de la capsule */
  .tv-prog { display: block; position: absolute; left: 26px; right: 26px; bottom: -1px; height: 2px; border-radius: 2px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent2), #38d6ff); box-shadow: 0 0 10px rgba(242, 72, 154, .7); pointer-events: none; transition: opacity .3s; }
  [dir=rtl] .tv-prog { transform-origin: right; }
  .bar.open .tv-prog { opacity: 0; }

  /* Bouton : un vrai bouton rond qui s'illumine quand le menu est ouvert */
  .burger { position: relative; background: rgba(255, 255, 255, .06); transition: background-color .3s, box-shadow .3s; }
  .burger span { width: 18px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), width .3s; }
  .burger span:last-child { width: 12px; transform: translate(-3px, 4px); }
  .bar.open .burger { background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 6px 22px -6px rgba(242, 72, 154, .9); }
  .bar.open .burger span:last-child { width: 18px; transform: rotate(-45deg); }
  .bar.open { background: rgba(14, 11, 22, .7); }

  .tv-menu { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 39; padding: 96px 18px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    background: radial-gradient(120% 60% at 85% 0%, color-mix(in srgb, var(--amb, #8b3dff) 30%, transparent), transparent 70%), radial-gradient(90% 50% at 0% 100%, rgba(242, 72, 154, .16), transparent 70%), rgba(9, 7, 14, .97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .tv-menu[hidden] { display: none; }
  /* Lignes de balayage discrètes, comme sur un écran */
  .tv-menu::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }

  /* Ouverture : le panneau se déroule depuis la barre du haut */
  .tv-menu.on { animation: tv-menu-on .38s cubic-bezier(.16, 1, .3, 1) both; }
  .tv-menu.off { animation: tv-menu-off .26s ease-in both; }
  @keyframes tv-menu-on { from { opacity: 0; clip-path: inset(0 0 100% 0 round 0 0 28px 28px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 0); } }
  @keyframes tv-menu-off { from { opacity: 1; } to { opacity: 0; transform: translateY(-12px); } }

  /* Les chaînes */
  .tv-menu-list { display: flex; flex-direction: column; gap: 8px; }
  .tv-menu-list a { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; min-height: 64px; padding: 10px 16px 10px 14px; border-radius: 20px; color: var(--text); text-decoration: none; background: linear-gradient(100deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; -webkit-tap-highlight-color: transparent; transition: scale .15s, border-color .3s, background-color .3s; }
  .tv-menu.on .tv-menu-list a { animation: tv-menu-in .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.08s + var(--i) * .045s); }
  @keyframes tv-menu-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
  [dir=rtl] .tv-menu.on .tv-menu-list a { animation-name: tv-menu-in-rtl; }
  @keyframes tv-menu-in-rtl { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
  .tv-menu-list a:active { scale: .97; }

  .tv-mi { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
  .tv-mi svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 70%, transparent)); }
  .tv-mi svg > * { stroke-dasharray: 1; stroke-dashoffset: 0; }
  .tv-menu.on .tv-mi svg > * { animation: tv-draw .8s cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(.32s + var(--i) * .055s); }
  @keyframes tv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .tv-menu-list b { font-size: 22px; font-weight: 750; letter-spacing: -.015em; }
  .tv-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 17px; color: var(--muted); background: rgba(255, 255, 255, .05); transition: background-color .3s, color .3s, transform .3s; }
  [dir=rtl] .tv-go { transform: scaleX(-1); }

  /* Page en cours : la chaîne « à l'antenne » */
  .tv-menu-list a[aria-current=page] { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: linear-gradient(100deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255, 255, 255, .02)); box-shadow: 0 10px 30px -14px var(--c); }
  .tv-menu-list a[aria-current=page] .tv-go { color: #fff; background: var(--c); }
  .tv-menu-list a[aria-current=page]::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 12px var(--c); }

  /* Bas du panneau : stores et heure façon antenne */
  .tv-menu-foot { margin-top: auto; padding-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .tv-menu.on .tv-menu-foot { animation: tv-menu-up .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.2s + var(--i) * .055s); }
  @keyframes tv-menu-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .tv-menu-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .tv-menu-stores .tv-store { display: flex; align-items: center; justify-content: center; padding: 9px 8px; gap: 8px; min-width: 0; border-radius: 13px; background: #000; border: 1px solid rgba(255, 255, 255, .22); text-decoration: none; }
  .tv-menu-stores .tv-store b { font-size: 14px; white-space: nowrap; }
  .tv-menu-stores .tv-store .ms { width: 20px; height: 20px; }
  .tv-menu-osd { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #7dff8a; text-shadow: 0 0 8px rgba(125, 255, 138, .6); }
  .tv-menu-osd i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: tv-blink 1.2s steps(2) infinite; }
  @keyframes tv-blink { 50% { opacity: .2; } }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .tv-menu.on, .tv-menu.off, .tv-menu.on .tv-menu-list a, .tv-menu.on .tv-mi svg > *, .tv-menu.on .tv-menu-foot { animation: none !important; }
}
/* L'arabe ne supporte pas l'espacement entre lettres (il casse les liaisons) */
[dir=rtl] .tv-menu-osd span, [dir=rtl] .tv-foot-osd span { letter-spacing: 0; }
/* Allumage en attente : noir posé, animations à l'arrêt (voir boot() dans salon.js) */
.tv-boot.wait, .tv-boot.wait * { animation-play-state: paused !important; }
