/*-----------------------------
------ CCS DU CPT AGENDA ------
------------------------------*/

/* Page archive */

.agendaCollection {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start; /* ou flex-start si tu préfères aligné à gauche */
}


/* Item agenda */

.itemAgenda{
    width: 314px !important;
    height: 310px !important;
}

.agendaCollection .itemAgenda {
  position: relative;
  border-radius: 32px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.15);
  display: flex;
  flex-direction: column;
}

/* Image mise en avant */

.itemAgenda-img {
  position: absolute; /* positionné en absolu pour être derrière */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  z-index: 1; /* en arrière */
  object-fit: cover;
}

.itemAgenda-img {
  transition: transform 0.5s ease;
}

.agendaCollection .itemAgenda:hover .itemAgenda-img {
  transform: scale(1.05); /* zoom léger à 105% */
}


/* Date - positionnée en haut à gauche sur l’image */

.agendaCollection .itemAgenda .date-inner {
  position: absolute;
  top: 16px;
  background-color: var(--white);
  color: var(--color-primary-dark);
  padding: 5px 20px 5px 35px;
  border-bottom-right-radius: 15px;
  border-top-right-radius: 15px;
  font-weight: 600;
  z-index: 10;
  transition: 0.8s all;
}

.agendaCollection .itemAgenda:hover .date-inner {
  padding-left: 45px;
  transition: 0.8s all;
}

/* Contenu sous l’image, fond semi-transparent */

.itemAgenda-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 12px 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  border-radius: 0 0 12px 12px;
  color: white;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}


.location {
  font-size: 13px; /* ou la taille que tu souhaites, ex: 13.5px */
}

/* Catégories */

.itemAgenda-content .category .cat {
  padding: 5px 10px;
  border-radius: 99px;
  color: var(--color-primary-dark);
}
.itemAgenda-content .category .cat-id-148 {
  background-color: #FEC936;
}
.itemAgenda-content .category .cat-id-149 {
  background-color: #F18700;
}
.itemAgenda-content .category .cat-id-150 {
  background-color: #95C11F;
}
.itemAgenda-content .category .cat-id-172 {
  background-color: #ed1f27;
}
.itemAgenda-content .category .cat-id-173 {
  background-color: #009adb;
}


.categorie-agenda .tag {
  border:1px solid var(--gray-300);
  color: var(--gray-500)!important;
  border-radius: 8px;
  padding: 12px;
  margin-left:8px;
}

/* Tags lieu */

.tags .location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
}

/* Slider */

.carrousel-agenda .image-diapo img {
  height: 448px;
  border-radius: 32px;
}
