@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: #f9f9f9;
  color: #555;
}

/* Tailles de texte fluides */

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}
h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
h4 {
  font-size: clamp(16px, 2vw, 1rem);
}
p, a {
  font-size: clamp(12.5px, 1.2vw, 14px);
}
h6 {
  font-size: clamp(12.5px, 2vw, 14px);
}

.team-section, .about-section {
  width: 75%;
  margin: 0 auto;
  padding: 40px 0;
  /* text-align: center; */
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.team-card:hover {
  transform: translateY(-5px);
}

/*.team-card {*/
/*  height: 450px;*/
/*  margin-bottom:50px;*/
/*}*/

.team-card .team-img {
  width: 100%;
  height: 100%;
}

.team-card .team-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  
 
}


/* About DG */

.separator-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 0;
}

.separator-deco .line {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, #0056a1, #2575fc);
  background-size: 250% auto;
  animation: gradientFlow 4s ease infinite;
  border-radius: 3px;
  -webkit-animation: gradientFlow 4s ease infinite;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}

.separator-deco h2 {
  color: #003366;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  margin-bottom: 40px;
}

.image-wrapper {
  position: relative;
  width: 400px;
  max-width: 100%;
  height: 400px;
}

.background-shape {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: #003366;
  clip-path: polygon(100% 100%, 0% 100%, 100% 0%);
  z-index: 0;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

.about-image {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  object-fit: cover;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

.about-text {
  flex: 1;
}

.about-text h5 {
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-text .wrapper-text {
  text-align: justify;
  margin-bottom: 30px;
}

.about-text h4 span a {
  color: #003366;
}

.about-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  -webkit-transition: background 0.3s ease;
  -moz-transition: background 0.3s ease;
  -ms-transition: background 0.3s ease;
  -o-transition: background 0.3s ease;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.btn-primary {
  background-color: #0056a1;
  color: #fff;
}

.btn-primary:hover {
  background-color: #003e77;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background-color: #ddd;
}

/* Responsive - Corrections appliquées */

@media (min-width: 1600px) {
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .team-section, .about-section {
    width: 75%;
  }
}

@media (max-width: 1599px) and (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .team-section, .about-section {
    width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 1199px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-section, .about-section {
    width: 90%;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .image-wrapper,
  .about-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }

  .team-section, .about-section {
    width: 90%;
    margin-top: -80px;
  }
  
  .about-container {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .about-buttons {
    justify-content: center;
  }
  
  .separator-deco {
    margin-top: 35px;
  }
  
  .image-wrapper,
  .about-text {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .team-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .team-section, .about-section {
    width: 90%;
    margin-top: -80px;
  }

  .team-card {
    width: 100%;
    margin-bottom: 15px;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .image-wrapper,
  .about-text {
    width: 100%;
  }
}