/* ============================================================
   NOIR SHINE — finitions lumineuses de l'accueil et de la page Apps
   Lumières fixes (calculées une fois) ; seules les animations de l'orbite bougent, en transform / opacity.
   ============================================================ */

/* ---------- APPS · orbite de logos dans l'en-tête ---------- */
.vh { position: relative; }
.vh > div:not(.vh-orb) { position: relative; z-index: 1; }
.vh-orb { position: absolute; right: -20px; top: -46px; width: 600px; height: 260px; z-index: 0; pointer-events: none; }
.vh-orb .vo-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vh-orb .vo-glow { position: absolute; left: 50%; top: 50%; width: 360px; height: 220px; margin: -110px 0 0 -180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225,230,240,.16), rgba(225,230,240,.05) 50%, transparent); }
.vo-tilt { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(-10deg) scaleY(.34); }
.vo-p { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateX(240px); animation: voOrbit 72s linear infinite; animation-delay: var(--d); }
.vo-l { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center;
  transform: rotate(calc(var(--a) * -1)) scaleY(2.94) rotate(10deg);
  background: linear-gradient(180deg, #1A1B1F, #07080A) padding-box, conic-gradient(from 220deg, #E4E6EA, #3A3D44 25%, #9DA1AA 50%, #2A2C31 75%, #E4E6EA) border-box; border: 1px solid transparent;
  box-shadow: 0 14px 26px -12px #000, 0 0 26px -8px rgba(var(--c), .7);
  animation: voKeep 72s linear infinite; animation-delay: var(--d); }
.vo-l .logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; }
.vo-l .logo svg { width: 60%; height: 60%; } .vo-l .logo img { width: 100%; height: 100%; object-fit: cover; }
/* le logo reste droit pendant qu'il tourne ; devant (en bas) il grossit, derrière (en haut) il s'estompe */
@keyframes voOrbit { from { transform: rotate(0deg) translateX(240px); } to { transform: rotate(360deg) translateX(240px); } }
@keyframes voKeep {
  0%   { transform: rotate(0deg) scaleY(2.94) rotate(10deg) scale(1); opacity: .85; }
  25%  { transform: rotate(-90deg) scaleY(2.94) rotate(10deg) scale(1.16); opacity: 1; }
  50%  { transform: rotate(-180deg) scaleY(2.94) rotate(10deg) scale(1); opacity: .85; }
  75%  { transform: rotate(-270deg) scaleY(2.94) rotate(10deg) scale(.72); opacity: .35; }
  100% { transform: rotate(-360deg) scaleY(2.94) rotate(10deg) scale(1); opacity: .85; }
}
.vo-core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #3A3C43, #101114 60%, #050506) padding-box, conic-gradient(from 210deg, #fff, #4A4D55 25%, #C9CCD3 50%, #2E3036 75%, #fff) border-box; border: 1.5px solid transparent;
  box-shadow: 0 0 0 8px rgba(255,255,255,.025), 0 0 60px -6px rgba(230,235,245,.35), 0 24px 40px -18px #000; }
.vo-core img { width: 52px; height: 52px; filter: grayscale(1) contrast(1.1) brightness(1.25) drop-shadow(0 0 10px rgba(255,255,255,.35)); }
@media (max-width: 1180px) { .vh-orb { right: -120px; opacity: .7; } }
@media (max-width: 900px) { .vh-orb { display: none; } }
@media (prefers-reduced-motion: reduce) { .vo-p, .vo-l { animation: none; } }
html.fx-lite .vo-p, html.fx-lite .vo-l { animation: none; }

/* ---------- APPS · cartes vedettes : logo en filigrane + arête lumineuse ---------- */
.fc-wm { position: absolute; right: -34px; bottom: -40px; z-index: -1; width: 190px; height: 190px; pointer-events: none; opacity: .09; transform: rotate(-14deg); }
.fc.big .fc-wm { width: 330px; height: 330px; right: -60px; bottom: -70px; opacity: .08; }
.fc-wm .logo { width: 100%; height: 100%; display: grid; place-items: center; background: none !important; }
.fc-wm .logo svg { width: 100%; height: 100%; } .fc-wm .logo img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.2); }
.fc::after { content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), rgba(var(--c),.6), transparent); opacity: .7; }
.fc .hous .logo { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 30px -4px rgba(var(--c),.7); }

/* ---------- APPS · annuaire : chaque logo diffuse sa couleur ---------- */
.app .logo { box-shadow: 0 6px 20px -6px rgba(var(--c), .65); }
.app .hs { transition: transform .4s cubic-bezier(.22,1,.36,1); }
.app:hover .hs, .app:focus-visible .hs { transform: translateY(-2px) scale(1.04); }
.app:hover, .app:focus-visible { box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 0 0 1px rgba(var(--c),.38), 0 18px 38px -24px rgba(var(--c),.85); }
.grp-h .gi { background: linear-gradient(180deg, #1F2025, #0A0A0C) padding-box, conic-gradient(from 220deg, #E4E6EA, #3A3D44 25%, #9DA1AA 50%, #2A2C31 75%, #E4E6EA) border-box !important;
  border: 1px solid transparent; box-shadow: 0 0 22px -6px rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.15) !important; }
