/* Accents d’offre MDB — olive (CNV) vs ocre (Animations natures) — bien lisibles */

/* --- CNV (olive) --- */
.offer-cnv {
  border: 1px solid #c4ccaa !important;
  border-left: 5px solid #606840 !important;
  background-color: #f2f4ec !important;
}

.offer-cnv-tile {
  border: 1px solid #c4ccaa;
  border-left: 5px solid #606840;
  background-color: #f2f4ec;
}

.offer-cnv-tile:hover {
  border-color: #9eaa78;
  border-left-color: #485028;
  background-color: #e0e4d0;
}

.offer-cnv-title {
  color: #485028;
}

.offer-cnv-tile:hover .offer-cnv-title {
  color: #383028;
}

.offer-cnv-label {
  color: #485028;
}

.offer-cnv-badge {
  display: inline-block;
  background-color: #606840;
  color: #f8f0e8;
  font-weight: 600;
}

.offer-cnv-icon {
  background-color: #606840;
  color: #f8f0e8;
}

.offer-cnv-card {
  border: 1px solid #c4ccaa !important;
  border-left: 5px solid #606840 !important;
  background-color: #f2f4ec !important;
}

.offer-cnv-card:hover {
  border-color: #9eaa78 !important;
  background-color: #e0e4d0 !important;
}

.offer-cnv-title-accent {
  box-shadow: inset 5px 0 0 #606840;
  padding-left: 0.85rem;
}

/* --- Vivre ensemble (olive douce) --- */
.offer-ensemble {
  border: 1px solid #d4d8c4 !important;
  border-left: 5px solid #8a9460 !important;
  background-color: #f6f7f0 !important;
}

.offer-ensemble-tile {
  border: 1px solid #d4d8c4;
  border-left: 5px solid #8a9460;
  background-color: #f6f7f0;
}

.offer-ensemble-tile:hover {
  border-color: #b0b890;
  border-left-color: #606840;
  background-color: #eef0e4;
}

.offer-ensemble-title {
  color: #586038;
}

.offer-ensemble-tile:hover .offer-ensemble-title {
  color: #383028;
}

.offer-ensemble-label {
  color: #586038;
}

.offer-ensemble-badge {
  display: inline-block;
  background-color: #8a9460;
  color: #f8f0e8;
  font-weight: 600;
}

.offer-ensemble-title-accent {
  box-shadow: inset 5px 0 0 #8a9460;
  padding-left: 0.85rem;
}

/* --- Animations natures (ocre) --- */
.offer-anim {
  border: 1px solid #e8d4a8 !important;
  border-left: 5px solid #c08828 !important;
  background-color: #faf6ee !important;
}

.offer-anim-tile {
  border: 1px solid #e8d4a8;
  border-left: 5px solid #c08828;
  background-color: #faf6ee;
}

.offer-anim-tile:hover {
  border-color: #d0a040;
  border-left-color: #a07020;
  background-color: #f5ecd8;
}

.offer-anim-title {
  color: #a07020;
}

.offer-anim-tile:hover .offer-anim-title {
  color: #805818;
}

.offer-anim-label {
  color: #a07020;
}

.offer-anim-badge {
  display: inline-block;
  background-color: #c08828;
  color: #fff8ee;
  font-weight: 600;
}

.offer-anim-icon {
  background-color: #c08828;
  color: #fff8ee;
}

.offer-anim-card {
  border: 1px solid #e8d4a8 !important;
  border-left: 5px solid #c08828 !important;
  background-color: #faf6ee !important;
}

.offer-anim-card:hover {
  border-color: #d0a040 !important;
  background-color: #f5ecd8 !important;
}

.offer-anim-title-accent {
  box-shadow: inset 5px 0 0 #c08828;
  padding-left: 0.85rem;
}

/* --- Locations (discret) --- */
.offer-loc-badge {
  display: inline-block;
  background-color: #544838;
  color: #f8f0e8;
  font-weight: 600;
}

.offer-loc-title-accent {
  box-shadow: inset 5px 0 0 #c08828;
  padding-left: 0.85rem;
}

/* Pastille catégorie dans les cartes agenda */
.offer-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.offer-pill-cnv {
  background-color: #606840;
  color: #f8f0e8;
}

.offer-pill-ensemble {
  background-color: #8a9460;
  color: #f8f0e8;
}

.offer-pill-anim {
  background-color: #c08828;
  color: #fff8ee;
}

/* Lightbox affiches */
.affiche-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(56, 48, 40, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.affiche-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.affiche-lightbox__dialog {
  position: relative;
  max-width: min(92vw, 42rem);
  max-height: 90vh;
  margin: 0;
}

.affiche-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  background: #f8f0e8;
  cursor: zoom-out;
}

.affiche-lightbox__close {
  position: absolute;
  top: -0.65rem;
  right: -0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: none;
  background: #f8f0e8;
  color: #383028;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.affiche-lightbox__close:hover {
  background: #fff;
}

.affiche-thumb {
  padding: 0;
  border: 1px solid #e0d8cc;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f0e8e0;
  cursor: zoom-in;
}

.affiche-thumb:focus-visible {
  outline: 2px solid #606840;
  outline-offset: 2px;
}

/* Filtres agenda — barre compacte */
.agenda-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #e0d0bc;
  background: #fff;
  color: #544838;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.agenda-filter-btn:hover {
  border-color: #c4ccaa;
  background: #f2f4ec;
}

.agenda-filter-btn.is-active {
  border-color: #606840;
  background: #606840;
  color: #f8f0e8;
}

.agenda-filter-select {
  min-width: 5.5rem;
  max-width: 7.5rem;
  padding: 0.28rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid #e0d0bc;
  background: #fff;
  color: #383028;
  font-size: 0.8125rem;
  line-height: 1.25;
}

.agenda-filter-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
