/* =========================
   BULLE D'INVITATION CHAT
   Style "bulle narrative"
   ========================= */
body {
  margin: 0;
  font-family: 'Poppins',sans-serif;
}

#vda-chat-bubble {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* Au lieu de center - pousse à gauche */
  gap: 12px;  /* Réduire le gap - rapproche bulle et avatar */
  cursor: pointer;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.6s ease;
}
#vda-chat-bubble.show {
  opacity: 1;
}

/* Bulle ovale blanche */
.bubble-text {
  background: #ffffff;
  color: #2c3e50;
  width: 280px;
  height: 160px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Pointe de bulle */
.bubble-text::before {
  content: "";
  position: absolute;
  bottom: -50px;  /* Plus longue */
  left: 50%;
  transform: translateX(-50%) rotate(-20deg);  /* Rotation antihoraire 20° */
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 55px solid #ffffff;  /* Encore plus longue */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  z-index: 2;
}


.bubble-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;  /* Pas de bordure */
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  background-color: transparent;  /* Fond transparent */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform .3s ease, box-shadow .3s ease;
  margin-left:150px;  /* Pousse Marie-Lou vers la droite */
  margin-top: 25px;  /* Descend Marie-Lou un peu */
  z-index: 10;  /* Au-dessus de la bulle */
}

/* Hover */
#vda-chat-bubble:hover .bubble-avatar {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);  /* Ombre plus forte au hover */
}
#vda-chat-bubble:hover .bubble-text {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

/* Bouton fermer (caché par défaut) */
.bubble-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  background: #666666;  /* Gris discret au lieu de rouge */
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  line-height: 1;
  z-index: 10;
  font-style: normal;
  opacity: 0.7;  /* Légèrement transparent pour être encore plus discret */
  transition: opacity 0.3s ease;
}

/* Plus visible au hover */
.bubble-close:hover {
  opacity: 1;
}
/* Afficher la croix quand la classe show-close est présente */
#vda-chat-bubble.show-close .bubble-close {
  display: flex;
}
/* État minimisé */
#vda-chat-bubble.minimized .bubble-text {
  display: none;
}

#vda-chat-bubble.minimized .bubble-avatar {
  width: 65px;
  height: 65px;
  animation: bounce 1.8s ease-in-out infinite;
}

/* Mode mobile : tout scaler proportionnellement */
@media (max-width: 768px) {
  #vda-chat-bubble {
    right: 15px;
    transform: translateY(-50%) scale(0.7);  /* Scale à 70% */
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  #vda-chat-bubble {
    right: 10px;
    transform: translateY(-50%) scale(0.55);  /* Scale à 55% */
  }
}
