/* =========================
MODAL DORIS FIX FINAL (ANTI-MOBIRISE)
========================= */

/* 🔥 FORCE AFFICHAGE (corrige fond gris seul) */
#popupDoris.modal.show {
  display: block !important;
  opacity: 1;
}

/* 🔥 RESET MOBIRISE (supprime conflits) */
#popupDoris.modal {
  position: fixed !important;
  inset: 0;
  z-index: 1055;
  height: auto !important;
  overflow: hidden;
}

/* 🔥 BACKDROP */
.modal-backdrop.show {
  opacity: 0.5;
}

/* 🔥 CENTRAGE VERTICAL RÉEL */
#popupDoris .modal-dialog {
  position: relative;
  margin: 0 auto !important;
  top: 50%;
  transform: translateY(-50%);
  max-width: 800px;
  pointer-events: auto;
}

/* 🔥 CONTENU */
#popupDoris .modal-content {
  background: #353535;
  color: #fff;
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  height: auto !important;
  display: block;
}

/* HEADER */
#popupDoris .modal-header {
  border-bottom: none;
  padding: 2rem 2rem 1rem;
  position: relative;
}

#popupDoris .modal-title {
  width: 100%;
  text-align: center;
  color: #22a5e5;
  font-weight: 700;
}

/* BOUTON FERMER */
#popupDoris .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  filter: invert(1);
  opacity: 0.7;
}

#popupDoris .btn-close:hover {
  opacity: 1;
}

/* BODY */
#popupDoris .modal-body {
  padding: 1rem 2rem 2rem;
}

#popupDoris .modal-body p {
  color: #ffffff;
  line-height: 1.5;
  text-align: left;
}

/* IMAGE */
#popupDoris .modal-body img {
  width: 100%;
  margin-top: 15px;
  display: block;
}

/* FOOTER */
#popupDoris .modal-footer {
  border-top: none;
  justify-content: center;
  padding: 0 2rem 2rem;
}

/* BOUTON */
#popupDoris .btn-primary {
  background: #22a5e5;
  border: none;
}

#popupDoris .btn-primary:hover {
  background: #00aa88;
}

/* 🔥 FIX ULTIME SI MOBIRISE FORCE display:none */
.modal {
  display: none;
}

.modal.show {
  display: block !important;
}

/* 🔥 supprime les hauteurs forcées */
.modal-dialog,
.modal-content {
  height: auto !important;
  min-height: unset !important;
}

/* 🔥 empêche débordement bizarre */
body.modal-open {
  overflow: hidden;
}