
/* 🖼️ Fond et overlay */
.bg-image,
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay {
  background: rgba(0, 0, 0, 0.1);
}

/* 📦 Conteneur principal */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}



/* 📄 Main */
main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  justify-content: flex-start;
}

h2{
  margin: 0.5rem 0;
  font-size: 2rem;
  color: #fff;
  text-align: center;
}
/* 📦 Container programmes */

.contact-form,
.contact-info,
.container {
  margin-top: 0; /* ✅ supprime l’espace au-dessus du bloc */
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.program-block {
  width: 250px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.program-block img {
  width: 100%;
  border-radius: 6px;
}

.program-block h3 {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
}

/* 📂 Archives */
.archives-section {
  max-width: 800px;   /* largeur totale réduite */
  margin: 0 auto;     /* centre la section */
  padding: 1rem;
}

.accordion-header {
  cursor: pointer;
  background-color: #e0e0e0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  max-height: 1000px;
}

/* ✅ Grille forcée à 2 colonnes */
.program-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* toujours 2 colonnes */
  gap: 1rem;
  margin-top: 1rem;
  justify-items: center; /* centre les cartes dans chaque colonne */
}

.archive-card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  width: 100%;
  max-width: 350px; /* largeur max de chaque carte */
}

.archive-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.archive-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.archive-download {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #4CAF50;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.archive-download:hover {
  background-color: #388e3c;
}

/* 📱 Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
  .program-archive-grid {
    grid-template-columns: 1fr; /* une seule colonne */
  }
}

