.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: opacity 0.4s, visibility 0.4s;
}
.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__error {
  color: #f87171;
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}

.spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

:root {
  --bg: #0a0a12;
  --bg-elevated: #12121c;
  --bg-card: #161622;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.07);
  --text: #f0f0f8;
  --text-muted: rgba(240, 240, 248, 0.58);
  --text-dim: rgba(240, 240, 248, 0.32);
  --accent: #9b8cf8;
  --accent-bright: #b4a8ff;
  --accent-deep: #6b5ce7;
  --accent-glow: rgba(155, 140, 248, 0.38);
  --accent-soft: rgba(155, 140, 248, 0.14);
  --gold: #e8c547;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --header-h: 68px;
  --font: 'Outfit', system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

img:not(.deco-layer):not(.avatar-deco):not(.cm-avatar-stack-deco):not(.cm-public-avatar-deco):not(.cm-pe-preview-avatar-deco),
video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Ambient glow — hidden on hero, visible below */
.ambient { display: none; }
.rows ~ .footer .ambient,
body > .ambient { display: none; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
  --nav-glass-bg: transparent;
  --nav-glass-blur: none;
  --nav-glass-border: transparent;
  --nav-dropdown-bg: rgba(0, 0, 0, 0.02);
  --nav-dropdown-blur: blur(6px);
  --nav-dropdown-border: rgba(255, 255, 255, 0.04);
  --nav-dropdown-shadow: none;
  --nav-pill-bg: rgba(255, 255, 255, 0.03);
  --nav-pill-border: rgba(255, 255, 255, 0.05);
  --nav-pill-blur: blur(6px);
}
.header--scrolled {
  background: rgba(7, 7, 13, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
  --nav-glass-bg: rgba(7, 7, 13, 0.82);
  --nav-glass-blur: blur(20px) saturate(1.4);
  --nav-glass-border: var(--border);
  --nav-dropdown-bg: rgba(7, 7, 13, 0.82);
  --nav-dropdown-blur: blur(20px) saturate(1.4);
  --nav-dropdown-border: var(--border);
  --nav-dropdown-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  --nav-pill-bg: var(--surface);
  --nav-pill-border: var(--border);
  --nav-pill-blur: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  max-width: 100%;
  margin: 0;
  padding: 0 1.25rem 0 max(0.5rem, env(safe-area-inset-left, 0px));
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}
.logo__mark-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.logo__img {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(200px, 44vw);
  object-fit: contain;
  object-position: left center;
}
.logo__text {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 0.15rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.nav__link {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: 'Bebas Neue', var(--font-display), var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav__link--active {
  color: #fff;
  background: rgba(155, 140, 248, 0.14);
  border: 1px solid rgba(155, 140, 248, 0.28);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

@media (min-width: 901px) {
  .nav {
    gap: 2.5rem;
  }

  .nav__links {
    gap: 0.65rem;
    flex: 1;
    justify-content: center;
    padding: 0 0.5rem;
  }

  .nav__link {
    padding: 0.5rem 1.2rem;
    letter-spacing: 0.11em;
  }

  .nav__actions {
    gap: 1.15rem;
  }
}

/* Search */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search__toggle {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.search__toggle:hover { background: var(--surface); color: var(--text); }
.search__input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: width 0.35s var(--ease), opacity 0.25s, padding 0.35s var(--ease), border-color 0.2s;
}
.search--open .search__input {
  width: 220px;
  opacity: 1;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  border-color: var(--border);
  margin-left: -2.5rem;
  padding-left: 2.75rem;
}
.search--open .search__toggle {
  position: relative;
  z-index: 1;
  color: var(--text);
}
.search__results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.search__result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}
.search__result:hover { background: var(--surface-hover); }
.search__result img {
  width: 40px; height: 56px;
  object-fit: cover;
  border-radius: 6px;
}
.search__result-title { font-size: 0.875rem; font-weight: 500; }
.search__result-meta { font-size: 0.75rem; color: var(--text-muted); }

.nav__link--premium {
  color: var(--accent-bright);
  font-weight: 400;
}
.nav__link--premium:hover { background: var(--accent-soft); color: var(--accent-bright); }

.btn--discord {
  background: #5865F2;
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}
.btn--discord:hover { background: #4752c4; box-shadow: 0 6px 24px rgba(88, 101, 242, 0.35); }

.user-profile {
  display: flex;
  align-items: center;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem 0.25rem 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--nav-pill-border, var(--border));
  background: var(--nav-pill-bg, var(--surface));
  backdrop-filter: var(--nav-pill-blur, none);
  -webkit-backdrop-filter: var(--nav-pill-blur, none);
  cursor: pointer;
  max-width: 200px;
  font-family: inherit;
  color: inherit;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease),
    -webkit-backdrop-filter 0.4s var(--ease);
}
.user-pill span.user-pill__name,
.user-pill #navUsername {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #8a7aeb);
  color: #fff;
}
.btn--primary:hover {
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn--glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.18); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn--ghost:hover { background: var(--surface); color: var(--text); }
.btn--icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn--xl { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn--lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn--xxl { padding: 1.15rem 2.75rem; font-size: 1.15rem; font-weight: 600; }

/* ── Hero (plein écran desktop) ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-height: none;
  overflow: hidden;
  z-index: 1;
  background: var(--bg);
}
.hero__bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg-stack .hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 24%;
  filter: brightness(0.72) saturate(1.05);
  opacity: 0;
  transform: translateX(4%) scale(1.04);
  transition:
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}
.hero__bg.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1.02);
}
.hero__bg.is-exiting {
  opacity: 0;
  transform: translateX(-5%) scale(1.06);
}
.hero__bg.is-entering {
  opacity: 0;
  transform: translateX(5%) scale(1.06);
}
.hero__grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero__grad--bottom {
  background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 18, 0.92) 18%, rgba(10, 10, 18, 0.45) 48%, transparent 72%);
}
.hero__grad--side {
  width: 65%;
  background: linear-gradient(90deg, rgba(10, 10, 18, 0.88) 0%, rgba(10, 10, 18, 0.35) 45%, transparent 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  max-height: none;
  height: 100%;
  padding: calc(var(--header-h) + 2rem) clamp(1.5rem, 5vw, 4rem) clamp(5rem, 10vh, 7rem);
}
.hero__content {
  max-width: min(640px, 92vw);
  animation: fadeUp 0.8s var(--ease) both;
}
.hero__content.is-exiting {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero__content.is-entering {
  animation: heroSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroSlideIn {
  0% {
    opacity: 0;
    transform: translateX(32px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero__content.is-changing { animation: fadeSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .hero__content.is-changing {
    animation: none !important;
  }
  .hero__bg {
    transition-duration: 0.2s;
  }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.85rem;
  opacity: 0.9;
}
.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(155, 140, 248, 0.28);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.hero__title--logo { line-height: 0; }
.hero__title-logo {
  display: block;
  max-width: min(420px, 80vw);
  max-height: clamp(80px, 14vw, 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.55));
}
.hero__desc {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(240, 240, 248, 0.76);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero__meta .rating { color: var(--gold); font-weight: 600; }
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 42px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  z-index: 5;
  padding: 0 1rem;
  max-width: min(92vw, 520px);
}
.hero__dot {
  flex: 1 1 0;
  min-width: 28px;
  max-width: 48px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  border: none;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero__dot:hover { opacity: 0.92; transform: scaleY(1.15); }
.hero__dot-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}
.hero__dot--done .hero__dot-fill {
  width: 100%;
  animation: none;
}
.hero__dot--active {
  max-width: 56px;
}
.hero__dot--active .hero__dot-fill {
  animation: heroDotProgress var(--hero-hold, 5s) linear forwards;
}
@keyframes heroDotProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* ── Content rows ── */
.rows {
  position: relative;
  z-index: 2;
  padding: 2rem 0 4rem;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--bg);
  scroll-margin-top: var(--header-h);
}

.continue-section {
  padding: 0.5rem 2rem 1.5rem;
  margin-bottom: 0.5rem;
}
.continue-section .row__track {
  scroll-padding-left: 0;
}
.continue-section .row__track .card {
  flex: 0 0 clamp(140px, 18vw, 200px);
}
.card--continue {
  cursor: pointer;
}
.card--continue .card-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}
.card-prog-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 4;
}
.card-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 0 2px 2px 0;
}
.card-prog-remain {
  position: absolute;
  left: 8px;
  bottom: 10px;
  z-index: 4;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}
