/* Actualités / événements publics */
:root {
  --evt-ink: #142018;
  --evt-forest: #1a5632;
  --evt-leaf: #44a454;
  --evt-gold: #c9a24a;
  --evt-foam: #f4f0e6;
  --evt-mist: #e8efe6;
  --evt-muted: #5a6b60;
}

.evt-hero {
  background:
    linear-gradient(115deg, rgba(10, 28, 18, .92), rgba(26, 86, 50, .78)),
    url('/images/snb/bg-news.jpg') center / cover no-repeat;
  color: #fff;
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
}

.evt-hero__eyebrow {
  margin: 0 0 .4rem;
  font-family: Oswald, sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--evt-gold);
}

.evt-hero__title {
  margin: 0 0 .55rem;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

.evt-hero__lead {
  margin: 0;
  max-width: 36rem;
  opacity: .92;
  font-size: 1.05rem;
  line-height: 1.55;
}

.evt-section {
  background:
    radial-gradient(ellipse at top, rgba(68, 164, 84, .08), transparent 45%),
    linear-gradient(180deg, #fff, var(--evt-foam));
  padding: clamp(2rem, 4vw, 3.25rem) 0 3.5rem;
}

.evt-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(26, 86, 50, .1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 32, 24, .07);
  margin-bottom: 2rem;
}

.evt-feature__media {
  display: block;
  position: relative;
  min-height: 260px;
  background: #101a13;
}

.evt-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.evt-feature__body {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.evt-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  margin-bottom: .85rem;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--evt-leaf);
  font-family: Oswald, sans-serif;
}

.evt-feature__title {
  margin: 0 0 .85rem;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--evt-forest);
}

.evt-feature__title a {
  color: inherit;
  text-decoration: none;
}

.evt-feature__title a:hover {
  color: var(--evt-leaf);
}

.evt-feature__excerpt {
  margin: 0 0 1.25rem;
  color: #3d4a41;
  line-height: 1.65;
}

.evt-feature__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .55rem 1.15rem;
  background: var(--evt-gold);
  color: var(--evt-ink) !important;
  text-decoration: none !important;
  font-family: Oswald, sans-serif;
  letter-spacing: .04em;
  transition: background .2s ease, transform .2s ease;
}

.evt-feature__cta:hover {
  background: #ddb85a;
  transform: translateY(-2px);
}

.evt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.evt-card {
  background: #fff;
  border: 1px solid rgba(26, 86, 50, .1);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.evt-card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 86, 50, .28);
  box-shadow: 0 18px 36px rgba(20, 32, 24, .1);
}

.evt-card__media {
  position: relative;
  display: block;
  aspect-ratio: 900 / 600;
  background: #101a13;
  overflow: hidden;
}

.evt-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.evt-card:hover .evt-card__media img {
  transform: scale(1.05);
}

.evt-card__body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}

.evt-card__date {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--evt-leaf);
  font-family: Oswald, sans-serif;
}

.evt-card__title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--evt-forest);
}

.evt-card__title a {
  color: inherit;
  text-decoration: none;
}

.evt-card__title a:hover {
  color: var(--evt-leaf);
}

.evt-card__excerpt {
  margin: 0;
  color: var(--evt-muted);
  font-size: .95rem;
  line-height: 1.5;
  flex: 1;
}

.evt-card__more {
  margin-top: .35rem;
  font-family: Oswald, sans-serif;
  font-size: .9rem;
  color: var(--evt-forest);
  text-decoration: none;
  border-bottom: 1px solid var(--evt-gold);
  align-self: flex-start;
}

.evt-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px dashed rgba(26, 86, 50, .25);
  border-radius: 4px;
  color: var(--evt-muted);
}

.evt-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  margin-top: 2.25rem;
  list-style: none;
  padding: 0;
}

.evt-pagination a,
.evt-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .75rem;
  border: 1px solid rgba(26, 86, 50, .2);
  background: #fff;
  color: var(--evt-forest);
  text-decoration: none;
  font-family: Oswald, sans-serif;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.evt-pagination a:hover {
  background: var(--evt-forest);
  border-color: var(--evt-forest);
  color: #fff;
}

.evt-pagination .is-active span {
  background: var(--evt-forest);
  border-color: var(--evt-forest);
  color: #fff;
}

.evt-pagination .is-disabled span {
  opacity: .45;
  cursor: default;
}

/* ——— Détail ——— */
.evt-show-hero {
  position: relative;
  isolation: isolate;
  min-height: min(52vh, 420px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  color: #fff;
  background: #101a13 center / cover no-repeat;
}

.evt-show-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 12, .25), rgba(8, 18, 12, .88));
}

