/* =========================================================
   JURISWISS — Premium FX : fil doré · curseur · boutons magnétiques
   ========================================================= */

/* ---------- Fil doré conducteur (progression au scroll) ---------- */
.gold-thread {
  position: fixed;
  top: 0;
  left: clamp(14px, 2.4vw, 34px);
  width: 2px;
  height: 100vh;
  z-index: 80;
  pointer-events: none;
}
.gold-thread::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(181, 135, 73, 0.14);
}
.gold-thread-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--gold-deep), var(--gold-light));
  transform-origin: top;
}
.gold-thread-dot {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(212, 166, 114, 0.2), 0 0 14px rgba(212, 166, 114, 0.8);
}
@media (max-width: 760px) { .gold-thread { display: none; } }

/* ---------- Curseur signature (Point lumineux) ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* halo diffus — désactivé (on garde seulement la pastille avec sa lueur) */
.cursor-ring { display: none; }
/* pastille dorée nette */
.cursor-dot {
  width: 13px; height: 13px;
  background: var(--gold-light);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px 3px rgba(212,166,114,0.55);
  transition: width 0.24s var(--ease), height 0.24s var(--ease), opacity 0.3s ease;
}
.cursor-ready .cursor-dot,
.cursor-ready .cursor-ring { opacity: 1; }
.cursor-dot.is-hover { width: 24px; height: 24px; }
.cursor-ring.is-hover { width: 64px; height: 64px; }
.cursor-dot.is-down { width: 10px; height: 10px; }
/* on cache le curseur natif uniquement quand le curseur custom est actif */
.cursor-ready, .cursor-ready a, .cursor-ready button,
.cursor-ready .btn, .cursor-ready input, .cursor-ready textarea, .cursor-ready select { cursor: none; }

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}
