#secretaire {
    margin:auto;
}
@media (min-width: 992px) {
.owl-carousel.les-docteurs {
    display: flex !important; /* To override display:block I added !important */
    flex-direction: row;
    justify-content: center; /* To center the carousel */
}
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-popup {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 800px;
  padding: 40px;
  border-radius: 8px;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #000;
}

.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.modal-buttons .btn {
  width: 220px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* Force le passage à la ligne après le 2e bouton */
.modal-buttons .btn:nth-child(2)::after {
  content: "";
}

.modal-buttons::after {
  content: "";
  flex-basis: 100%;
  order: 2;
}

.modal-buttons .btn:nth-child(1),
.modal-buttons .btn:nth-child(2) {
  order: 1;
}

.modal-buttons .btn:nth-child(3),
.modal-buttons .btn:nth-child(4),
.modal-buttons .btn:nth-child(5) {
  order: 3;
}

@media (max-width: 767px) {
  .modal-popup {
    padding: 32px 24px;
  }

  .modal-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-buttons::after {
    display: none;
  }

  .modal-buttons .btn {
    width: 100%;
    order: initial;
  }
}