/* Contexte : carte blanche */
.prospect-form-container {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  /* débordement X autorisé, Y masqué */
  overflow-x: visible;
  overflow-y: hidden;
}

/* Flou en pseudo-élément pour éviter un DIV supplémentaire */
.prospect-form-container::before {
  content: "";
  position: absolute;
  z-index: -1;                 /* juste derrière le contenu */
  top: 0;                     /* aligne le haut de la bulle sur le haut de la carte */
  left: 50%;                  /* centre horizontalement */
  width: 20em;
  height: 30em;
  border-radius: 50%;
  background: radial-gradient(circle at center, #9B51E0 0%, #0693E3 100%);
  filter: blur(150px);
  transform: translateX(-50%) rotate(-26deg) scale(1.2);
}

/* Tous les enfants (titre, champs, bouton) au-dessus du flou */
.prospect-form-container > * {
  position: relative;
  z-index: 1;
} 

/* Contexte : carte blanche */
.tarif-block {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  /* débordement X autorisé, Y masqué */
  overflow-x: visible;
  overflow-y: hidden;
}

/* Flou en pseudo-élément pour éviter un DIV supplémentaire */
.tarif-block::before {
  content: "";
  position: absolute;
  z-index: -1;                 /* juste derrière le contenu */
  top: 0;                     /* aligne le haut de la bulle sur le haut de la carte */
  left: 50%;                  /* centre horizontalement */
  width: 20em;
  height: 30em;
  border-radius: 50%;
  background: radial-gradient(circle at center, #9B51E0 0%, #9B51E0 100%);
  filter: blur(150px);
  transform: translateX(-50%) rotate(-26deg) scale(1.2);
}

/* Tous les enfants (titre, champs, bouton) au-dessus du flou */
.tarif-block > * {
  position: relative;
  z-index: 1;
}

/* Header fixe */
#masthead {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(90deg, #4977e2 0%, #9B51E0 100%) !important;
  transition: top .2s;
}

/* Quand la barre admin seule est active */
html.admin-bar #masthead {
  top: 32px !important;
}

/* Quand on est en mode Customizer (barre admin + barre perso) */
html.admin-bar.customize-support #masthead,
html.customize-preview #masthead {
  /* Ajustez 44px si votre toolbar perso est plus haute ou plus basse */
  top: calc(32px + 44px) !important;
}

/* Décaler le contenu en conséquence */
body {
  padding-top: 5rem; /* hauteur de votre header */
}

/* Même chose en Customizer */
html.customize-support body,
html.customize-preview body {
  padding-top: calc(5rem + 32px + 44px) !important;
}

/* petit spinner inline */
.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  border: 2px solid rgba(255,255,255,0.6);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Notification bulle bas-droite */
.prospectus-notif {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #ff4d4f;
  color: #fff;
  padding: .75rem 1rem;
  border-radius: .5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  font-size: .9rem;
  display: flex;
  align-items: center;
  z-index: 99999;

  /* CONTRAINTES DE LARGEUR */
  max-width: 20rem;    /* ne pas dépasser */
  width: auto;         /* adapter au contenu */
  white-space: normal; /* autoriser le retour à la ligne */
  }
  
.prospectus-notif.error { background: #ff4d4f; }
.prospectus-notif:not(.error) { background: #4caf50; /* vert succès */ }

.prospectus-notif-msg {
  flex: 1;
  line-height: 1.2;
}

.prospectus-notif-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 0.5rem;
}


