.tp-contact-form {
  background: rgba(16, 23, 34, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tp-contact-form .form-label {
  font-weight: 600;
  color: var(--text);
}

.tp-contact-form .form-control,
.tp-contact-form .form-select,
.tp-contact-form textarea {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--text);
}

.tp-contact-form .form-control:focus,
.tp-contact-form .form-select:focus,
.tp-contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0,226,166,0.2);
  background-color: rgba(255,255,255,0.05);
}

.tp-contact-infos {
  font-size: 0.9rem;
}
.tp-contact-infos i {
  color: var(--brand);
}


.tp-badge-prestige {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #111;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
  animation: tpPrestigePulse 3s ease in-out infinite;
}

.tp-badge-prestige i {
  color: #111;
}

/* Wrapper et halo animé autour du formulaire */
.tp-prestige-wrapper {
  position: relative;
  border-radius: var(--radius);
  padding: 8px;
}

.tp-contact-form-prestige {
  position: relative;
  z-index: 2;
}

/* Halo derrière la carte, avec léger mouvement */
.tp-prestige-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 226, 166, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(102, 126, 234, 0.20), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(255, 215, 0, 0.18), transparent 55%);
  filter: blur(10px);
  opacity: 0.8;
  z-index: 1;
  animation: tpPrestigeGlow 10s linear infinite alternate;
}

/* Bouton Prestige légèrement plus premium */
.tp-btn-prestige {
  position: relative;
  overflow: hidden;
  padding-inline: 2.4rem;
}

.tp-btn-prestige::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.15), transparent 60%);
  transform: translateX(-100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tp-btn-prestige:hover::before {
  transform: translateX(100%);
  opacity: 1;
}

/* Animations clés */

@keyframes tpPrestigePulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.75);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
  }
}

@keyframes tpPrestigeGlow {
  0% {
    transform: translate3d(-6px, 0, 0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(6px, 4px, 0) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: translate3d(-4px, 0, 0) scale(1.01);
    opacity: 0.8;
  }
}

/* Légère variante d’atmosphère pour la page Prestige */
.prestige-contact .h1 {
  letter-spacing: 0.04em;
}

.prestige-contact .h1,
.prestige-contact p {
  color: var(--text);
}



.tp-prestige-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tp-prestige-alert-error {
  background: rgba(255, 77, 79, 0.1);
  border: 1px solid rgba(255, 77, 79, 0.4);
  color: #ff4d4f;
}

/* Wrapper Prestige */
.tp-prestige-wrapper {
  position: relative;
  border-radius: var(--radius);
  padding: 8px;
  overflow: hidden;
}

/* Formulaire Prestige animé */
.tp-contact-form-prestige {
  position: relative;
  z-index: 2;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    filter 0.5s ease;
}

/* Bloc succès caché au départ */
.tp-prestige-success {
  position: absolute;
  inset: 0;
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  z-index: 3;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* Coche animée */
.tp-prestige-check {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}

.tp-prestige-check svg {
  width: 100%;
  height: 100%;
}

.tp-prestige-check-circle {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.tp-prestige-check-tick {
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

/* Halo Prestige */
.tp-prestige-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 226, 166, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(102, 126, 234, 0.20), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(255, 215, 0, 0.18), transparent 55%);
  filter: blur(10px);
  opacity: 0.8;
  z-index: 1;
  animation: tpPrestigeGlow 10s linear infinite alternate;
}

/* Etat succès : le formulaire se rétracte, le succès apparaît */
.tp-prestige-wrapper.is-success .tp-contact-form-prestige {
  opacity: 0;
  transform: scale(0.9) translateY(-10px);
  filter: blur(4px);
  pointer-events: none;
}

.tp-prestige-wrapper.is-success .tp-prestige-success {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Animation de la coche une fois en état succès */
.tp-prestige-wrapper.is-success .tp-prestige-check-circle {
  animation: tpCheckCircle 0.6s ease forwards;
}

.tp-prestige-wrapper.is-success .tp-prestige-check-tick {
  animation: tpCheckTick 0.4s ease 0.4s forwards;
}

@keyframes tpCheckCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes tpCheckTick {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes tpPrestigeGlow {
  0% {
    transform: translate3d(-6px, 0, 0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(6px, 4px, 0) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: translate3d(-4px, 0, 0) scale(1.01);
    opacity: 0.8;
  }
}