/* Jorat Gospel – pages évènements */
:root {
  --jg-primary: #7351A6;
  --jg-primary-dark: #5b3e88;
  --jg-primary-soft: #f1ecf8;
  --jg-navy: #24325d;
  --jg-text: #2b2f3a;
  --jg-muted: #6b7180;
  --jg-bg-alt: #f6f5fa;
  --jg-radius: 16px;
  --jg-shadow: 0 10px 30px rgba(36, 50, 93, .10);
}

/* ---------- Boutons ---------- */
.btn-jg {
  --bs-btn-color: #fff; --bs-btn-bg: var(--jg-primary); --bs-btn-border-color: var(--jg-primary);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--jg-primary-dark); --bs-btn-hover-border-color: var(--jg-primary-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--jg-primary-dark); --bs-btn-active-border-color: var(--jg-primary-dark);
  --bs-btn-focus-shadow-rgb: 115, 81, 166;
  border-radius: 999px; padding: .55rem 1.15rem; font-weight: 600;
}
.btn-outline-jg {
  --bs-btn-color: var(--jg-primary); --bs-btn-border-color: rgba(115, 81, 166, .45);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--jg-primary); --bs-btn-hover-border-color: var(--jg-primary);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--jg-primary-dark); --bs-btn-active-border-color: var(--jg-primary-dark);
  --bs-btn-focus-shadow-rgb: 115, 81, 166;
  border-radius: 999px; padding: .55rem 1.15rem; font-weight: 600; background: #fff;
}
.jg-hero .btn-light { border-radius: 999px; padding: .55rem 1.15rem; font-weight: 600; color: var(--jg-navy); }
.jg-hero .btn-outline-jg { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }
.jg-hero .btn-outline-jg:hover { background: #fff; color: var(--jg-primary); }
.dropdown-menu { border-radius: 12px; padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; }
.dropdown-item:active { background: var(--jg-primary); }

/* ---------- Hero ---------- */
.jg-hero {
  position: relative;
  margin-top: 70px;
  padding: 2.5rem 0 3.5rem;
  color: #fff;
  background: var(--jg-primary);
}
.jg-hero--compact { padding: 2rem 0 2.75rem; }
@media (max-width: 992px) { .jg-hero { margin-top: 58px; } }

.jg-crumbs { font-size: .85rem; margin-bottom: 1.5rem; opacity: .85; display: flex; flex-wrap: wrap; gap: .4rem; }
.jg-crumbs a { color: #fff; text-decoration: none; }
.jg-crumbs a:hover { text-decoration: underline; }
.jg-crumbs span[aria-current] { opacity: .8; }

.jg-hero__title {
  font-family: "Raleway", sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; margin-bottom: 1.25rem;
}
.jg-hero__lead { font-size: 1.1rem; opacity: .9; }
.jg-hero__facts { display: grid; gap: .9rem; margin-bottom: 1.75rem; font-size: 1.05rem; }
.jg-hero__facts li { display: flex; gap: .85rem; align-items: flex-start; }
.jg-hero__facts i {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); font-size: 1.2rem;
}
.jg-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.jg-hero .btn-jg { --bs-btn-bg: #fff; --bs-btn-color: var(--jg-primary); --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: var(--jg-primary-soft); --bs-btn-hover-color: var(--jg-primary-dark); --bs-btn-hover-border-color: var(--jg-primary-soft); }

.jg-poster { margin: 0; }
.jg-poster img {
  width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--jg-radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, .35); background: #fff;
}

.jg-pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; background: rgba(255, 255, 255, .18);
}