.grp-h i { background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,.06) 40%, transparent) !important; }

/* ---------- ACCUEIL · lumière derrière chaque titre de section ---------- */
.act-h { position: relative; isolation: isolate; }
.act-h::before { content: ''; position: absolute; left: -14%; top: -70%; width: 75%; height: 240%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(222,228,240,.13), rgba(222,228,240,.04) 55%, transparent); }
.act-h::after { content: ''; position: absolute; left: 0; right: 0; top: -38px; height: 1px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 45%, transparent 80%); }
.n-kick i { text-shadow: 0 0 14px rgba(255,255,255,.55); }
.act-h h2 { filter: drop-shadow(0 0 26px rgba(255,255,255,.12)); }
/* tuiles de plateformes : la lunette s'éclaire de la couleur de marque */
.bez { box-shadow: 0 18px 30px -14px #000, inset 0 1px 0 rgba(255,255,255,.2), 0 0 40px -10px rgba(var(--c), .45); }
.inst:hover .bez img { transform: translateY(-3px) scale(1.05); }
.bez img { transition: transform .5s cubic-bezier(.22,1,.36,1); }
/* classement vide : trophée 3D lumineux */
.podium-empty .pe-3d { display: block; width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), rgba(255,255,255,.04) 60%, transparent); filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); }
.podium-empty b { display: block; margin-bottom: 6px; color: #fff; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- APPS · orbite interactive : pause au survol, nom de la plateforme, clic = ouvrir ---------- */
.vh-orb { z-index: 2; }
.vh-orb .vo-l { pointer-events: auto; cursor: pointer; text-decoration: none; transition: box-shadow .3s; }
.vh-orb:hover .vo-p, .vh-orb:hover .vo-l { animation-play-state: paused; }
.vo-l::after { content: attr(data-n); position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%) translateY(-4px); padding: 4px 10px; border-radius: 999px;
  font: 600 12px var(--font, system-ui); color: #050506; background: var(--n-silver, #E4E6EA); white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s cubic-bezier(.22,1,.36,1); }
.vo-l:hover::after { opacity: 1; transform: translateX(-50%); }
.vo-l:hover { box-shadow: 0 14px 26px -12px #000, 0 0 0 4px rgba(255,255,255,.06), 0 0 34px -4px rgba(var(--c), .95); }

/* ---------- APPS · « Jump back in » (tes derniers checkers ouverts) ---------- */
.recent { margin-bottom: 40px; }
.recent[hidden] { display: none; }
.rc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rc { --c: 255,255,255; position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 14px 14px 14px; border-radius: 24px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate;
  background: radial-gradient(220px 120px at 0% 0%, rgba(var(--c), .2), transparent 70%), linear-gradient(180deg, #121317, #08090B);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.07), 0 20px 40px -30px rgba(var(--c), .8); transition: box-shadow .35s, transform .35s cubic-bezier(.22,1,.36,1); }
.rc:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(var(--c), .45), 0 26px 46px -26px rgba(var(--c), .9); }
.rc .hs { width: 46px; height: 46px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(180deg,#17181C,#07080A) padding-box, conic-gradient(from 220deg,#E4E6EA,#3A3D44 25%,#9DA1AA 50%,#2A2C31 75%,#E4E6EA) border-box; border: 1px solid transparent; }
.rc .logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 20px -6px rgba(var(--c), .7); }
.rc .logo svg { width: 60%; height: 60%; } .rc .logo img { width: 100%; height: 100%; object-fit: cover; }
.rc-t { flex: 1; min-width: 0; } .rc-t b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-t small { display: block; margin-top: 2px; font: 500 12.5px var(--n-mono, monospace); color: var(--text-faint); white-space: nowrap; }
.rc-t small b { display: inline; font-size: inherit; font-weight: 500; color: #C9CCD4; }
.rc-go { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #050506; background: #fff; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.rc-go svg { width: 14px; height: 14px; } .rc:hover .rc-go { transform: translateX(2px); }
@media (max-width: 900px) { .rc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .rc { padding: 10px; gap: 10px; border-radius: 18px; } .rc-go { display: none; } }

/* ---------- APPS · grille projecteur : la lumière éclaire les bordures des cartes autour du curseur ---------- */
.app::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px circle at var(--gx, -999px) var(--gy, -999px), rgba(255,255,255,.75), rgba(255,255,255,.12) 45%, transparent 70%) fixed;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
#grid.lit .app::before { opacity: 1; }

/* ---------- APPS · recherche : les lettres trouvées s'allument ---------- */
.app-name mark { background: none; color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.85), 0 0 2px #fff; box-shadow: inset 0 -2px 0 rgba(255,255,255,.55); border-radius: 2px; }

/* ---------- APPS · bande « en direct » : vrais chiffres + noms trouvés (jade = vraies trouvailles) ---------- */
.live-band { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; margin: 0 0 22px; padding: 10px 10px 10px 18px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.06); }
.live-band[hidden] { display: none; }
.live-band.fresh { animation: lbFresh 1.6s cubic-bezier(.22,1,.36,1); }
@keyframes lbFresh { 25% { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(63,224,160,.55), 0 0 40px -10px rgba(63,224,160,.55); } }
.lb-stats { display: flex; gap: 22px; }
.ls-i { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.ls-i b { font: 650 20px var(--n-mono, monospace); letter-spacing: -.03em; color: #fff; }
.ls-i small { margin-top: 3px; font-size: 12px; color: var(--text-faint); }
.ls-i[data-k="today"] b { color: #7CF2C2; text-shadow: 0 0 18px rgba(63,224,160,.45); }
.lb-tick { display: flex; align-items: center; gap: 10px; min-width: 0; height: 46px; padding: 0 6px 0 12px; border-radius: 16px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.lb-tick[hidden] { display: none; }
.lb-live { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; font: 600 11.5px var(--font, system-ui); letter-spacing: .08em; text-transform: uppercase; color: #7CF2C2; }
.lb-live i { width: 7px; height: 7px; border-radius: 50%; background: #3FE0A0; box-shadow: 0 0 10px #3FE0A0; animation: lbPulse 1.6s ease-in-out infinite; }
@keyframes lbPulse { 50% { opacity: .3; transform: scale(.7); } }
.lb-view { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lb-track { display: flex; width: max-content; gap: 10px; animation: lbScroll var(--lb-dur, 60s) linear infinite; }
.lb-tick:hover .lb-track { animation-play-state: paused; }
@keyframes lbScroll { to { transform: translateX(-50%); } }
.lt-gap { width: 0; flex-shrink: 0; }
.lt-i { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 32px; padding: 0 12px 0 5px; border-radius: 999px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); white-space: nowrap; }
.lt-i .logo { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.lt-i .logo svg { width: 60%; height: 60%; } .lt-i .logo img { width: 100%; height: 100%; object-fit: cover; }
.lt-i b { font: 600 13.5px var(--n-mono, monospace); color: #fff; }
.lt-i em { font-style: normal; font-size: 12.5px; color: #C9CCD4; }
.lt-i small { font-size: 11.5px; color: var(--text-faint); }
@media (max-width: 760px) { .live-band { grid-template-columns: 1fr; gap: 12px; padding: 12px; } .lb-stats { justify-content: space-between; gap: 10px; } .ls-i b { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .lb-track { animation: none; } .lb-view { overflow-x: auto; } .lb-live i { animation: none; } }

/* ---------- APPS · noms trouvés cette semaine (vrais chiffres) + Trending ---------- */
.app-wk { position: absolute; top: 7px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 8px; border-radius: 999px; pointer-events: auto;
  font: 600 10.5px var(--font, system-ui); color: #9FF5D2; background: rgba(63,224,160,.09); box-shadow: inset 0 0 0 1px rgba(63,224,160,.22); transition: opacity .25s; }
.app-wk i { width: 5px; height: 5px; border-radius: 50%; background: #3FE0A0; box-shadow: 0 0 6px #3FE0A0; }
.app-wk.hot { color: #FFD9A3; background: rgba(255,170,60,.1); box-shadow: inset 0 0 0 1px rgba(255,170,60,.3), 0 0 16px -6px rgba(255,170,60,.6); }
.app:hover > .app-wk, .app:focus-visible > .app-wk { opacity: 0; }
.fc > .app-wk { top: 20px; right: 20px; height: 22px; font-size: 11.5px; }
.fc.big > .app-wk { top: 72px; right: 30px; bottom: auto; }
.fc:not(.big) > .app-wk { top: auto; bottom: 66px; right: 22px; }

/* ---------- APPS · favoris ---------- */
.app > .fav { position: absolute; top: 5px; left: 5px; z-index: 4; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: rgba(255,255,255,.55);
  background: rgba(10,11,13,.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s cubic-bezier(.22,1,.36,1), color .2s; }
.app > .fav svg { width: 12px; height: 12px; }
.app:hover > .fav, .app:focus-within > .fav, .app > .fav.on { opacity: 1; transform: none; }
.app > .fav:hover { color: #fff; }
.app > .fav.on { color: #FFD46B; box-shadow: inset 0 0 0 1px rgba(255,212,107,.45), 0 0 12px -2px rgba(255,212,107,.6); }
@media (hover: none) { .app > .fav { opacity: .75; transform: none; } }
.favs .sec-l .sl-star { width: 15px; height: 15px; color: #FFD46B; margin-right: -6px; }

/* ---------- APPS · titres de catégorie : trait de lumière à l'apparition ---------- */
.grp-h { position: relative; }
.grp-h i { position: relative; overflow: hidden; }
.grp-h i::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); transform: translateX(-120%); }
.grp.seen .grp-h i::after { animation: grpSweep 1.4s cubic-bezier(.65,0,.35,1) .1s 1 both; }
@keyframes grpSweep { to { transform: translateX(420%); } }
@media (prefers-reduced-motion: reduce) { .grp.seen .grp-h i::after { animation: none; } }
