/* ==========================================================
   VistaNova — Bulle de bienvenue
   Discrète, posée au-dessus du bouton WhatsApp existant.
   ========================================================== */

.vn-bulle {
  position: fixed;
  right: 1.2rem;
  bottom: 4.6rem;              /* juste au-dessus du bouton WhatsApp */
  z-index: 9990;
  width: min(310px, calc(100vw - 2.4rem));
  padding: 1.15rem 1.25rem 1.1rem;
  border-radius: 16px;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(224, 180, 128, 0.13), transparent 70%),
    linear-gradient(165deg, #14302a 0%, #0c221c 100%);
  border: 1px solid rgba(224, 180, 128, 0.28);
  box-shadow:
    0 18px 48px -18px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(224, 180, 128, 0.06) inset;
  color: #fdebd6;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.vn-bulle.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Petite pointe orientée vers le bouton WhatsApp */
.vn-bulle::after {
  content: '';
  position: absolute;
  right: 26px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  background: #0c221c;
  border-right: 1px solid rgba(224, 180, 128, 0.28);
  border-bottom: 1px solid rgba(224, 180, 128, 0.28);
  transform: rotate(45deg);
}

.vn-bulle-titre {
  margin: 0 0 0.4rem;
  padding-right: 1.4rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.25;
  color: #fdebd6;
}
.vn-bulle-texte {
  margin: 0 0 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #ecc89e;
}

.vn-bulle-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0b480, #c89a64);
  color: #0c221c;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.vn-bulle-cta svg { width: 15px; height: 15px; }
.vn-bulle-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(224, 180, 128, 0.75);
}

.vn-bulle-fermer {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(236, 200, 158, 0.65);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}
.vn-bulle-fermer:hover {
  color: #fdebd6;
  background: rgba(224, 180, 128, 0.12);
}

/* Mobile : pleine largeur, au-dessus du bouton */
@media (max-width: 600px) {
  .vn-bulle {
    right: 0.9rem;
    left: 0.9rem;
    bottom: 4.2rem;
    width: auto;
    padding: 1rem 1.1rem;
  }
  .vn-bulle::after { right: 22px; }
  .vn-bulle-titre { font-size: 1.12rem; }
  .vn-bulle-texte { font-size: 0.8rem; }
}

/* Sur la boutique, le fond est doré clair : on garde la bulle sombre,
   elle reste lisible et cohérente avec le bouton WhatsApp. */

@media (prefers-reduced-motion: reduce) {
  .vn-bulle { transition: opacity 0.2s ease; transform: none; }
  .vn-bulle.is-visible { transform: none; }
  .vn-bulle-cta { transition: none; }
}
