/* ============================================================
   MODALS (démo + Calendly) — extraits de l'ancien custom-overlay
   ============================================================ */

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.demo-modal.is-open { display: flex; }

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdropIn 0.25s ease;
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.demo-modal-content {
  position: relative;
  background: white;
  border-radius: 22px;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  max-height: 800px;
  overflow: hidden;
  box-shadow: 0 60px 100px -20px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
  display: block;
}

.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 16, 36, 0.9);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: transform 0.2s, background 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}
.demo-modal-close:hover {
  background: #c62828;
  transform: rotate(90deg) scale(1.05);
}

/* Modal Calendly : plus grande pour bien voir le calendrier */
.calendly-modal .demo-modal-content {
  max-width: 1100px;
  height: 92vh;
  max-height: 860px;
}

@media (max-width: 700px) {
  .demo-modal { padding: 0; }
  .demo-modal-content {
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
}
