/* =====================================================================
   DollyPlay — thème néon premium (cyan · indigo · rose)
   Toutes les classes utilisées par app.js sont conservées.
   ===================================================================== */
:root {
  --dp-cyan: #22d3ee;
  --dp-indigo: #6366f1;
  --dp-violet: #8b5cf6;
  --dp-night: #0a1226;
  --dp-deep: #060b19;
  --dp-surface: #0f172a;
  --dp-pink: #f472b6;
  --dp-yellow: #fde047;
  --dp-text: #e8eef8;
  --dp-muted: #94a3b8;
  --dp-gradient: linear-gradient(135deg, var(--dp-cyan), var(--dp-indigo));
  --dp-gradient-hot: linear-gradient(120deg, var(--dp-cyan) 0%, var(--dp-indigo) 55%, var(--dp-pink) 100%);

  --bg: var(--dp-deep);
  --surface: rgba(15, 23, 42, .72);
  --surface-solid: #0d1530;
  --surface-2: rgba(30, 41, 59, .62);
  --surface-3: #1e293b;
  --glass: linear-gradient(160deg, rgba(30, 41, 59, .58), rgba(15, 23, 42, .78));
  --ink: var(--dp-text);
  --muted: var(--dp-muted);
  --muted-2: #b8c5dc;
  --line: rgba(148, 163, 184, .15);
  --line-strong: rgba(148, 163, 184, .28);
  --accent: var(--dp-cyan);
  --accent-ink: #06101f;
  --good: #4ade80;
  --warn: var(--dp-yellow);
  --bad: #fb7185;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 22px 50px -24px rgba(0, 0, 0, .75);
  --shadow-lift: 0 34px 70px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(34, 211, 238, .22), 0 24px 60px -26px rgba(99, 102, 241, .65);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* aurore néon en fond, très légère */
body::before {
  content: '';
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 82% 8%, rgba(99, 102, 241, .22), transparent 60%),
    radial-gradient(34vmax 28vmax at 6% 40%, rgba(34, 211, 238, .13), transparent 60%),
    radial-gradient(30vmax 26vmax at 60% 100%, rgba(244, 114, 182, .10), transparent 60%);
  animation: aurora 28s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
::selection { background: rgba(34, 211, 238, .35); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .02em; }
.hidden { display: none !important; }

/* barres de défilement discrètes */
* { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .28) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .25); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(34, 211, 238, .45); }

/* ---------------------------------------------------------------- animations */
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3vmax, 2vmax, 0) scale(1.06); }
  100% { transform: translate3d(2vmax, -2vmax, 0) scale(1.02); }
}
@keyframes viewIn { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise { from { opacity: 0; translate: 0 26px; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-12px); } }
@keyframes spinA { from { transform: rotate(-22deg); } to { transform: rotate(338deg); } }
@keyframes spinB { from { transform: rotate(38deg); } to { transform: rotate(-322deg); } }
@keyframes glow { from { filter: drop-shadow(0 8px 22px rgba(34, 211, 238, .22)); } to { filter: drop-shadow(0 10px 38px rgba(99, 102, 241, .5)); } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes tabIn { from { opacity: .4; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 0 4px transparent; } }

/* transition entre les pages / onglets : chaque vue rendue entre en fondu */
#app > :not(.topbar):not(.spinner) { animation: viewIn .55s var(--ease) backwards; }
.admin-body > * { animation: viewInBlur .5s var(--ease) backwards; }
.admin-body > :nth-child(2) { animation-delay: .06s; }
.admin-body > :nth-child(3) { animation-delay: .12s; }
.admin-body > :nth-child(4) { animation-delay: .18s; }
/* apparition au défilement (classes posées par app.js) */
.reveal:not(.is-in) { opacity: 0; translate: 0 24px; }
.reveal.is-in { animation: rise .7s var(--ease) calc(var(--i, 0) * 60ms) backwards; }

/* ---------------------------------------------------------------- en-tête */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 11, 25, .62);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.topbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55), rgba(99, 102, 241, .55), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
body.is-scrolled .topbar { background: rgba(6, 11, 25, .86); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9); }
body.is-scrolled .topbar::after { opacity: 1; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 70px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem var(--font-display); border-radius: 12px; }
.logo-mark { display: block; width: 156px; height: 54px; object-fit: contain; flex: 0 0 auto; mix-blend-mode: screen; transition: filter .4s var(--ease), transform .4s var(--ease); }
.logo:hover .logo-mark { filter: drop-shadow(0 0 14px rgba(34, 211, 238, .55)); transform: scale(1.03); }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav button {
  position: relative;
  background: none;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  font-size: .93rem;
  white-space: nowrap;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.nav a:hover, .nav button:hover { color: var(--ink); background: rgba(148, 163, 184, .1); }
.nav a[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(99, 102, 241, .2));
  border-color: rgba(34, 211, 238, .3);
  box-shadow: 0 0 22px -6px rgba(34, 211, 238, .45);
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-weight: 700;
  font-size: .9rem;
  padding: 6px 12px;
  margin: 0 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .08);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.who::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--good); color: rgba(74, 222, 128, .5); animation: pulseDot 2.4s ease-in-out infinite; }

/* ---------------------------------------------------------------- boutons et champs */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(30, 41, 59, .55);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), box-shadow .3s var(--ease), color .25s var(--ease), filter .25s var(--ease);
}
.btn:hover { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .08); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary {
  background: var(--dp-gradient);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 12px 30px -12px rgba(34, 211, 238, .7), inset 0 1px rgba(255, 255, 255, .35);
}
.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn.primary:hover { background: var(--dp-gradient); filter: brightness(1.08) saturate(1.1); box-shadow: 0 18px 40px -14px rgba(34, 211, 238, .85), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: rgba(251, 113, 133, .55); background: rgba(251, 113, 133, .1); }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn.big { padding: 15px 28px; font-size: 1.06rem; border-radius: 14px; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label, .field > .lbl { font-weight: 700; font-size: .88rem; color: var(--muted-2); letter-spacing: .01em; }
.field .hint { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(6, 11, 25, .55);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
input::placeholder, textarea::placeholder { color: rgba(148, 163, 184, .7); }
input[type=text]:hover, input[type=password]:hover, input[type=number]:hover, input[type=search]:hover, select:hover, textarea:hover { border-color: rgba(148, 163, 184, .45); }
input[type=text]:focus, input[type=password]:focus, input[type=number]:focus, input[type=search]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, .7);
  background: rgba(6, 11, 25, .8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14), 0 0 24px -6px rgba(34, 211, 238, .45);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2322d3ee' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select option { background: var(--surface-solid); color: var(--ink); }
input[type=file] { width: 100%; padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: rgba(6, 11, 25, .4); color: var(--muted); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
input[type=file]:hover { border-color: rgba(34, 211, 238, .55); background: rgba(34, 211, 238, .05); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 9px; background: var(--dp-gradient); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
textarea { min-height: 110px; resize: vertical; }
.check { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }
.err { color: var(--bad); font-weight: 700; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .3); animation: popIn .3s var(--ease); }

/* ---------------------------------------------------------------- connexion / carte centrale */
.center-card {
  position: relative;
  max-width: 460px;
  margin: clamp(32px, 8vh, 80px) auto;
  padding: clamp(24px, 5vw, 38px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(140deg, rgba(34, 211, 238, .55), rgba(99, 102, 241, .35) 45%, rgba(244, 114, 182, .35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 90px -40px rgba(34, 211, 238, .45), var(--shadow);
}
#app > .center-card { animation: popIn .6s var(--ease) backwards; }
.center-card::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .35), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.center-card h1 { font-size: clamp(1.6rem, 4vw, 2rem); }
.center-card .alt { margin-top: 20px; text-align: center; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 800; cursor: pointer; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.linkbtn:hover { background-size: 100% 2px; }
.code-input { font: 700 1.35rem ui-monospace, Consolas, monospace; letter-spacing: .1em; text-align: center; text-transform: uppercase; }

/* ---------------------------------------------------------------- bandeau */
.banner {
  position: relative;
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
  font-size: .93rem;
  color: #fff;
  background: linear-gradient(90deg, rgba(34, 211, 238, .22), rgba(99, 102, 241, .3), rgba(244, 114, 182, .22), rgba(34, 211, 238, .22));
  background-size: 200% 100%;
  animation: shimmer 12s linear infinite;
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------- héros (accueil) */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 7vw, 76px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, .24), transparent 42%),
    radial-gradient(ellipse at 8% 100%, rgba(34, 211, 238, .14), transparent 40%),
    linear-gradient(180deg, rgba(17, 28, 53, .9), rgba(6, 11, 25, .4));
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px; height: 520px;
  right: -140px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 114, 182, .16), transparent);
  filter: blur(10px);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero .wrap { max-width: 1880px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: center; gap: clamp(32px, 7vw, 100px); }
.hero-copy { position: relative; z-index: 1; max-width: 900px; }
.hero-copy > * { animation: rise .8s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-eyebrow, .eyebrow { margin: 0 0 12px; color: var(--dp-cyan); font-size: .74rem; font-weight: 800; letter-spacing: .18em; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .28); background: rgba(34, 211, 238, .07); }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dp-cyan); box-shadow: 0 0 10px var(--dp-cyan); }
.hero h1 {
  max-width: 18ch;
  margin-bottom: 16px;
  background: linear-gradient(110deg, #ffffff 0%, #ffffff 35%, #a5f3fc 55%, #c7d2fe 75%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise .8s var(--ease) backwards, shimmer 9s linear infinite;
}
.hero-subtitle { max-width: 54ch; margin: 0 0 28px; color: var(--muted-2); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.search {
  display: flex;
  max-width: 860px;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(10, 18, 38, .92), rgba(10, 18, 38, .92)) padding-box,
    linear-gradient(120deg, rgba(34, 211, 238, .6), rgba(99, 102, 241, .45), rgba(244, 114, 182, .35)) border-box;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8), 0 0 40px -18px rgba(34, 211, 238, .45);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.search:focus-within { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85), 0 0 0 4px rgba(34, 211, 238, .14), 0 0 60px -14px rgba(34, 211, 238, .65); transform: translateY(-1px); }
