/* ================================================
   POP-UP DE SORTIE
   ================================================ */
.exit-popup[hidden] { display: none; }

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.exit-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 24, 0.75);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exit-popup__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #0A0D18;
  border-top: 3px solid var(--color-gold, #C5A059);
  padding: 48px 44px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.exit-popup.is-open .exit-popup__overlay { opacity: 1; }
.exit-popup.is-open .exit-popup__box { opacity: 1; transform: translateY(0); }

.exit-popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.exit-popup__close:hover,
.exit-popup__close:focus-visible { color: #fff; }

.exit-popup__close:focus { outline: none; }
.exit-popup__close:focus-visible { outline: 1px solid var(--color-gold, #C5A059); outline-offset: 2px; }

.exit-popup__pretitle {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold, #C5A059);
}

.exit-popup__title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}

.exit-popup__text {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .exit-popup__overlay,
  .exit-popup__box { transition: none; }
}

/* Formulaire CF7 dans le pop-up */
.exit-popup__form { width: 100%; }

.exit-popup__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.exit-popup__form input[type="text"],
.exit-popup__form input[type="email"],
.exit-popup__form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.exit-popup__form input::placeholder { color: rgba(255, 255, 255, 0.45); }

.exit-popup__form input:focus {
  outline: none;
  border-color: var(--color-gold, #C5A059);
}

.exit-popup__form .wpcf7-acceptance {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.exit-popup__form .wpcf7-acceptance a { color: var(--color-gold, #C5A059); }

.exit-popup__form input[type="submit"] {
  background: #fff;
  color: #0A0D18;
  border: none;
  padding: 14px 24px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.exit-popup__form input[type="submit"]:hover { background: var(--color-gold, #C5A059); }

.exit-popup__form .wpcf7-not-valid-tip { font-size: 0.75rem; color: #ff8a8a; }
.exit-popup__form .wpcf7-response-output { color: #fff; font-size: 0.85rem; margin: 14px 0 0 !important; }

/* Neutralise les <p> et <br> ajoutés par CF7 dans la grille */
.exit-popup__form-grid p { display: contents; }
.exit-popup__form-grid br { display: none; }
.exit-popup__form-grid .wpcf7-form-control-wrap { display: block; }

/* Boutons d'action côte à côte */
.exit-popup__actions {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  position: relative;
}
.exit-popup__actions p { display: contents; }
.exit-popup__actions br { display: none; }

.exit-popup__actions input[type="submit"],
.exit-popup__actions .exit-popup__decline {
  flex: 0 0 auto;
  width: auto !important;
  display: inline-block !important;
  margin: 0 !important;
  white-space: nowrap;
}

/* Le spinner CF7 ne doit pas pousser les boutons */
.exit-popup__actions .wpcf7-spinner {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.exit-popup__decline {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: inherit;
  padding: 14px 24px !important;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.exit-popup__decline:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}