/* Styles pour les infobulles d'aide */
.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 5px;
  cursor: help;
}

.tooltip .icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #6c757d;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  font-weight: bold;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #f8f9fa;
  color: #212529;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: 1px solid #dee2e6;
  font-size: 12px;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #dee2e6 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Animation pour les infobulles */
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tooltip:hover .tooltip-text {
  animation: tooltipFadeIn 0.3s ease-in-out;
}

/* Style pour les infobulles à côté des labels */
label .tooltip {
  display: inline-block !important;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
}

.tooltip .icon {
  display: inline-block !important;
  width: 16px;
  height: 16px;
  background-color: #6c757d;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
}

/* Styles spécifiques pour la section Catégorie */
#categoryLabel .tooltip,
#subcategoryLabel .tooltip {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#categoryLabel .tooltip .icon,
#subcategoryLabel .tooltip .icon {
  display: inline-block !important;
  visibility: visible !important;
}

/* Styles pour les infobulles de la section Catégorie */
.tooltip-container {
  position: relative;
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
  cursor: help;
}

.tooltip-container .icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #6c757d;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  font-weight: bold;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible !important;
  opacity: 1 !important;
}

.tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #f8f9fa;
  color: #212529;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: 1px solid #dee2e6;
  font-size: 12px;
}
