

/* Importation de la police. */
@font-face {
  font-family: AvenirNext;
  src: url(fonts/avenirnext.otf);
}

body {
  margin: 0;
  scroll-behavior: smooth;
}

/* Barre de navigation présente en haut de toutes les pages. */
nav a {
  text-decoration: none;
}

nav {
  font-family: "AvenirNext";
  width: 100%;
  float: left;
  margin: 0 0 1em 0;
  padding: 0;
  font-size: 1rem;
  position: fixed;
  top: 0;
  box-shadow: 0px 3px 10px rgb(100, 100, 100, .5);
  z-index: 1;
}

nav ul {
  background: #15499b;
  padding-left: 0;
  display: table;
  margin: 0 auto;
  width: 100%;
}

nav li {
  color: #ffffff;
  background: #15499b;
  display: inline-block;
  float: right;
  padding: 1rem;
  position: relative;
  text-decoration: none;
  transition-duration: 0.5s;
}

/* Responsive de la barre de navigation */

/* Fin du responsive de barre de navigation */

/* Pour laisser de l'espace à droite après le "Stage" pour que ses éléments qui s'affichent on hover soient lisibles. Sinon il n'y avait pas assez de place pour les afficher.*/
nav>ul>li:nth-child(2) {
  padding-right: 3rem;
}

/* Pour que le "Romain Torres" se mette à gauche et qu'il soit le seul à gauche.*/
nav>ul>li:first-child {
  float: left;
}

nav li a {
  color: #ffffff;
}

nav li:hover {
  background: #0c387c;
  cursor: pointer;
}

nav ul li ul {
  background: #15499b;
  visibility: hidden;
  opacity: 0;
  min-width: 6rem;
  max-width: 7.5rem;
  position: absolute;
  transition: all .5s ease;
  margin-top: 1rem;
  left: 32;
  display: none;
  box-shadow: -3px 3px 10px rgb(100, 100, 100, .5);
}

nav ul li:hover>ul,
ul li:focus-within>ul,
ul li ul:hover {
  visibility: visible;
  opacity: 1;
  display: block;
}

nav ul li ul li {
  clear: both;
  width: 100%;
}

/* FIN DU CSS POUR LA BARRE DE NAVIGATION */
/* Nom sur l'accueil du site et première page */
.name {
  width: 50%;
  margin: auto;
  text-align: center;
  font-family: "AvenirNext";
  color: #15499b;
  /*border-radius: 40px;
  box-shadow: 5px 5px 15px grey;*/
  text-shadow: 3px 3px 5px rgb(150, 150, 150, 0.25);
}

#rt {
  font-size: 100px;
  padding-top: 20%;
}

#yo {
  font-size: 50px;
  margin-top: -100px;
  padding-bottom: 30%;
  color: #7C5094;
}

/* Responsive pour phones du nom et de la première page */
@media only screen and (max-width: 600px) {
  .name {
    width: 90%;
    margin: auto;
    text-align: center;
    text-shadow: 1px 1px 5px 2px rgb(150, 150, 150, 0.25);
  }

  #rt {
    font-size: 50px;
    padding-top: 50%;
  }

  #yo {
    font-size: 30px;
    margin-top: -30px;
    padding-bottom: 50%;
  }
}
/* Fin du responsive du nom et de la première page */

/* FIN DE LA PREMIÈRE PAGE */
/* Diposition globale des différentes parties du one-page qui s'applique à chaque partie. */
.page0, .page1, .page2, .page3, .page4 {
  min-height: 80%;
  max-height: 200%;
}

.page1, .page2, .page3, .page4 {
  display: inline-block;
}

.page0 {
  padding-top: 1%;
  display: block;
  height: 100%;
}

.page1, .page3 {
  background-color: #f8f8f8;
}

.page-title {
  font-size: 75px;
  font-family: "AvenirNext";
  text-align: center;
}

#socialmedia, #projects, #stage {
  font-size: 2rem;
  text-align: center;
  width: 75%;
  margin: auto;
  font-family: 'Quicksand Light', sans-serif;
}

/* Responsive de la disposition globale */
@media only screen and (max-width: 600px) {
  .page0, .page1, .page2, .page3, .page4 {
    min-height: 80%;
    max-height: 500%;
  }
  .page0 {
    height: 90%;
  }
  .page-title {
    font-size: 2.5rem;
    font-family: "AvenirNext";
    text-align: center;
  }
  #socialmedia, #projects, #stage {
    font-size: 1.25rem;
    text-align: center;
    width: 90%;
    margin: auto;
    font-family: 'Quicksand Light', sans-serif;
  }
}

/* Fin du responsive de la disposition globale */

/* FIN DE LA DISPOSITION GLOBALE */
/* Deuxième partie du one-page et son contenu */
#pp {
  max-width: 25%;
  height: auto;
  float: left;
  margin-left: 5%;
  border-radius: 50%;
  box-shadow: 3px 3px 10px 2px rgb(150, 150, 150, 0.75);
  z-index: 0;
  transition-duration: 0.25s;
  transition-timing-function: ease-in;
}

