/* SECTION NOTRE HISTOIRE ET MISSION */

/* Conteneur principal de la section "Notre Histoire" et "Ce qui nous anime" */
.history-mission {
  display: flex;

  flex-wrap: wrap;
  /* Permet le retour à la ligne si l’espace est insuffisant */

  gap: 40px;
  /* Espace entre les blocs */

  padding: 40px 20px;
  justify-content: center;

  align-items: flex-start;
  /* Aligne les éléments en haut */

  background-color: #FFF3DF;
}

/* Style commun aux blocs "history" et "mission" */
.history-block,
.mission-block {
  display: flex;
  flex-direction: column;

  flex: 1;
  /* Permet de répartir l'espace équitablement */

  padding: 20px;
  border-radius: 8px;

}

/* Images spécifiques à la mission (hauteur fixe pour uniformité) */
.mission-block img {
  height: 300px;

  object-fit: cover;
  /* Couvre l’espace sans déformation */
}

/* Images dans les deux blocs */
.history-block img,
.mission-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

/* Contenu texte interne à chaque bloc */
.text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  line-height: 2;
}

/* Bouton dans la section "Notre Histoire - mission" */
.btn-about {
  width: 250px;
  height: 80px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 3em;
  margin-left: 8em;
}


/* Conteneur général des valeurs du parc */
.values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 20px;

}

/* Élément représentant une valeur individuelle */
.value-item {
  background-color: white;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.5;
}

/* Image principale des valeurs (1ère image) */
.value img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Image dans chaque carte de valeur */
.value-item img {
  width: 100%;

  max-width: 200px;
  /* Limite la taille pour garder l’uniformité */

  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
}



/* SECTION LOCALISATION ET CONTACT */

.address-container {
  padding: 40px 20px;
  background-color: #FFF3DF;
}

.title-address {
  text-align: center;
}


/* Wrapper global des deux colonnes */
.location-contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* Colonne gauche "NOUS TROUVER" */
.location-column {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Carte interactive (Leaflet) */
#map {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* bloc adresse centré sous la carte */
.address-block {
  text-align: center;
  margin: 0 auto;
}

/* Colonne droite formulaire "NOUS CONTACTER */
.contact-column {
  flex: 1 1 45%;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.15);
}

.contact-container h2 {
  margin-bottom: 1.5rem;
  text-align: center;

}

.form-contact {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
}

.form-labels {
  font-weight: bold;
  text-align: left;
  display: block;
}


.form-fields input,
.contact-text {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-text {
  height: 50px;
}

.form-buttons {
  margin-top: 1rem;
}



/* RESPONSIVE ABOUT PAGE */

/* mobile <768px*/


.history-mission {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 15px;
  align-items: center;
}

.history-block,
.mission-block {
  width: 100%;
  max-width: 600px;
  padding: 15px;
}

.history-block img,
.mission-block img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.btn-about {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  display: block;
}


.value img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}

.value-item {
  padding: 20px;
  text-align: center;
}

.value-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.contact-container h2 {
  line-height: 1.5;
}

.address-block h3 {
  line-height: 1.5;
}

/* tablette */

@media screen and (min-width: 768px) {
  .history-mission {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
  }

  .history-block img,
  .mission-block img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
  }


}

/* ordinateur */

@media screen and (min-width: 1024px) {

  .mission-block,
  .history-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    margin: 0 auto;
    padding: 20px;
  }

  .history-block img,
  .mission-block img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
  }

}



@media screen and (min-width: 2000px) {

  .mission-block,
  .history-block {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }


  .history-block img,
  .mission-block img {
    width: 45%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }


  .history-block .text,
  .mission-block .text {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }


  .value img {
    max-height: 600px;
    object-fit: cover;
    width: 100%;
  }

  .value-item img {
    max-width: 200px;
    width: 100%;
    height: auto;
  }


}