@import url(romainarnaud-fr/css/styles.min.css);

html, body {
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  font-family: 'Nunito', sans-serif;
}

html, body, p, div, header, article, h1, h2, h3, h4, h5, h6, form {
  margin: 0;
  padding: 0;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/*
* HEADER *
*/

header {
  display: flex;
  flex-shrink: 1;
  flex-grow: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 50px;
  z-index: 10;
  transition: all 0.2s;
  background-color: #3f9fff;
  color: #fff;
}

#logo-container {
  flex-basis: 120px;
  flex-grow: 1;
  padding: 5px 20px;
  width: 120px;
  height: 50px;
}

#logo {
  width: 40px;
  height: auto;
}

.logo-path {
  fill: #fff;
}

#logo:hover .logo-path {
  fill: #1f5082;
}

#logo:hover {
  cursor: pointer;
}

header a:not(#logo-link) {
  font-size: 20px;
  line-height: 40px;
  padding: 5px;
  height: 50px;
  display: inline-block;
  text-decoration: none;
  box-sizing: border-box;
  flex-basis: 140px;
  flex-shrink: 1;
  text-align: center;
  color: inherit;
  transition: background-color 0.25s;
}

header a:not(#logo-link):hover, header a.current {
  background-color: #3079c1;
}

.header-icon {
  font-size: 2em;
  display: none;
}

/*
* AVATAR *
*/

#avatar-container {
  display: block;
  position: fixed;
  width: 320px;
  left: 0;
  top: 200px;
}

#avatar-container g {
  transition: all 0.25s;
}

#avatar-container.formation #Formation-ai {
  opacity: 1;
}

#avatar-container:not(.formation) #Formation-ai {
  opacity: 0;
}

#avatar-container.competences #Competences-ai {
  opacity: 1;
}

#avatar-container:not(.competences) #Competences-ai {
  opacity: 0;
}

#avatar-container.experiences #Experiences-ai {
  opacity: 1;
}

#avatar-container:not(.experiences) #Experiences-ai {
  opacity: 0;
}

#avatar-container.projets #Projets-ai {
  opacity: 1;
}

#avatar-container:not(.projets) #Projets-ai {
  opacity: 0;
}

/*
* TITLE *
*/

#title-container {
  position: fixed;
  width: 100vw;
  /*background-color: rgba(0,0,0,0.05);*/
  height: 60px;
  z-index: 5;
  left: 0;
  top: 50px;
  background-color: #e3e3e3;
}

#title-container h2 {
  text-align: center;
  font-size: 40px;
  line-height: 60px;
  -webkit-animation: fadein 0.5s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 0.5s; /* Firefox < 16 */
  -ms-animation: fadein 0.5s; /* Internet Explorer */
  -o-animation: fadein 0.5s; /* Opera < 12.1 */
  animation: fadein 0.5s;
}

#title-container h2:not(#about-title) {
  display: none;
}

#about-title {
  display: block;
}

/*
* MAIN *
*/

body.modal-open {
    overflow: hidden;
}

main {
  margin-top: 110px;
  width: calc(100% - 320px);
  padding: 36px;
  margin-left: 320px;
}

section {
  min-height: 100vh;
}

section:not(#about) {
  border-top: 2px solid #3f9fff;
  min-height: calc(100vh - 110px);
}

#projets {
  padding: 64px 0;
}

section h2 {
  font-size: 24px;
  padding: 16px 32px;
}

section p {
  margin: auto;
  text-align: justify;
  padding: 16px 32px;
  font-size: 20px;
}

#CV-link {
  display: block;
  font-size: 32px;
  background-color: #3f9fff;
  color: #fff;
  text-align: center;
  text-decoration: none;
  width: 80%;
  max-width: 400px;
  margin: 32px auto;
  padding: 16px;
  border-radius: 4px;
}

#CV-link:hover {
  background-color: #3079c1;
}

/*
* FORMATION *
*/

#timeline {
  border-left: 4px solid #1f5082;
  margin: auto;
  display: block;
  width: 100%;
  max-width: 600px;
}

.milestone {
  background-color: #1f5082;/*#3f9fff;*/
  color: #fff;
  padding: 16px;
  margin: 32px;
  margin-right: 0;
  width: 80%;
  max-width: 560px;
  position: relative;
  border: 8px solid #1f5082;
  border-left: 8px solid #3f9fff;
  font-size: 20px;
  padding-top: 0;
  border-radius: 0 8px 8px 0;
}

.milestone p {
  padding: 8px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 24px;
}

.milestone::after {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  display: block;
  position: absolute;
  content: " ";
  background-color: #1f5082;
  left: -50px;
  top: 32px;
  box-sizing: border-box;
}

.milestone::before {
  padding: 4px;
  border-radius: 4px;
  width: 100px;
  display: block;
  position: absolute;
  background-color: #1f5082;
  left: -160px;
  top: 8px;
  text-align: center;
  box-sizing: border-box;
  white-space: pre;
}

