
.agenda-form{max-width:900px;margin:0 auto;padding:12px 0;}
.agenda-form__notice{padding:12px;border-radius:14px;margin:0 0 10px;}
.agenda-form__notice--success{border:1px solid #cfe9d3;background:#f3fbf4;}
.agenda-form__notice--error{border:1px solid #f0c7c7;background:#fff5f5;}
.agenda-form__errors{margin:0 0 10px;padding:10px 14px;border:1px dashed #e0b4b4;border-radius:14px;}
.agenda-form__errors li{margin:4px 0;}

.agenda-form__field{margin:0 0 12px;}
.agenda-form__label{display:block;font-weight:700;margin:0 0 6px;}
.agenda-form__input{width:100%;border:1px solid #e6e6e6;border-radius:14px;padding:10px 12px;}
.agenda-form__editor{border:1px solid #e6e6e6;border-radius:14px;overflow:hidden;}
.agenda-form__fieldset{border:1px solid #efefef;border-radius:14px;padding:12px;margin:14px 0;}
.agenda-form__legend{font-weight:800;padding:0 6px;}
.agenda-form__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
.agenda-form__checks{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;}
.agenda-form__check{display:flex;align-items:center;gap:8px;}
.agenda-form__dates{margin-top:12px;}
.agenda-form__dates-wrap{display:flex;flex-direction:column;gap:8px;margin:8px 0;}
.agenda-form__date-row{display:grid;grid-template-columns:1fr 42px;gap:8px;align-items:center;}
.agenda-form__btn{border:1px solid #111;background:#fff;border-radius:12px;padding:10px 12px;cursor:pointer;}
.agenda-form__btn--remove{padding:8px 0;font-size:18px;line-height:1;}
.agenda-form__btn--geo{padding:10px 12px;white-space:nowrap;}
.agenda-form__inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.agenda-form__inline .agenda-form__input{flex:1 1 auto;}
.agenda-form__field--lat .agenda-form__btn--geo{margin-top:8px;}
.agenda-form__hint{font-size:12px;opacity:.75;margin-top:6px;}
.agenda-form__actions{margin-top:14px;}
.agenda-form__submit{border:1px solid #111;background:#111;color:#fff;border-radius:14px;padding:12px 16px;cursor:pointer;}
@media (max-width:700px){ .agenda-form__grid{grid-template-columns:1fr;} }


/* Catégories en ligne */
.agenda-form__fieldset--cats{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
}
.agenda-form__fieldset--cats .agenda-form__legend{
  flex:0 0 100%;
  margin-bottom:6px;
}
.agenda-form__fieldset--cats .agenda-form__check--cat{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
}

/* Labels visibles (durée, etc.) */
.agenda-form__label{
  position:static !important;
  left:auto !important;
  top:auto !important;
  transform:none !important;
  opacity:1 !important;
  pointer-events:auto !important;
  transition:none !important;
  margin:0 0 6px;
}

.agenda-form__field .agenda-form__input{padding-top:10px;}


/* Calendrier multi-dates */
.agenda-form__datepicker{margin-top:10px;padding:10px;border:1px solid #efefef;border-radius:14px;background:#fff;}
.agenda-form__datepicker-ui .ui-datepicker{width:100%;}
.agenda-form__selected-line{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
.agenda-form__chip{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #e6e6e6;border-radius:999px;font-size:12px;opacity:.9;}
/* jQuery UI highlight tweak */
.agenda-form__datepicker-ui .ui-state-highlight{border:1px solid #111 !important;background:#f7f7f7 !important;color:#111 !important;}


/* Message succès centré (éphémère) */
.agenda-form__notice--center{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  z-index:9999;
  background:#111;
  color:#fff;
  padding:16px 22px;
  border-radius:14px;
  font-weight:600;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  opacity:0;
  animation:agendaFadeIn .35s ease forwards;
}
@keyframes agendaFadeIn{
  from{opacity:0; transform:translate(-50%,-60%);}
  to{opacity:1; transform:translate(-50%,-50%);}
}


/* Popup succès (centre) */
.agenda-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;}
.agenda-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45);}
.agenda-modal__panel{position:relative;max-width:520px;width:calc(100% - 36px);background:#fff;border-radius:16px;padding:18px 18px 14px;box-shadow:0 10px 40px rgba(0,0,0,.22);text-align:center;}
.agenda-modal__text{font-weight:700;font-size:16px;line-height:1.35;margin:0;}
.agenda-modal__close{margin-top:12px;border:1px solid #111;background:#111;color:#fff;border-radius:14px;padding:10px 14px;cursor:pointer;width:100%;}
/* Map iframe */
.agenda-single__map{margin:14px 0;}
.agenda-single__map-iframe{border-radius:14px;overflow:hidden;}
