/* ══════════════════════════════════════════════════
   ANIMÉMA — ui : curseur custom, focus, reduced motion
   ══════════════════════════════════════════════════ */

/* ── Curseur custom ── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--e-out);
  mix-blend-mode: difference;
}
.cursor.is-ready { opacity: 1; }
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 1.4px solid rgba(255, 255, 255, 0.75);
  display: grid;
  place-items: center;
  will-change: transform;
  transition: width 0.28s var(--e-out), height 0.28s var(--e-out), margin 0.28s var(--e-out), background 0.28s var(--e-out), border-color 0.28s var(--e-out);
}
.cursor.is-active .cursor-ring {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(255, 255, 255, 0.12);
}
.cursor-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s var(--e-out), transform 0.2s var(--e-back);
  white-space: nowrap;
}
.cursor.has-label .cursor-ring { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor.has-label .cursor-label { opacity: 1; transform: scale(1); }
.cursor.has-label .cursor-dot { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ── Reduced motion : on coupe le lourd, on garde le lisible ── */
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  .scroll-hint-line::after { animation: none; }
  .clapper-top { animation: none; }
  * { scroll-behavior: auto !important; }
}

html.reduced .grain { display: none; }
html.reduced .scroll-hint-line::after { animation: none; }
html.reduced .clapper-top { animation: none; }
html.reduced .cursor { display: none; }
html.reduced .poster-card { transition: none; }
