.main {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  

}

.container{
  text-align: center;
  align-items: center;
  margin-top: 5%;
  
  
}


.title {
  display: inline-block;
  font-size: xx-large;
  font-weight: 700;
  color: #2F88FB;
  border-bottom: 1px solid #2F88FB;
  padding-bottom: 6px; /* espace entre le texte et la ligne */
  margin-bottom: 2%;
}

.main .first-child {
  display: flex;
  /*background-image: url("../img/baner.png");
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; */
  flex-direction: row;
  gap: 30px;
  margin-top: 0;
  justify-content: center;
  align-items: center;
  height: fit-content;
  width: 100%;

  
}

.main .first-child div {
  border-radius: 10px;
  max-width: 40%;
  color: white;
  background-color: #2F88FB;
  font-size: x-large;
  font-weight: 700;
  text-align: center;
  padding: 2%;
}

.first-child .baner{
  width: 100%;
  object-fit: cover;

}
#biodrug {
  width: 30%;
 
}

#biomed{
  width: 30%;
  
}

#target{
  width: 30%;
  height: 20%px;
  border-radius: 7px;
  border: 1px solid #2F88FB;
}

.second-child{
  width: 90%;
}

.second-child .subcontainer {
  display: flex;
  flex-direction: row;
  gap:2%;
  align-items: center;
}

.second-child .text{

  text-align: left;
  font-size: 14px;
  font-weight: 300;
  color: #3A3939;
  
}
.third-child {
  display: flex;
  flex-direction: column;
}

.third-child .subcontainer {
  
  display: flex;
  flex-direction: row;
  gap: 20px; /* Espace entre les cadres */
  width: 90%;
}

.third-child .subcontainer .cadre {
  width: 90%; /* Vous pouvez ajuster cette valeur si nécessaire */
  background: linear-gradient(to bottom right, #5FD068, #03A14D);
  border-radius: 5px;
  color: white;
  display: flex;
  flex-direction: row;
  gap: 5%; /* Espace entre l'image et le texte */
  padding: 10px; /* Ajoute un padding à l'intérieur du cadre */
}

.third-child .subcontainer img {
  width: 120px; /* Ajustez la largeur selon vos besoins */
  height: 80%; /* Définir une hauteur fixe pour éviter l'allongement */
  object-fit: cover; /* Maintient le ratio d'aspect sans déformation */
  padding: 10px; /* Ajoute un padding autour de l'image */
  border-radius: 10px; /* Arrondit les coins de l'image si nécessaire */
  
}
.third-child .subcontainer .cadre .text{
  text-align: left;
  color: white;
}

.third-child .subcontainer .cadre .subtitle{
  font-weight: 600;
}


.third-child .subcontainer .cadre .place{
  margin-top: 1%;
  margin-bottom: 2%;
  font-style: italic;
  font-size: small;
}
.third-child .subcontainer .cadre .view{
  font-weight: 300;
  font-size: 13px;

}

.fourth-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
}



.fourth-child .subcontainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Deux colonnes */
  grid-template-rows: repeat(3,auto); /* Trois lignes */
  gap: 10px;
  column-gap: 15%;
  width: 100%;
  max-width: 1200px;
  font-weight: 300;
}


.fourth-child .cell {
  padding: 20px;
  box-sizing: border-box;
  font-size: 14px;
}

.fourth-child .img-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fourth-child .img-box img {
  width: 40%;
  height: auto;
}
.fourth-child .subcontainer .biodrug.img-box img {
  width: 150px; /* ou une taille plus grande selon ton besoin */
  height: auto;
}