#dc::before {
  content: "En cours\A 2016";
}

#iut::before {
  content: "2016\A 2014"
}

#term::before {
  content: "2014\A 2012";
}

#sec::before {
  content: "2012\A 2011";
}

/*
* COMPETENCES *
*/

.skill-category p {
  font-size: 32px;
  padding: 24px;
}

.skill-container {
  display: flex;
  justify-content: left;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.skill {
  flex-basis: 10%;
  margin: 2.5%;
  flex-grow: 0;
  flex-shrink: 1;
  height: 80px;
  display: inline-block;
  position: relative;
}

.skill img {
  height: 100%;
  vertical-align: middle;
  display: block;
  margin: auto;
}

.skill-info {
  position: absolute;
  top: calc(100% + 16px);
  left: -12.5%;
  width: 125%;
  min-height: 32px;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  line-height: 28px;
  border-radius: 4px;
  padding: 4px;
  text-align: center;
  font-size: 18px;
  opacity: 0;
  transition: all 0.25s;
}

.skill:hover .skill-info {
  opacity: 1;
}

/*
* PROJETS *
*/

.projets-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-around;
}

.projet {
  flex: 0 0 320px;
  min-width: 30%;
  height: 180px;
  margin: 25px 5px;
  background-color: #3f9fff;
  box-shadow: 2px 2px 6px #666;
  position: relative;
  border-radius: 4px;
  display: block;
  background-size: cover;
  background-attachment: inherit;
  background-position: center;
}

.projet-infos {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  left: 0;
  top: 0;
  border-radius: 4px;
  line-height: 160px;
  font-size: 24px;
  padding: 10px;
  text-align: center;
  transition: all 0.25s;
  opacity: 0;
}

.projet-infos:hover {
  opacity: 1;
}

.projet-infos span {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}

#projet-midilibre {
  background-image: url(img/midi_libre_min.jpg);
}

#projet-octipas {
  background-image: url(img/octipas_min.jpg);
}

#projet-ookoodoo {
  background-image: url(img/ookoodoo_min.jpg);
}

#projet-papillon {
  background-image: url(img/papillon_min.jpg);
}

#projet-festival {
  background-image: url(img/festival_min.jpg);
}

#projet-github {
  background-image: url(img/github_min.jpg);
}

/*
* INFOS PROJETS *
*/

.infos-projet {
  width: 100vw;
  height: 100vh;
  margin: 0;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  display: none;
  overflow-y: scroll;
}

.close-button {
  width: 80px;
  height: 80px;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #3f9fff;
  color: #fff;
  border: 0 solid #000;
  font-size: 60px;
  line-height: 80px;
}

.close-button:hover {
  cursor: pointer;
  background-color: #3079c1;
}

.infos-projet h2 {
  font-size: 32px;
  text-align: center;
}

.infos-projet img {
  margin: 16px auto;
  display: block;
  height: 320px;
  width: auto;
}

.infos-projet p {
  font-size: 20px;
  width: 80%;
  max-width: 1200px;
  margin: 16px auto;
  display: block;
  padding: 24px;
}

.infos-projet b {
  color: #3079c1;
}

.infos-projet a {
  background-color: #3f9fff;
  color: #fff;
  font-size: 28px;
  display: block;
  width: auto;
  max-width: 600px;
  margin: 32px auto;
  text-align: center;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
}

.infos-projet a:hover {
  background-color: #3079c1;
}

/*
* EXPERIENCES *
*/

.experience {
  width: 80%;
  max-width: 1000px;
  display: block;
  margin: 32px auto;
  background-color: #e3e3e3;
  box-shadow: 3px 3px 6px 0 #666;
  padding: 0;
}

.experience h2 {
  background-color: #3f9fff;
  color: #fff;
  text-align: center;
  font-weight: normal;
}

.experience .content {
  padding: 20px;
}

.experience b {
  color: #3079c1;
}

.experience li {
  font-size: 20px;
  margin-left: 20px;
}

.experience .skills-list {
  margin-bottom: 0;
  padding-bottom: 0;
}

/*
* FOOTER *
*/

footer {
  background-color: #101010;
  color: #fff;
  font-size: 20px;
  text-align: center;
  width: 100%;
  padding: 24px; 0;
}

.contact-infos {
  display: flex;
  width: 100%;
  max-width: 500px;
  margin: 16px auto;
  margin-bottom: 0;
  justify-content: space-around;
}

.contact-infos a {
  font-size: 60px;
  color: #fff;
  display: block;
}

.contact-infos a:hover {
  color: #888;
  cursor: pointer;
}

/*
* ANIMATIONS *
*/

@keyframes fadein {
    0%    { opacity: 0; }
    100%  { opacity: 1; }
}