#pp:hover {
  box-shadow: 5px 5px 10px 2px rgb(150, 150, 150, 1);
  transition-duration: 0.5s;
  transition-timing-function: ease-out;
}

#about {
  font-size: 2rem;
  text-align: center;
  width: 60%;
  margin: auto;
  float: right;
  padding: 0% 5% 5% 5%;
  display: inline-block;
  font-family: 'Quicksand Light', sans-serif;
  vertical-align: middle;
}

/* Responsive de la deuxième partie */
@media only screen and (max-width: 600px) {
  #pp {
    max-width: 50%;
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    box-shadow: 3px 3px 10px 2px rgb(150, 150, 150, 0.75);
    z-index: 0;
  }

  #about {
    font-size: 1.25rem;
    width: 80%;
    margin: auto;
    padding: 0% 5% 5% 5%;
    font-family: 'Quicksand Light', sans-serif;
  }
}
/* Fin du responsive de la deuxième partie */

/* FIN DE LA DEUXIÈME PARTIE */
/* Troisième partie du one-page et son contenu */
.socialmedia {
  position: static;
  border: none;
  border-radius: 10px;
  width: 20%;
  max-width: 20%;
  height: 27%;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 3%;
  margin-top: 2%;
  text-align: center;
  font-family: 'Quicksand Light', sans-serif;
  padding: 1%;
  padding-bottom: 2%;
  transition-duration: 0.25s;
  transition-timing-function: ease-in;
  display: inline-block;
  font-size: 1.25rem;
}

.socialmedia:hover {
  box-shadow: 0px 5px 10px 3px rgb(150, 150, 150, 0.25);
  transition-duration: 0.5s;
  transition-timing-function: ease-out;
}

.socialmedia a {
  text-decoration: none;
  display:block;
}

.socialmedia a:link, .socialmedia a:visited {
  color: #000000;
}

.socialmedia a:hover, .socialmedia a:active {
  color: #666666;
}

.socialmedia-icon {
  width: 25%;
  height: auto;
  visibility: visible;
  margin: auto;
  margin-bottom: 5%;
  display: block;
  transition-duration: 0.25s;
  transition-timing-function: ease-in;
  border-radius: 1000px;
}

.socialmedia:hover .socialmedia-icon {
  box-shadow: 0px 5px 10px 0px rgb(150, 150, 150, 0.5);
  transition-delay: 0.25s;
  transition-duration: 0.5s;
  transition-timing-function: ease-out;
}

.socialmedia-title {
  font-family: "AvenirNext";
  font-size: 1.5rem;
}

/* Responsive de la troisième partie */

@media only screen and (max-width: 600px) {
  .socialmedia {
    position: static;
    width: 80%;
    max-width: 80%;
    height: auto;
    margin: 8%;
    box-shadow: 0px 5px 10px 0px rgb(150, 150, 150, 0.5);
    padding: 3%;
  }
}

/* Fin du responsive de la troisième partie */

/* FIN DE LA TROISIÈME PARTIE */
/* Quatrième partie du one-page et son contenu */

#projects-button {
  padding: 3%;
  border: 0px solid black;
  border-radius: 1000px;
  text-decoration: none;
  color: white;
  transition-duration: 0.25s;
  transition-timing-function: ease-in;
  display: inline-block;
  font-weight: bold;
  background-color: #85FFBD;
  background-image: linear-gradient(45deg, #E8EA60 0%, #34C18D 100%);
}

#projects-button:hover {
    box-shadow: 5px 5px 10px 2px rgb(150, 150, 150, 0.5);
    transition-duration: 0.25s;
    transition-timing-function: ease-out;
}

#projects-button:active {
  box-shadow: 2px 2px 10px 0px rgb(150, 150, 150, 0.5);
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
}

/* Responsive de la quatrième partie */

@media only screen and (max-width: 600px) {
  #projects-button {
    padding: 8%;
  }
}
/* Fin du responsive de la quatrième partie */

/* FIN DE LA QUATRIÈME PARTIE */
/* Cinquième partie du one-page et son contenu */
#cv-button, #portfolio-button {
  margin: 0% 5% 5% 5%;
  padding: 3%;
  border: 0px solid black;
  border-radius: 1000px;
  text-decoration: none;
  color: white;
  transition-duration: 0.25s;
  transition-timing-function: ease-in;
  display: inline-block;
  font-weight: bold;
}

#cv-button:hover, #portfolio-button:hover {
  box-shadow: 5px 5px 10px 2px rgb(150, 150, 150, 0.5);
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
}

#cv-button:active, #portfolio-button:active {
  box-shadow: 2px 2px 10px 0px rgb(150, 150, 150, 0.5);
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
}

#cv-button {
  background-color: #21D4FD;
  background-image: linear-gradient(45deg, #21D4FD 0%, #B721FF 100%);
}

#portfolio-button {
  background-color: #FEE140;
  background-image: linear-gradient(45deg, #FEE140 0%, #FA709A 100%);
}

/* Responsive de la cinquième partie */

@media only screen and (max-width: 600px) {
  #cv-button, #portfolio-button {
    padding: 8%;
  }
}
/* Fin du responsive de la cinquième partie */
