body{
  max-width: 80%;
  margin-inline: auto;
  margin-bottom: 0px;
  background-color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "width" 75;
}

/* Main sections (id used for navigation) */
#nav{
  position: fixed;
  right: 0px;
  top: 60px;
  z-index: 1;
  transform: scale(1);
}

#top{
  margin-left: 24px;
  margin-top: 160px;
  display: flex;
  flex-wrap: nowrap; 
}

#presentation{
  margin-top: 0px;
  display: flex;
  padding: 4 16px;  
}

#experiences{
  margin-top: 240px;
  height: 900px;
  padding: 4 16px;
}

#formations{
  margin-top: 160px;
  display: flex;
  padding: 4 16px;
}

#passions{
  max-width: 640px;
  padding: 4 16px;
}

#contacts{
  margin-top: 150px;
  max-width: 640px;
}

#footer{
  position: absolute;
  margin-inline: auto;
  padding: 12px;
  left: 10%;
  top: 4420px;
  width: 80%;
  height: 45px;
  background-color: #B7B5FF80;
  border-radius: 10px 10px 0 0;
}



/* Text style*/
.text_titre1{
  font-size: 64px;
  font-weight: 600;
}

.text_titre2{
  font-size: 48px;
}

.text_titre3{
  font-size: 24px;
  font-weight: 600;
}

.text_titre4{
  font-size: 20px;
  font-weight: 600;
}

.text_link{
  color: #3700FF;
}

.text_link:hover{
  color:#B7B5FF;
}

.text_link:active{
  color: #000000;
}

/*frame positioning*/
.frame_top{
  float: right; 
  position: relative; 
  top: 0px; 
  right: 2px;
}

.frame_bottom{
  float: left; 
  position: relative; 
  bottom: 16px; 
  left: 2px;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 2px solid #B7B5FF;
  margin: 1em 0;
  padding: 0;
}



/*Background images positioning */
.bg_1{
  position: absolute;
  overflow: hidden;
  top: -180px;
  left: -122px;
  z-index: -1;
}

.bg_2{
  position: absolute;
  top: -180px;
  right: -180px;
  left:auto;
  z-index: -1;
}

.bg_3{
  position: absolute;
  top: 2568px;
  right: -180px;
  left:auto;
  z-index: -1;
}



/*General layout */
.base_block{
  width: 580px;
  margin: 0px auto 8px;
  padding: 0px 16px 8px;
}

.experience_block{
  margin: 8px auto;
  padding: 8px 16px 8px;
}

.top_left{
  flex-basis: 50%;
}

.presentation_left{
  flex-basis: 50%; 
  max-width: 640px;
}

.presentation_right{
  flex-basis: 50%; 
  text-align: center;
}

.experience_top{
  display: flex; 
  flex-direction: row; 
  height: 100px;
}

.experience_top_mobile{
  display: none;  
  height: 100px;
}

.experience_title{
  flex-basis: 33%;
  margin-left: 40px;
}

.formation_left{
  flex-basis: 50%; 
  max-width: 640px;
}

.formation_images{
  flex-basis: 50%; 
  text-align: center;
}

.passion_display{
  display: flex; 
  flex-direction: row; 
  width: 100%;   
  justify-content: space-around;
  text-align: center;
  margin-top: 60px;
}

.passion_image{
}



/* Navigation side bar*/
.presentation_button{
  cursor: pointer;
  font-size: 24px;
  text-align: center;
  padding-inline: 16px;
  padding-block: 8px;
  margin-left: 2px;
  margin-bottom: 20px;
  width: fit-content;
  color: #1E1E1E;
  border: solid;
  border-radius: 10px;
  border-width: 2px;
  border-color: #1E1E1E;
}

.presentation_button:hover{
  color: #3700FF;
  border-color: #3700FF;
}

.presentation_button:active{
  color: #B7B5FF;
  border-color: #B7B5FF;
}

.nav_item{
  display: flex;
  flex-direction: row-reverse;
}

.nav_text{
  opacity: 0;
  margin: 32px 10px auto auto;
  padding: 4px 6px;
  background-color: white;
  box-shadow: 0px 0px 5px 10px white;
  color: #3700FF;
  transition-property: opacity;
  transition-duration: 1s;
}

.nav_image{
  cursor: pointer;
}

.nav_image:hover ~ .nav_text{
  opacity: 1;
}

.nav_item:active .nav_text{
  color: #B7B5FF;
}


/* Experience slideshow display */
.experience_bottom{
  position: relative; 
  height: 720px;
  margin-bottom: 20px;
}

.experience_slide {
  display: hidden;
}

.prev, .next {
  z-index: 2; /* Give priority over navigation text */
  text-align: center;
  width: auto;
  height: 32px;
  padding: 14px;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  flex-basis: 20px;
}

.prev {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(70, 70, 70, 0.596);
}


.prev_mobile, .next_mobile {
  display: none;
  position: absolute;
  top: 40%;
  text-align: center;
  width: auto;
  height: 32px;
  padding: 14px;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.prev_mobile {
  right: -14px;
  border-radius: 3px 0 0 3px;
}

.next_mobile{
  left: -42px;
}

.dot {
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  width: 20px;
  margin: auto;
  border-radius: 20px;
  transition: background-color 0.6s ease;
}

.dotContainer{
  border-radius:4px;
  margin: 4px;
  padding: 2px;
  
}

.dot:hover {

}

.slide_text{
  width: 380px; 
  padding: 24px 24px 24px 0px; 
  margin: 0 auto; 
  flex-basis: 33%;
}

.slide_content{
  height: 680px;
  overflow-y: auto;
}

.slide_image{
  flex-basis: 66%; 
  object-fit: none;
  height: 720px;
  width: 1080px;
  max-width: 60%;
}



.fadeIn {
  animation-name: fadeIn;
  animation-duration: 0.5s;
}

@keyframes fadeIn {
  from {opacity: 0.1; }
  to {opacity: 1;}
}


/* Mobile & tablet display */
@media only screen and (max-width: 1900px) {
  .passion_image{
    width: 300px;
    height: 300px;
  }
}

@media only screen and (max-width: 1200px) {
  #nav, .bg_1, .bg_2, .bg_3, .formation_images, .presentation_right, .pres_image, .portrait, .slide_image, .experience_top, .presentation_button{
    display:none;
  }

  body{
    font-size: 14px;
  }

  .text_titre1{
    font-size: 48px;
  }

  .text_titre2{
    font-size: 36px;
  }

  .text_titre3{
    font-size: 20px;
  }

  .passion_display{
    margin-top: 0px;
    flex-direction: column;
    height: 600px;
  }

  .passion_image{
    height: 300px;
    width: 300px;
    margin: 12px auto;
  }

  #top, #presentation, #experiences, #formations, #passions, #contacts{
    margin-top: 50px;
    margin-bottom: 0px;
    max-width: 100%;
  }

  .base_block{
    width: auto;
  }

  #passions{
    max-width: 640px;
  }

  #experiences{
    height: auto;
  }

  .experience_block{
    height: auto;
    max-height: 900px;
  }

  .experience_top_mobile, .prev_mobile, .next_mobile{
    display: block;
  }

  .experience_bottom{
    height: auto;
  }

  .slide_content{
    max-height: 300px;
  }

  .slide_text{
    flex-basis: 100%;
  }

  .experience_title{
    flex-basis: 100%;
    margin-bottom: 10px;
  }

  .formation_left, .presentation_left{
    flex-basis: 100%;
  }

  #contacts{
    margin-top: 430px;
  }

  #footer{
    position: relative;
    margin-inline: auto;
    left: auto;
    top:0px;
  }
}