/* ---------- Tags / chips ---------- */
.jg-tags { display: flex; flex-wrap: wrap; gap: .35rem; position: relative; z-index: 2; }
.jg-tag {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--jg-primary-soft); color: var(--jg-primary); text-decoration: none;
}
.jg-tags--light .jg-tag { background: rgba(255, 255, 255, .18); color: #fff; }
.jg-tags--light .jg-tag:hover { background: #fff; color: var(--jg-primary); }

.jg-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.jg-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.jg-chip {
  padding: .4rem .95rem; border-radius: 999px; border: 1px solid #e3deee; color: var(--jg-text);
  text-decoration: none; font-weight: 600; font-size: .9rem; background: #fff; transition: .2s;
}
.jg-chip:hover { border-color: var(--jg-primary); color: var(--jg-primary); }
.jg-chip.is-active { background: var(--jg-primary); border-color: var(--jg-primary); color: #fff; }

/* ---------- Sections ---------- */
.jg-section { padding: 3.5rem 0; color: var(--jg-text); }
.jg-section--alt { background: var(--jg-bg-alt); }
.jg-section__title { font-family: "Raleway", sans-serif; font-weight: 800; color: var(--jg-navy); font-size: 1.6rem; margin-bottom: 1.25rem; }
.jg-link { color: var(--jg-primary); font-weight: 600; text-decoration: none; }
.jg-link:hover { color: var(--jg-primary-dark); }

.jg-prose { font-size: 1.05rem; line-height: 1.75; }
.jg-prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---------- Grille de cartes ---------- */
.jg-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.jg-event-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--jg-radius);
  overflow: hidden; box-shadow: var(--jg-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.jg-event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(36, 50, 93, .16); }
.jg-event-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--jg-primary-soft); }
.jg-event-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.jg-event-card:hover .jg-event-card__media img { transform: scale(1.04); }
.jg-event-card__body { padding: 1.15rem 1.25rem 1.35rem; }
.jg-event-card__title { font-size: 1.15rem; font-weight: 700; color: var(--jg-navy); margin-bottom: .6rem; line-height: 1.3; }
.jg-event-card.is-past .jg-event-card__media img { filter: grayscale(.7); opacity: .85; }
.jg-meta li { display: flex; gap: .5rem; align-items: baseline; color: var(--jg-muted); font-size: .92rem; margin-bottom: .2rem; }
.jg-meta i { color: var(--jg-primary); }
.jg-distance { margin-left: auto; font-weight: 700; color: var(--jg-primary); white-space: nowrap; }

.jg-date-badge {
  position: absolute; z-index: 1; left: 1rem; top: 1rem; min-width: 58px; padding: .4rem .5rem; text-align: center;
  background: #fff; border-radius: 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); line-height: 1.05;
}
.jg-date-badge__day { display: block; font-size: 1.5rem; font-weight: 800; color: var(--jg-primary); }
.jg-date-badge__month { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--jg-navy); letter-spacing: .04em; }

.jg-empty { text-align: center; padding: 3rem 1rem; border: 2px dashed #e3deee; border-radius: var(--jg-radius); }
.jg-empty i { font-size: 2.5rem; color: var(--jg-primary); display: block; margin-bottom: .75rem; }

/* ---------- Galerie ---------- */
.jg-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.jg-gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.jg-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.jg-gallery a:hover img { transform: scale(1.06); }

/* ---------- Infos pratiques ---------- */
.jg-sticky { position: sticky; top: 90px; }
.jg-infos { margin: 0; }
.jg-infos dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--jg-muted); font-weight: 600; }
.jg-infos dt i { color: var(--jg-primary); margin-right: .25rem; }
.jg-infos dd { margin: .15rem 0 1rem; font-weight: 600; color: var(--jg-navy); }

/* ---------- Carte & lieu ---------- */
.jg-lieu { border-radius: var(--jg-radius); }
.jg-map { height: 360px; width: 100%; background: var(--jg-primary-soft); z-index: 0; }
.jg-map--overview { height: 420px; border-radius: var(--jg-radius); box-shadow: var(--jg-shadow); overflow: hidden; }
@media (max-width: 576px) { .jg-map { height: 280px; } .jg-map--overview { height: 320px; } }
.jg-icon-badge {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--jg-primary-soft); color: var(--jg-primary); font-size: 1.25rem;
}
.jg-lieu address { line-height: 1.5; }

.jg-pin { background: none; border: 0; }
.jg-pin__dot {
  position: absolute; left: 50%; top: 0; width: 32px; height: 32px; margin-left: -16px;
  background: var(--jg-primary); border: 3px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.jg-pin__dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: #fff; border-radius: 50%;
}
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content a { color: var(--jg-primary); }
.jg-popup__date { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--jg-primary); font-weight: 700; }
.leaflet-control-layers { border-radius: 10px !important; }
