/* ============================================================
   NÉBULA · Homepage façon "Zenix" (couleurs violettes)
   Adapté depuis zenix.best — implémenté en CSS pur
   ============================================================ */

:root {
  /* Échelle grise (Tailwind zinc) */
  --color-gray-50: 250 250 250;
  --color-gray-100: 244 244 245;
  --color-gray-200: 228 228 231;
  --color-gray-300: 212 212 216;
  --color-gray-400: 161 161 170;
  --color-gray-500: 113 113 122;
  --color-gray-600: 82 82 91;
  --color-gray-700: 63 63 70;
  --color-gray-800: 39 39 42;
  --color-gray-900: 24 24 27;
  --color-gray-950: 9 9 11;

  /* Échelle primaire violette (Nébula) */
  --color-primary-50: 245 243 255;
  --color-primary-100: 237 233 254;
  --color-primary-200: 221 214 254;
  --color-primary-300: 196 181 253;
  --color-primary-400: 167 139 250;
  --color-primary-500: 139 92 246;
  --color-primary-600: 124 58 237;
  --color-primary-700: 109 40 217;
  --color-primary-800: 91 33 182;
  --color-primary-900: 76 29 149;
  --color-primary-950: 46 16 101;

  --znx-sidebar-w: 256px;
  --znx-sidebar-compact: 68px;

  --znx-accent: #8b5cf6;
  --znx-accent-hover: #7c3aed;
  --znx-amber: #f59e0b;
}

html, body { max-width: 100%; }
body { overflow-x: hidden; }
#main-content { max-width: 100%; }

/* ──────────────────────────────────────────────── */
/* CONTAINER                                   */
/* ──────────────────────────────────────────────── */
.znx-container {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .znx-container { padding-left: 2rem; padding-right: 2rem; }
}

/* ──────────────────────────────────────────────── */
/* HEADER PILLE FLOTTANTE                          */
/* ──────────────────────────────────────────────── */
.znx-header-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 12px 12px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  transition: opacity .5s ease, transform .5s ease, padding-left .3s ease;
  box-sizing: border-box;
  max-width: 100%;
  opacity: 0;
  transform: translateY(-24px);
}
body.znx-revealed .znx-header-wrap { opacity: 1; transform: translateY(0); }
@media (min-width: 640px) {
  .znx-header-wrap { padding: 12px 16px; }
}
@media (min-width: 1024px) {
  .znx-header-wrap { padding-left: calc(var(--znx-sidebar-w) + 14px); padding-right: 20px; }
  .znx-header-wrap.is-compact-wrap { padding-left: calc(var(--znx-sidebar-compact) - 8px); }
}

.znx-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  max-width: calc(100vw - 24px);
  border-radius: 100px;
  padding: 0 10px 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(12,12,18,.42) !important;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  transition: all .3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
  box-sizing: border-box;
  overflow: hidden;
}
@media (min-width: 640px) {
  .znx-pill { height: 56px; gap: 14px; padding: 0 18px 0 24px; max-width: none; overflow: visible; }
}
.znx-pill.scrolled {
  background: rgba(16,16,26,.55) !important;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 8px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14);
}

.znx-logo {
  flex-shrink: 0;
  padding-right: 4px;
  display: flex; align-items: center;
  transition: opacity .2s;
}
.znx-logo:hover { opacity: .88; }
.znx-logo img { height: 28px; width: auto; }

/* Nav desktop (caché sur tablette/mobile) */
.znx-nav { display: none; min-width: 0; flex: 1; align-items: center; }
@media (min-width: 1024px) { .znx-nav { display: flex; } }
.znx-nav-pill {
  display: flex; align-items: center;
  border-radius: 100px; border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02); padding: 4px;
  margin: 0 auto;
}
.znx-nav-link {
  position: relative;
  border-radius: 100px; padding: 6px 14px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.5);
  text-decoration: none; white-space: nowrap;
  transition: color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.znx-nav-link:hover { color: rgba(255,255,255,.85); }
