/* Popup(s) de la page d'accueil (Paramètres > Popups dans l'admin). */
.home-popup .home-popup__dialog {
  /* La largeur exacte est calculée en JS selon la forme de l'image (app/home-popup.php). */
  max-width: min(560px, calc(100vw - 32px));
  margin: 20px auto;
  min-height: calc(100% - 40px);
}

/* Au-dessus de l'en-tête et de ses éléments (z-index jusqu'à 9999). */
.home-popup.modal {
  z-index: 100001;
}

body.home-popup-open .modal-backdrop {
  z-index: 100000;
  background: #021b33;
}

body.home-popup-open .modal-backdrop.show {
  opacity: 0.8;
}

.home-popup .home-popup__content {
  position: relative;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(2, 61, 111, 0.35);
}

.home-popup__slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.home-popup__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.home-popup__link {
  display: block;
  width: 100%;
  cursor: pointer;
}

.home-popup__image {
  display: block;
  width: 100%;
  height: auto;
}

.home-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(2, 61, 111, 0.85);
  color: #ffffff;
  font-size: 26px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.home-popup__close:hover,
.home-popup__close:focus {
  background: #d39f06;
  outline: none;
}

.home-popup__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #023d6f;
  font-size: 28px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

.home-popup__arrow:hover,
.home-popup__arrow:focus {
  background: #d39f06;
  color: #ffffff;
  outline: none;
}

.home-popup__arrow--prev { left: 10px; }
.home-popup__arrow--next { right: 10px; }

.home-popup .home-popup__pagination {
  bottom: 10px;
}

.home-popup .home-popup__pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #ffffff;
  opacity: 0.7;
  box-shadow: 0 0 0 1px rgba(2, 61, 111, 0.4);
}

.home-popup .home-popup__pagination .swiper-pagination-bullet-active {
  background: #d39f06;
  opacity: 1;
}

@media (max-width: 575px) {
  .home-popup__arrow {
    width: 32px;
    height: 32px;
    margin-top: -16px;
    font-size: 24px;
    line-height: 30px;
  }
}
