/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* Police globale */
body {
  background-color: #FFD6B6;
  color: #7b1111;
  text-align: center;
  line-height: 1.5;
}

/* Section Héro */
.hero, .contact-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FFD6B6;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/bg.png');
  background-size: cover;
  background-position: center;
  filter: sepia(100%) blur(3px);
  z-index: -1;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/cbg.png');
  background-size: cover;
  background-position: center;
  filter: sepia(100%) blur(3px);
  z-index: -1;
}

.hero-content img {
  border-radius: 50%;
  max-width: 150px;
}

.contact-hero h1 {
  margin-top: 20px;
}

.cta-button {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #7b1111;
  color: #FFD6B6;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
}

.ds-button {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #5a2590;
  color: #FFD6B6;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
}

.trk-button {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #a51745;
  color: #FFD6B6;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
}

/* Section Services */
.services {
  padding: 50px 20px;
}

.propos {
  max-width: 650px;
  margin: 0 auto;
  padding: 30px;
  background-color: #e2bea2;
  border: 2px solid #7b1111;
  text-align: center;
  border-radius: 8px;
}

.propos a, .propos u {
  color: #7b1111;
  font-weight: bold;
  text-decoration: none;
}

/* Statistiques */
.statistiques {
  padding: 40px 20px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: auto;
  border: 2px solid #7b1111;
  padding: 20px;
  border-radius: 8px;
  flex-direction: column; /* Par défaut, disposition en colonne */
}

.stats img {
  max-width: 100%;  /* Permet à l'image de se redimensionner à 100% de son conteneur */
  height: auto;     /* Permet de maintenir les proportions de l'image */
  object-fit: contain; /* Conserve les proportions sans déformation */
  flex-shrink: 1;    /* Permet à l'image de se réduire si nécessaire */
}

/* Ajustements pour les divs contenant les images */
.missionsen, .statsen {
  margin-left: 60%;
  width: 512px;
  line-height: 0%;
  border: 2px solid #7b1111;
  gap: 10px;
}

.statsfr, .missionsfr {
  margin-left: 13%;
  width: 512px;
  line-height: 0%;
  border: 2px solid #7b1111;
  gap: 10px;
}

.missionsfr img, .missionsen img, .statsfr img, .statsen img {
  height: auto;      /* Assure que les images gardent leurs proportions */
  object-fit: contain;
}

/* Ligne de séparation */
hr {
  border: none;
  border-top: 3px double #7b1111;
  height: 5px;
  margin: 20px 0;
}

/* Media Queries pour les écrans mobiles */
@media screen and (max-width: 768px) {
  .hero, .contact-hero {
    height: auto;
    padding: 10px;
  }

  .hero-content img {
    max-width: 120px;
  }

  .cta-button {
    font-size: 1rem;
    padding: 10px 20px;
  }

  /* Section Services */
  .services {
    padding: 30px 10px;
  }

  .propos {
    padding: 20px;
    max-width: 90%;
  }

  /* Statistiques */
  .statistiques {
    padding: 30px 10px;
  }

  .contact-hero {
    padding-bottom: 100%;
  }
  

  .stats {
    flex-direction: column; /* Passe en colonne sur les petits écrans */
    align-items: center;
  }

  .missionsfr, .missionsen, .statsfr, .statsen {
    width: 90%; /* Limite la largeur des divs contenant les images */
    margin: 0 auto; /* Centrage horizontal */
  }

  .missionsfr img, .missionsen img, .statsfr img, .statsen img {
    max-width: 80%;  /* Limite la taille des images sur les petits écrans */
    height: auto; /* Maintient les proportions */
  }
}

/* Media Queries pour les très petits écrans (smartphones en portrait) */
@media screen and (max-width: 480px) {
  /* Section Héro */
  .hero, .contact-hero {
    padding: 5px;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  /* Section Services */
  .services {
    padding: 20px 5px;
  }

  .propos {
    padding: 15px;
    max-width: 90%;
  }

  /* Statistiques */
  .statistiques {
    padding: 20px 5px;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }

  .stats img {
    max-width: 60%; /* Limite davantage la largeur des images */
    max-height: 60px; /* Limite la hauteur des images */
  }

  .missionsfr, .missionsen, .statsfr, .statsen {
    width: 90%;
    margin: 15px auto;
  }

  .missionsfr img, .missionsen img, .statsfr img, .statsen img {
    max-width: 70%;  /* Limite la taille des images sur les très petits écrans */
    height: auto;
  }
}