.znx-nav-link.active { color: #fff; }
.znx-nav-link.active::before {
  content: ''; position: absolute; inset: 0; border-radius: 100px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.znx-nav-link span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; }
.znx-nav-sep { margin: 0 4px; width: 1px; height: 16px; background: rgba(255,255,255,.1); flex-shrink: 0; }

/* Recherche desktop */
.znx-search-desktop { display: none; min-width: 0; flex: 1; justify-content: flex-end; max-width: 280px; }
@media (min-width: 768px) { .znx-search-desktop { display: flex; } }
@media (min-width: 1280px) { .znx-search-desktop { max-width: 320px; } }
.znx-search-input-wrap { position: relative; width: 100%; max-width: 176px; transition: all .3s ease; }
.znx-search-input-wrap:focus-within { max-width: 100%; }
.znx-search-inner {
  display: flex; align-items: center;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  height: 40px; width: 100%;
  transition: all .3s ease;
  cursor: pointer;
}
.znx-search-inner:hover { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.znx-search-inner svg { margin-left: 14px; flex-shrink: 0; color: rgba(255,255,255,.5); }
.znx-search-inner input {
  flex: 1; min-width: 0;
  background: transparent; border: none;
  padding: 0 12px; color: #fff; font-size: 14px;
  outline: none; cursor: pointer; font-family: inherit;
}
.znx-search-inner input::placeholder { color: rgba(255,255,255,.3); }

/* Actions droite */
.znx-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.znx-icon-group { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
@media (min-width: 640px) { .znx-icon-group { gap: 4px; } }

.znx-icon-act {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 100px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: all .2s;
  border: none; background: transparent; cursor: pointer;
  position: relative; flex-shrink: 0;
}
@media (min-width: 640px) { .znx-icon-act { width: 36px; height: 36px; } }
.znx-icon-act:hover { background: rgba(255,255,255,.06); color: #fff; }
.znx-icon-act.mobile-only { display: flex; }

/* Intégration du slot comptes (accounts-ui) dans la pilule */
.znx-icon-group .header-right { display: flex; align-items: center; gap: 4px; }
.znx-icon-group .icon-btn {
  position: relative;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 100px; border: none; background: transparent;
  color: rgba(255,255,255,.55);
  transition: all .2s;
}
@media (min-width: 640px) { .znx-icon-group .icon-btn { width: 36px; height: 36px; } }
.znx-icon-group .icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; transform: none; }
.znx-icon-group .icon-btn .badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--znx-accent); color: #fff;
  font-size: .62rem; font-weight: 800;
  min-width: 15px; height: 15px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 3px;
}
.znx-icon-group .icon-btn.hidden { display: none; }
.znx-icon-group .acc-btn .acc-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.15rem;
  background: linear-gradient(120deg, #8b5cf6, #ec4899);
  color: #fff;
}
@media (min-width: 640px) { .znx-icon-group .acc-btn .acc-avatar { width: 34px; height: 34px; } }

/* Recherche mobile (icône) */
.znx-icon-group .search-toggle { color: rgba(255,255,255,.55); }
.znx-icon-group .search-toggle:hover { background: rgba(255,255,255,.06); color: #fff; }
@media (min-width: 768px) { .znx-icon-group .search-toggle { display: none !important; } }

/* toggle compact sidebar : desktop / tablette uniquement */
.znx-icon-act.lg-only { display: none; }
@media (min-width: 1024px) { .znx-icon-act.lg-only { display: flex; } }

/* burger : caché sur desktop (sidebar présente) */
@media (min-width: 1024px) { .znx-icon-act.znx-burger { display: none; } }

/* recherche mobile : la pilule s'élargit et le champ prend toute la place */
@media (max-width: 767px) {
  body.znx-search-open .znx-logo { display: none; }
  body.znx-search-open .znx-search-desktop { display: flex; flex: 1; max-width: none; min-width: 0; }
  body.znx-search-open .znx-search-input-wrap { max-width: none; }
  body.znx-search-open .znx-search-inner { height: 38px; }
}

/* ──────────────────────────────────────────────── */
/* SIDEBAR (desktop)                               */
/* ──────────────────────────────────────────────── */
/* SIDEBAR (desktop) — style « verre » cohérent avec la frontbarre */
/* ─────────────────────────────────────────────────────────────── */
.znx-sidebar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  width: var(--znx-sidebar-w);
  z-index: 50;
  display: none;
  flex-direction: column;
  padding: 14px 12px;
  background: rgba(16,16,26,.35) !important;
  backdrop-filter: blur(28px) saturate(185%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
  box-sizing: border-box;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
@media (min-width: 1024px) { .znx-sidebar { display: flex; } }

.znx-sidebar__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px 18px;
}
.znx-sidebar__head img { height: 30px; width: auto; }
.znx-sidebar__brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }

.znx-sidebar__discord {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  margin: 4px 2px 8px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(88,101,242,.20), rgba(88,101,242,.10));
  border: 1px solid rgba(114,137,218,.38);
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  backdrop-filter: blur(24px) saturate(185%);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
}
.znx-sidebar__discord::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 150% at 0% 0%, rgba(114,137,218,.38), rgba(139,92,246,.12) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
}
.znx-sidebar__discord::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left .55s ease;
}
.znx-sidebar__discord:hover {
  border-color: rgba(114,137,218,.75);
  transform: translateX(3px);
  box-shadow: 0 0 0 1px rgba(114,137,218,.22), 0 8px 24px rgba(88,101,242,.28);
}
.znx-sidebar__discord:hover::before { opacity: 1; }
.znx-sidebar__discord:hover::after { left: 130%; }
.znx-sidebar__discord:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }

