/* Popup de la page d'accueil — polices et couleurs du site. */
.hp-lock { overflow: hidden; }

.hp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482000; /* sous le bandeau cookies */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 22, .72);
  opacity: 0;
  transition: opacity .3s ease;
}
.hp-overlay.hp-visible { opacity: 1; }

.hp-dialog {
  position: relative;
  display: flex;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .45);
  transform: translateY(14px);
  transition: transform .3s ease;
}
.hp-visible .hp-dialog { transform: none; }
.hp-dialog.hp-single { width: min(540px, 100%); }

.hp-panel {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hp-panel + .hp-panel { border-left: 1px solid #e8e2d6; }

.hp-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  padding: 28px;
  background-size: cover;
  background-position: center;
}
.hp-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .32));
}
.hp-dialog .hp-title {
  position: relative;
  margin: 0;
  max-width: 440px;
  font-family: "ivypresto-display", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 32px 32px;
  text-align: center;
}
.hp-dialog .hp-subtitle {
  margin: 0 0 18px;
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 2px;
  text-align: center;
  color: #111;
}
.hp-dialog .hp-text {
  margin: 0 0 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: .9rem;
  line-height: 1.6;
  letter-spacing: .5px;
  text-align: center;
  color: #333;
}
.hp-dialog .hp-cta {
  margin-top: auto;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  background: #b8913f;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  transition: background .2s;
}
.hp-dialog .hp-cta:hover,
.hp-dialog .hp-cta:focus-visible { background: #9c7a33; color: #fff; }

.hp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 32, 36, .55);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.hp-close:hover,
.hp-close:focus-visible { background: #bd9035; outline: none; }

@media (max-width: 820px) {
  .hp-overlay { padding: 12px; align-items: flex-start; }
  .hp-dialog { flex-direction: column; max-height: calc(100vh - 24px); }
  .hp-panel + .hp-panel { border-left: 0; border-top: 1px solid #e8e2d6; }
  .hp-visual { min-height: 170px; padding: 20px; }
  .hp-dialog .hp-title { font-size: 2.2rem; }
  .hp-body { padding: 18px 20px 22px; }
  .hp-dialog .hp-subtitle { font-size: .9rem; letter-spacing: 1px; margin-bottom: 10px; }
  .hp-dialog .hp-text { font-size: .85rem; margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-overlay, .hp-dialog { transition: none; }
}
