/* ────────────────────────────────────────────────
   T6 — POPUP EXIT INTENT -15% | AideauxTD DS v2.0
   3 étapes · modale 440px · exit-intent uniquement
   ──────────────────────────────────────────────── */

.atd-t6-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.atd-t6-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Reset box-sizing */
.atd-t6,
.atd-t6 *,
.atd-t6 *::before,
.atd-t6 *::after {
  box-sizing: border-box;
}

.atd-t6 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
  position: relative;
}

.atd-t6 .t6-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
}
.atd-t6 .t6-close:hover { background: rgba(255, 255, 255, 0.28); }
.atd-t6.step-2 .t6-close,
.atd-t6.step-3 .t6-close {
  background: #F8F8F8;
  color: #9CA3AF;
}
.atd-t6.step-2 .t6-close:hover,
.atd-t6.step-3 .t6-close:hover { background: #E5E7EB; }

.atd-t6 .t6-step { display: none; }
.atd-t6 .t6-step.is-active { display: block; }

/* === Étape 1 — Offre === */
.atd-t6 .t6-accent {
  background: linear-gradient(135deg, #B0001D 0%, #DC2626 50%, #7C3AED 100%);
  padding: 28px 32px 22px;
  text-align: center;
}
.atd-t6 .t6-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}
.atd-t6 .t6-promo-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}
.atd-t6 .t6-promo-num .big {
  font-size: 72px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -3px;
}
.atd-t6 .t6-promo-num .unit {
  font-size: 30px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.atd-t6 .t6-promo-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 6px;
}

.atd-t6 .t6-body {
  padding: 24px 28px 20px;
}
.atd-t6 .t6-title {
  font-size: 19px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 6px 0;
}
.atd-t6 .t6-text {
  font-size: 13px;
  color: #4A4A4A;
  line-height: 1.6;
  margin: 0 0 20px 0;
}
.atd-t6 .t6-btn-primary {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #B0001D 0%, #DC2626 50%, #7C3AED 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(176, 0, 29, 0.25);
  transition: opacity 0.15s, transform 0.15s;
  text-align: center;
  text-decoration: none;
}
.atd-t6 .t6-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.atd-t6 .t6-btn-secondary {
  display: block;
  width: 100%;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: #9CA3AF;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: "Poppins", sans-serif;
}
.atd-t6 .t6-btn-secondary:hover { color: #4A4A4A; }
.atd-t6 .t6-mentions {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* === Étape 2 — Formulaire === */
.atd-t6 .t6-accent-mini {
  background: linear-gradient(135deg, #B0001D 0%, #DC2626 50%, #7C3AED 100%);
  padding: 14px 28px;
  text-align: center;
}
.atd-t6 .t6-form-body {
  padding: 22px 28px 20px;
}
.atd-t6 .t6-form-title {
  font-size: 19px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 4px 0;
}
.atd-t6 .t6-form-sub {
  font-size: 13px;
  color: #9CA3AF;
  margin: 0 0 20px 0;
}
.atd-t6 .field {
  margin-bottom: 12px;
}
.atd-t6 .field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 5px;
}
.atd-t6 .field input {
  width: 100% !important;
  padding: 10px 13px !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: "Poppins", sans-serif !important;
  color: #1A1A1A !important;
  outline: none !important;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #FFFFFF !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.atd-t6 .field input:focus {
  border-color: #7C3AED !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08) !important;
}
.atd-t6 .t6-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
  color: #9CA3AF;
}
.atd-t6 .t6-proof .stars {
  color: #F59E0B;
}

/* === Étape 3 — Confirmation === */
.atd-t6 .t6-confirm {
  padding: 44px 32px;
  text-align: center;
}
.atd-t6 .t6-confirm-icon {
  width: 68px;
  height: 68px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
}
.atd-t6 .t6-confirm-title {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 10px 0;
}
.atd-t6 .t6-confirm-text {
  font-size: 14px;
  color: #4A4A4A;
  line-height: 1.65;
  margin: 0;
}
.atd-t6 .t6-confirm-note {
  margin-top: 16px;
  font-size: 12px;
  color: #9CA3AF;
}

@media (max-width: 600px) {
  .atd-t6 { max-width: 90vw; }
  .atd-t6 .t6-promo-num .big { font-size: 60px; }
  .atd-t6 .t6-promo-num .unit { font-size: 26px; }
}
