/* Pop-up d'information (popup-info.php). Thème sans SCSS : CSS seul. */

.popup-info {
  position: fixed;
  inset: 0;
  z-index: 1000; /* au-dessus de l'en-tête (998), sous le préchargeur (9999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.popup-info__overlay {
  position: absolute;
  inset: 0;
  background: rgba(51, 41, 34, 0.6);
  cursor: pointer;
}

.popup-info__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 56px 40px 40px;
  background: #fff;
  color: #332922;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 20px 60px rgba(51, 41, 34, 0.25);
}

.popup-info__box:focus {
  outline: none;
}

.popup-info .popup-info__titre {
  width: auto; /* les titres h2 du thème sont à la largeur de leur texte */
  margin: 0 0 20px;
  padding: 0;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #332922;
}

.popup-info .popup-info__titre::before,
.popup-info .popup-info__titre::after {
  content: none;
}

.popup-info__texte p {
  margin: 0 0 12px;
}

.popup-info__texte p:last-child {
  margin-bottom: 0;
}

.popup-info__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #332922;
  cursor: pointer;
}

.popup-info__ok {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 32px;
  border: 1px solid #332922;
  border-radius: 0;
  background: #332922;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.popup-info__ok:hover {
  background: #fff;
  color: #332922;
}

.popup-info__close:focus-visible,
.popup-info__ok:focus-visible {
  outline: 2px solid #705b4b;
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .popup-info__box {
    padding: 52px 20px 28px;
  }

  .popup-info .popup-info__titre {
    font-size: 22px;
  }
}
