/* MA2I Engagement Styles — Exit-Intent + Lead Magnet */

/* ── Overlay ───────────────────────────────────────────────────────── */
.ma2i-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ma2i-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Popup base ────────────────────────────────────────────────────── */
.ma2i-popup {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  font-family: 'Catamaran', sans-serif;
  animation: ma2iPopIn 0.35s ease;
}
@keyframes ma2iPopIn {
  from { transform: scale(0.88) translateY(24px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.ma2i-popup-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #bbb;
  transition: color 0.2s;
}
.ma2i-popup-close:hover { color: #333; }

/* ── Exit-Intent popup ─────────────────────────────────────────────── */
.ma2i-exit-popup { text-align: center; }
.ma2i-popup-icon { font-size: 50px; margin-bottom: 10px; }
.ma2i-exit-popup h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 10px;
}
.ma2i-exit-popup p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.55;
}

/* ── Lead Magnet popup ─────────────────────────────────────────────── */
.ma2i-lead-popup { max-width: 560px; }

.lead-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.lead-cover {
  min-width: 86px;
  height: 106px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 30px;
  box-shadow: 4px 4px 14px rgba(0,0,0,0.22);
}
.lead-cover strong {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00c8ff;
}
.lead-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 4px;
}
.lead-sub {
  font-size: 14px;
  color: #1b3a5c;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.4;
}
.lead-perks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lead-perks li {
  font-size: 13px;
  color: #444;
  margin-bottom: 4px;
}

/* ── Form elements ─────────────────────────────────────────────────── */
.ma2i-fg { margin-bottom: 12px; }
.ma2i-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ma2i-fg input {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid #dde2ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Catamaran', sans-serif;
  color: #222;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ma2i-fg input:focus {
  outline: none;
  border-color: #1b3a5c;
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.ma2i-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00c8ff 0%, #1b3a5c 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  font-family: 'Catamaran', sans-serif;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ma2i-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 200, 255, 0.3);
}

/* ── Success + note ────────────────────────────────────────────────── */
.ma2i-success {
  text-align: center;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 15px;
  font-weight: 600;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.55;
}
.ma2i-note {
  font-size: 11px;
  color: #bbb;
  text-align: center;
  margin: 12px 0 0;
}

/* ── Floating Lead Magnet CTA ──────────────────────────────────────── */
.ma2i-lead-cta {
  position: fixed;
  left: 20px;
  bottom: 90px;
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-16px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
.ma2i-lead-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.ma2i-lead-cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 20px 11px 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
  font-family: 'Catamaran', sans-serif;
  font-size: 13px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}
.ma2i-lead-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}
.lead-icon { font-size: 20px; }
.lead-label {
  font-weight: 600;
  line-height: 1.25;
}
.lead-label small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #00c8ff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ── Animation pulse bouton "Planifier une démo" dans la navbar ────── */
@keyframes demoBtnPulse {
  0%   { box-shadow: 0 7px 25px rgba(123,104,238,0.25); }
  50%  { box-shadow: 0 0 0 8px rgba(123,104,238,0.15), 0 7px 25px rgba(123,104,238,0.25); }
  100% { box-shadow: 0 7px 25px rgba(123,104,238,0.25); }
}
.demo-btn-pulse {
  animation: demoBtnPulse 1.8s ease-in-out infinite;
  white-space: nowrap !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  font-size: 14px !important;
}
.demo-btn-pulse:hover {
  animation: none;
}

/* ── Demo Popup ─────────────────────────────────────────────────────── */
.ma2i-demo-popup { max-width: 520px; }
.ma2i-demo-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.ma2i-demo-icon {
  font-size: 38px;
  line-height: 1;
  flex-shrink: 0;
}
.ma2i-demo-title {
  font-size: 22px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 4px;
}
.ma2i-demo-sub {
  font-size: 13px;
  color: #555;
  margin: 0;
}
.ma2i-btn-demo {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1b3a5c 0%, #0d1b2a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  font-family: 'Catamaran', sans-serif;
  transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ma2i-btn-demo:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 27, 42, 0.35);
}

/* Mobile */
@media (max-width: 600px) {
  .ma2i-demo-float-btn { bottom: 160px; right: 12px; padding: 11px 16px 11px 13px; font-size: 13px; }
}

/* ── WhatsApp Floating Button ──────────────────────────────────────── */
.ma2i-wa-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.ma2i-wa-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

/* ── Cookie Consent Banner ─────────────────────────────────────────── */
.ma2i-cookie-banner {
  position: fixed !important;
  bottom: -200px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
  background: #0d1b2a;
  color: #e0e6ef;
  padding: 0;
  transition: bottom 0.45s ease !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
  font-family: 'Catamaran', sans-serif;
}
.ma2i-cookie-banner.visible {
  bottom: 0 !important;
}
.ma2i-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ma2i-cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 220px;
}
.ma2i-cookie-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.ma2i-cookie-text strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
}
.ma2i-cookie-inner p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  color: #b0bec5;
}
.ma2i-cookie-inner a {
  color: #00c8ff;
  text-decoration: none;
  font-weight: 600;
}
.ma2i-cookie-inner a:hover {
  text-decoration: underline;
}
.ma2i-cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.ma2i-cbtn {
  padding: 9px 22px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Catamaran', sans-serif;
  transition: opacity 0.2s;
}
.ma2i-cbtn:hover { opacity: 0.85; }
.ma2i-cbtn-accept {
  background: #00c8ff;
  color: #0d1b2a;
}
.ma2i-cbtn-refuse {
  background: transparent;
  color: #aaa;
  border: 1px solid #444;
}
.ma2i-cbtn-refuse:hover { color: #fff; border-color: #888; }

/* ── Bouton flottant Audit (gauche, au-dessus du Guide GED) ─────────── */
.ma2i-audit-float-btn {
  position: fixed;
  left: 20px;
  bottom: 158px;
  z-index: 9997;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 20px 11px 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
  font-family: 'Catamaran', sans-serif;
  font-size: 13px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-16px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}
.ma2i-audit-float-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.ma2i-audit-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}
.ma2i-audit-float-icon { font-size: 20px; flex-shrink: 0; }
.ma2i-audit-float-label {
  font-weight: 600;
  line-height: 1.25;
}
.ma2i-audit-float-label small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #00c8ff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

@media (max-width: 600px) {
  .ma2i-audit-float-btn { bottom: 210px; left: 10px; }
}

/* ── Audit Popup ────────────────────────────────────────────────────── */
.ma2i-audit-popup { text-align: left; max-width: 460px; }
.ma2i-audit-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00c8ff 0%, #1b3a5c 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.ma2i-audit-title {
  font-size: 24px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 10px;
  line-height: 1.25;
}
.ma2i-audit-title span {
  font-size: 16px;
  font-weight: 500;
  color: #1b3a5c;
}
.ma2i-audit-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.55;
}
.ma2i-audit-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-left: 3px solid #00c8ff;
  padding-left: 14px;
}
.ma2i-audit-perks li {
  font-size: 13px;
  color: #1b3a5c;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ma2i-popup { padding: 24px 18px 20px; }
  .ma2i-form-row { grid-template-columns: 1fr; }
  .lead-header { flex-direction: column; align-items: center; text-align: center; }
  .lead-perks  { text-align: left; }
  .ma2i-lead-cta { left: 10px; bottom: 150px; } /* au-dessus du chatbot mobile */
}
