/******************** all ********************/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;500&display=swap');

* {
  margin: 0px;
  padding: 0px;
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  text-align: center;
}

/*  Hide scrollbar  */
html {
  -ms-overflow-style: none; /* for Internet Explorer, Edge */
  scrollbar-width: none; /* for Firefox */
  overflow-y: scroll;
}

html::-webkit-scrollbar {
  display: none; /* for Chrome, Safari, and Opera */
}
/*  Hide scrollbar  */

/******************** nav bar ********************/

.nav-bar-height {
  padding-top: 55px;
}

#nav-bar {
  position: fixed;
  width: 100vw;
  background-color: #1a1a1af1;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  height: 55px;
  font-size: 24px;
  z-index: 100;
}

#nav-bar .contenu {
  max-width: 1500px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex: 1;
}

#nav-bar .nav-cont {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#nav-bar .nav-cont-border {
  margin: auto 15px;
}

#fold-menu {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  background: transparent;
}

#nav-bar .fold-part {
  margin-left: 30px;
  font-size: 24px;
  font-weight: 300;
}

#nav-bar .on-this-page {
  font-weight: 500;
}

#nav-bar .clickable {
  text-decoration: none;
  color: white;
}

#nav-bar .clickable:hover {
  transition: 200ms;
  transform: scale(1.03);
}

#burger {
  display: none;
  background-color: transparent;
  border-color: transparent;
}

#nav-bar .show-fold-menu {
  height: 0px;
}

#nav-bar .hide-fold-menu {
  height: 0px;
}

#burger .middle {
  margin: 5px 0px;
}

#burger span {
  display: block;
  width: 35px;
  height: 4px;

  background-color: white;
  border-radius: 3px;

  transition: transform 0.25s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.25s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.3s ease;
}


#nav-bar .span-child-1 {
  transform: translate(0px, 9px) rotate(45deg);
}

#nav-bar .span-child-2 {
  opacity: 0;
  transform: scale(0.2, 0.2);
}

#nav-bar .span-child-3 {
  transform: translate(0px, -9px) rotate(-45deg);
}

@media only screen and (max-width: 800px) {
  .nav-bar-height {
    padding-top: 50px;
  }

  #nav-bar .contenu {
    height: 50px;
    flex-wrap: wrap;
    font-size: 24px;
  }

  #fold-menu {
    flex-basis: 100%;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    margin: 0px;
    overflow: hidden;
    transition: height 0.25s;
    background: linear-gradient(180deg, rgba(26,26,26,0.95) 0%, rgba(40,40,40,0.95) 100%);
  }

  #nav-bar .nav-cont-border {
    margin: auto 0px;
  }

  #nav-bar .nav-cont {
    margin: auto 15px;
  }

  #nav-bar .fold-part {
    margin: 7px 11px;
    font-size: 24px;
  }

  #burger {
    display: initial;
  }

  #nav-bar .show-fold-menu {
    height: 178.4px;
  }
}

/******************** home ********************/

#home { 
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle, #1d2c3d 0%, #090a0f 100%);
  overflow: hidden;
  display: flex;
  justify-content: center;
}

#home .contenu {
  flex: 1;
  color: white;
  padding: 55px 0px;
  max-width: 1500px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

#home .tab {
  background-color: #202020;
  display: inline-block;
  min-width: 350px;
  max-width: 450px;
  min-height: 380px;
  border-radius: 12px;
  box-shadow: 0px 0px 10px #151515;
  transition: all .2s ease-in-out;
  margin: 15px;
}

#home .picture-right {
  position: absolute;
  margin: 10px;
  text-align: left;
  color: #50505093;
}

#home .picture {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 11px;
}

#home .pict1 {
  object-position: 70% 0%;
}

#home .pict2 {
  object-position: 50% 0%;
}

#home .pict3 {
  object-position: 50% 0%;
}

#home .text {
  font-size: 20px;
  text-align: justify;
  margin: 15px 20px;
}

@media only screen and (max-width: 800px) {
  #home .contenu {
    padding: 50px 0 0px 0;
    flex-direction: column;
    justify-content: flex-start;
  }

  #home .tab {
    min-width: 300px;
    max-width: 400px;
    margin: 25px;
  }
}

@media only screen and (min-width: 800px) {
  #home .tab:hover {
    transform: scale(1.01, 1.01);
  }
}

/******************** projects ********************/

#projects { 
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle, #1d2c3d 0%, #090a0f 100%);
  overflow: hidden;
  display: flex;
}

#projects .contenu {
  flex: 1;
  color: white;
  padding: 55px 8% 0px 8%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

#projects .short {
  background-color: #202020;
  position: relative;
  min-width: 450px;
  max-width: 600px;
  height: 280px;
  margin: 15px;
  border-radius: 12px;
  box-shadow: 0px 0px 10px #151515;
}

#projects .picture-right {
  z-index: 55;
  position: absolute;
  margin: 10px;
  text-align: left;
  color: #50505093;
  transition: all .4s ease-in-out;
  opacity: 1;
}

#projects .short:hover .picture-right {
  opacity: 0;
}

#projects .white {
  color: #b6b6b693;
}

#projects .short-top-image {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 280px;
  border-radius: 11px;
  transition: all .4s ease-in-out;
  z-index: 50;
}

#projects .short:hover .short-top-image {
  height: 0px;
}

