/* Retour visuel du formulaire de contact : envoi en cours, confirmation, erreur. */
.buttonsend[disabled] { opacity: 0.7; cursor: wait; }

.form-alert {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 420px);
  font-family: "Montserrat", sans-serif;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border: 1px solid #ff6b6b;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.12);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.sent-panel { display: none; }

/* Une fois le message parti : on remplace tout le formulaire par la confirmation. */
#compe.is-sent > *:not(.sent-panel) { display: none !important; }
#compe.is-sent { height: auto !important; min-height: 0 !important; padding-top: 48px; padding-bottom: 48px; }
#compe.is-sent .sent-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  box-sizing: border-box;
  animation: sent-in 0.35s ease-out;
}
.sent-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #1f9d55;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(31, 157, 85, 0.18);
}
.sent-icon svg { width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sent-title { margin: 8px 0 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.sent-text { margin: 0; font-size: 16px; line-height: 1.5; color: #e6e6e6; }
.sent-recap { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); font-size: 14px; line-height: 1.6; color: #d0d0d0; word-break: break-word; }
.sent-recap strong { color: #fff; }
.sent-urgent { margin: 4px 0 0; font-size: 15px; color: #d0d0d0; }
.sent-urgent a { color: #fff; font-weight: 700; white-space: nowrap; }
.sent-again {
  font-family: "Montserrat", sans-serif;
  margin-top: 8px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.sent-again:hover { background: rgba(255, 255, 255, 0.1); }

@keyframes sent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #compe.is-sent .sent-panel { animation: none; } }
