/* "Ajouter au calendrier" widget (see functions.php's forteu_add_to_calendar
   shortcode and assets/js/add-to-calendar.js). Self-contained, hardcoded
   colors rather than the backoffice's --fu-* tokens or a guessed WP preset
   name: this stylesheet ships on a different site (forte-u.org) than that
   app, so it can't rely on either's custom properties existing. Brand hues
   match core/brand-colors.css in the backoffice repo (kept in sync by hand,
   they change essentially never). */
.forteu-add-to-cal {
  position: relative;
  display: inline-block;
  margin-top: 0.6rem;
}
.forteu-add-to-cal__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  color: #111111;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.3);
  border-radius: 4px;
  cursor: pointer;
}
.forteu-add-to-cal__toggle:hover { background: #fbfaf3; }
.forteu-add-to-cal__icon,
.forteu-add-to-cal__chevron {
  fill: currentColor;
  flex-shrink: 0;
}
.forteu-add-to-cal__icon { width: 1.15rem; height: 1.15rem; }
.forteu-add-to-cal__chevron { width: 1rem; height: 1rem; }
.forteu-add-to-cal__menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.3rem);
  left: 0;
  width: max-content;
  /* Caps width to the viewport so a narrow phone screen wraps the menu's
     text instead of the menu overflowing off-screen (position: absolute
     doesn't respect viewport bounds on its own). */
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.15);
}
.forteu-add-to-cal__menu[hidden] { display: none; }
.forteu-add-to-cal__menu li + li { margin-top: 0.1rem; }
.forteu-add-to-cal__menu a {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  color: #111111;
  white-space: nowrap;
}
.forteu-add-to-cal__menu a:hover { background: #fbfaf3; }