.search input, .search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; padding: 12px 14px; box-shadow: none; }
.search input:focus, .search input[type=search]:focus { outline: none; box-shadow: none; background: transparent; }
.search input::-webkit-search-cancel-button { filter: invert(.8); cursor: pointer; }
.search .btn { border-radius: 13px; flex: 0 0 auto; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 300px; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; z-index: -2; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 211, 238, .22), transparent); filter: blur(20px); }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid rgba(34, 211, 238, .25); border-radius: 50%; transform: rotate(-22deg); }
.hero-orbit::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--dp-cyan); box-shadow: 0 0 14px 2px var(--dp-cyan); }
.orbit-one { width: 360px; height: 200px; animation: spinA 26s linear infinite; }
.orbit-two { width: 290px; height: 270px; transform: rotate(38deg); border-color: rgba(99, 102, 241, .4); animation: spinB 34s linear infinite; }
.orbit-two::after { background: var(--dp-pink); box-shadow: 0 0 14px 2px var(--dp-pink); }
.hero-art-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 310px);
  padding: 26px 28px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    linear-gradient(145deg, rgba(30, 41, 59, .94), rgba(15, 23, 42, .9)) padding-box,
    linear-gradient(150deg, rgba(34, 211, 238, .5), rgba(148, 163, 184, .12) 40%, rgba(244, 114, 182, .4)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 60px -20px rgba(99, 102, 241, .5), inset 0 1px rgba(255, 255, 255, .07);
  transform: rotate(2deg);
  animation: float 7s ease-in-out infinite;
}
.hero-art-icon { width: min(100%, 220px); height: auto; aspect-ratio: 1.114; object-fit: contain; border-radius: 14px; margin: 0 0 12px; mix-blend-mode: screen; animation: glow 4s ease-in-out infinite alternate; }
.hero-art-label { margin-bottom: 7px; color: var(--dp-cyan); font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.hero-art-card strong { font: 700 1.22rem var(--font-display); }
.hero-art-note { margin-top: 8px; color: var(--dp-muted); font-size: .82rem; }

/* ---------------------------------------------------------------- catalogue */
.catalog-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; align-items: start; gap: 26px; width: 100%; max-width: 1880px; padding-top: 30px; padding-bottom: 72px; }
.catalog-sidebar, .rail-card, .rail-tip {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.catalog-sidebar { position: sticky; top: 94px; padding: 22px 16px; }
.rail-kicker { margin: 0 0 8px; color: var(--dp-cyan); font-size: .7rem; font-weight: 800; letter-spacing: .18em; }
.catalog-sidebar h2, .rail-card h2 { margin: 0 0 8px; font-size: 1.22rem; }
.catalog-sidebar > .muted { margin: 0 0 18px; line-height: 1.5; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, .45);
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  color: var(--muted-2);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), padding .25s var(--ease);
}
.chip:hover { color: var(--ink); border-color: rgba(34, 211, 238, .35); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(99, 102, 241, .22)); color: #fff; border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 22px -8px rgba(34, 211, 238, .6); }
.catalog-sidebar .chips { display: grid; gap: 4px; }
.catalog-sidebar .chip { width: 100%; padding: 10px 12px; border-color: transparent; border-radius: 12px; background: transparent; text-align: left; }
.catalog-sidebar .chip::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--dp-gradient); transform: translateY(-50%); transition: height .3s var(--ease-spring); }
.catalog-sidebar .chip:hover { background: rgba(34, 211, 238, .07); transform: none; padding-left: 16px; }
.catalog-sidebar .chip[aria-pressed="true"] { padding-left: 16px; border-color: rgba(34, 211, 238, .22); background: linear-gradient(90deg, rgba(34, 211, 238, .16), rgba(99, 102, 241, .06)); color: var(--dp-cyan); box-shadow: none; }
.catalog-sidebar .chip[aria-pressed="true"]::before { height: 60%; }
.sidebar-note { display: flex; align-items: start; gap: 10px; margin-top: 18px; padding: 13px 12px; border-radius: 14px; background: rgba(99, 102, 241, .1); border: 1px solid rgba(99, 102, 241, .18); color: var(--muted-2); font-size: .8rem; line-height: 1.45; }
.sidebar-note-icon { color: var(--dp-yellow); text-shadow: 0 0 10px rgba(253, 224, 71, .6); }
.catalog-main { min-width: 0; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 24px 0 18px; }
.toolbar select { width: auto; min-width: 210px; }
.catalog-main .toolbar { justify-content: end; margin: 0 0 18px; }
.catalog-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 4px; }
.catalog-intro .eyebrow { margin-bottom: 4px; }
.catalog-intro p { margin: 0; }
.catalog-count { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(15, 23, 42, .6); color: var(--muted-2); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.catalog-count::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dp-cyan); box-shadow: 0 0 8px var(--dp-cyan); }
.section-title { position: relative; display: flex; align-items: center; gap: 14px; margin: 30px 0 16px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }

