/* Style général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   
}

html, body {
    overflow-x: hidden;
}
  
  /* En-tête */
  header{
    padding: 1rem 2rem;
    background-color: #eaebec;
    color: #fff;
    position: fixed;
    width: 100%;
    z-index: 1000;
    height: 60px;
   

    
  }
    
  #nav_normal{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  #nav_mobile{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #eaebec;
    color: #fff;
    position: fixed;
    z-index: 1000;
    top: 5px;
    right: 0px;
    width: auto;
    padding: 50px 20px 20px 0px;
  

  }
  #nav_mobile ul{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    width: fit-content;
    gap: 1rem;
  }
  
  #close{
    display: none;
    color: #525257;
    font-size: 2rem;
    top: 5px;
    right: 10px;
    position:fixed;
    z-index: 2000;
  }
  #close:hover{
    color: #e67e22;
  }
  #open{
    display: none;
    color: #525257;
    font-size: 2rem;
    top: 5px;
    right: 10px;
    position: fixed;
    z-index: 1000;
  }
  #open:hover{
    color: #e67e22;
  }
  nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
  }
  
  nav ul li {
    margin-left: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  nav ul li a {
    color: #525257;
    text-decoration: none;
    font-size: 1.2rem;
  }
  nav ul li a:hover {
    color: #fff;
    background-color: #2c3e50;
    padding: 5px 10px;
    border-radius: 5px;

  }
  

  
  /* Section Hero */
    #hero {
    background: url(images/esptravail.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    color: #fff;
    text-align: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100vw;
  }
  #hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #e67e22;
    backdrop-filter: blur(5px);
  }
  #hero_content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .cta-button {
    background-color: #e67e22;
    color: #fff;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    width: fit-content;
    padding: 10px 20px;
  }
  .cta-button:hover {
    background-color: #2c3e50;
    color: #fff;
  }
  
  /* Présentation */
  #presentation {
    display: flex;
    align-items: center;
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
    color:#525257;
  }
  
  .profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-right: 20px;
  }
  
 /* Section Services */
  #services {
    padding: 50px 20px;
    background-color:#897a81;
    margin: 0 auto;;
    text-align: center;
  }
  
  #services h2 {
  
    color: #fff;
    font-size: 2.2rem;
    
    margin-bottom: 40px;
  }
  
  .service-list {
    display: flex;
    justify-content: center;


    gap: 2rem;
  }
  
  .service {
    flex: 1;
    background-color: #eaebed;
    padding: 1rem;
    border-radius: 10px;
  }
  /*about*/
  
#about {
  padding: 50px;
  background: linear-gradient(135deg, #e3e3f3, #f0f0ff);
  text-align: center;
}

#about h2 {
  font-size: 2.2rem;
  color: #666;
  margin-bottom: 40px;
}

#about-ensemble {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.about-item {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.about-icon {
  font-size: 2.5rem;
  color: #897a81;
  margin-bottom: 15px;
}

.about-item h3 {
  font-size: 1.5rem;
  color: #897a81;
  margin-bottom: 10px;
}

.about-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}
/*certifications*/

#certifications {
  padding: 50px;
  background-color: #f9f9ff;
  text-align: center;
  color:#525257;
  
}

#certifications h2 {
  font-size: 2.2rem;
  color: #666;
  margin-bottom: 40px;
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.certification-item {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 600px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  
}


.certification-item:hover {
  transform: scale(1.05);
  border-color: #4b4b8f;
  box-shadow: 0 6px 20px rgba(75, 75, 143, 0.2);
  background: linear-gradient(135deg, #e0e4ff, #f9f9ff);
}

.icon {
  font-size: 2rem;
  color: #4b4b8f;
  margin-right: 20px;
  transition: color 0.3s;
}

.certification-item:hover .icon {
  color: #333;
}

.details h3 {
  font-size: 1.5rem;
  color: #4b4b8f;
}

.details p {
  font-size: 1rem;
  color: #666;
}
/*experience*/

#experience {
  padding: 50px;
  background-color: #f1f1f8;
  text-align: center;
}

#experience h2 {
  font-size: 2.2rem;
  color: #4b4b8f;
  margin-bottom: 40px;
}


.horizontal-timeline {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  position: relative;
  padding: 20px 0;
}

.horizontal-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #4b4b8f;
  z-index: 1;
}


.experience-item {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  margin: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 2;
  transition: transform 0.3s, background-color 0.3s;
}


.experience-item.top {
  transform: translateY(-30px);
}

.experience-item.bottom {
  transform: translateY(30px);
}

.details h3 {
  font-size: 1.5rem;
  color: #333;
}

.details p {
  font-size: 1rem;
  color: #666;
}


.experience-item:hover {
  transform: translateY(-20px);
  background-color: #e0e4ff;
}
.experience-item i{
  font-size: 2rem;
  color: #4b4b8f;
  margin-right: 20px;
  transition: color 0.3s;
}
.experience-item:hover i{
  color: #e67e22;
}

.details h3:hover {
  color: #4b4b8f;
  text-decoration: underline;
}
#experience h2{
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 40px;
}

/* Adaptation responsive */


  /* Contact */
 /* Section Contact */
#contact {
  padding: 50px;
  background-color: #f9f9fb;
  text-align: center;
}

#contact h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 30px;
}

/* Style du formulaire */
#contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s;
}

/* Effet au focus */
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #4b4b8f;
  outline: none;
}

/* Style du bouton */
#contact-form button {
  width: 100%;
  padding: 15px;
  background-color:#555;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

/* Effet au survol du bouton */
#contact-form button:hover {
  background-color: #e67e22;
  transform: translateY(-3px);
}

/* Animation subtile du formulaire */
#contact-form {
  animation: fadeIn 1s ease-in-out;
}



/* Footer */
#footer{
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px;
}

  /* Responsive */
  @media (max-width: 768px) {
    #presentation {
      flex-direction: column;
      text-align: center;
    }
    .profile-photo{
      width: 150px;
      height: 150px;
    }
    .service-list {
      flex-direction: column;
    }
  }
  @media screen and (max-width: 600px){
 
    #nav_normal{
      display: none;
     
    }
    #open{
      display: block;
    }
  
  }
  @media (max-width: 600px) {
    .experience-item {
        flex: 0 0 90%;
        width: 90%;
    }
  }
  @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
  }
  @media (max-width: 600px) {
    #contact-form {
        padding: 20px;
    }
  
    #contact-form input,
    #contact-form textarea {
        padding: 12px;
    }
  
    #contact-form button {
        padding: 12px;
    }
  }
  