/* ============================================================
   exit-intent.css — Popup sortie de page Brannity
   ============================================================ */

/* ── Overlay ──────────────────────────────────────────────── */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 30, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.exit-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Carte ────────────────────────────────────────────────── */
.exit-card {
  background: #fff;
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: visible;
  box-shadow:
    0 48px 120px rgba(7, 14, 30, 0.32),
    0 10px 30px  rgba(7, 14, 30, 0.16);
  transform: scale(0.88) translateY(28px);
  opacity: 0;
  transition:
    transform 0.46s cubic-bezier(0.34, 1.38, 0.64, 1),
    opacity   0.32s ease;
}

.exit-overlay.is-open .exit-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ── Accent top ───────────────────────────────────────────── */
.exit-card {
  border-top: 3px solid #1A53FF;
}

/* ── Glow bleu fond gauche ────────────────────────────────── */
.exit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 100%;
  background: radial-gradient(ellipse 180px 160px at 60px 60px, rgba(26, 83, 255, 0.09) 0%, transparent 70%);
  border-radius: 21px 0 0 21px;
  pointer-events: none;
  z-index: 0;
}

/* ── Logo watermark (B de Brannity) ──────────────────────── */
.exit-card::after {
  content: '';
  position: absolute;
  top: -18px;
  left: -14px;
  width: 210px;
  height: 210px;
  background: url('../images/logob.webp') no-repeat center / contain;
  opacity: 0.06;
  filter: grayscale(1);
  pointer-events: none;
  z-index: 0;
}

/* ── Image fond (positionnée en absolu, bras chevauche le texte) */
.exit-card__img-wrap {
  position: absolute;
  left: -10px;
  bottom: 0;
  width: 230px;
  z-index: 2;
  pointer-events: none;
}

.exit-card__img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* ── Contenu ──────────────────────────────────────────────── */
.exit-card__content {
  flex: 1;
  padding: 32px 32px 32px 195px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Fermer ───────────────────────────────────────────────── */
.exit-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #eef0f5;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(11, 27, 61, 0.35);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  z-index: 2;
}

.exit-card__close:hover {
  background: #f4f6fb;
  color: #0B1B3D;
  border-color: #d4d8e8;
}

/* ── Badge ────────────────────────────────────────────────── */
.exit-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1A53FF;
  background: rgba(26, 83, 255, 0.08);
  border-radius: 20px;
  padding: 4px 10px;
  width: fit-content;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.01em;
}

.exit-card__badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1A53FF;
  flex-shrink: 0;
}

/* ── Titre ────────────────────────────────────────────────── */
.exit-card__title {
  font-size: 27px;
  font-weight: 700;
  color: #0B1B3D;
  margin: 0 0 12px;
  line-height: 1.18;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

/* ── Sous-titre ───────────────────────────────────────────── */
.exit-card__sub {
  font-size: 13.5px;
  color: rgba(11, 27, 61, 0.52);
  margin: 0 0 24px;
  line-height: 1.58;
  font-family: 'DM Sans', sans-serif;
  flex: 1;
}

/* ── CTA principal ────────────────────────────────────────── */
.exit-card__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: #0B1B3D;
  color: #fff;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.exit-card__cta-primary:hover {
  background: #122150;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(11, 27, 61, 0.28);
}

.exit-card__cta-primary:active {
  transform: translateY(0);
}


/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 560px) {
  .exit-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .exit-card {
    border-radius: 24px 24px 0 0;
    flex-direction: column;
    max-width: 100%;
    min-height: auto;
  }

  .exit-card::before {
    border-radius: 24px 24px 0 0;
  }

  .exit-card__img-wrap {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: #f4f7ff;
  }

  .exit-card__img {
    position: static;
    height: 100%;
    width: auto;
    margin: 0 auto;
    display: block;
    left: auto;
    bottom: auto;
  }

  .exit-card__content {
    padding: 24px 24px 28px;
  }

  .exit-card__title {
    font-size: 22px;
  }
}
