/* ============================================================
   18-bulle-lambi.css — Bulle "Demande à Lambï" PREMIUM
   ============================================================
   Style Meta AI / Notion AI bulle flottante
   - En bas a droite (au-dessus du FAB existant)
   - Pulse subtil pour attirer l'attention
   - Disparait apres scroll long ou apres click
*/

/* BULLE PRINCIPALE */
.lambi-bulle {
  position: fixed;
  bottom: 100px;  /* au-dessus des autres FAB */
  right: 20px;
  z-index: 950;
  
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  
  background: linear-gradient(135deg,
    var(--bg-elevated) 0%,
    rgba(124, 92, 255, 0.10) 100%);
  border: 1.5px solid var(--accent-premium-glow);
  border-radius: 50px;
  
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(124, 92, 255, 0.15),
    0 0 0 1px rgba(124, 92, 255, 0.08);
  
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  pointer-events: none;
}

.lambi-bulle[data-visible="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lambi-bulle:hover {
  background: linear-gradient(135deg,
    var(--bg-glass) 0%,
    rgba(124, 92, 255, 0.18) 100%);
  border-color: var(--accent-premium);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(124, 92, 255, 0.25),
    0 0 0 1px var(--accent-premium);
}

.lambi-bulle:active {
  transform: translateY(0) scale(0.98);
}

/* AVATAR LAMBI */
.lambi-bulle__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    var(--accent-premium) 0%,
    #5B3FFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  font-size: 18px;
  color: var(--text-on-premium);
  font-weight: var(--font-weight-bold);
  
  /* Pulse subtil */
  box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.5);
  animation: lambi-pulse 2.5s ease-in-out infinite;
}

@keyframes lambi-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(124, 92, 255, 0);
  }
}

.lambi-bulle__avatar::after {
  /* Petit point vert online */
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #00E676;
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
}

/* TEXTE */
.lambi-bulle__texte {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}

.lambi-bulle__label {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-premium);
  margin-bottom: 1px;
}

.lambi-bulle__action {
  font-size: 13px;
  color: var(--text-primary);
}

/* CLOSE BUTTON (subtle) */
.lambi-bulle__close {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1;
}

.lambi-bulle__close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* RESPONSIVE - mobile : juste l avatar + label court */
@media (max-width: 480px) {
  .lambi-bulle {
    bottom: 90px;
    right: 16px;
    padding: 8px 14px 8px 8px;
  }
  
  .lambi-bulle__label {
    display: none;
  }
  
  .lambi-bulle__action {
    font-size: 12px;
  }
}
