/* ========== Layout de base ========== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

/* ========== Header et Navigation ========== */
header {
  background-color: #333;
  color: white;
  padding: 10px;
}

header.sticky-header {
    position: sticky;
    top: 0;
    background-color: #333;
    z-index: 999;
    transition: all 0.3s ease;
    padding: 20px 10px;
  }

  header.sticky-header.shrink {
    padding: 8px 10px;
  }

  header.sticky-header h1 {
    margin: 0;
    font-size: 24px;
    transition: font-size 0.3s ease;
  }

  header.sticky-header.shrink h1 {
    font-size: 18px;
  }

  nav a {
    color: white;
    margin: 0 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: font-size 0.3s ease;
  }

  header.sticky-header.shrink nav a {
    font-size: 14px;
  }

/* ========== Contenu principal ========== */
main {
  padding: 20px;
  padding-bottom: 100px; /* Réserve de place pour le footer sticky */
}

h2 {
  margin-bottom: 20px;
}

/* ========== Cartes d'événements ========== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.event-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease;
}

.event-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-card h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

.event-card p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

.event-card a {
  text-decoration: none;
  color: #0066cc;
}

.event-image {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ========== Footer Sticky ========== */
footer.footer-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 12px 0;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.footer-sticky button {
  margin: 0 10px;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
}