.znx-sidebar__discord-icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: #7289da;
  background: linear-gradient(180deg, rgba(114,137,218,.28), rgba(88,101,242,.18));
  border: 1px solid rgba(114,137,218,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 12px rgba(88,101,242,.25);
  transition: transform .18s ease;
}
.znx-sidebar__discord:hover .znx-sidebar__discord-icon { transform: scale(1.06); }

.znx-sidebar__discord-body { display: block; flex: 1; min-width: 0; }
.znx-sidebar__discord-title {
  display: block;
  font-size: 13px; font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.znx-sidebar__discord-url {
  display: block;
  font-size: 11.5px;
  color: rgba(255,255,255,.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.znx-sidebar__discord-status {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 3px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .01em;
  color: #43b581;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.znx-sidebar__discord-status-dot {
  flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: #43b581;
  animation: znx-discord-pulse 2.4s ease-out infinite;
}
@keyframes znx-discord-pulse {
  0% { box-shadow: 0 0 0 0 rgba(67,181,129,.5); }
  70% { box-shadow: 0 0 0 6px rgba(67,181,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(67,181,129,0); }
}
.znx-sidebar__discord-cta {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.znx-sidebar__discord-cta svg { width: 14px; height: 14px; }
.znx-sidebar__discord:hover .znx-sidebar__discord-cta {
  color: #fff;
  background: rgba(255,255,255,.16);
  transform: translateX(2px);
}

/* mode compact : seule l'icône reste */
body.znx-compact .znx-sidebar__discord { justify-content: center; padding: 10px; margin: 4px 2px 6px; }
body.znx-compact .znx-sidebar__discord-body,
body.znx-compact .znx-sidebar__discord-cta { display: none; }
body.znx-compact .znx-sidebar__discord:hover { transform: none; }

/* accessibilité : pas de mouvement imposé */
@media (prefers-reduced-motion: reduce) {
  .znx-sidebar__discord,
  .znx-sidebar__discord-icon,
  .znx-sidebar__discord-cta,
  .znx-sidebar__discord-status-dot { transition: none; animation: none; }
  .znx-sidebar__discord::after { display: none; }
  .znx-sidebar__discord:hover { transform: none; }
}

/* LOGO FIXE « pin » — sorti de la bulle, posé en haut à gauche, plus gros,
   style verre cohérent avec la frontbarre (blur+saturate)                     */
.znx-brand-fixed {
  position: fixed;
  top: 14px;
  left: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  padding: 12px 16px;             /* bulle draggable plus grosse */
  border-radius: 999px;            /* pilule comme la frontbarre */
  background: rgba(16,16,26,.35);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
  transition: opacity .15s;
}
.znx-brand-fixed:hover { opacity: .88; }
.znx-brand-fixed img { height: 40px; width: auto; }      /* logo plus gros */
.znx-brand-fixed__txt { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 1023px) { .znx-brand-fixed { display: none; } }

.znx-sidebar__nav { display: flex; flex-direction: column; justify-content: center; gap: 2px; margin-top: 4px; overflow-y: auto; flex: 1; }
.znx-sidebar__link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.znx-sidebar__link:hover { color: #fff; background: rgba(255,255,255,.06); }
.znx-sidebar__link.znx-sidebar__link--active { color: #fff; background: rgba(139,92,246,.15); }
.znx-sidebar__link svg { flex-shrink: 0; opacity: .7; width: 17px; height: 17px; }
.znx-sidebar__new {
  margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #a78bfa; background: rgba(139,92,246,.15);
  padding: 2px 7px; border-radius: 999px;
}
.znx-sidebar__sep { height: 1px; background: rgba(255,255,255,.06); margin: 10px 8px; }

.znx-sidebar__foot {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 12px 10px 4px;
  font-size: 11.5px; color: rgba(255,255,255,.3);
  line-height: 1.6;
}
.znx-sidebar__foot a { color: rgba(255,255,255,.5); text-decoration: none; }
.znx-sidebar__foot a:hover { color: #a78bfa; }

/* mode compact (toggle) */
body.znx-compact .znx-sidebar { width: var(--znx-sidebar-compact); }
body.znx-compact .znx-sidebar__head { justify-content: center; padding-left: 0; padding-right: 0; }
body.znx-compact .znx-sidebar__head img { height: 26px; }
body.znx-compact .znx-sidebar__brand,
body.znx-compact .znx-sidebar__link span:not([class]),
body.znx-compact .znx-sidebar__new,
body.znx-compact .znx-sidebar__foot,
body.znx-compact .znx-sidebar__sep { display: none; }
body.znx-compact .znx-sidebar__link { justify-content: center; padding: 10px; }

/* Contenu principal (décalé par la sidebar) */
.znx-main {
  transition: margin-left .3s ease;
  min-height: 100vh;
  flex: 1;
}
@media (min-width: 1024px) {
  .znx-main { margin-left: var(--znx-sidebar-w); }
  body.znx-compact .znx-main { margin-left: var(--znx-sidebar-compact); }
}

/* ──────────────────────────────────────────────── */
/* NAV MOBILE (off-canvas)                          */
/* ──────────────────────────────────────────────── */
.znx-mobile-overlay {
  position: fixed; inset: 0; top: 0; z-index: 949;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.znx-mobile-overlay.open { opacity: 1; pointer-events: auto; }
.znx-mobile-nav {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: min(280px, 85vw);
  max-width: 280px;
  z-index: 950;
  background: rgba(10,10,16,.96);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,.06);
  transform: translateX(-100%);
  transition: transform .2s ease-out;
  display: flex; flex-direction: column;
  box-sizing: border-box;
}
.znx-mobile-nav.open { transform: translateX(0); }
.znx-mobile-nav__inner { padding: 16px 12px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.znx-mobile-nav__link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: all .15s;
}
.znx-mobile-nav__link:hover { color: #fff; background: rgba(255,255,255,.06); }
.znx-mobile-nav__link svg { width: 16px; height: 16px; opacity: .7; }
.znx-mobile-nav__new {
  margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #fda4af; background: rgba(244,63,94,.12);
  padding: 2px 7px; border-radius: 999px;
}
.znx-mobile-nav__foot {
  margin-top: auto; border-top: 1px solid rgba(255,255,255,.05);
  padding: 14px 12px 18px; font-size: 11.5px; color: rgba(255,255,255,.3);
}
.znx-mobile-nav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 14px;
}
.znx-mobile-nav__head img { height: 30px; width: auto; }
.znx-mobile-nav__close {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.znx-mobile-nav__close:hover { color: #fff; }

/* ──────────────────────────────────────────────── */
/* TRUST BAR                                        */
/* ──────────────────────────────────────────────── */
.znx-trust-bar {
  position: relative; z-index: 40;
  margin-top: 76px; margin-bottom: -52px;
  padding: 0 16px;
  display: flex; justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .znx-trust-bar { margin-left: var(--znx-sidebar-w); width: calc(100% - var(--znx-sidebar-w)); padding: 0 20px; }
  body.znx-compact .znx-trust-bar { margin-left: var(--znx-sidebar-compact); width: calc(100% - var(--znx-sidebar-compact)); }
}
.znx-trust-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px 14px; flex-wrap: wrap;
  width: fit-content; max-width: min(920px, 100%);
  margin-left: auto; margin-right: auto;
  min-height: 40px; padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(139,92,246,.08));
  color: rgba(255,255,255,.78);
  font-size: 12px; line-height: 1.3;
  text-align: center;
}
.znx-trust-bar__item { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; flex: 0 0 auto; }
.znx-trust-bar__dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.8);
  animation: znxPulse 2s ease-in-out infinite;
}
@keyframes znxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .65; transform: scale(.9); }
}
@media (max-width: 640px) {
  .znx-trust-bar { margin-top: 66px; margin-bottom: -46px; padding: 0 10px; }
  .znx-trust-bar__inner { border-radius: 16px; padding: 10px 12px; }
}

/* ──────────────────────────────────────────────── */
/* HERO (swiper fade, propre)                       */
/* ──────────────────────────────────────────────── */
.znx-hero { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.znx-hero-track { position: relative; min-height: 100dvh; }
.znx-hero-slide {
  position: relative;
  display: none;
  overflow: hidden;
  border-radius: 18px;
  min-height: 100dvh;
}
.znx-hero-slide.active { display: block; animation: znxHeroFade .8s ease forwards; }
@keyframes znxHeroFade {
  from { opacity: .35; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.znx-hero-slide__bg { position: absolute; inset: 0; background: var(--color-gray-900); }
.znx-hero-slide__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }

/* voiles haut / bas */
.znx-hero-slide__shade.top,
.znx-hero-slide__shade.bottom,
.znx-hero-slide__shade.left,
.znx-hero-slide__shade.right {
  position: absolute; z-index: 10; pointer-events: none;
}
.znx-hero-slide__shade.top {
  inset: 0;
  background: linear-gradient(to bottom, rgba(9,9,11,.55) 0%, transparent 40%);
}
.znx-hero-slide__shade.bottom {
  inset: 0;
  background: linear-gradient(to top, rgb(9 9 11) 0%, rgba(9,9,11,.4) 30%, transparent 70%);
}
.znx-hero-slide__shade.left,
.znx-hero-slide__shade.right {
  top: 0; bottom: 0; width: 12%;
  background: transparent;
}

.znx-hero-slide__content {
  position: absolute; z-index: 20; inset: 0;
  display: flex; align-items: flex-end;
}
.znx-hero-slide__body {
  width: 100%; max-width: 640px;
  padding: 0 16px 24px 16px;
  pointer-events: none;
}
@media (min-width: 640px) { .znx-hero-slide__body { padding: 0 32px 40px 32px; } }
@media (min-width: 1024px) { .znx-hero-slide__body { padding: 0 64px 64px 64px; max-width: 720px; } }

.znx-hero-chips {
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: 6px; margin-bottom: 12px;
  overflow: hidden; white-space: nowrap;
}
.znx-hero-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
  font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.85);
  flex-shrink: 0;
}
.znx-hero-chip svg { width: 11px; height: 11px; fill: currentColor; }
.znx-hero-chip--rating svg { fill: #f59e0b; }
.znx-hero-chip--rating { color: #fff; }
.znx-hero-chip--quality { text-transform: uppercase; letter-spacing: .06em; }

.znx-hero-title {
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 10px;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}

.znx-hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 560px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 18px;
}
@media (min-width: 640px) { .znx-hero-desc { font-size: 14px; -webkit-line-clamp: 3; } }

.znx-hero-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px;
  border-radius: 12px;
  background: #fff !important;
  color: #000 !important;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transition: all .2s;
  text-decoration: none;
  pointer-events: auto;
}
@media (min-width: 640px) { .znx-hero-cta { padding: 14px 32px; font-size: 16px; } }
.znx-hero-cta:hover { background: rgba(255,255,255,.92) !important; transform: translateY(-1px); }
.znx-hero-cta svg { width: 16px; height: 16px; fill: #000; }

/* pagination du hero */
.znx-hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
}
.znx-hero-dots button {
  display: block;
  width: 32px; height: 6px;
  border-radius: 100px;
  background: rgb(var(--color-gray-800));
  position: relative;
  overflow: hidden;
  padding: 0; border: none; cursor: pointer;
}
.znx-hero-dots button::before {
  content: '';
  display: block; position: absolute; inset: 0;
  width: 0;
  border-radius: 100px;
  background: var(--znx-accent);
}
.znx-hero-dots button.active { width: 48px; }
.znx-hero-dots button.active::before { animation: znxProgress 3.5s linear forwards; }
@keyframes znxProgress { from { width: 0; } to { width: 100%; } }

.znx-hero-head { position: relative; z-index: 50; padding-bottom: 24px; }
@media (min-width: 1024px) { .znx-hero-head { padding-bottom: 64px; } }

/* ──────────────────────────────────────────────── */
/* RANGÉES / CARTES                                 */
/* ──────────────────────────────────────────────── */
.znx-rows { display: flex; flex-direction: column; }
.znx-row { padding-bottom: 24px; }
@media (min-width: 1024px) { .znx-row { padding-bottom: 56px; } }

/* Révélation du site quand on défile (body.znx-revealed posé par home.js) */
body:not(.znx-revealed):not(.znx-no-anim) .znx-rows { opacity: 0; transform: translateY(24px); }
body:not(.znx-no-anim) .znx-rows { transition: opacity .7s ease, transform .7s ease; }
body.znx-revealed .znx-rows, body.znx-no-anim .znx-rows { opacity: 1; transform: none; }

.znx-row__head { display: flex; flex-direction: column; margin-bottom: 18px; gap: 2px; }
.znx-row__kicker {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--znx-accent);
  display: flex; align-items: center; gap: 6px;
}
.znx-row__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}
.znx-row__title svg { width: 18px; height: 18px; color: var(--znx-accent); flex-shrink: 0; }
@media (min-width: 1024px) {
  .znx-row__head { flex-direction: row; align-items: center; margin-bottom: 20px; }
  .znx-row__title { font-size: 20px; }
}
.znx-row__more {
  margin-left: auto; font-size: 14px; font-weight: 500;
  color: #a78bfa; text-decoration: none; flex-shrink: 0;
}
.znx-row__more:hover { color: #c4b5fd; }

.znx-scroller { position: relative; }
.znx-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 14px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.znx-track::-webkit-scrollbar { display: none; }
.znx-track > * { flex-shrink: 0; }

/* ── Barre de progression : presser-maintenir-glisser pour défiler ── */
.znx-scroller-bar {
  position: relative;
  height: 7px;
  border-radius: 100px;
  background: rgba(255,255,255,.08);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  margin-top: 6px;
  overflow: visible;
  transition: background .15s, height .15s;
}
.znx-scroller-bar:focus-visible { outline: 2px solid rgba(139,92,246,.7); outline-offset: 3px; }
.znx-scroller-bar:hover, .znx-scroller-bar.dragging { background: rgba(255,255,255,.12); }
.znx-scroller-bar.dragging { cursor: grabbing; height: 10px; }

.znx-scroller-bar__fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(to right, var(--znx-accent), #a78bfa);
  box-shadow: 0 0 12px rgba(139,92,246,.45);
  transition: width .15s linear;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .znx-scroller-bar__fill { transition: none; }
}
/* petite poignée au bout du fill */
.znx-scroller-bar__fill::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translate(50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139,92,246,.45), 0 0 10px rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .15s;
}
.znx-scroller-bar:hover .znx-scroller-bar__fill::after,
.znx-scroller-bar.dragging .znx-scroller-bar__fill::after,
.znx-scroller-bar:focus .znx-scroller-bar__fill::after { opacity: 1; }

/* ── Carte zenix ── */
.zenix-card {
  position: relative;
  width: clamp(128px, 27vw, 172px);
  border-radius: 14px;
  background: #0a0a0f;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  margin-top: 8px;
  cursor: pointer;
}
@media (min-width: 640px) { .zenix-card { width: 148px; } }
@media (min-width: 1024px) { .zenix-card { width: clamp(130px, 12vw, 200px); max-width: 200px; } }

.zenix-card::after {
  content: '';
  position: absolute; inset: -2px;
  border: 1.5px solid rgba(255,255,255,.06);
  border-radius: 15px; z-index: 20; pointer-events: none;
  transition: border-color .35s, box-shadow .35s;
}
.zenix-card:hover { transform: translateY(-2px) scale(1.01); z-index: 20; }
.zenix-card:hover::after { border-color: rgba(139,92,246,.7); box-shadow: inset 0 0 18px rgba(139,92,246,.25); }

.zenix-card__inner {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  text-decoration: none;
}

.zenix-card__img-wrap { position: absolute; inset: 0; z-index: 1; transition: transform .55s, filter .45s; }
.zenix-card:hover .zenix-card__img-wrap { transform: scale(1.08); filter: brightness(.38) blur(2px); }
.zenix-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.zenix-card__gradient-base {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 28%, rgba(0,0,0,.1) 55%, transparent 100%);
  transition: opacity .4s;
}
.zenix-card:hover .zenix-card__gradient-base { opacity: .6; }

.zenix-card__overlay {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(5,5,10,.72);
  opacity: 0; transition: opacity .4s;
}
.zenix-card:hover .zenix-card__overlay { opacity: 1; }

.zenix-card__badge {
  position: absolute; top: 10px; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: opacity .3s, transform .3s;
}
.zenix-card__badge--quality {
  left: 10px; background: rgba(10,10,20,.78); color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.zenix-card__badge--rating {
  right: 10px; background: rgba(245,158,11,.92); color: #1a0a00;
  border: 1px solid rgba(255,200,0,.3);
  box-shadow: 0 2px 12px rgba(245,158,11,.4);
  opacity: 0; transform: translateY(-4px);
}
.zenix-card:hover .zenix-card__badge--rating { opacity: 1; transform: translateY(0); }

.zenix-card__info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 11;
  padding: 14px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.7) 60%, transparent 100%);
  transform: translateY(6px); opacity: 0;
  transition: opacity .35s, transform .35s cubic-bezier(.25,.46,.45,.94);
}
.zenix-card:hover .zenix-card__info { opacity: 1; transform: translateY(0); }

