/* Popup promo — voir PromoPopupFields et PromoPopup.js. */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 20, 38, 0.82);
}

.promo-popup[hidden] {
  display: none;
}

.promo-popup__boite {
  position: relative;
  width: min(75vw, 1600px);
}

.promo-popup__lien {
  display: block;
}

/* Visuel montré en entier, jamais recadré, toujours dans l'écran. */
.promo-popup__boite img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.promo-popup__fermer {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0d1e3c;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
}

.promo-popup__fermer:focus-visible {
  outline: 2px solid #b7985f;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .promo-popup__boite {
    width: 100%;
  }
}

body.promo-popup-ouverte {
  overflow: hidden;
}
