/* ============================================
   Calendar of Events - Grille Past (WYDE)
   ============================================ */

.wyde-past-events > .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -9px;
}
.wyde-past-events > .row > * {
  display: flex;
  padding: 0 9px 18px;
}

/* --- La carte, entièrement cliquable --- */
.wyde-event-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fafafa;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
  border: none !important;
  transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}
.wyde-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.25);
  text-decoration: none !important;
}

/* --- Visuel + pastille de date --- */
.wyde-event-media {
  position: relative;
  flex: 0 0 auto;
  height: 200px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.wyde-event-date {
  position: absolute;
  top: 0;
  left: 30px;
  z-index: 2;
  padding: 10px 15px;
  text-align: center;
  color: #ffffff;
  background: #DEAB6C;
}
.wyde-event-day {
  display: block;
  font-size: 34px;
  line-height: 1em;
  font-weight: 700;
}
.wyde-event-month {
  display: block;
  font-size: 14px;
  line-height: 1em;
  text-transform: uppercase;
}
.wyde-event-time {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* --- Contenu --- */
.wyde-event-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 14px 14px 20px;
}
.wyde-event-organizer {
  display: block;
  font-size: 14px;
  color: #00476C;
  margin-bottom: 6px;
}
.wyde-event-title {
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
  text-align: center;
  padding: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .wyde-event-media { height: 240px; }
  .wyde-event-title { font-size: 18px; }
}

@media (max-width: 480px) {
  .wyde-event-media { height: 260px; }
  .wyde-event-date { left: 20px; }
  .wyde-event-title { font-size: 17px; }
}