.zenix-card__type {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  color: #a78bfa; margin-bottom: 5px;
}
.zenix-card__type svg { width: 9px; height: 9px; }
.zenix-card__title {
  font-size: 12px; font-weight: 700; color: #fff; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
  margin-bottom: 4px;
}
.zenix-card__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  font-size: 9px; color: rgba(200,210,230,.8); font-weight: 500;
}
.zenix-card__meta .dot { color: rgba(255,255,255,.3); }
.zenix-card__genre { color: #a78bfa; font-weight: 700; }

/* version "continue" (progression) */
.zenix-card.zenix-card--continue .zenix-card__info { opacity: 1; transform: none; }
.zenix-card.zenix-card--continue .zenix-card__gradient-base { opacity: .6; }
.zenix-card--continue .zenix-card__badge--quality { right: 10px; left: auto; }

/* ──────────────────────────────────────────────── */
/* GRILLE GENRES                                    */
/* ──────────────────────────────────────────────── */
.znx-genre-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
}
@media (min-width: 1024px) { .znx-genre-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1440px) { .znx-genre-grid { grid-template-columns: repeat(5, 1fr); } }

.znx-genre-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(39,39,42,.7);
  color: #fff;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.znx-genre-tile:hover { background: var(--znx-accent); transform: translateY(-1px); }