.cont-del-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.cont-del-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  opacity: 1;
}

.row {
  margin-bottom: 2.5rem;
  padding: 0.8rem 2rem 2rem;
}
.row__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.row__header h2,
.row__title {
  margin: 0;
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}
.row__title-soft {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}
.row__title-accent,
.row__title span {
  color: #9b8cf8;
  font-style: italic;
  font-weight: 400;
}
.row__see-all {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.row__see-all:hover { color: var(--accent); }
.row__carousel {
  position: relative;
  display: block;
}
.row__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.row__arrow--prev { left: 0; }
.row__arrow--next { right: 0; }
.row__arrow:hover {
  background: #fff;
  color: #0a0a12;
  border-color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.row__arrow:active {
  transform: translateY(-50%) scale(0.94);
}
.row__carousel .row__track {
  width: 100%;
  min-width: 0;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.card--grid {
  flex: unset;
  width: 200px;
}

.view-panel {
  max-width: 1440px;
  margin: calc(var(--header-h) + 1rem) auto 3rem;
  padding: 0 2rem;
}
.view-panel__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.view-panel__head h2 {
  font-size: 1.5rem;
  font-weight: 600;
}
.view-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.view-panel__empty {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 1rem;
}

.site-footer .footer__grid {
  max-width: 1440px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}
.footer__col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--accent-bright); }
.footer__tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1rem;
  max-width: 280px;
  line-height: 1.55;
}
.footer__socials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer__social {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.footer__social:hover {
  background: var(--accent-soft);
  border-color: rgba(155, 140, 248, 0.35);
}
.site-footer .footer__copy {
  text-align: center;
  padding: 0 2rem;
}

.row__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.row__track::-webkit-scrollbar { display: none; }

/* ── Cartes (hover = infos + logo, comme avant) ── */
.card {
  flex: 0 0 260px;
  width: 260px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: transform 0.35s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-6px) scale(1.03); z-index: 5; }
