/* Pop-up événement — leguidedesecolesjuives.com (voir popup-evenement.js) */
.popup-evenement {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.popup-evenement--visible {
  opacity: 1;
}

.popup-evenement__boite {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(440px, 100%);
  max-height: 100%;
  padding: 12px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.popup-evenement__lien-affiche {
  display: block;
  min-height: 0;
}

.popup-evenement__affiche {
  display: block;
  width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 6px;
}

.popup-evenement__bouton {
  display: inline-block;
  padding: 12px 28px;
  background: #c4561b;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.popup-evenement__bouton:hover,
.popup-evenement__bouton:focus {
  background: #a3440f;
}

.popup-evenement__fermer {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #222222;
  font-size: 26px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .popup-evenement__fermer {
    top: 4px;
    right: 4px;
  }
}
