/* Styles appliqués directement à tous les éléments avec bulle */
[bulle] {
  position: relative; /* Nécessaire pour positionner le tooltip */
  cursor: pointer;
  color: #007bff; /* Couleur du texte du lien ou élément */
  text-decoration: none;
}

/* Style du tooltip (pseudo-élément ::after) */
[bulle]::after {
  content: attr(bulle); /* Récupère le texte depuis l'attribut bulle */
  visibility: hidden; /* Caché par défaut */
  opacity: 0; /* Complètement transparent */
  position: absolute;
  background-color: #333; /* Couleur de fond du tooltip */
  color: #fff; /* Couleur du texte du tooltip */
  text-align: center;
  padding: 8px;
  border-radius: 5px;
  font-size: 14px;
  width: max-content;
  max-width: 200px;
  bottom: 125%; /* Position au-dessus de l'élément */
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

/* Petite flèche sous le tooltip */
[bulle]::before {
  content: '';
  position: absolute;
  top: 100%; /* Place en bas du tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Afficher le tooltip au survol */
[bulle]:hover::after,
[bulle]:hover::before {
  visibility: visible;
  opacity: 1;
}