.card-clip {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.35s var(--ease);
}
.card:hover .card-clip {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 24px var(--accent-glow);
}
.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.35s ease, opacity 0.35s;
}
.card--poster .card-img {
  height: auto;
  aspect-ratio: 2 / 3;
}
.card--poster .card-play {
  display: none;
}
.card-hover-type {
  color: rgba(155, 140, 248, 0.85);
  font-weight: 600;
}
.card-hover-type--bold {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}
.card-hover-year--bold {
  font-weight: 800;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
}
.card-hover-title--logo img {
  max-height: 58px;
  max-width: min(100%, 220px);
}
.card-img.is-loading { opacity: 0; }
.card:hover .card-img {
  transform: scale(1.03);
  filter: saturate(1.08) brightness(1.04);
}
.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 45%, transparent 60%, rgba(255,255,255,.02) 100%);
  pointer-events: none;
}
.card-over {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 40%, transparent 68%);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}
.card:hover .card-over { opacity: 1; }
.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0a0a12;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: all 0.3s var(--ease);
  z-index: 4;
  pointer-events: none;
}
.card:hover .card-play { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
.card-type-badge {
  display: none !important;
}
.card-avenir-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 12;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 45%, #7c3aed 100%);
  color: #fff;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.55), 0 2px 10px rgba(0, 0, 0, 0.35);
  line-height: 1.25;
}
.card-early-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 11;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  pointer-events: none;
  line-height: 1.2;
}
.card-early-badge--lock {
  background: linear-gradient(135deg, #f77f00, #ff9500);
  color: #fff;
}
.card-early-badge--vip {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #fff;
  font-size: 9px;
}
.card--unreleased .card-img {
  filter: saturate(0.72) brightness(0.82);
}
.card-release-hover {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.card-release-hover-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(247, 127, 0, 0.16);
  color: #f77f00;
}
.card-release-hover-icon svg {
  width: 34px;
  height: 34px;
}
.card-release-hover-date {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 92%;
}
.card--unreleased:hover .card-release-hover {
  opacity: 1;
}
.card--unreleased:hover .card-hover-info,
.card--unreleased:hover .card-over {
  opacity: 0;
}
@media (hover: none), (pointer: coarse) {
  .card-release-hover {
    display: none;
  }
}
.card-hover-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 14px 12px 11px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
}
.card:hover .card-hover-info,
.card--poster:hover .card-hover-info {
  opacity: 1;
  transform: translateY(0);
}
.card-hover-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-hover-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 4px;
}
.card-hover-meta--row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.card-hover-sep { opacity: 0.45; }
.card-hover-rating { color: rgba(255, 180, 80, 0.85); font-weight: 600; }
.card-hover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.card-hover-tags span {
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.48);
}
.card-hover-title--logo img {
  display: block;
  max-height: 52px;
  max-width: min(100%, 200px);
  width: auto;
  object-fit: contain;
  object-position: left bottom;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* ── Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
}
.modal__panel {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  margin: 5vh auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.4s var(--ease) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.modal__close:hover { background: rgba(0, 0, 0, 0.75); }
.modal__hero {
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.modal__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-elevated), transparent 60%);
}
.modal__body { padding: 0 2rem 2rem; margin-top: -3rem; position: relative; z-index: 1; }
.modal__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.modal__desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.modal__tag {
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.modal__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.footer__copy { font-size: 0.85rem; color: var(--text-dim); }

.premium-banner {
  position: relative;
  margin: 0 2rem 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(155, 140, 248, 0.28);
  background: #080810;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.premium-banner__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(155, 140, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(247, 127, 0, 0.12), transparent 50%);
  pointer-events: none;
}
.premium-banner__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr minmax(240px, 0.8fr);
  gap: 2rem;
  padding: 2rem 2.25rem;
  align-items: center;
}
.premium-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9500;
  margin-bottom: 0.75rem;
}
.premium-banner__crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 149, 0, 0.15);
  color: #ffb347;
}
.premium-banner__title {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.65rem;
  color: #fff;
}
.premium-banner__title em {
  font-style: italic;
  color: #b4a8ff;
}
.premium-banner__lead {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 0 1.25rem;
}
.premium-banner__perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}
.premium-banner__perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.premium-banner__perks li span {
  color: #9b8cf8;
  font-weight: 700;
  flex-shrink: 0;
}
.premium-banner__price-card {
  padding: 1.5rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(155, 140, 248, 0.35);
  background:
    linear-gradient(155deg, rgba(155, 140, 248, 0.16) 0%, rgba(10, 10, 18, 0.92) 60%),
    radial-gradient(circle at 100% 0%, rgba(247, 127, 0, 0.15), transparent 55%);
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.premium-banner__price-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.65rem;
}
.premium-banner__price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.premium-banner__price {
  font-family: var(--font-display), Georgia, serif;
  font-size: 2.75rem;
  line-height: 1;
  color: #fff;
}
.premium-banner__price-unit {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}
.premium-banner__price-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.85rem;
}
.premium-banner__trust {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}
.premium-banner__cta {
  width: 100%;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .premium-banner {
    margin: 0 1rem 1.5rem;
  }
  .premium-banner__grid {
    grid-template-columns: 1fr;
    padding: 1.35rem 1.25rem;
    gap: 1.25rem;
  }
  .premium-banner__perks {
    grid-template-columns: 1fr;
  }
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: 0 2rem;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9000;
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__inner { padding-bottom: 4.5rem; }
  .row { padding: 0.5rem 1rem 1.5rem; }
  .row__arrow { width: 34px; height: 34px; }
}

@media (max-width: 600px) {
  .nav { padding: 0 0.75rem 0 max(0.45rem, env(safe-area-inset-left, 0px)); gap: 0.65rem; }
  .logo__img { height: 36px; max-width: min(168px, 46vw); }
  .row { padding: 0.5rem 0.75rem 1.25rem; }
  .row__arrow { display: none; }
  .hero__inner { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* iOS — évite les blocages scroll / taps fantômes */
@supports (-webkit-touch-callout: none) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    -webkit-overflow-scrolling: touch;
  }

  .row__track,
  .studio-bar,
  .studio-chips,
  .modal-detail__scroll,
  .reviews-page,
  #studioView {
    -webkit-overflow-scrolling: touch;
  }

  .card,
  .studio-card,
  .studio-chip,
  .like-btn,
  .cm-vote,
  .btn,
  .nav__link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  @media (hover: none) {
    .card:hover {
      transform: none;
    }
  }
}
