/**
 * Home-page event announcement popup (Ouverture de chantier Quartier Éveil).
 */

html.eveil-event-popup-open,
html.eveil-event-popup-open body {
  overflow: hidden;
}

#eveil-event-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(55, 85, 87, 0.55);
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#eveil-event-popup.is-open {
  display: flex;
}

#eveil-event-popup[hidden] {
  display: none !important;
}

#eveil-event-popup .eveil-event-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 736px;
  margin: auto;
  outline: none;
}

#eveil-event-popup .eveil-event-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 2px solid #375557;
  border-radius: 50%;
  background: #f3f5ef;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#eveil-event-popup .eveil-event-popup__close::before,
#eveil-event-popup .eveil-event-popup__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background-color: #375557;
  transition: background-color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#eveil-event-popup .eveil-event-popup__close::before {
  transform: rotate(45deg);
}

#eveil-event-popup .eveil-event-popup__close::after {
  transform: rotate(-45deg);
}

#eveil-event-popup .eveil-event-popup__close:hover,
#eveil-event-popup .eveil-event-popup__close:focus-visible {
  background: #375557;
  border-color: #375557;
  outline: none;
}

#eveil-event-popup .eveil-event-popup__close:hover::before,
#eveil-event-popup .eveil-event-popup__close:hover::after,
#eveil-event-popup .eveil-event-popup__close:focus-visible::before,
#eveil-event-popup .eveil-event-popup__close:focus-visible::after {
  background-color: #fff;
}

#eveil-simple {
  font-family: "Red Hat Display", sans-serif;
  color: #375557;
  width: 100%;
}

#eveil-simple * {
  box-sizing: border-box;
}

#eveil-simple .event-banner {
  background: #f3f5ef;
  border-top: 4px solid #7aa555;
  padding: 25px 54px 25px 30px;
  max-width: 736px;
  margin: 0 auto;
  box-shadow: 0 18px 48px rgba(55, 85, 87, 0.22);
}

#eveil-simple .event-label {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 700;
}

#eveil-simple h2 {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #375557;
  margin: 8px 0 10px;
}

#eveil-simple p {
  font-size: 14px;
  line-height: 1.5;
  color: #375557;
}

#eveil-simple .event-intro {
  margin: 0 0 16px;
  max-width: 630px;
}

#eveil-simple .event-date {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

#eveil-simple .event-address {
  margin: 3px 0 0;
}

#eveil-simple .event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.5;
}

#eveil-simple .event-open {
  font-size: 12px;
}

#eveil-simple a {
  display: inline-block;
  flex-shrink: 0;
  background: #7aa555;
  color: #fff;
  border-radius: 28px;
  padding: 13px 28px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

#eveil-simple a:hover {
  background: #527735;
}

@media (max-width: 450px) {
  #eveil-event-popup {
    padding: 12px;
    align-items: flex-start;
  }

  #eveil-event-popup .eveil-event-popup__close {
    top: 10px;
    right: 10px;
  }

  #eveil-simple .event-banner {
    padding: 22px 48px 22px 22px;
  }

  #eveil-simple h2 {
    font-size: 23px;
  }

  #eveil-simple .event-date {
    font-size: 15px;
  }

  #eveil-simple .event-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
