/* =========================
   Pop-ups agenda public
========================= */

.lunzy-popup,
.lunzy-form-popup{
  position:fixed;
  inset:0;
  background:rgba(59,23,28,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:20px;
}

.lunzy-form-popup{
  z-index:10000;
}

.lunzy-popup.active,
.lunzy-form-popup.active{
  display:flex;
}

.popup-box{
  background:#fff;
  color:#3B171C;
  max-width:min(520px,100%);
  width:100%;
  padding:32px;
  border-radius:34px;
  font-family:"Inter",sans-serif;
  position:relative;
  border:1px solid rgba(175,75,47,.18);
  box-shadow:0 40px 90px rgba(59,23,28,.16);
  max-height:calc(100vh - 40px);
  overflow-y:auto;
  text-align:left;
}

.popup-box::-webkit-scrollbar{
  width:0;
  height:0;
}

.popup-box h3{
  font-family:"Cormorant Garamond",serif;
  font-size:36px;
  line-height:1.05;
  margin:10px 0 16px;
  color:#3B171C;
  text-align:left;
}

.lunzy-popup-title-icon{
  display:flex;
  align-items:center;
  gap:10px;
}

.lunzy-popup-title-icon .lunzy-svg-icon{
  width:27px;
  height:27px;
  color:#AF4B2F;
  stroke-width:1.9;
}

#popupImage{
  width:100% !important;
  height:260px !important;
  object-fit:cover !important;
  border-radius:28px !important;
  margin-bottom:24px !important;
  box-shadow:0 18px 40px rgba(80,50,35,.1);
}

/* Croix popup comme dashboard */
.close-popup{
  position:absolute;
  top:18px;
  right:18px;

  width:42px;
  height:42px;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  border:1px solid rgba(175,75,47,.15) !important;
  border-radius:50% !important;

  background:#fff !important;
  color:#3B171C !important;

  font-size:24px !important;
  line-height:1 !important;
  font-weight:700 !important;

  cursor:pointer;
  transition:transform .2s ease, background .2s ease, color .2s ease;
  padding:0 !important;
  z-index:20;
}

.close-popup:hover{
  background:#AF4B2F !important;
  color:#fff !important;
  transform:rotate(90deg);
}

.lunzy-popup-category{
  display:inline-flex;
  background:rgba(175,75,47,.10);
  color:#AF4B2F;
  border:1px solid rgba(175,75,47,.18);
  border-radius:999px;
  padding:8px 14px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:14px;
}

.lunzy-popup-date-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  flex-wrap:wrap;
  margin:12px 0 0;
}

.lunzy-popup-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0;
  justify-content:flex-start;
  align-items:center;
}

.lunzy-popup-meta span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#FFF7EF;
  color:#3B171C;
  border-radius:999px;
  padding:9px 14px;
  font-size:13px;
  font-weight:500;
  box-shadow:none;
}

#popupDate,
#formEventDate{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  width:max-content;
  margin:0;
  padding:0;
  background:transparent;
  color:#b85c38;
  border-radius:0;
  box-shadow:none;
  line-height:1;
  text-align:left;
}

#popupDate span,
#formEventDate span{
  display:block;
  font-family:"Inter",Arial,sans-serif;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

#popupDate strong,
#formEventDate strong{
  display:block;
  margin:2px 0 5px;
  font-family:"Cormorant Garamond",serif;
  font-size:30px;
  font-weight:900;
  line-height:.9;
}

#popupDate small,
#formEventDate small{
  display:block;
  font-family:"Inter",Arial,sans-serif;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
}

.lunzy-form-event-reminder{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:16px;
  margin:0 0 22px;
  padding:16px;
  background:#FFF7EF;
  border-radius:20px;
  text-align:left;
}

.lunzy-form-event-info{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding-top:1px;
}

.lunzy-form-event-info h4{
  margin:0;
  color:#3B171C;
  font-family:"Inter",Arial,sans-serif;
  font-size:17px;
  line-height:1.2;
  font-weight:700;
}

.lunzy-form-event-info span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  background:#f0e7e2;
  color:#3B171C;
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  font-weight:500;
}

hr{
  border:none;
  border-top:1px solid rgba(59,23,28,.12);
  margin:24px 0;
}

#popupText{
  color:#4B403B;
  line-height:1.75;
  margin:24px 0;
  text-align:left;
}

#popupPlaces{
  margin:24px 0 10px;
  color:#3B171C;
  font-weight:700 !important;
  text-align:center;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
}

/* Boutons popup harmonisés */
.popup-register{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:100% !important;
  max-width:100% !important;
  min-height:54px !important;
  box-sizing:border-box !important;

  border-radius:999px !important;
  text-decoration:none;
  cursor:pointer;
  margin:20px 0 0 !important;
  transition:.25s ease;
  font-size:15px !important;
  font-weight:700 !important;

  background:#AF4B2F !important;
  color:#FFF7EF !important;
  border:2px solid #AF4B2F !important;
  box-shadow:0 18px 30px rgba(175,75,47,.16);
}

.popup-register:hover{
  background:#FFF7EF !important;
  color:#AF4B2F !important;
}

/* Google/Apple/Outlook buttons */
.popup-calendar-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(140px,1fr));
  gap:12px;
  margin-top:18px;
}

.popup-calendar-row .popup-calendar-link{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:52px !important;
  padding:14px 16px !important;
  border-radius:26px !important;
  background:#FFF7EF !important;
  color:#3B171C !important;
  border:1px solid rgba(175,75,47,.18) !important;
  box-shadow:0 18px 40px rgba(59,23,28,.08);
  text-decoration:none !important;
  font-weight:700 !important;
}

.popup-calendar-row .popup-calendar-link:hover{
  background:#AF4B2F !important;
  color:#FFF7EF !important;
  border-color:#AF4B2F !important;
}

.popup-calendar-row .popup-calendar-link svg{
  width:20px;
  height:20px;
  margin-right:10px;
  flex-shrink:0;
}

.popup-calendar-title{
  margin:24px 0 10px;
  color:#3B171C;
  font-weight:700;
  text-align:center;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
}


@media (max-width:560px) {
  .lunzy-popup,
  .lunzy-form-popup{
    align-items:flex-end;
    padding:12px;
  }

  .popup-box{
    max-width:100%;
    padding:24px 20px;
    border-radius:24px;
    max-height:calc(100dvh - 24px);
  }

  .popup-box h3{
    font-size:30px;
    padding-right:44px;
  }

  .lunzy-popup-title-icon .lunzy-svg-icon{
    width:23px;
    height:23px;
  }

  .close-popup{
    top:14px;
    right:14px;
    width:38px;
    height:38px;
  }

  .lunzy-popup-meta{
    gap:8px;
  }

  .lunzy-popup-meta span{
    padding:8px 12px;
    font-size:12px;
  }

  .lunzy-popup-date-row{
    align-items:flex-start;
    gap:12px;
  }

  .lunzy-form-event-reminder{
    gap:12px;
    padding:14px;
    border-radius:18px;
  }

  .lunzy-form-event-info h4{
    font-size:16px;
  }

  .popup-calendar-row{
    grid-template-columns:1fr;
    gap:10px;
  }

  .popup-calendar-row .popup-calendar-link{
    min-width:100% !important;
    max-width:none !important;
  }

  #popupImage{
    height:200px !important;
  }
}