.znx-genre-tile svg { width: 16px; height: 16px; opacity: .6; }

/* ──────────────────────────────────────────────── */
/* FOOTER                                           */
/* ──────────────────────────────────────────────── */
.znx-footer-wrap {
  border-top: 1px solid transparent;
  background: linear-gradient(180deg, transparent, rgba(139,92,246,.07));
  margin-top: 30px;
  position: relative;
}
.znx-footer-wrap::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(139,92,246,.6), transparent);
}
.znx-footer {
  max-width: 1240px; margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid; gap: 28px;
}
@media (min-width: 768px) { .znx-footer { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.znx-footer__brand img { height: 30px; width: auto; margin-bottom: 10px; }
.znx-footer__brand p { color: rgba(255,255,255,.45); font-size: 13px; line-height: 1.6; }
.znx-footer__col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.01em; }
.znx-footer__col a {
  display: block; color: rgba(255,255,255,.5); font-size: 13px;
  padding: 4px 0; text-decoration: none; transition: color .15s;
}
.znx-footer__col a:hover { color: #a78bfa; }
.znx-footer__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 16px;
  font-size: 11.5px; color: rgba(255,255,255,.3);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ──────────────────────────────────────────────── */
/* LOADING / erreur (aligné sur le thème)           */
/* ──────────────────────────────────────────────── */
.znx-loading {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 90px 0; color: rgba(255,255,255,.5);
}
.znx-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--znx-accent);
  animation: znxSpin .7s linear infinite;
}
@keyframes znxSpin { to { transform: rotate(360deg); } }

/* animations d'entrée des rangées */
.znx-row { content-visibility: auto; contain-intrinsic-size: auto 300px; }

/* scrollbar globale (thème) */
.znx-body-slim ::-webkit-scrollbar { width: 8px; height: 8px; }
.znx-body-slim ::-webkit-scrollbar-thumb { background: rgba(139,92,246,.35); border-radius: 8px; }