.evt-show-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: left;
  /* garder le padding horizontal Bootstrap .container (alignement avec evt-show-body) */
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.evt-show-hero__crumb {
  margin: 0 0 .75rem;
  font-size: .85rem;
  opacity: .85;
}

.evt-show-hero__crumb a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 74, .7);
}

.evt-show-hero__title {
  margin: 0 0 .5rem;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  max-width: 20ch;
}

.evt-show-hero__date {
  margin: 0;
  font-family: Oswald, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--evt-gold);
  font-size: .85rem;
}

.evt-show-body {
  background: var(--evt-foam);
  padding: 2.5rem 0 3.5rem;
}

.evt-show-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr);
  gap: 2rem;
  align-items: start;
}

.evt-article {
  background: #fff;
  border: 1px solid rgba(26, 86, 50, .1);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 12px 30px rgba(20, 32, 24, .05);
}

.evt-article__content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2c342e;
}

.evt-article__content p:first-child {
  margin-top: 0;
}

.evt-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.75rem 0 .85rem;
}

.evt-gallery-head__title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 1.2rem;
  color: var(--evt-forest);
}

.evt-gallery-head__count {
  margin: 0;
  font-size: .88rem;
  color: var(--evt-muted);
}

.evt-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
}

.evt-gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #111;
}

.evt-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.evt-gallery__item:hover img {
  transform: scale(1.06);
}

.evt-gallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 28, 18, .62);
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: .04em;
  pointer-events: none;
}

.evt-gallery-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: .85rem;
  padding: .55rem 1rem;
  border: 1px solid rgba(26, 86, 50, .25);
  border-radius: 3px;
  background: #fff;
  color: var(--evt-forest);
  font-family: Oswald, sans-serif;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.evt-gallery-toggle:hover {
  background: var(--evt-mist);
  border-color: var(--evt-leaf);
}

.evt-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.evt-side--sticky {
  position: sticky;
  top: 1.25rem;
  z-index: 2;
  align-self: start;
}

.evt-side__box {
  background: #fff;
  border: 1px solid rgba(26, 86, 50, .1);
  border-radius: 4px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.evt-share {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.evt-share__btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  border: 1px solid rgba(26, 86, 50, .15);
  border-radius: 3px;
  background: #fff;
  color: var(--evt-forest);
  font-family: Oswald, sans-serif;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.evt-share__btn i {
  width: 1.1rem;
  text-align: center;
}

.evt-share__btn:hover {
  background: var(--evt-mist);
  border-color: var(--evt-leaf);
  color: var(--evt-leaf);
  text-decoration: none;
}

.evt-share__btn--fb:hover { color: #1877f2; border-color: #1877f2; }
.evt-share__btn--wa:hover { color: #25d366; border-color: #25d366; }
.evt-share__btn--x:hover { color: #111; border-color: #111; }

/* Swipebox : au-dessus de Crisp / toolbar, image bien visible, fermeture claire */
#swipebox-overlay {
  z-index: 1000000 !important;
  background: rgba(8, 16, 12, .94) !important;
}

#swipebox-slider .slide img {
  max-height: 88vh !important;
  max-width: 92vw !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#swipebox-close,
#swipebox-prev,
#swipebox-next {
  background-color: rgba(0, 0, 0, .35);
  background-image: url('/swipebox/img/icons.png') !important;
  background-repeat: no-repeat !important;
}

#swipebox-close {
  background-position: 15px 12px !important;
}

#swipebox-prev {
  background-position: -32px 13px !important;
}

#swipebox-next {
  background-position: -78px 13px !important;
}

.evt-side__title {
  margin: 0 0 1rem;
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  color: var(--evt-forest);
}

.evt-side__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .75rem;
  align-items: center;
  margin-bottom: .85rem;
  text-decoration: none;
}

.evt-side__item:last-child {
  margin-bottom: 0;
}

.evt-side__thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  background: #ddd;
}

.evt-side__name {
  font-family: Oswald, sans-serif;
  font-size: .98rem;
  color: var(--evt-forest);
  line-height: 1.25;
}

.evt-side__item:hover .evt-side__name {
  color: var(--evt-leaf);
}

@media (max-width: 991.98px) {
  .evt-feature {
    grid-template-columns: 1fr;
  }

  .evt-feature__media {
    min-height: 220px;
    aspect-ratio: 900 / 600;
  }

  .evt-feature__media img {
    position: absolute;
  }

  .evt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evt-show-layout {
    grid-template-columns: 1fr;
  }

  .evt-side--sticky {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .evt-grid {
    grid-template-columns: 1fr 1fr;
  }

  .evt-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
  }
}
