.carre-contenu {
  display: flex;
  align-items: center;
  margin: auto;
  gap: 20px;
  max-width: 1400px;
}

.a-propos-main {
  margin: auto;
}

td,
th {
  padding: 15px;
  border: 1px solid #a5b4fc;
}

td {
  padding: 80px;
}

h2 {
  margin-bottom: 30px;
}

h1,
h2 {
  text-align: center;
  margin-top: 50px;
}

.carre-contenu img {
  width: 40%;
  height: auto;
  border-radius: 20px;
}

.carre-contenu .texte {
  flex: 1;
  text-align: left;
}

.photo-texte {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photo-texte div:first-child {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
  border-radius: 10px;
  gap: 20px;
}

.photo {
  width: 32%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.photo-texte .texte {
  font-size: 16px;
  line-height: 1.5;
}


.carre-contenu2 {
  display: flex;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
}

.textepageduree {
  text-align: justify;
  margin: 0;
  display: flex;
  gap: 35px;
  max-width: 53%;
}

.carreimg2 img {
  border-radius: 10px;
  max-width: 650px;
}

.carre-contenu3 {
  display: flex;
  flex-direction: row-reverse;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
}

.carreimg3 img {
  border-radius: 10px;
  max-width: 660px;
}

.textepageduree3 {
  text-align: justify;
  max-width: 53%;
}

.textepageduree3 p {
  margin: 0 0 25px 0;
}

.textepageduree3 li {
  margin: 10px 0;
}

#container {
  margin: 0 5%;
}

.carre-contenu4 {
  display: flex;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
}

.carre-contenu-eco {
  display: flex;
  flex-direction: row-reverse;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
}

.textepage-eco {
  text-align: justify;
  display: flex;
  gap: 35px;
  max-width: 53%;
}
@media screen and (max-width: 992px) {
  .carre-contenu,
  .carre-contenu2,
  .carre-contenu3,
  .carre-contenu4,
  .carre-contenu-eco {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .carre-contenu img,
  .carreimg2 img,
  .carreimg3 img {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
  }

  .carre-contenu .texte,
  .textepageduree,
  .textepageduree3,
  .textepage-eco {
    max-width: 90%;
    flex-direction: column;
    gap: 20px;
  }

  .textepageduree,
  .textepageduree3,
  .textepage-eco {
    display: block;
    text-align: justify;
  }

  .photo-texte div:first-child {
    flex-direction: column;
  }

  .photo {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  td {
    padding: 30px;
  }

  h1, h2 {
    margin: 20px;
    font-size: 1.5rem;
  }

  .photo-texte {
    gap: 10px;
  }

  .carre-contenu img,
  .carreimg2 img,
  .carreimg3 img {
    max-width: 100%;
  }

  .carre-contenu {
    gap: 10px;
  }
}
