/* ============================================================
   CTA ebook + popup formulaire Zoho — utilisé dans les articles
   (chargé via <link> ; JS associé : /assets/js/ebook-modal.js)
   ============================================================ */

/* --- Bouton CTA --- */
.ebook-cta {
  text-align: center;
  margin: 44px 0 8px;
}
.ebook-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F08A7D;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(240, 138, 125, 0.35);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ebook-btn:hover {
  background: #e97b6d;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(240, 138, 125, 0.45);
}
.ebook-btn:active { transform: translateY(0); }
.ebook-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* --- Overlay + popup --- */
.ebook-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 40, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.ebook-modal-overlay.open { display: flex; }
.ebook-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow: auto;
  padding: 40px 20px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  -webkit-overflow-scrolling: touch;
}
.ebook-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #6c7493;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.ebook-modal-close:hover { background: #f1f4fa; color: #2b3146; }
.ebook-iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .ebook-modal { padding: 40px 12px 12px; }
  .ebook-iframe { height: 68vh; }
}