/* cartes de jeu */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .45s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .16), rgba(99, 102, 241, .08) 30%, transparent 55%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 1s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .42); box-shadow: var(--shadow-lift); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: translateX(110%); }
.card-link { position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; border-radius: 12px; }
.cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: var(--surface-3); }
.ph { aspect-ratio: 16 / 9; display: grid; place-items: center; font: 800 2.6rem var(--font-display); color: rgba(255, 255, 255, .92); text-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.card-link .cover, .card-link .ph { border-radius: 12px; overflow: hidden; transition: transform .8s var(--ease), filter .5s var(--ease); }
.card:hover .card-link .cover, .card:hover .card-link .ph { transform: scale(1.035); filter: saturate(1.15) brightness(1.06); }
.card-body { padding: 14px 8px 14px; display: grid; gap: 7px; flex: 1; align-content: start; }
.card-title { font: 700 1.08rem/1.25 var(--font-display); transition: color .3s var(--ease); }
.card:hover .card-title { color: #fff; text-shadow: 0 0 22px rgba(34, 211, 238, .45); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.score { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: rgba(148, 163, 184, .1); border: 1px solid var(--line); white-space: nowrap; }
.score::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.big-score .score::before { display: none; }
.score.good { color: var(--good); } .score.mid { color: var(--warn); } .score.low { color: var(--bad); }
.featured .card-title { font-size: 1.32rem; }
.featured .card-link::before {
  content: '★ À LA UNE';
  position: absolute;
  z-index: 2;
  top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--accent-ink);
  background: var(--dp-yellow);
  box-shadow: 0 6px 20px -6px rgba(253, 224, 71, .7);
}
.library-card-action { width: calc(100% - 16px); min-height: 42px; justify-content: center; margin: 0 8px 8px; border-color: rgba(34, 211, 238, .32); background: rgba(34, 211, 238, .09); color: var(--dp-cyan); font-size: .86rem; }
.library-card-action:hover { border-color: var(--dp-cyan); background: rgba(34, 211, 238, .16); box-shadow: 0 0 24px -8px rgba(34, 211, 238, .6); }
.library-card-action.is-saved { border-color: rgba(148, 163, 184, .2); background: rgba(148, 163, 184, .08); color: var(--muted); }
.library-card-action.is-saved:hover { color: var(--bad); border-color: rgba(251, 113, 133, .5); background: rgba(251, 113, 133, .08); box-shadow: none; }
.library-card-action:disabled { opacity: .6; cursor: wait; }

/* une seule carte : présentation large */
.featured.single, .grid.single { grid-template-columns: minmax(0, 1fr); }
.featured.single .card, .grid.single .card { display: flex; flex-direction: column; min-height: 0; }
.featured.single .card-link, .grid.single .card-link { display: grid; flex: 1; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); }
.featured.single .card-link .cover, .grid.single .card-link .cover, .featured.single .card-link .ph, .grid.single .card-link .ph { grid-row: 1; grid-column: 1; height: 100%; min-height: 260px; aspect-ratio: auto; }
.featured.single .card-link .card-body, .grid.single .card-link .card-body { grid-row: 1; grid-column: 2; align-content: center; gap: 12px; padding: clamp(20px, 4vw, 44px); }
.featured.single .card-title, .grid.single .card-title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.featured.single .muted.small { font-size: 1rem; line-height: 1.6; }
.featured.single .library-card-action, .grid.single .library-card-action { align-self: end; }

/* rail de droite */
.catalog-rail { display: grid; gap: 16px; }
.rail-card { position: relative; overflow: hidden; isolation: isolate; padding: 24px 20px; }
.rail-card::before { position: absolute; z-index: -1; top: -60px; right: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgba(99, 102, 241, .22); content: ''; filter: blur(16px); transition: transform .8s var(--ease); }
.rail-card:hover::before { transform: scale(1.25) translate(-10px, 10px); }
.rail-logo { position: relative; display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--dp-cyan); font-size: .69rem; font-weight: 800; letter-spacing: .16em; }
.rail-logo img { width: 30px; height: 30px; object-fit: contain; mix-blend-mode: screen; }
.rail-card > p { margin: 0; line-height: 1.55; }
.library-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.library-stat { display: grid; gap: 3px; padding: 13px 12px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 14px; background: rgba(2, 6, 23, .35); }
.library-stat-value { font: 800 1.7rem var(--font-display); background: var(--dp-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.library-stat span { color: var(--dp-muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.rail-action { width: 100%; }
.rail-tip { padding: 20px; background: linear-gradient(145deg, rgba(34, 211, 238, .09), rgba(99, 102, 241, .08)); }
.rail-tip h3 { margin: 0 0 8px; font-size: 1rem; }
.rail-tip p:last-child { margin: 0; line-height: 1.55; }

.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: radial-gradient(ellipse at center, rgba(99, 102, 241, .08), transparent 70%); }
.empty h3 { color: var(--ink); font-size: 1.3rem; }
.wrap.empty { margin-top: 40px; margin-bottom: 40px; }

/* ---------------------------------------------------------------- bibliothèque */
.library-hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 56px) 0; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 30%, rgba(99, 102, 241, .24), transparent 40%), radial-gradient(ellipse at 0% 100%, rgba(34, 211, 238, .12), transparent 40%), linear-gradient(125deg, rgba(16, 27, 53, .9), rgba(6, 11, 25, .5)); }
.library-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; max-width: 1880px; }
.library-hero-inner > div:first-child > * { animation: rise .8s var(--ease) backwards; }
.library-hero-inner > div:first-child > :nth-child(2) { animation-delay: .08s; }
.library-hero-inner > div:first-child > :nth-child(3) { animation-delay: .16s; }
.library-hero h1 { margin-bottom: 12px; }
.library-hero .hero-subtitle { margin-bottom: 0; }
.library-hero-badge { display: grid; grid-template-columns: 52px auto; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; min-width: 220px; padding: 16px 20px; border-radius: 20px; background: linear-gradient(rgba(15, 23, 42, .9), rgba(15, 23, 42, .9)) padding-box, linear-gradient(140deg, rgba(34, 211, 238, .5), rgba(244, 114, 182, .35)) border-box; border: 1px solid transparent; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7), 0 0 40px -16px rgba(34, 211, 238, .4); animation: popIn .7s var(--ease) .15s backwards; }
.library-hero-badge img { width: 52px; height: 52px; grid-row: 1 / 3; object-fit: contain; mix-blend-mode: screen; animation: glow 4s ease-in-out infinite alternate; }
.library-hero-badge strong { color: var(--dp-cyan); font-size: .8rem; letter-spacing: .14em; }
.library-hero-count { color: var(--dp-muted); font-size: .85rem; font-weight: 700; }
.library-page { max-width: 1880px; padding-top: 34px; padding-bottom: 72px; }
.library-section { margin-bottom: 48px; }
.library-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.library-section-heading .eyebrow { margin-bottom: 5px; }
.library-section-heading h2 { margin: 0; }
.library-section-heading .library-hero-count { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(15, 23, 42, .6); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.library-grid .library-card-action { margin-top: 8px; }
.library-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; min-height: 220px; padding: 32px; border: 1px dashed rgba(148, 163, 184, .3); border-radius: 22px; background: radial-gradient(ellipse at center, rgba(99, 102, 241, .1), transparent 68%); text-align: center; align-content: center; }
.library-empty h3, .library-empty p { margin: 0; }
.library-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(34, 211, 238, .35); border-radius: 15px; color: var(--dp-cyan); font-size: 1.5rem; background: rgba(34, 211, 238, .07); box-shadow: 0 0 26px -8px rgba(34, 211, 238, .6); }
.library-empty.compact { min-height: 160px; }