#projects .short-title {
  font-weight: 500;
  font-size: 52px;
  position: absolute;
  top: 116px;
  left: 0;
  width: 100%;
  z-index: 55;
  transition: all .4s ease-in-out;
  text-shadow: 0px 0px 20px #000000;
}

#projects .short:hover .short-title {
  font-weight: 300;
  top: 10px;
  font-size: 40px;
}

#projects .short-resume {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#projects .short-resume-space {
  flex: 1;
}

#projects .short-resume-text {
  flex: 0;
  margin: 3px 50px;
}

#projects .short-see-more-cont {
  flex: 1;
}

#projects .short-see-more {
  position: absolute;
  width: 100px;
  height: 38px;
  top: 232px;
  left: 50%;
  margin-left: -50px;
  background-color: #505050;
  color: #cccccc;
  transition: all .2s ease-in-out;
  border-radius: 19px;
  display: table;
  box-shadow: 0px 0px 15px #151515;
}

#projects .short-see-more:hover {
  background-color: #cccccc;
  color: #505050;
}

#projects .short-see-more p {
  vertical-align: middle;
  display: table-cell;
  font-weight: 500;
}

#projects .clickable {
  text-decoration: none;
}

@media only screen and (max-width: 800px) {
  #projects .contenu {
    padding: 50px 0 0px 0;
    flex-direction: column;
    justify-content: flex-start;
  }

  #projects .short {
    min-width: 300px;
    max-width: 400px;
    height: 430px;
    margin: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  #projects .short:first-child {
    align-items: flex-start;
  }

  #projects .short:hover .picture-right {
    opacity: 1;
  }

  #projects .short-top-image {
    position: static;
    height: 180px;
  }

  #projects .short:hover .short-top-image {
    height: 180px;
  }

  #projects .short-title {
    top: 66px;
    font-weight: 500;
    font-size: 40px;
  }
  
  #projects .short:hover .short-title {
    top: 66px;
    font-weight: 500;
    font-size: 40px;
  }

  #projects .short-resume {
    position: static;
    flex-grow: 1;
  }

  #projects .short-resume-text {
    margin: 3px 15px;
  }

  #projects .short-see-more {
    width: 100px;
    height: 38px;
    top: 0px;
    left: 0px;
    margin-left: 0px;
    position: static;
    margin-bottom: 14px;
  }
}

/******************** contact ********************/

#contact {
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle, #1d2c3d 0%, #090a0f 100%);
  overflow: hidden;
}

#contact .contenu {
  color: white;
  padding: 55px 8% 55px 8%;
}

#contact .title {
  font-weight: 500;
  font-size: 35px;
  padding: 30px 0px;
  text-align: center;
}

#contact .subtitle {
  font-weight: 500;
  font-size: 25px;
  padding: 30px 0px;
  text-align: left;
}

#contact .content {
  padding: 10px 50px;
  text-align: left;
}

#contact .clickable {
  text-decoration: none;
  color: white;
  text-decoration: underline;
  text-decoration-color: transparent;
}

#contact .clickable:hover {
  transition: 200ms;
  text-decoration-color: white;
}

@media only screen and (max-width: 800px) {
  #contact .contenu {
    padding: 55px 4% 55px 4%;
  }

  #contact .title {
    font-size: 28px;
    padding: 25px 0px;
  }

  #contact .subtitle {
    font-size: 20px;
    padding: 25px 0px;
  }

  #contact .content {
    padding: 10px 22px;
  }
}

/******************** mentions legales ********************/

#ml { 
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle, #1d2c3d 0%, #090a0f 100%);
  overflow: hidden;
}

#ml .contenu {
  color: white;
  padding: 55px 8% 55px 8%;
}

#ml .title {
  font-weight: 500;
  font-size: 35px;
  padding: 30px 0px;
  text-align: center;
}

#ml .subtitle {
  font-weight: 500;
  font-size: 25px;
  padding: 30px 0px;
  text-align: left;
}

#ml .content {
  padding: 10px 50px;
  text-align: left;
}

@media only screen and (max-width: 800px) {
  #ml .contenu {
    padding: 55px 4% 55px 4%;
  }

  #ml .title {
    font-size: 28px;
    padding: 25px 0px;
  }

  #ml .subtitle {
    font-size: 20px;
    padding: 25px 0px;
  }

  #ml .content {
    padding: 10px 22px;
  }
}

/******************** footer ********************/

#footer {
  background-color: #181818;
  padding: 15px 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  text-decoration: none;
  width: auto;
  color: #cccccc;
}

#footer #ft-array {
  display: flex;
}

#footer .ft-cell {
  display: flex;
  justify-content: center;
  width: 150px;
}

#footer .clickable {
  text-decoration: none;
  color: white;
  text-decoration: underline;
  text-decoration-color: transparent;
}

#footer .clickable:hover {
  transition: 200ms;
  text-decoration-color: white;
}

#footer .ft-line {
  display: block;
  background-color: #cccccc;
  width: 140px;
  height: 1px;
  margin: 12px 0px;
}

#footer .ft-info {
  margin-top: 5px;
  font-size: 12px;
}

@media only screen and (max-width: 800px) {
  #footer {
    font-size: 13px;
  }

  #footer .ft-cell {
    width: 100px;
  }

  #footer .ft-line {
    width: 100px;
    margin: 8px 0px;
  }

  #footer .ft-info {
    margin-top: 7px;
    font-size: 9px;
  }
}