
/* === POPIN WEBAPP – FULLSCREEN === */

#sge-webapp-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

#sge-webapp-modal.is-open {
  display: block;
}

/* Fond assombri */
#sge-webapp-modal .sge-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* Conteneur principal */
#sge-webapp-modal .sge-modal__dialog {
  position: relative;
  width: 96vw;
  height: 94vh;
  margin: 3vh auto;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

/* === CROIX DE FERMETURE – FIX VISIBILITÉ === */

#sge-webapp-modal .sge-modal__close {
  position: fixed;              /* IMPORTANT */
  top: 36px;
  right: 36px;
	
  padding:0px;
	margin:4px;

  z-index: 1000001;              /* AU-DESSUS DU BACKDROP */

  width: 48px;
  height: 48px;

  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  

  font-size: 32px;
  font-weight: 700;
  line-height: 48px;

  cursor: pointer;

  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  opacity: 0.95;
}

#sge-webapp-modal .sge-modal__close:hover {
  /* background: #d63638; /* rouge Woo */
  transform: scale(1.05);
}


/* Corps */
#sge-webapp-modal .sge-modal__body {
  flex: 1;
  overflow: hidden;
}

/* Iframe */
#sge-webapp-modal .sge-modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Empêcher le scroll arrière-plan */
body.sge-modal-open {
  overflow: hidden;
}
