/* ============================
   Reset basique
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cabin', sans-serif;
  line-height: 1.5;
  background-color: #f7f9fc;
  color: #764B36;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  margin-bottom: 15px;
  font-weight: 400;
  /* pas gras */
}

/* ============================
   Section Horaires
   ============================ */
.horaires {
  text-align: center;
  background-color: #E8DED1;
  color: #764B36;
  padding: calc(var(--header-height, 100px) + 40px) 20px 40px;
}

.horaires h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 30px;
}

.horaires-cartes {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  /* espace avant la section contact */
}

.horaires-carte {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 220px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.horaires-carte:hover {
  transform: translateY(-5px);
}

.horaires-carte img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.horaires-carte p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #764B36;
  margin: 0;
}

/* ============================
   Section Contact Info
   ============================ */
.contact-info {
  background-color: #E8DED1;
  /* même fond que horaires */
  color: #764B36;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.center-row {
  justify-content: center;
}

.contact-column {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 220px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.contact-column:hover {
  transform: translateY(-5px);
}

.contact-column img {
  width: 40px;
  height: 40px;
}

.contact-column h3,
.contact-column p,
.contact-column a {
  font-weight: 400;
  color: #764B36;
  /* texte marron */
  text-decoration: none;
}

.contact-column a:hover {
  text-decoration: underline;
}

/* ============================
   Section Localisation
   ============================ */
@media (max-width: 768px) {
  #localisation {
    padding-top: 0 !important;
    /* JS ajoutera la bonne valeur */
    margin-top: 0 !important;
    padding-bottom: 40px;
    /* espace sous le contenu */
    text-align: center;
  }

  #localisation h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

#localisation {
  padding: 40px 20px 80px;
  /* haut, gauche/droite, bas */
  text-align: center;
  margin-top: 0;
}

/* Map */
.map-container {
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 40px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer */
footer p {
  text-align: center;
  padding: 20px 0;
  background-color: #764B36;
  color: white;
  font-size: 14px;
  margin: 0;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {

  /* Horaires */
  .horaires {
    padding: calc(var(--header-height, 100px) + 20px) 20px 30px;
  }

  .horaires-cartes {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .horaires-carte {
    width: 100%;
    max-width: 400px;
    min-height: 120px;
  }

  /* Contact */
  .contact-row {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .contact-column {
    width: 100%;
    max-width: 400px;
    min-height: 120px;
  }

  /* Map */
  .map-container {
    height: 350px;
  }
}