.bulle-statique-container {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: var(--bulle-gap, 10px);
  z-index: 9999;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Empêche les bulles de s'étirer à la largeur de la plus large (survol) */
.position-top-left,
.position-bottom-left {
  align-items: flex-start;
}
.position-top-right,
.position-bottom-right {
  align-items: flex-end;
}

/* --- Apparition (délai / scroll / animation) --- */
.bulle-statique-container.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.bulle-statique-container.anim-slide.is-hidden {
  transform: translateY(20px);
}

.bulle-statique {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0073aa;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 50%;
  width: var(--bulle-size, 50px);
  height: var(--bulle-size, 50px);
  overflow: visible;
  transition: background-color 0.3s ease, width 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.bulle-statique:hover {
  filter: brightness(0.9);
}

.bulle-statique .icon {
  font-size: 18px;
  margin-right: 0;
  z-index: 2;
}

/* --- Label en mode survol (tooltip) --- */
.bulle-statique.mode-hover .label {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #005f8d;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.bulle-statique.mode-hover:hover .label {
  opacity: 1;
  pointer-events: auto;
}
.bulle-statique.mode-hover.label-left .label {
  left: auto;
  right: 100%;
  transform: translateY(-50%) translateX(-10px);
}

/* --- Au survol : la bulle s'agrandit en pilule contenant le texte --- */
.bulle-statique.mode-expand .label {
  position: static;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  background: transparent !important;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  transition: max-width 0.3s ease, opacity 0.25s ease;
}
.bulle-statique.mode-expand:hover {
  width: auto;
  border-radius: 50px;
  padding: 10px 18px;
}
.bulle-statique.mode-expand:hover .label {
  opacity: 1;
  max-width: 240px;
}
.bulle-statique.mode-expand.label-right:hover .icon { margin-right: 8px; }
.bulle-statique.mode-expand.label-left:hover .icon { margin-left: 8px; }

/* --- Label toujours visible (bouton en pilule) --- */
.bulle-statique.mode-always {
  width: auto;
  border-radius: 50px;
  padding: 10px 18px;
}
.bulle-statique.mode-always .label {
  position: static;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  background: transparent !important;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
}
.bulle-statique.mode-always.label-right .icon { margin-right: 8px; }
.bulle-statique.mode-always.label-left .icon { margin-left: 8px; }

/* --- Pas de label (bulle icône seule) --- */
.bulle-statique.mode-none .label {
  display: none;
}

/* --- Visibilité par appareil --- */
.visible-desktop { display: none; }
.visible-mobile { display: none; }

/* --- Positions du conteneur (via variables) --- */
.position-top-left {
  top: var(--bulle-offset-y, 150px);
  left: var(--bulle-offset-x, 20px);
  bottom: auto;
  right: auto;
}
.position-top-right {
  top: var(--bulle-offset-y, 150px);
  right: var(--bulle-offset-x, 20px);
  bottom: auto;
  left: auto;
}
.position-bottom-left {
  bottom: var(--bulle-offset-y, 50px);
  left: var(--bulle-offset-x, 20px);
  top: auto;
  right: auto;
}
.position-bottom-right {
  bottom: var(--bulle-offset-y, 50px);
  right: var(--bulle-offset-x, 20px);
  top: auto;
  left: auto;
}

@media (min-width: 768px) {
  .visible-desktop { display: flex !important; }
}

@media (max-width: 767px) {
  .visible-mobile { display: flex !important; }
  .bulle-statique {
    width: calc(var(--bulle-size, 50px) * 0.7);
    height: calc(var(--bulle-size, 50px) * 0.7);
  }
  .bulle-statique.mode-always {
    width: auto;
    height: auto;
  }
}
