/* ===================== BASE ===================== */
body {
  font-family: Poppins, sans-serif;
  background: #f4f6f4;
  margin: 0;
  color: #1c1c1c;
}

/* ===================== LISTE ÉVÉNEMENTS ===================== */
.events-list {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

.events-title {
  font-size: 1.6em;
  margin: 40px 0 20px;
  color: #1e2b1e;
}

/* ===================== CARDS ===================== */
.event-card {
  display: flex;
  background: #1e2b1e;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

/* DATE */
.event-date {
  background: #6fa36f;
  color: white;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.event-day {
  font-size: 24px;
}

.event-month {
  font-size: 12px;
}

/* CONTENU */
.event-content {
  display: flex;
  flex: 1;
}

/* IMAGE */
.event-image-wrapper {
  width: 180px;
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* DETAILS */
.event-details {
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-details p {
  color: #ccc;
  margin: 0;
  font-size: 0.9em;
}

/* BOUTONS */
.event-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.event-btn {
  background: #6fa36f;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: 0.3s;
}

.event-btn:hover {
  background: #7fbf7f;
}

.event-register {
  background: #ff914d;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: 0.3s;
}

.event-register:hover {
  background: #ffa366;
}

/* BADGES */
.event-badge {
  margin-top: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  width: fit-content;
  color: white;
}

.upcoming { background: #6fa36f; }
.participate { background: #2ecc71; }
.neutral { background: #888; }
.cancel { background: #e74c3c; }
.finished { background: #888; }

/* événements passés */
.event-card.past {
  opacity: 0.6;
}

.event-card.past:hover {
  transform: none;
}

/* ===================== FOOTER ===================== */
.footer {
  background-color: #fff;
  padding: 3rem 1rem;
  text-align: center;
  color: #1c1c1c;
  border-top: 1px solid #eee;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: #1c1c1c;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #4b6b4b;
}

.footer-social a {
  margin: 0 0.5rem;
  color: #1c1c1c;
  font-size: 1.5rem;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #4b6b4b;
}

.support-button {
  display: inline-block;
  margin: 1rem 0;
  background-color: #4b6b4b;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.support-button:hover {
  background-color: #6fa36f;
  transform: scale(1.05);
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

.footer-counter {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #888;
}

/* ===================== RESPONSIVE CARDS ===================== */
@media (max-width: 700px) {

  .event-card {
    flex-direction: column;
  }

  .event-image-wrapper {
    width: 100%;
    height: 200px;
  }

  .event-content {
    flex-direction: column;
  }

  .event-buttons {
    flex-wrap: wrap;
  }
}

/* ===================== BONUS UX ===================== */
.event-card {
  cursor: pointer;
}

/* légère amélioration hover mobile */
@media (hover: hover) {
  .event-card:hover {
    transform: translateY(-5px);
  }
}