.ca-agenda { --ca-accent: #2d4e54; margin: 35px 0; font-family: inherit; color: #24373b; }
.ca-agenda * { box-sizing: border-box; }
.ca-agenda-head { display: flex; justify-content: space-between; gap: 22px; align-items: flex-end; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--ca-accent) 12%, #fff), #fff); border: 1px solid #e5ecee; box-shadow: 0 18px 45px rgba(45, 78, 84, .11); margin-bottom: 18px; }
.ca-kicker { margin: 0 0 5px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: var(--ca-accent); }
.ca-agenda h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.08; color: #1f383d; font-weight: 900; }
.ca-month-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.ca-month-nav a, .ca-btn, .ca-reset { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 15px; border-radius: 999px; text-decoration: none !important; font-weight: 800; background: var(--ca-accent); color: #fff !important; border: 1px solid var(--ca-accent); transition: transform .15s ease, opacity .15s ease; }
.ca-month-nav a:hover, .ca-btn:hover, .ca-reset:hover { transform: translateY(-1px); opacity: .92; }
.ca-filters { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; background: #fff; border: 1px solid #e5ecee; border-radius: 18px; padding: 18px; margin-bottom: 18px; }
.ca-filters label { display: flex; flex-direction: column; gap: 7px; font-weight: 800; color: #314d52; }
.ca-filters select { min-width: 240px; min-height: 42px; border: 1px solid #d8e3e6; border-radius: 12px; padding: 8px 12px; background: #fff; }
.ca-reset { background: #fff; color: var(--ca-accent) !important; }
.ca-current-month { display: inline-flex; margin: 0 0 18px; padding: 8px 13px; border-radius: 999px; background: #f0f6f7; color: #29474c; font-weight: 900; }
.ca-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ca-event-card { background: #fff; border: 1px solid #e4ecee; border-radius: 22px; overflow: hidden; box-shadow: 0 15px 38px rgba(30, 53, 59, .10); transition: transform .15s ease, box-shadow .15s ease; }
.ca-event-card:hover { transform: translateY(-3px); box-shadow: 0 20px 52px rgba(30, 53, 59, .14); }
.ca-event-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #edf3f4; }
.ca-event-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ca-event-body { position: relative; padding: 22px; display: flex; gap: 16px; }
.ca-date-badge { flex: 0 0 62px; width: 62px; height: 70px; border-radius: 18px; background: var(--ca-accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(45, 78, 84, .23); text-transform: uppercase; }
.ca-date-badge strong { font-size: 25px; line-height: 1; }
.ca-date-badge span { font-size: 12px; font-weight: 900; margin-top: 4px; }
.ca-event-content { min-width: 0; flex: 1; }
.ca-term { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #edf5f6; color: var(--ca-accent); font-size: 12px; font-weight: 900; margin-bottom: 9px; }
.ca-event-card h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.2; font-weight: 900; }
.ca-event-card h3 a { color: #1d3539 !important; text-decoration: none !important; }
.ca-date-line { font-weight: 800; color: #537076; margin-bottom: 10px; }
.ca-excerpt { color: #425b60; line-height: 1.55; }
.ca-excerpt p { margin: 0; }
.ca-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.ca-btn { min-height: 38px; padding: 8px 13px; font-size: 14px; }
.ca-btn-light { background: #fff; color: var(--ca-accent) !important; }
.ca-empty { padding: 28px; border-radius: 18px; background: #f7fafb; border: 1px dashed #ccdadd; color: #516b70; font-weight: 800; text-align: center; }
.ca-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.ca-pagination a { min-width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; background: #fff; border: 1px solid #dce7e9; color: #29474c !important; font-weight: 900; }
.ca-pagination a.active { background: var(--ca-accent); border-color: var(--ca-accent); color: #fff !important; }
.ca-next-box { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid #e5ecee; box-shadow: 0 15px 38px rgba(30, 53, 59, .10); }
.ca-next-box .ca-event-card { box-shadow: none; border-color: #edf2f3; }
@media (max-width: 980px) { .ca-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ca-agenda-head { align-items: flex-start; flex-direction: column; } }
@media (max-width: 640px) { .ca-event-grid { grid-template-columns: 1fr; } .ca-filters { align-items: stretch; flex-direction: column; } .ca-filters select { min-width: 100%; } .ca-event-body { padding: 18px; } .ca-month-nav a { width: 100%; } }

/* Version 1.1.0 - Ajustements agenda */
.ca-current-month {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 6px auto 24px;
  padding: 12px 24px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(30, 53, 59, .08);
}
.ca-actions-center { justify-content: center; }

/* Pleine largeur : pages agenda + détails événements */
.agenda-fullwidth .sidebar,
.agenda-fullwidth #sidebar,
.agenda-fullwidth #secondary,
.agenda-fullwidth .widget_area {
  display: none !important;
}
.agenda-fullwidth .content,
.agenda-fullwidth .content_wrap > .content,
.agenda-fullwidth .page_content_wrap .content,
.agenda-fullwidth .post_item_single,
.agenda-fullwidth article {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
.agenda-fullwidth .content_wrap,
.agenda-fullwidth .page_content_wrap {
  display: block !important;
}

/* Détail événement */
.ca-single {
  max-width: 1180px;
  margin: 35px auto;
}
.ca-single-hero {
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ca-accent) 13%, #fff), #fff);
  border: 1px solid #e4ecee;
  box-shadow: 0 18px 45px rgba(45, 78, 84, .11);
  text-align: center;
}
.ca-single-hero h1 {
  margin: 0;
  color: #1d3539;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 900;
}
.ca-single-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.ca-single-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dfe9ec;
  color: #29474c;
  font-weight: 900;
}
.ca-single-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.ca-single-image {
  margin: 0;
  position: sticky;
  top: 24px;
}
.ca-single-image a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #edf3f4;
  border: 1px solid #e4ecee;
  box-shadow: 0 18px 42px rgba(30, 53, 59, .12);
  text-decoration: none !important;
}
.ca-single-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
}
.ca-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #1d3539;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.ca-single-content {
  min-width: 0;
}
.ca-single-text {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e4ecee;
  box-shadow: 0 16px 38px rgba(30, 53, 59, .09);
  color: #314d52;
  line-height: 1.75;
  font-size: 17px;
}
.ca-single-text > *:first-child { margin-top: 0; }
.ca-single-text > *:last-child { margin-bottom: 0; }
.ca-single-pdf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  background: #f7fafb;
  border: 1px solid #dfe9ec;
}
.ca-single-pdf div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #29474c;
}
.ca-single-pdf strong { font-size: 18px; }
.ca-single-pdf span { color: #5a7378; }
.ca-back { margin-top: 22px; text-align: center; }
.ca-back a { color: var(--ca-accent) !important; font-weight: 900; text-decoration: none !important; }

@media (max-width: 860px) {
  .ca-single-layout { grid-template-columns: 1fr; }
  .ca-single-image { position: relative; top: auto; max-width: 520px; width: 100%; margin: 0 auto; }
  .ca-single-pdf { align-items: stretch; flex-direction: column; }
  .ca-single-pdf .ca-btn { width: 100%; }
}

/* Version 1.2.0 - Détail épuré + suppression éléments thème */
.ca-event-single-page .post_featured,
.ca-event-single-page .post_header,
.ca-event-single-page .post_meta,
.ca-event-single-page .post_meta_single,
.ca-event-single-page .post_meta_other,
.ca-event-single-page .post_info,
.ca-event-single-page .post_share,
.ca-event-single-page .share_links,
.ca-event-single-page .socials_share,
.ca-event-single-page .post_item_single > .post_featured {
  display: none !important;
}
.ca-single {
  max-width: 980px;
  margin: 28px auto 45px;
}
.ca-single-date-top {
  width: fit-content;
  margin: 0 auto 22px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #f0f6f7;
  border: 1px solid #dfe9ec;
  color: #29474c;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 28px rgba(30, 53, 59, .08);
}
.ca-single-layout {
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 24px;
}
.ca-single-image {
  max-width: 340px;
  width: 100%;
}
.ca-single-image a {
  border-radius: 22px;
}
.ca-single-image img {
  max-height: 360px;
  object-fit: cover;
}
.ca-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dfe9ec;
  color: var(--ca-accent) !important;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(30, 53, 59, .08);
}
.ca-single-pdf {
  background: linear-gradient(135deg, #f7fafb, #ffffff);
}
@media (max-width: 860px) {
  .ca-single { max-width: 100%; }
  .ca-single-layout { grid-template-columns: 1fr; }
  .ca-single-image { max-width: 420px; margin: 0 auto; }
}
.ca-event-single-page .post_item_single .socials_wrap,
.ca-event-single-page .post_item_single .social_items,
.ca-event-single-page .post_item_single .share,
.ca-event-single-page .post_item_single [class*="social"],
.ca-event-single-page .post_item_single [class*="share"] {
  display: none !important;
}
