/* ===== custom-cursor.css ===== */

/* Conteneur principal */
#customCursor,
.custom-cursor {
  position: fixed;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;

  display: none; /* affiché uniquement sur images ciblées */
  justify-content: center;
  align-items: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition:
    transform 150ms ease,
    width 150ms ease,
    height 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
  overflow: visible;
}

/* Inner wrapper : on met l'espace et la taille ici pour garder le container stable */
#customCursor .cursor-inner {
  display: flex;
  gap: 18px; /* espace entre chevrons */
  align-items: center;
  justify-content: center;

  /* padding autour des chevrons pour les éloigner des bords */
  padding: 8px 14px;
  font-size: 20px;
  box-sizing: content-box;
}

/* style des chevrons */
#customCursor .cursor-inner i {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  color: #111;
}

/* état clic gauche : réduction (scale) */
#customCursor.active {
  transform: translate(-50%, -50%) scale(0.86);
}

/* ============ état clic droit : petit point ============ */
/* on cache le contenu (chevrons) et on réduit le container */
#customCursor.context {
  width: 14px !important;
  height: 14px !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%) scale(1) !important;
}

/* cache le wrapper avec chevrons en mode context */
#customCursor.context .cursor-inner {
  display: none;
}

/* accessibilité visuelle sur affichage (optionnel) */
#customCursor.show {
  display: flex !important;
}

/* petite amélioration si besoin : transition d'apparition */
#customCursor {
  opacity: 0;
  transition:
    opacity 120ms ease,
    transform 150ms ease,
    width 150ms ease,
    height 150ms ease;
}
#customCursor.show {
  opacity: 1;
}
