/* Annual event announcement. Scoped styles; no framework or font dependency. */
#sapins-event-dialog,
#sapins-event-launcher { box-sizing: border-box; font-family: 'Lato', Arial, sans-serif; }
#sapins-event-dialog *,
#sapins-event-dialog *::before,
#sapins-event-dialog *::after { box-sizing: border-box; }
#sapins-event-dialog {
  width: calc(100% - 32px); max-width: 820px; max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 1px solid #e4e4d4;
  border-radius: 24px; background: #fffdf6; color: #233b2e;
  box-shadow: 0 28px 90px rgba(8, 25, 15, .34); overflow: auto;
  overscroll-behavior: contain; text-align: left; font-weight: 400;
}
#sapins-event-dialog:not([open]) { display: none; }
#sapins-event-dialog::backdrop {
  background: rgba(10, 27, 18, .65); backdrop-filter: blur(5px);
  overflow: hidden; overscroll-behavior: contain;
}
#sapins-event-dialog .sge-layout { display: grid; grid-template-columns: 31% 1fr; min-height: 440px; }
#sapins-event-dialog .sge-visual {
  background: #244631 url('/images/sapin-de-noel-pepiniere-goosse.jpg') 42% center / cover;
  position: relative; min-height: 160px;
}
#sapins-event-dialog .sge-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 41, 24, .04), rgba(14, 41, 24, .32));
}
#sapins-event-dialog .sge-content { padding: 42px 36px 28px; align-self: center; }
#sapins-event-dialog .sge-eyebrow {
  margin: 0 40px 15px 0; color: #526b44; font-size: 12px; line-height: 1.5;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 800;
}
#sapins-event-dialog .sge-title {
  margin: 0 0 22px; padding: 0; font-family: 'Raleway', Arial, sans-serif;
  font-size: 35px; font-weight: 800; line-height: 1.14; letter-spacing: -.025em;
  color: #203e2b; text-align: left; text-transform: none;
}
#sapins-event-dialog .sge-message { margin: 0 0 18px; font-size: 19px; line-height: 1.55; color: #294733; }
#sapins-event-dialog .sge-details { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: #5b6355; }
#sapins-event-dialog .sge-action,
#sapins-event-dialog .sge-dismiss,
#sapins-event-dialog .sge-close,
#sapins-event-launcher {
  appearance: none; -webkit-appearance: none; font-family: 'Lato', Arial, sans-serif;
  cursor: pointer; text-decoration: none; text-transform: none; line-height: 1.35;
  font-weight: 700; transition: background-color .15s ease, color .15s ease;
}
#sapins-event-dialog .sge-action {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 18px; border: 1px solid #255537; border-radius: 28px;
  background: #255537; color: #fffdf6; font-size: 16px; text-align: center;
  box-shadow: 0 5px 14px rgba(37, 85, 55, .14);
}
#sapins-event-dialog .sge-action:hover { background: #183e27; border-color: #183e27; color: #fff; }
#sapins-event-dialog .sge-arrow { flex: 0 0 auto; font-size: 21px; font-weight: 400; }
#sapins-event-dialog .sge-dismiss {
  display: block; min-height: 44px; margin: 10px auto 0; padding: 10px 16px;
  border: 0; border-radius: 22px; background: transparent; color: #5b6355;
  font-size: 14px; text-align: center;
}
#sapins-event-dialog .sge-dismiss:hover { background: #efeee4; color: #203e2b; }
#sapins-event-dialog .sge-close {
  position: absolute; top: 10px; right: 10px; z-index: 1; display: flex;
  align-items: center; justify-content: center; width: 44px; height: 44px;
  padding: 0; border: 1px solid #e5e4d9; border-radius: 50%;
  background: #fffdf6; color: #294733; font-size: 28px; font-weight: 400;
}
#sapins-event-dialog .sge-close:hover { background: #e9eddf; }
#sapins-event-dialog a:focus-visible,
#sapins-event-dialog button:focus-visible,
#sapins-event-launcher:focus-visible { outline: 3px solid #a25717; outline-offset: 3px; }
#sapins-event-launcher {
  position: fixed; right: 18px; top: 76px; z-index: 1020; max-width: calc(100vw - 36px);
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 11px 18px;
  border: 1px solid #718466; border-radius: 28px; background: #fffdf6;
  color: #254a31; box-shadow: 0 4px 20px rgba(12, 38, 22, .16); font-size: 14px;
}
#sapins-event-launcher:hover { background: #e9eddf; color: #203e2b; }
#sapins-event-launcher[hidden] { display: none; }
@media (max-width: 600px) {
  #sapins-event-dialog { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  #sapins-event-dialog .sge-layout { display: block; min-height: 0; }
  #sapins-event-dialog .sge-visual { min-height: 112px; background-position: center 43%; }
  #sapins-event-dialog .sge-content { padding: 24px 24px 18px; }
  #sapins-event-dialog .sge-eyebrow { margin-bottom: 12px; font-size: 11px; }
  #sapins-event-dialog .sge-title { font-size: 29px; margin-bottom: 17px; }
  #sapins-event-dialog .sge-message { font-size: 18px; margin-bottom: 14px; }
  #sapins-event-dialog .sge-details { margin-bottom: 18px; }
  #sapins-event-dialog .sge-action { font-size: 15px; padding: 13px 15px; }
  #sapins-event-launcher { right: 12px; top: 72px; max-width: calc(100vw - 24px); }
}
@media (max-width: 350px) {
  #sapins-event-dialog .sge-content { padding: 22px 18px 14px; }
  #sapins-event-dialog .sge-title { font-size: 27px; }
  #sapins-event-dialog .sge-message { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  #sapins-event-dialog .sge-action,
  #sapins-event-dialog .sge-dismiss,
  #sapins-event-dialog .sge-close,
  #sapins-event-launcher { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  #sapins-event-dialog::backdrop { backdrop-filter: none; background: rgba(10, 27, 18, .8); }
}
@media (forced-colors: active) {
  #sapins-event-dialog, #sapins-event-dialog .sge-close, #sapins-event-launcher { border: 1px solid ButtonText; }
  #sapins-event-dialog .sge-action { border: 2px solid ButtonText; }
}