.fourth-child .part1 {
  background: linear-gradient(to bottom right, #2F88FB, #034599);
  color: white;
  padding: 20px;
  border-radius: 20px 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.fourth-child .part2 {
  background: linear-gradient(to bottom right, #2F88FB, #034599);
  color: white;
  padding: 20px;
  border-radius: 20px;
  font-size: 14px;
  text-align: left;
}

.fourth-child .part2 .part-title {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
}

.fourth-child .part2 ul {
  padding-left: 20px;
  margin: 10px 0;
}

.fourth-child .part2 li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.fith-child{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;

}

.fith-child .subtitle{
  color: #5FD068;
  font-size: x-large;
  font-weight: 700;
}
.fith-child .basic-text{
  margin-top: 2%;
  color: #3A3939;
  font-size: 16px;
  font-weight: 300;
  max-width: 90%;
  text-align: center;
}

.six-child {
  display: flex;
  flex-direction: column;
  align-items: center;  /* centre les enfants horizontalement */
  justify-content: center;
  width: 80%;
  margin-right: auto; 
  margin-left: auto;       /* centre le bloc dans la page */
  text-align: center;
}

.six-child .title {
  margin-bottom: 30px;  /* un peu d’espace sous le titre */
}

.six-child .subcontainer {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre les images dans le conteneur */
  align-items: center;
  gap: 10%; /* espace entre les images */
   /* permet d’être responsive si besoin */
}

.six-child .part{
  display: flex;
  flex-direction: row;
  justify-content: center; /* centre les images dans le conteneur */
  align-items: center;
  gap: 2%;
  flex-wrap: wrap;
}
.six-child .part .subtitle{
  display: inline-block;
    font-size: 50px;
    font-weight: 700;
    color: #2F88FB;
    margin: 2%;
    
    max-width: 100%; 
}


.six-child img {
  margin: 2%;
  border-radius: 10px;
  border: 1px solid #5FD068;
  width: 300px;
  height: auto;
}

.seven-child {
  display: flex;
  flex-direction: column;
  align-items: center;  /* centre les enfants horizontalement */
  justify-content: center;
  width: 100%;
  margin-right: auto; 
  margin-left: auto;       /* centre le bloc dans la page */
  text-align: center;
}
.seven-child .subtitle{
  color: #5FD068;
  font-size: x-large;
  font-weight: 700;
}

.seven-child .basic-text{
  margin-top: 2%;
  color: #3A3939;
  font-size: 16px;
  font-weight: 300;
  max-width: 90%;
  text-align: center;
}
.second-child form{
  width: 50%;
}
.mailLink{
  padding: 10px;
  border-radius: 5px;
  font-size: 20px;
  text-decoration: none;
  color: #2F88FB;
  margin: 2%;
  background-color: #2F88FB;
  color: white;

}

/* -------------------- RESPONSIVE DESIGN -------------------- */

@media screen and (max-width: 1000px) {
  .main .first-child {
    flex-direction: column;
    gap: 20px;
  }

  .main .first-child div {
    max-width: 100%;
    font-size: large;
  }

  .second-child .subcontainer {
    flex-direction: column;
    gap: 20px;
  }

  .third-child .subcontainer {
    flex-direction: column;
    gap: 30px;
  }

  .third-child .subcontainer .cadre {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .third-child .subcontainer .cadre .text {
    text-align: center;
  }

  .fourth-child .subcontainer{
    grid-template-columns: 1fr;
  }
  .fourth-child .subcontainer :nth-child(1){
    grid-row: 1;
  }
  .fourth-child .subcontainer :nth-child(3){
    grid-row: 2;
  }
  .fourth-child .subcontainer :nth-child(5){
    grid-row: 3;
  }
  .fourth-child .subcontainer :nth-child(2){
    grid-row: 4;
  }
  .fourth-child .subcontainer :nth-child(4){
    grid-row: 5;
  }
  .fourth-child .subcontainer :nth-child(6){
    grid-row: 6;
  }



  .fith-child .basic-text,
  .seven-child .basic-text {
    font-size: 15px;
    padding: 0 5%;
  }

  .six-child .subcontainer {
    flex-direction: column;
    gap: 20px;
  }

  .six-child img {
    width: 90%;
  }

  
  .second-child form{
    width: 50%;
  }
  
}

@media screen and (max-width: 768px) {

  .title {
    font-size: x-large;
  }
  
  .subtitle {
    font-size: large;
  }

  .main .first-child div {
    font-size: medium;
  }
  #target{
    width: 100%;
  }
  
  .second-child ul{
    margin-left: 5%;
  }

  .third-child .subcontainer .cadre img {
    width: 80%;
    height: auto;
  }

  .part1, .part2 {
    font-size: 13px;
  }
  
}

@media screen and (max-width: 480px) {
  .title {
    font-size: large;
  }

  .subtitle {
    font-size: medium;
  }

  .fith-child .basic-text,
  .seven-child .basic-text {
    font-size: 14px;
  }


  .main .first-child img {
    max-width: 100%;
    height: auto;
  }

  .third-child .subcontainer .cadre {
    padding: 10px 5px;
  }

  .third-child .subcontainer .cadre .view {
    font-size: 12px;
  }

  .six-child img {
    width: 95%;
  }

  .footer-content a {
    font-size: 14px;
  }

  .footer_title {
    font-size: medium;
  }

  .footer-logo p,
  .footer-logo .web_ref {
    font-size: 12px;
  }
  
}
