/* === MODULE TOOLTIP HOVER === */

/* Curseur personnalisé pour les matériaux interactifs */
.tooltip-hover-active {
  cursor: pointer !important;
}

/* Tooltip qui suit le curseur */
.material-tooltip {
  position: fixed;
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(0.9) translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  will-change: left, top;
}

.material-tooltip.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Petite flèche pointant vers le bas */
.material-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #1a1a1a;
}

/* Animation subtile de pulsation */
@keyframes tooltipPulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
}

.material-tooltip.visible {
  animation: tooltipPulse 2s ease-in-out infinite;
}
