
* {
  margin: 0;
}

body {
  color: white;
  background-color: black;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  transition: all 0.4s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

nav {
  background-color: #0F0F0F;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-family: 'Cormorant', sans-serif;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

nav img {
  height: 40px;
  width: auto;
}

nav ul {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: flex-end;
  -moz-justify-content: flex-end;
  -ms-justify-content: flex-end;
  justify-content: flex-end;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 20px;
  position: relative;
}

nav a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-weight: bold;
  text-transform: uppercase;
}

nav a:hover {
  color: #FFFFFF;
}

nav a::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #e01e4b;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
}

nav a:hover::before {
  transform: scaleX(1);
}

#Home {
  background-image: url('img/rapha-NetB.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  font-family: 'Playfair Display', serif; 
}

h2.centered-text {
  display: block;
  text-align: center;
  font-size: 4rem;
  font-family: 'Playfair Display', serif;

}

p.centered-text {
  display: block;
  text-align: center;
  font-size: 1.5rem;
}

.hero-container {
  color: white;
  padding-top: 595px;
  padding-bottom: 115px;
  display: block;
  align-items: flex-end;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

#Home h2 {
  font-family: 'Playfair Display', serif; 
  font-size: 50px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}


#Home p {
  font-family: 'Playfair Display', serif; 
  font-size: 23px;
  text-align: center;
}

#qui-je-suis {
  padding-top: 70px;
  padding-bottom: 570px;
  display: block;
  margin: 0;
  margin-left: 130px;
  position: relative;
  font-family: 'Cormorant', sans-serif;
}

#qui-je-suis p {
  width: 55%;
  margin-left: 20px;
  margin-right: 0px;
  float: right;
  padding-top: 100px;
  font-family: 'Cormorant', sans-serif;
  font-size: 23px;
}

#qui-je-suis img {
  width: 28%;
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

#qui-je-suis h2 {
  margin-bottom: 5%;
  margin-left: 7%;
  padding-bottom: 1%;
  font-family: 'Cormorant', sans-serif;
  font-size: 3.5vw;
}