/* ---------------------------------------------------------------- fiche jeu */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 26px 0 12px; padding: 6px 12px 6px 8px; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--muted); transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.back:hover { color: var(--ink); background: rgba(148, 163, 184, .1); transform: translateX(-3px); }
.game-head { margin-bottom: 20px; }
.game-head h1 { background: linear-gradient(110deg, #fff 40%, #a5f3fc 70%, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-3); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(34, 211, 238, .5); }
.stage img, .stage .ph { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; animation: viewIn .45s var(--ease) backwards; }
.stage video { aspect-ratio: 16 / 9; width: 100%; object-fit: contain; display: block; background: #000; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 4px 2px 8px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 11px; overflow: hidden; background: none; cursor: pointer; flex: 0 0 auto; opacity: .65; transition: opacity .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 20px -4px rgba(34, 211, 238, .6); }
.thumbs img { width: 120px; aspect-ratio: 16/9; object-fit: cover; display: block; }
.thumbs .video-thumb { width: 120px; aspect-ratio: 16/9; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--surface-3); color: var(--ink); }
.thumbs .video-thumb img { width: 100%; height: 100%; }
.video-thumb-label { font-size: .8rem; font-weight: 700; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.3rem; text-shadow: 0 1px 8px #000; background: rgba(0, 0, 0, .28); }
.panel { position: sticky; top: 94px; display: grid; gap: 16px; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.big-score { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(2, 6, 23, .35); border: 1px solid var(--line); }
.big-score b { font: 800 2.6rem/1 var(--font-display); }
.big-score .score { border: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; font-size: .92rem; }
.facts dt, .facts dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-right: 16px; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: rgba(99, 102, 241, .12); border: 1px solid rgba(99, 102, 241, .25); color: #c7d2fe; border-radius: 999px; padding: 3px 11px; font-size: .8rem; font-weight: 700; transition: background .2s var(--ease); }
.tag:hover { background: rgba(99, 102, 241, .22); }
.dl { display: grid; gap: 10px; }
.dl .btn { justify-content: space-between; text-align: left; }
.prose { white-space: pre-wrap; max-width: 72ch; color: var(--muted-2); line-height: 1.75; }
.block { margin-top: 34px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(15, 23, 42, .5); }
.block h2 { display: flex; align-items: center; gap: 10px; }
.block h2::before { content: ''; width: 4px; height: 1.1em; border-radius: 4px; background: var(--dp-gradient); }
.block .prose { margin: 0; }

/* ---------------------------------------------------------------- administration */
.tabs {
  display: flex;
  gap: 4px;
  margin: 26px 0 24px;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, .6);
  overflow-x: auto;
  scrollbar-width: none;
  width: fit-content;
  max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; flex: 0 0 auto; padding: 9px 16px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--muted); white-space: nowrap; transition: color .25s var(--ease), background .25s var(--ease); }
.tabs a:hover { color: var(--ink); background: rgba(148, 163, 184, .08); }
.tabs a[aria-current="page"] { color: var(--accent-ink); background: var(--dp-gradient); box-shadow: 0 8px 24px -10px rgba(34, 211, 238, .8); animation: tabIn .35s var(--ease-spring); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { position: relative; overflow: hidden; isolation: isolate; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .3s var(--ease); }
.stat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px circle at var(--mx, 100%) var(--my, 0%), rgba(34, 211, 238, .14), transparent 60%); }
.stat:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .35); }
.stat b { display: block; font: 800 2.1rem/1.1 var(--font-display); margin-bottom: 4px; background: linear-gradient(120deg, #fff, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .muted { font-size: .85rem; font-weight: 600; }
.tablewrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(15, 23, 42, .62); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { position: sticky; top: 0; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; background: rgba(10, 18, 38, .95); }
tbody tr { transition: background .2s var(--ease); }
tbody tr:hover { background: rgba(34, 211, 238, .04); }
tr:last-child td { border-bottom: 0; }
td .thumb { width: 76px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; display: block; background: var(--surface-3); border: 1px solid var(--line); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 3px 10px; background: rgba(148, 163, 184, .1); border: 1px solid var(--line); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.active, .status.on { color: var(--good); } .status.reserved { color: var(--warn); } .status.free { color: var(--dp-cyan); } .status.revoked, .status.expired, .status.off { color: var(--bad); }
.form-card { position: relative; padding: clamp(18px, 3vw, 26px); margin-bottom: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.form-card h3::before { content: ''; width: 4px; height: 1em; border-radius: 4px; background: var(--dp-gradient); }
.form-card ol li, .form-card ul li { padding: 4px 0; }
.admin-split { align-items: flex-start; }
.admin-split > .form-card { flex: 1 1 340px; }
.media-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.media-item { position: relative; width: 156px; animation: popIn .35s var(--ease); }
.media-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line-strong); }
.media-item video { width: 100%; aspect-ratio: 16/9; object-fit: contain; border-radius: 10px; display: block; border: 1px solid var(--line-strong); background: #000; }
.media-item .x { position: absolute; top: 5px; right: 5px; background: rgba(6, 11, 25, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.file-item { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.file-item > div { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.file-item input { flex: 1 1 180px; }
.progress { height: 8px; border-radius: 6px; background: rgba(148, 163, 184, .14); overflow: hidden; margin: 6px 0; }
.progress > div { height: 100%; width: 0; background: var(--dp-gradient-hot); background-size: 200% 100%; animation: shimmer 2s linear infinite; transition: width .25s var(--ease); box-shadow: 0 0 12px rgba(34, 211, 238, .6); }
.newcodes { background: rgba(2, 6, 23, .4); border: 1px solid rgba(34, 211, 238, .25); border-radius: 14px; padding: 14px; margin-top: 14px; display: grid; gap: 8px; animation: popIn .35s var(--ease); }
.newcodes .mono { color: var(--dp-cyan); font-weight: 700; }

/* ---------------------------------------------------------------- notifications et chargement */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 13px 18px; border-radius: 14px; font-weight: 700; color: var(--ink); background: rgba(13, 21, 48, .92); border: 1px solid rgba(34, 211, 238, .35); box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .9), 0 0 30px -12px rgba(34, 211, 238, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: toastIn .4s var(--ease-spring); pointer-events: auto; }
.toast.bad { background: rgba(60, 14, 30, .94); border-color: rgba(251, 113, 133, .55); color: #ffe4e9; box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .9), 0 0 30px -12px rgba(251, 113, 133, .6); }
.spinner { display: grid; justify-items: center; gap: 16px; padding: 90px 0; text-align: center; color: var(--muted); font-weight: 600; }
.spinner::before { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(148, 163, 184, .18); border-top-color: var(--dp-cyan); border-right-color: var(--dp-indigo); animation: spin .8s linear infinite; }

/* ---------------------------------------------------------------- responsive */
.topbar .wrap { max-width: 1880px; }
@media (max-width: 1220px) {
  .catalog-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .catalog-rail { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-sidebar { top: 84px; }
}
@media (max-width: 960px) {
  .game-layout { grid-template-columns: 1fr; }
  .panel { position: static; }
}
@media (max-width: 860px) {
  .catalog-shell { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .catalog-sidebar { position: static; padding: 18px 16px; }
  .catalog-sidebar .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
  .catalog-sidebar .chip, .catalog-sidebar .chip:hover, .catalog-sidebar .chip[aria-pressed="true"] { width: auto; flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border-color: var(--line); white-space: nowrap; }
  .catalog-sidebar .chip::before { display: none; }
  .catalog-sidebar .chip[aria-pressed="true"] { border-color: rgba(34, 211, 238, .45); }
  .catalog-rail { grid-column: 1; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); }
}
@media (max-width: 900px) {
  .topbar .wrap { gap: 6px 12px; padding-top: 8px; padding-bottom: 8px; min-height: 60px; }
  .nav { order: 3; width: 100%; margin: 0 -4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 6px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav button { flex: 0 0 auto; padding: 7px 12px; font-size: .88rem; }
  .who { margin: 0; }
}
@media (max-width: 760px) {
  .catalog-sidebar, .panel { top: 0; }
  .featured { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .wrap, .topbar .wrap, .hero .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .catalog-shell { padding-left: 16px; padding-right: 16px; }
  .catalog-rail { grid-template-columns: 1fr; }
  .catalog-intro { align-items: start; flex-direction: column; gap: 10px; }
  .toolbar select { min-width: 0; width: 100%; }
  .catalog-main .toolbar { justify-content: stretch; }
  .catalog-main .toolbar select { width: 100%; }
  .library-hero-inner { align-items: start; flex-direction: column; gap: 22px; }
  .library-hero-badge { min-width: 190px; }
  .library-section-heading { align-items: start; flex-direction: column; }
  .library-grid, .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .tabs { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 1.6rem; }
  .center-card { margin-left: 16px; margin-right: 16px; }
  .facts dd { text-align: left; }
}
@media (max-width: 560px) {
  .logo-mark { width: 128px; height: 44px; }
  .search { flex-direction: column; align-items: stretch; }
  .search .btn { width: 100%; }
  .featured, .grid.single, .featured.single { grid-template-columns: 1fr; }
  .featured.single .card-link, .grid.single .card-link { grid-template-columns: 1fr; }
  .featured.single .card-link .cover, .grid.single .card-link .cover, .featured.single .card-link .ph, .grid.single .card-link .ph { grid-column: 1; grid-row: 1; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .featured.single .card-link .card-body, .grid.single .card-link .card-body { grid-column: 1; grid-row: 2; padding: 18px 8px; }
  .btn.big { padding: 13px 20px; font-size: 1rem; }
  .thumbs img, .thumbs .video-thumb { width: 96px; }
  .admin-split > .form-card { flex-basis: 100%; }
}

/* =====================================================================
   Effets premium (fx.js) : bordures néon tournantes, 3D, ondes, halo, grain
   ===================================================================== */
@property --fx-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes fxSpin { to { --fx-angle: 360deg; } }
@keyframes wordIn { from { opacity: 0; transform: translateY(.55em) rotate(3deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rippleOut { from { transform: scale(0); opacity: .5; } to { transform: scale(1); opacity: 0; } }
@keyframes viewInBlur { from { opacity: 0; translate: 0 18px; filter: blur(5px); } to { opacity: 1; translate: 0 0; filter: none; } }
@keyframes toastBar { to { transform: scaleX(0); } }
@keyframes lineFlow { from { background-position: 0% 0; } to { background-position: 200% 0; } }

/* grain cinéma très léger sur tout l'écran */
html::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .04;
  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");
}

/* transitions de page : fondu + léger flou */
#app > :not(.topbar):not(.spinner):not(.center-card) { animation: viewInBlur .6s var(--ease) backwards; }

/* barre de progression du défilement */
.fx-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 80;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--dp-gradient-hot);
  box-shadow: 0 0 14px rgba(34, 211, 238, .8);
  pointer-events: none;
}

/* halo qui suit la souris (derrière le contenu, visible à travers le verre) */
.fx-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .18), rgba(34, 211, 238, .07) 55%, transparent);
  opacity: 0;
  transition: opacity .6s var(--ease);
  will-change: transform;
}
.fx-cursor.on { opacity: 1; }

/* particules du héros */
.fx-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

/* parallaxe douce du héros au défilement */
.hero-art { translate: 0 calc(var(--sy, 0) * -0.14px); }
.hero-copy { translate: 0 calc(var(--sy, 0) * 0.07px); opacity: max(0, calc(1 - var(--sy, 0) / 750)); }

/* titres révélés mot par mot */
.fx-split, .hero h1.fx-split, .game-head h1.fx-split { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); animation: none; }
.fx-word {
  display: inline-block;
  padding-bottom: .06em;
  background: linear-gradient(110deg, #ffffff 0%, #ffffff 38%, #a5f3fc 62%, #c7d2fe 82%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordIn .9s var(--ease) calc(var(--w, 0) * 80ms + .1s) backwards, shimmer 9s linear infinite;
}

/* cartes : inclinaison 3D qui suit la souris + flèche au survol */
.card { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card:hover {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  transition: transform .18s ease-out, border-color .35s var(--ease), box-shadow .45s var(--ease);
}
.card-title::after { content: '→'; display: inline-block; margin-left: .4em; color: var(--dp-cyan); opacity: 0; transform: translateX(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.card:hover .card-title::after { opacity: 1; transform: none; }

/* bordure néon tournante : jeux à la une, carte de connexion, carte du héros */
.featured .card {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(22, 32, 58, .97), rgba(11, 18, 38, .98)) padding-box,
    conic-gradient(from var(--fx-angle), rgba(34, 211, 238, .95), rgba(99, 102, 241, .35), rgba(244, 114, 182, .95), rgba(253, 224, 71, .45), rgba(34, 211, 238, .95)) border-box;
  animation: fxSpin 7s linear infinite;
}
.featured .card.reveal.is-in { animation: rise .7s var(--ease) calc(var(--i, 0) * 60ms) backwards, fxSpin 7s linear infinite; }
.featured .card:hover { box-shadow: var(--shadow-lift), 0 0 70px -20px rgba(244, 114, 182, .55); }
.center-card {
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    conic-gradient(from var(--fx-angle), rgba(34, 211, 238, .8), rgba(99, 102, 241, .25), rgba(244, 114, 182, .7), rgba(99, 102, 241, .25), rgba(34, 211, 238, .8)) border-box;
}
#app > .center-card { animation: popIn .6s var(--ease) backwards, fxSpin 8s linear infinite; }
.hero-art-card {
  background:
    linear-gradient(145deg, rgba(30, 41, 59, .95), rgba(15, 23, 42, .92)) padding-box,
    conic-gradient(from var(--fx-angle), rgba(34, 211, 238, .8), rgba(148, 163, 184, .1), rgba(244, 114, 182, .75), rgba(148, 163, 184, .1), rgba(34, 211, 238, .8)) border-box;
  animation: float 7s ease-in-out infinite, fxSpin 9s linear infinite;
}

/* boutons aimantés + ondes au clic */
.btn { translate: var(--bx, 0px) var(--by, 0px); transition: transform .25s var(--ease), translate .3s var(--ease), border-color .25s var(--ease), background .25s var(--ease), box-shadow .3s var(--ease), color .25s var(--ease), filter .25s var(--ease); }
.chip, .tabs a, .nav a, .nav button { overflow: hidden; }
.fx-ripple {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(34, 211, 238, .18) 40%, transparent 65%);
  transform: scale(0);
  animation: rippleOut .65s var(--ease) forwards;
}

/* lignes de section qui coulent */
.section-title::after { background: linear-gradient(90deg, rgba(34, 211, 238, .6), rgba(99, 102, 241, .4), transparent 60%, rgba(34, 211, 238, .6)); background-size: 200% 100%; animation: lineFlow 6s linear infinite; }

/* notifications : barre de temps restant */
.toast { position: relative; overflow: hidden; }
.toast::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--dp-gradient); transform-origin: 0 50%; animation: toastBar 4.2s linear forwards; }
.toast.bad::after { background: linear-gradient(90deg, var(--bad), var(--dp-pink)); }

/* logo : éclat au survol de l'en-tête */
.topbar .logo { position: relative; }
.topbar .logo::after { content: ''; position: absolute; inset: 20% -12%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 211, 238, .35), transparent); opacity: 0; transition: opacity .4s var(--ease); }
.topbar .logo:hover::after { opacity: 1; }

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

/* =====================================================================
   Animations façon « expérience » : intro, rideau, défilement, mot surligné
   ===================================================================== */
html.fx-smooth { scroll-behavior: auto; }
html.fx-intro, html.fx-intro body { overflow: hidden; }
/* pendant l'intro, les animations d'entrée du site attendent le lever de rideau */
html.fx-intro #app *, html.fx-intro #app *::before, html.fx-intro #app *::after { animation-play-state: paused !important; }

@keyframes ghostIn { from { opacity: 0; transform: scale(.9); filter: blur(16px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes hlWipe { to { transform: scaleX(1); } }
@keyframes hlInk { to { color: #06101f; } }
@keyframes lineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fxScrubIn { from { opacity: 0; translate: 0 50px; filter: blur(14px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes fxScrubOut { from { opacity: 1; translate: 0 0; filter: blur(0); } to { opacity: .1; translate: 0 -36px; filter: blur(16px); } }

/* écran d'intro */
.fx-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(99, 102, 241, .3), transparent 60%),
    radial-gradient(ellipse at 50% 125%, rgba(34, 211, 238, .2), transparent 55%),
    #050914;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.05s cubic-bezier(.76, 0, .24, 1);
}
.fx-loader.is-leaving { clip-path: inset(0 0 100% 0); }
.fx-loader-ghost {
  position: absolute;
  font: 800 clamp(4rem, 19vw, 22rem)/.8 var(--font-display);
  letter-spacing: -.045em;
  white-space: nowrap;
  user-select: none;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, .16);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .012));
  -webkit-background-clip: text;
  background-clip: text;
  animation: ghostIn 1.6s var(--ease) backwards;
  transition: transform 1s var(--ease), opacity .8s var(--ease), filter .8s var(--ease);
}
.fx-loader.is-leaving .fx-loader-ghost { transform: translateY(-10%) scale(1.08); opacity: 0; filter: blur(8px); }
.fx-loader-box { position: relative; width: min(78vw, 320px); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.fx-loader.is-leaving .fx-loader-box { opacity: 0; transform: translateY(-24px); }
.fx-loader-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: .68rem; font-weight: 800; letter-spacing: .22em; color: var(--muted-2); }
.fx-loader-pct { color: #fff; font-size: .8rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.fx-loader-line { height: 1px; overflow: hidden; background: rgba(148, 163, 184, .18); }
.fx-loader-line i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--dp-gradient-hot); box-shadow: 0 0 12px rgba(34, 211, 238, .9); }

/* rideau entre les grandes sections */
.fx-curtain {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  clip-path: inset(100% 0 0 0);
  background:
    radial-gradient(ellipse at 50% 112%, rgba(99, 102, 241, .42), transparent 60%),
    radial-gradient(ellipse at 50% -12%, rgba(34, 211, 238, .2), transparent 55%),
    #050914;
}
.fx-curtain.is-in { visibility: visible; pointer-events: auto; clip-path: inset(0 0 0 0); transition: clip-path .46s cubic-bezier(.76, 0, .24, 1); }
.fx-curtain.is-out { visibility: visible; clip-path: inset(0 0 100% 0); transition: clip-path .78s cubic-bezier(.76, 0, .24, 1); }
.fx-curtain-ghost {
  position: absolute;
  font: 800 clamp(3.4rem, 15vw, 17rem)/.85 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.045em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, .14);
  transform: translateY(22%);
  transition: transform 1s var(--ease);
}
.fx-curtain.is-in .fx-curtain-ghost { transform: none; }
.fx-curtain.is-out .fx-curtain-ghost { transform: translateY(-18%); }
.fx-curtain-inner { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 16px; }
.fx-curtain-kicker, .fx-curtain-title, .fx-curtain-line { transition: opacity .45s var(--ease) .1s, transform .6s var(--ease) .1s, filter .5s var(--ease) .1s; }
.fx-curtain-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .32em; color: var(--dp-cyan); opacity: 0; transform: translateY(12px); }
.fx-curtain-title { font: 800 clamp(2.2rem, 7vw, 5rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.02em; color: #fff; opacity: 0; transform: translateY(44px); filter: blur(12px); }
.fx-curtain-line { width: 120px; height: 2px; transform: scaleX(0); background: var(--dp-gradient-hot); box-shadow: 0 0 14px rgba(34, 211, 238, .8); }
.fx-curtain.is-in .fx-curtain-kicker, .fx-curtain.is-in .fx-curtain-title { opacity: 1; transform: none; filter: blur(0); }
.fx-curtain.is-in .fx-curtain-line { transform: scaleX(1); }
.fx-curtain.is-out .fx-curtain-kicker, .fx-curtain.is-out .fx-curtain-title { opacity: 0; transform: translateY(-32px); filter: blur(10px); transition-delay: 0s; }

/* mot surligné : un bloc néon glisse derrière le dernier mot du titre */
.fx-word.fx-word-hl {
  position: relative;
  isolation: isolate;
  padding: 0 .14em .04em;
  margin-left: .04em;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #fff;
  animation: wordIn .9s var(--ease) calc(var(--w, 0) * 80ms + .1s) backwards, hlInk .35s var(--ease) calc(var(--w, 0) * 80ms + .8s) forwards;
}
.fx-word.fx-word-hl::before {
  content: '';
  position: absolute;
  inset: .08em 0 .02em;
  z-index: -1;
  border-radius: .12em;
  background: var(--dp-gradient);
  box-shadow: 0 0 44px -8px rgba(34, 211, 238, .75);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: hlWipe .75s cubic-bezier(.76, 0, .24, 1) calc(var(--w, 0) * 80ms + .55s) forwards;
}

/* l'illustration du héros tourne doucement avec le défilement */
.hero-art { rotate: calc(var(--sy, 0) * -0.02deg); scale: calc(1 - var(--sy, 0) / 4200); }

/* textes liés au défilement (navigateurs récents) : flou → net en entrant, net → flou en sortant */
@supports (animation-timeline: view()) {
  /* « clip » coupe le débordement sans créer de zone défilante (sinon les animations suivraient ce bloc, pas la page) */
  .hero, .library-hero, .rail-card { overflow: clip; }
  .fx-scrub, .fx-scrub.reveal:not(.is-in) { opacity: 1; translate: none; }
  .fx-scrub, .fx-scrub.reveal.is-in, .admin-body > .fx-scrub {
    animation-name: fxScrubIn, fxScrubOut;
    animation-duration: auto, auto;
    animation-timing-function: linear, linear;
    animation-fill-mode: both, forwards;
    animation-delay: 0s, 0s;
    animation-timeline: view(), view();
    animation-range: entry 0% entry 100%, exit 0% exit 100%;
  }
  .section-title { view-timeline: --dp-title block; }
  .section-title::after {
    transform-origin: 0 50%;
    animation: lineDraw linear both, lineFlow 6s linear infinite;
    animation-timeline: --dp-title, auto;
    animation-range: entry 0% cover 45%, normal;
  }
}

/* =====================================================================
   « La pile » (showcase.js) : les jeux s'empilent couche par couche au défilement
   ===================================================================== */
@keyframes dpPop { from { opacity: .3; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes dpPlate { 0%, 100% { box-shadow: 0 0 80px 10px rgba(34, 211, 238, .35), 0 0 160px 40px rgba(99, 102, 241, .25); } 50% { box-shadow: 0 0 110px 20px rgba(34, 211, 238, .55), 0 0 200px 60px rgba(244, 114, 182, .3); } }

.dp-stack { position: relative; height: calc(100vh + var(--n, 8) * 34vh); border-bottom: 1px solid var(--line); }
.dp-stack-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: 1880px;
  margin: 0 auto;
  padding: 90px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  overflow: clip;
}
.dp-stack-copy { position: relative; z-index: 2; max-width: 520px; }
.dp-stack-title { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.02; margin: 0 0 14px; background: linear-gradient(110deg, #fff 30%, #a5f3fc 65%, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-stack-sub { color: var(--muted-2); margin: 0 0 30px; }
.dp-stack-now { display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); min-height: 140px; }
.dp-stack-now.pop { animation: dpPop .45s var(--ease); }
.dp-stack-counter { font: 800 clamp(2.6rem, 5vw, 4rem)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dp-stack-num { background: var(--dp-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-stack-total { color: rgba(148, 163, 184, .45); font-size: .45em; letter-spacing: 0; vertical-align: .9em; }
.dp-stack-name { font: 700 1.35rem/1.2 var(--font-display); }
.dp-stack-genre { color: var(--dp-cyan); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dp-stack-bars { display: flex; gap: 5px; margin-top: 16px; }
.dp-stack-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .18); transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.dp-stack-bars i.on { background: var(--dp-gradient); box-shadow: 0 0 10px rgba(34, 211, 238, .7); }

.dp-stack-stage { position: relative; height: min(76vh, 640px); perspective: 1800px; perspective-origin: 50% 10%; }
.dp-stack-pile { position: absolute; inset: 0; perspective: 1400px; perspective-origin: 50% 0%; will-change: transform; }
.dp-stack-plate {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(80%, 460px);
  height: 70px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .4), rgba(99, 102, 241, .18) 60%, transparent);
  box-shadow: 0 0 80px 10px rgba(34, 211, 238, .35), 0 0 160px 40px rgba(99, 102, 241, .25);
  transition: opacity .4s var(--ease);
}
.dp-stack.is-complete .dp-stack-plate { animation: dpPlate 2.4s ease-in-out infinite; }
.dp-layer {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: clamp(220px, 26vw, 360px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  border: 1px solid rgba(34, 211, 238, .45);
  background: var(--surface-solid);
  /* épaisseur de la couche (vue de biais) */
  box-shadow: 0 6px 0 -1px #142047, 0 12px 0 -2px #0d1634, 0 14px 0 -2px rgba(34, 211, 238, .35), 0 40px 60px -20px rgba(0, 0, 0, .8);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  text-decoration: none;
  transition: filter .3s var(--ease), border-color .3s var(--ease);
}
.dp-layer img, .dp-layer-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-layer-ph { display: grid; place-items: center; font: 800 3rem var(--font-display); color: rgba(255, 255, 255, .92); text-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.dp-layer.is-landed { border-color: rgba(34, 211, 238, .6); }
a.dp-layer:hover { filter: brightness(1.18) saturate(1.15); border-color: var(--dp-pink); }
.dp-layer-soon { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .14em; color: var(--accent-ink); background: var(--dp-yellow); }

@media (max-width: 860px) {
  .dp-stack { height: calc(100vh + var(--n, 8) * 28vh); }
  .dp-stack-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 132px; gap: 8px; }
  .dp-stack-sub, .dp-stack-copy .eyebrow { display: none; }
  .dp-stack-title { font-size: clamp(1.6rem, 6.5vw, 2.2rem); margin-bottom: 10px; }
  .dp-stack-now { min-height: 0; padding: 12px 14px; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .dp-stack-counter { grid-row: span 2; font-size: 2.4rem; }
  .dp-stack-bars { margin-top: 10px; }
  .dp-stack-stage { height: 100%; min-height: 300px; }
  .dp-layer { width: min(64vw, 260px); }
}

/* =====================================================================
   Finitions : ciel étoilé partout, en-tête admin, icônes, pied de page,
   haut de page, raccourci, images, fiche jeu, tableaux
   ===================================================================== */
@property --vel { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes imgIn { from { opacity: .2; filter: blur(14px) saturate(.6); } to { opacity: 1; filter: blur(0) saturate(1); } }
@keyframes dlPulse {
  0%, 100% { box-shadow: 0 12px 30px -12px rgba(34, 211, 238, .7), 0 0 0 0 rgba(34, 211, 238, .45); }
  60% { box-shadow: 0 12px 30px -12px rgba(34, 211, 238, .9), 0 0 0 12px rgba(34, 211, 238, 0); }
}

/* en-têtes étoilés (bibliothèque + administration) et ciel des pages de connexion */
.library-hero { isolation: isolate; }
.fx-canvas.fx-sky { position: fixed; inset: 0; z-index: -1; -webkit-mask-image: none; mask-image: none; opacity: .85; }

/* en-tête de l'administration (plus compact que celui de la bibliothèque) */
.admin-hero { padding: clamp(24px, 4vw, 38px) 0; }
.admin-hero .library-hero-inner { max-width: 1240px; } /* aligné sur les onglets et le contenu */
.admin-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; }
.admin-wrap .tabs { margin-top: 24px; }
/* redessiné à chaque onglet : on ne rejoue pas l'entrée */
.fx-quiet, .fx-quiet .library-hero-badge, .fx-quiet .library-hero-inner > div:first-child > * { animation: none !important; }
.fx-quiet .fx-word { animation: shimmer 9s linear infinite !important; }
.fx-quiet .fx-word.fx-word-hl { animation: none !important; color: #06101f; }
.fx-quiet .fx-word.fx-word-hl::before { animation: none !important; transform: scaleX(1); }

/* icônes des onglets d'administration et du menu */
.tabs a[href="#/admin/overview"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.tabs a[href="#/admin/games"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='6'/%3E%3Cpath d='M7 10v4M5 12h4'/%3E%3Ccircle cx='15.5' cy='11' r='1'/%3E%3Ccircle cx='18' cy='13.5' r='1'/%3E%3C/svg%3E"); }
.tabs a[href="#/admin/codes"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M10.85 12.15 19 4M16 7l2 2M14 9l2 2'/%3E%3C/svg%3E"); }
.tabs a[href="#/admin/users"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.tabs a[href="#/admin/admins"], .nav a[href="#/admin"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.tabs a[href="#/admin/settings"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E"); }
.nav a[href="#/"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m16.24 7.76-2.12 6.36-6.36 2.12 2.12-6.36z'/%3E%3C/svg%3E"); }
.nav a[href="#/library"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.tabs a::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
  transition: transform .3s var(--ease-spring);
}
.tabs a:hover::before { transform: scale(1.15) rotate(-6deg); }
@media (min-width: 901px) {
  .nav a[href="#/"]::before, .nav a[href="#/library"]::before, .nav a[href="#/admin"]::before {
    content: '';
    display: inline-block;
    width: 15px; height: 15px;
    margin-right: 7px;
    vertical-align: -2px;
    background: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
  }
}

/* statistiques : liseré de couleur différent pour chaque carte */
.stat::after { content: ''; position: absolute; top: 0; left: 18px; right: 18px; height: 2px; border-radius: 0 0 3px 3px; background: var(--stat-line, var(--dp-gradient)); box-shadow: 0 0 14px var(--stat-glow, rgba(34, 211, 238, .6)); }
.stat:nth-child(5n+2) { --stat-line: linear-gradient(90deg, #f472b6, #8b5cf6); --stat-glow: rgba(244, 114, 182, .6); }
.stat:nth-child(5n+3) { --stat-line: linear-gradient(90deg, #fde047, #f472b6); --stat-glow: rgba(253, 224, 71, .5); }
.stat:nth-child(5n+4) { --stat-line: linear-gradient(90deg, #4ade80, #22d3ee); --stat-glow: rgba(74, 222, 128, .5); }
.stat:nth-child(5n+5) { --stat-line: linear-gradient(90deg, #8b5cf6, #6366f1); --stat-glow: rgba(139, 92, 246, .55); }

/* tableaux d'administration : les lignes arrivent en cascade */
.admin-body tbody tr { animation: rowIn .45s var(--ease) backwards; }
.admin-body tbody tr:nth-child(2) { animation-delay: .04s; }
.admin-body tbody tr:nth-child(3) { animation-delay: .08s; }
.admin-body tbody tr:nth-child(4) { animation-delay: .12s; }
.admin-body tbody tr:nth-child(5) { animation-delay: .16s; }
.admin-body tbody tr:nth-child(6) { animation-delay: .2s; }
.admin-body tbody tr:nth-child(7) { animation-delay: .24s; }
.admin-body tbody tr:nth-child(8) { animation-delay: .28s; }
.admin-body tbody tr:nth-child(n+9) { animation-delay: .32s; }

/* formulaires : la carte en cours d'édition s'illumine */
.form-card { transition: border-color .3s var(--ease), box-shadow .4s var(--ease); }
.form-card:focus-within { border-color: rgba(34, 211, 238, .35); box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, .12), 0 24px 70px -34px rgba(34, 211, 238, .55); }

/* fiche jeu : halo d'ambiance + bouton de téléchargement qui pulse */
.fx-backdrop {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: min(92vh, 900px);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 25%, transparent 95%);
}
.fx-backdrop img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); filter: blur(70px) saturate(1.5); opacity: .34; }
.dl .btn.primary { animation: dlPulse 2.4s ease-out infinite; }

/* bouton « revenir en haut » avec anneau de progression */
.fx-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 70;
  width: 50px; height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: conic-gradient(var(--dp-cyan) calc(var(--p, 0) * 1turn), rgba(148, 163, 184, .18) 0);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .85), 0 0 26px -6px rgba(34, 211, 238, .6);
  opacity: 0;
  transform: translateY(18px) scale(.8);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease-spring);
}
.fx-top::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #0b1430; transition: background .25s var(--ease); }
.fx-top::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: translate(-50%, -25%) rotate(45deg); transition: border-color .25s var(--ease), transform .3s var(--ease); }
.fx-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fx-top:hover::before { background: #12204a; }
.fx-top:hover::after { border-color: var(--dp-cyan); transform: translate(-50%, -45%) rotate(45deg); }
.fx-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* raccourci « / » dans la barre de recherche */
.fx-kbd { align-self: center; flex: 0 0 auto; margin-right: 4px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(148, 163, 184, .08); color: var(--muted); font: 700 .8rem ui-monospace, Consolas, monospace; transition: opacity .2s var(--ease); }
.search:focus-within .fx-kbd, .search:has(input:not(:placeholder-shown)) .fx-kbd { opacity: 0; }
@media (max-width: 560px) { .fx-kbd { display: none; } }

/* images : reflet pendant le chargement, puis apparition nette */
.fx-img-loading {
  background-image: linear-gradient(100deg, rgba(30, 41, 59, .95) 30%, rgba(71, 85, 105, .55) 50%, rgba(30, 41, 59, .95) 70%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.3s linear infinite;
}
.fx-img-in { animation: imgIn .8s var(--ease); }

/* pied de page : bandeau géant qui défile et penche avec la vitesse du défilement */
.site-footer { position: relative; margin-top: 56px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 11, 25, 0), rgba(6, 11, 25, .85) 35%); overflow: hidden; overflow: clip; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .6), rgba(244, 114, 182, .5), transparent); }
.footer-marquee { display: flex; width: max-content; padding: 28px 0 24px; transform: skewX(calc(var(--vel, 0) * -1deg)); transition: --vel .5s var(--ease); }
.footer-marquee-run { display: flex; flex: 0 0 auto; align-items: center; gap: 40px; padding-right: 40px; animation: marquee 32s linear infinite; }
.footer-marquee:hover .footer-marquee-run { animation-play-state: paused; }
.footer-marquee span { font: 800 clamp(2.6rem, 8vw, 6.5rem)/1 var(--font-display); letter-spacing: -.035em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px rgba(148, 163, 184, .32); transition: -webkit-text-stroke-color .4s var(--ease); }
.footer-marquee span:nth-of-type(2n+1) { background: linear-gradient(110deg, #22d3ee, #6366f1 55%, #f472b6); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; opacity: .85; }
.footer-marquee span:hover { -webkit-text-stroke-color: var(--dp-cyan); }
.footer-marquee i { font-style: normal; font-size: clamp(1.2rem, 3vw, 2rem); color: var(--dp-yellow); text-shadow: 0 0 18px rgba(253, 224, 71, .7); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px 28px; max-width: 1880px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line); }
.footer-tag { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted-2); text-decoration: none; font-weight: 700; font-size: .88rem; transition: color .25s var(--ease), background .25s var(--ease); }
.footer-nav a:hover { color: var(--ink); background: rgba(148, 163, 184, .1); }
.footer-copy { margin: 0; color: var(--muted); font-size: .82rem; }
@media (min-width: 761px) { .footer-inner { padding-right: 92px; } } /* laisse la place au bouton « haut de page » */
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .fx-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* =====================================================================
   Fiche jeu + cartes : cadres néon et couleur propre à chaque jeu
   (--tint = couleur dominante de la jaquette, calculée par fx.js ; cyan par défaut)
   ===================================================================== */
/* grande image : cadre néon tournant (cyan + couleur du jeu), légère inclinaison 3D */
.stage {
  padding: 10px;
  border-radius: 24px;
  border: 2px solid transparent;
  background:
    linear-gradient(160deg, rgba(22, 32, 58, .96), rgba(11, 18, 38, .97)) padding-box,
    conic-gradient(from var(--fx-angle), #22d3ee, rgb(var(--tint, 99, 102, 241)), rgba(99, 102, 241, .7), rgb(var(--tint, 244, 114, 182)), #22d3ee) border-box;
  box-shadow: 0 0 0 1px rgba(var(--tint, 34, 211, 238), .25), 0 0 34px -6px rgba(var(--tint, 34, 211, 238), .55), 0 40px 100px -40px rgba(var(--tint, 34, 211, 238), .8), 0 30px 60px -30px rgba(0, 0, 0, .9);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out, box-shadow .5s var(--ease);
  animation: fxSpin 9s linear infinite;
}
.stage:has(video) { transform: none; }
.stage img, .stage .ph, .stage video { border-radius: 16px; }
.stage img { transition: filter .6s var(--ease); }
.stage:hover img { filter: saturate(1.12) brightness(1.05); }
.stage:hover { box-shadow: 0 0 0 1px rgba(var(--tint, 34, 211, 238), .4), 0 0 46px -4px rgba(var(--tint, 34, 211, 238), .7), 0 50px 120px -40px rgba(var(--tint, 34, 211, 238), .95), 0 30px 60px -30px rgba(0, 0, 0, .9); }

/* vignettes : petits cadres, celle affichée brille de la couleur du jeu */
.thumbs { gap: 12px; padding: 8px 2px 10px; }
.thumbs button { padding: 3px; border: 1px solid rgba(148, 163, 184, .18); border-radius: 13px; background: rgba(11, 18, 38, .85); }
.thumbs img, .thumbs .video-thumb { border-radius: 9px; }
.thumbs button[aria-current="true"] { border-color: rgba(var(--tint, 34, 211, 238), .9); box-shadow: 0 0 0 1px rgba(var(--tint, 34, 211, 238), .35), 0 0 26px -4px rgba(var(--tint, 34, 211, 238), .8); }

/* panneau d'infos et blocs de texte : bordure dégradée cyan → couleur du jeu */
.panel {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(22, 32, 58, .92), rgba(11, 18, 38, .95)) padding-box,
    linear-gradient(160deg, rgba(34, 211, 238, .85), rgba(var(--tint, 99, 102, 241), .7) 50%, rgba(34, 211, 238, .35)) border-box;
  box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, .12), 0 30px 90px -45px rgba(var(--tint, 34, 211, 238), .8);
}
.panel .big-score { background: rgba(var(--tint, 34, 211, 238), .07); border-color: rgba(var(--tint, 34, 211, 238), .25); }
.block {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(13, 21, 44, .88), rgba(13, 21, 44, .88)) padding-box,
    linear-gradient(120deg, rgba(34, 211, 238, .7), rgba(var(--tint, 99, 102, 241), .5) 40%, rgba(34, 211, 238, .2)) border-box;
  box-shadow: 0 30px 80px -50px rgba(var(--tint, 34, 211, 238), .6);
}
.block h2::before { background: linear-gradient(180deg, var(--dp-cyan), rgb(var(--tint, 99, 102, 241))); }
.game-head h1 .fx-word { background: linear-gradient(110deg, #fff 0%, #fff 40%, rgb(var(--tint, 165, 243, 252)) 72%, #fff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; }
/* étoiles de la fiche jeu, au-dessus du halo flou */
.fx-backdrop .fx-canvas { z-index: 1; -webkit-mask-image: none; mask-image: none; }

/* cartes (comme PEAK, en mieux) : cadre intérieur sur l'image, reflets à la couleur du jeu */
.card::before { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--tint, 34, 211, 238), .2), rgba(99, 102, 241, .08) 30%, transparent 55%); }
.card:hover { box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(34, 211, 238, .22), 0 26px 70px -22px rgba(var(--tint, 99, 102, 241), .75); }
.featured .card:hover { box-shadow: var(--shadow-lift), 0 0 80px -20px rgba(var(--tint, 244, 114, 182), .65); }
.card:hover .card-title { text-shadow: 0 0 22px rgba(var(--tint, 34, 211, 238), .55); }
.grid:not(.single) .card-link::after, .featured:not(.single) .card-link::after, .library-grid .card-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 -50px 40px -30px rgba(6, 11, 25, .55);
  transition: box-shadow .4s var(--ease);
}
.card:hover .card-link::after { box-shadow: inset 0 0 0 1px rgba(var(--tint, 34, 211, 238), .6), inset 0 -50px 40px -30px rgba(6, 11, 25, .3); }

/* ---------------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .card:hover, .stat:hover, .btn:hover, .chip:hover, .thumbs button:hover { transform: none; }
  .card:hover .card-link .cover, .card:hover .card-link .ph { transform: none; }
  .section-title::after { animation: none !important; transform: none; }
  .hero-art { rotate: none; scale: none; translate: none; }
  .dp-stack { height: auto; }
  .dp-stack-sticky { position: static; height: auto; min-height: 640px; }
}
