@import url("https://fonts.cdnfonts.com/css/futura-std-4");

.section-mission {
  width: 100%;
  padding: 60px 90px;
  background: #f5f5f5;
  font-family: "Avenir", sans-serif;
}

.mission-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.mission-header .dot {
  width: 20px;
  height: 20px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.8);
}

.mission-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0b0b28;
  font-family: "Avenir", sans-serif;
}

.mission-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.mission-image {
  flex-shrink: 0;
  width: 630px;
  height: 400px; /* fixe la hauteur */
  border-radius: 15px;
  overflow: hidden; /* cache le surplus */
  position: relative;
}

.mission-image img {
  position: absolute; /* l'image prend tout le conteneur */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* coupe l’image au bon ratio */
  border-radius: 15px;
  transition: opacity 0.5s ease;
}

.mission-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.text-content {
  max-height: 400px; /* même hauteur que l’image */
  overflow-y: auto; /* si le texte dépasse → scroll */
  font-family: "Futura Std", sans-serif;
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background: #ccc;
  top: 10%;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.step {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  font-size: 1.2rem;
  color: #555;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step.active {
  border-color: #2ecc71;
  color: #2ecc71;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.8);
}

.step.active {
  background: #2ecc71;
  color: white;
  height: 60px;
  width: 60px;
}

.section-mission .text-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #0b0b28;
  font-family: "Avenir", sans-serif;
  line-height: 1.2;
}

.text-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  max-width: 500px;
  font-family: "Futura Std", sans-serif;
}

.section-mission {
  width: 100%;
  padding: 60px 90px;
  background: #f5f5f5;
  font-family: "Avenir", sans-serif;
}

.mission-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.mission-header .dot {
  width: 20px;
  height: 20px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.8);
}

.mission-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0b0b28;
  font-family: "Avenir", sans-serif;
}

.mission-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.mission-image {
  flex-shrink: 0;
  width: 630px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.mission-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: opacity 0.5s ease;
}

.text-content {
  max-height: 400px;
  overflow-y: auto;
  font-family: "Futura Std", sans-serif;
}

.section-mission .text-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #0b0b28;
  font-family: "Avenir", sans-serif;
  line-height: 1;
  letter-spacing: -1px;
}

.text-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  max-width: 500px;
  font-family: "Futura Std", sans-serif;
}

/* ---------------- RESPONSIVE PETIT ÉCRAN ---------------- */

/* Tablette et petits écrans */
@media screen and (max-width: 768px) {
  .section-mission {
    padding: 20px 15px; /* réduit les marges sur les côtés */
  }

  .mission-container {
    flex-direction: column; /* empile image et texte verticalement */
    gap: 15px;
  }

  .mission-image {
    width: 100%; /* prend toute la largeur disponible */
    height: 220px;
  }

  .text-content {
    max-height: none;
    overflow: visible;
    width: 100%;
  }

  .text-content h3 {
    font-size: 1.6rem;
    text-align: left; /* aligne à gauche pour éviter trop de centrage */
    margin-bottom: 10px;
  }

  .text-content p {
    font-size: 0.9rem;
    text-align: justify;
    line-height: 1.4;
  }

  .mission-header {
    flex-direction: row; /* conserve dot + titre sur la même ligne */
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }

  .mission-header h2 {
    font-size: 1.3rem;
  }

  .mission-header .dot {
    width: 16px;
    height: 16px;
  }
}

/* Mobile petit écran */
@media screen and (max-width: 480px) {
  .mission-image {
    height: 180px;
  }

  .text-content h3 {
    font-size: 1.4rem;
  }

  .text-content p {
    font-size: 0.85rem;
  }
}

/* Très petits écrans */
@media screen and (max-width: 380px) {
  .mission-image {
    height: 150px;
  }

  .text-content h3 {
    font-size: 1.2rem;
  }

  .text-content p {
    font-size: 0.8rem;
  }
}