#mes-études {
  padding-top: 10%;
  padding-bottom: 15%;
  display: block;
  margin: 0;
  margin-left: 0%;
  position: relative;
  }
  
  #mes-études h2 {
  margin-bottom: 5%;
  margin-left: 7%;
  padding-bottom: 1%;
  font-family: 'Cormorant', sans-serif;
  font-size: 3.5vw;
  }
  
  #mes-études h3 {
  font-size: 2vw;
  }
  
  #mes-études p {
  font-size: 1.5vw;
  font-family: 'Cormorant', sans-serif;
  }
  
  #mes-études ul {
  margin-left: 45%;
  }
  
  #mes-études img {
  max-width: 15%;
  float: left;
  margin-right: 7%;
  margin-bottom: 9%;
  margin-left: 14%;
  padding-top: 4%;
  }

  #mes-experiences h2 {
    margin-bottom: 5%;
    margin-left: 7%;
    padding-bottom: 1%;
    padding-top: 2%;
    font-family: 'Cormorant', sans-serif;
    font-size: 3.5vw;
    }
    
    #mes-experiences .tl-duration {
    background-color: #f0f0f02e;
    border-radius: 29px;
    padding: 0.3rem 0.7rem;
    display: inline-block;
    }
    
    #mes-experiences h3 {
    padding-bottom: 1%;
    padding-top: 2%;
    font-family: "Poppins", sans-serif;
    }
    
    #mes-experiences h4 {
    padding-bottom: 1%;
    padding-top: 2%;
    font-family: "Poppins", sans-serif;
    }
    
    #mes-experiences p {
    padding-bottom: 1%;
    padding-top: 2%;
    font-family: 'Cormorant', sans-serif;
    font-size: 1.5vw;
    }

    .container {
      display: flex;
      flex-wrap: wrap;
    }
    
    .left-top {
      width: 30%;
      margin-left: 30%;
      align-self: flex-start;
    }
    
    .left-center {
      width: 30%;
      align-items: center;
      margin-left: 30%;
      padding-top: 5%;
    }
    
    .left-bottom {
      width: 30%;
      margin-left: 30%;
      padding-top: 5%;
      align-self: flex-end;
    }
    
    .right-top {
      width: 30%;
      align-self: flex-start;
      text-align: left;
      margin-left: 15%;
    }
    
    .right-center {
      width: 30%;
      text-align: left;
      align-items: center;
      margin-left: 15%;
      padding-top: 2%;
    }
    
    .right-bottom {
      width: 30%;
      align-self: flex-start;
      text-align: left;
      margin-left: 15%;
      padding-top: 2%;
    }

    .logos {
      display: flex;
      align-items: center;
      padding-top: 3vw;
      margin-left: 5%;
      --logo-spacing: 6vw;
    }
    
    .logos a {
      display: inline-block;
    }
    
    .logos img {
      height: 6vw;
      width: auto;
      margin-right: var(--logo-spacing);
      transition: transform 0.2s ease-out;
    }
    
    .logos img:hover {
      transform: scale(1.2);
    }
    
    @media only screen and (min-width: 768px) {
      /* Appliquer les styles ci-dessus uniquement sur les écrans de plus de 768 pixels de large */
      .left-top, .left-center, .left-bottom, .right-top, .right-center, .right-bottom {
        width: 50%;
        margin-left: 0%;
        padding-top: 2%;
      }
      
      .logos {
        padding-top: 2rem;
        margin-left: 10%;
        --logo-spacing: 4vw;
      }
      
      .logos img {
        height: 4vw;
        margin-right: var(--logo-spacing);
      }
    }

    #mes-skills {
      padding-top: 10vh;
    }
    
    #mes-skills h2 {
      margin-bottom: 2.5rem;
      margin-left: 7%;
      padding-bottom: 1.5rem;
      font-family: 'Cormorant', sans-serif;
      font-size: 3.125rem;
    }
    
    #mes-skills li {
      display: flex;
      align-items: center;
      margin: 1rem 2rem;
      max-width: 11.5rem;
      text-align: center;
      margin-bottom: 0.1rem;
      width: 45%;
    }
    
    #mes-skills li img {
      width: 2.8125rem;
      margin-right: 0.3125rem;
    }
    
    #mes-skills li span {
      font-size: 1rem;
      font-weight: bold;
      text-transform: uppercase;
    }
    
    #mes-skills ul {
      display: flex; 
      flex-wrap: wrap; 
      justify-content: space-between;
    }
    
    #mes-skills li:nth-child(odd) {
      justify-content: flex-start;
    }
    
    #mes-skills li:nth-child(even) {
      justify-content: flex-end;
      padding-bottom: 9rem;
    }
    
    #mes-skills li:nth-child(even) p {
      padding-left: 0;
      padding-right: 0.3125rem;
    }

    #contact {
      padding: 2vw;
      background-color: rgb(20, 20, 20);
    }
    
    #contact h2 {
      font-size: 3.125rem;
      font-weight: 700;
      margin-bottom: 3vw;
      text-align: center;
      font-family: 'Cormorant', sans-serif;
    }
    
    .contact-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1vw;
    }
    
    .contact-info a {
      color: #666;
      font-size: 1.3vw;
      text-decoration: none;
      transition: all 0.3s ease-in-out;
    }
    
    .contact-info a:hover {
      color: #cc0033;
    }
    
    .contact-info i {
      color: #cc0033;
      font-size: 2vw;
    }
    
    .contact-info span {
      display: block;
      font-size: 1vw;
      margin-top: 0.5vw;

@media (max-width: 767px) {
  .contact-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
  nav ul {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background-color: #0F0F0F;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100% - 70px);
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  }
  
  nav ul.open {
  transform: translateY(0);
  }
  
  nav li {
  margin: 10px 0;
  position: relative;
  }
  
  nav a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px;
  display: block;
  }
  
  nav a:hover {
  color: #FFFFFF;
  }
  
  nav a::before {
  display: none;
  }
  
  .hero-container {
  padding-top: 200px;
  padding-bottom: 50px;
  max-width: 100%;
  }
  
  #qui-je-suis {
  padding-top: 50px;
  padding-bottom: 50px;
  margin-left: 0;
  }
  
  #qui-je-suis p {
  width: 100%;
  margin-left: 0;
  float: none;
  padding-top: 0;
  }
  
  #qui-je-suis img {
  width: 100%;
  float: none;
  margin-right: 0;
  margin-bottom: 20px;
  }
  
  #qui-je-suis h2 {
  margin-left: 0;
  }
  
  #mes-études {
  padding-top: 50px;
  padding-bottom: 50px;
  margin-left: 0;
  }
  
  #mes-études h2 {
  margin-left: 0;
  padding-bottom: 30px;
  }
  
  #mes-études p {
  margin-left: 0;
  }
  
  #mes-études ul {
  margin-left: 0;
  }
  
  #mes-experiences h2 {
  margin-left: 0;
  padding-bottom: 30px;
  }
  
  .left-top, .left-center, .left-bottom {
  width: 100%;
  margin-left: 0;
  }
  }






  









