@import url('https://fonts.googleapis.com/css2? family=Audiowide&family=Josefin+Sans:wght@100&family=Rambla&display=swap');

html {
    scroll-behavior: smooth;
}
body {
    color: #283655 !important;
    background-color: #f7faff !important;
    font-family: 'rambla', sans-serif;
}
h2, h3 {
    font-family: 'Audiowide', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: -1px -1px 1px #283655;
}
li {
    list-style-type: none;
}
/* *********************** HEADER ********************** */
.navbar {
    background-color: #FAFAFA;
    opacity: 0.9;
    height: 42px;
    transition: 0.7s;
}
.navbar-nav {
    width: 80% !important;
    margin: 0 auto;
    justify-content: space-between;
}
header {
    text-align: center;
    height: 100vh;
    background: url(media/header.jpg) no-repeat fixed 50% 0px;
    background-size: cover;
}
h1 {
    padding: 90px 0 10px 0;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 4.3em;
    text-transform: uppercase;
}
#line {
    height: 1px;
    background-color: #b3aca7;
    width: 25%;
    margin: 0 auto;
}
h2 {
    padding: 20px 0 50px 0;
    font-size: 3em;
    text-transform: uppercase;
}
.presentation {
    height: 240px;
    margin-top: 20px;
}
.infos {
    border: 1px solid #b3aca7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0; 
}
.photo {
    border: 1px solid #b3aca7;
    position: relative;
}
.photo img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: auto;
    max-width: 90%;
    border-radius: 3px;
    box-shadow: 0 0 4px #111;
}
header .button a {
    padding: 20px 80px;
    border: 1px solid #b3aca7;
    width: 300px;
}
header .button:hover a {
    background: #b3aca7;
    color: #e2dedb;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

/********************** COMPETENCE ******************* */

#competence {
    padding: 80px 80px 80px 50px;
    margin: 20px 0 0 6%;
    height: 670px;
    width: 47%;
    max-width: 640px;
    background: linear-gradient(131deg, rgba(255,127,21,0.62) 0%, rgba(255,244,95,0.48) 99%);
    clip-path: polygon(0 5%, 100% 0, 89% 100%, 0 92%);
}
#competence .bar {
    padding: 10px 0 4px 0;
    letter-spacing: 0.1em;
}
/********************** FORMATION ******************* */

#formation {
    position: relative;
    top: -200px;
    float: right;
    margin-right: 5%;
    padding: 80px 0 60px 50px;
    width: 45%;
    max-width: 660px;
    background: linear-gradient(131deg, #e1f3ff 0%, #367aff 90%);
    clip-path: polygon(0 5%, 100% 9%, 100% 95%, 4% 100%);
}
#licence {
    padding-top: 20px;
}
#bts {
    padding: 50px 0 0 9%;
}
#bac {
    padding: 50px 0 0 18%;
}
#formation h4 {
    font-weight: bold;
    letter-spacing: 0.08em;
    padding-bottom: 10px;
    color: #005978;
    text-shadow: -1px -1px 1px #72b5c5;
}
.counter {
    display: flex;
    text-align: center;
}
.data {
    border: 1px solid #005978;
    width: 170px;
    margin: 0 4%;
    box-shadow: 0 0 8px #02739c;
    padding: 5px 20px
}
.counter-value {
    font-size: 2em;
}
.data-span {
    font-size: 1.8em;
}

/********************** PARCOURS ******************* */

#parcours {
    max-width: 800px;
    margin: 640px auto 180px auto;
    padding: 40px 30px 100px 30px;
    background: url(./media/parcours.jpg) no-repeat fixed 50% 50%;
    background-size: cover;
    border-radius: 8px;
    box-shadow: -1px -1px 8px #283655;
}
#parcours h3 {
    font-size: 2.5em;
    padding-bottom: 30px;
}
#parcours h4 {
    font-size: 1.6em;
    color: #ff4e50;
    margin-left: 20px;
}
#parcours h6 {
    font-size: italic;
    color: #edca21;
    margin-left: 20px;
}
#parcours p {
    line-height: 1.9em;
}
.timeline {
    border-top: 3px solid;
    border-image: linear-gradient(to right, #f9d423, #ff4e50);
    border-image-slice: 1;
    margin: 0;
    padding: 40px;
    position: relative;
}
.timeline:nth-child(1):after {
    content: '▲';
    color: #ff4e50;
    position: absolute;
    top: -10px;
    right: -10px;
    box-sizing: content-box !important;
}
.timeline:nth-child(1) {
    border-bottom: 3px solid;
    border-top: none;
    width: 80%;
}
.timeline:nth-child(2) {
    border-top: none;
}
.timeline:nth-child(odd) {
    border-right: 3px solid;
    padding-left: 0;
}
.timeline:nth-child(even) {
    border-left: 3px solid;
    padding-right: 0;
}

/* ************************* PORTFOLIO ************************* */
#portfolio {
    margin: 100px 2% 0 2%;
    padding: 40px 10px 60px 40px;
    background-color: rgba(179,172,167,0.08);
    box-shadow: 0px 0px 1px #a8a8a9;
  }
  #portfolio h3 {
    font-size: 3em;
    padding-bottom: 15px;
  }
  .projet {
    display: flex;
  }
  .projet:nth-child(2) {
    margin-left: 3%;
  }
  .projet:nth-child(3) {
    margin-left: 6%;
  }
  .cadre {
    position: relative;
    padding: 40px 20px 25px 0;
    width: 60%;
    max-width: 600px;
    border: none;
    outline: none;
    background-color: transparent;
    margin: 10px 8px;
    color: #aca49c;
    text-align: center;
  }
  .img-container {
    height: 250px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 1px 1px 10px #111;
  }
  .img-container img {
    position: relative;
    height: 100%;
    margin: 0 auto;
  }
  .img-container:hover img {
    transform: scale(1.07);
    transform-origin: 50% 50%;
    filter: contrast(110%);
    transition: 0.3s ease-in-out;
  }
  .cadre:before, .cadre:after {
    content: '';
    display: block;
    position: absolute;
    width: 20%;
    height: 20%;
    border: 1px solid;
    transition: all 0.6s ease;
    border-radius: 2px;
    z-index: -1;
  }
  .cadre:before {
    top: 15px;
    left: 0;
    border-bottom-color: transparent;
    border-right-color: transparent;
  }
  .cadre:after {
    bottom: 0px;
    right: 15px;
    border-top-color: transparent;
    border-left-color: transparent;
  }
  .cadre:hover:before, .cadre:hover:after {
    border-color: #aca49c;
    width: 100%;
    height: 100%;
  }
  .legende {
    max-width: 350px;
    padding: 50px 0 0 20px;
    opacity: 0;
    transition: 5s ease-in-out;
  }
  .projet:hover .legende {
    opacity: 1;
    transition: 2s ease;
  }
  .legende a {
    padding: 16px 10px 10px 10px;
    margin-top: 20px;
    font-size: 1.1em;
    float: right;
    border-radius: 3px;
    background: #e2dedb;
    animation: shadow-pop-br 0.3s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
  }
  .legende a:active {
    animation: shadow-push 0.3s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
  }
  @keyframes shadow-pop-br {
    0% {
      box-shadow: 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e;
      transform: translateX(0) translateY(0);
    }
    100% {
      box-shadow: 1px 1px #3e3e3e, 2px 2px #3e3e3e, 3px 3px #3e3e3e, 4px 4px #3e3e3e, 5px 5px #3e3e3e, 6px 6px #3e3e3e, 7px 7px #3e3e3e, 8px 8px #3e3e3e;
      transform: translateX(-6px) translateY(-6px);
    }
  }
  @keyframes shadow-push {
    0% {
      box-shadow: 1px 1px #3e3e3e, 2px 2px #3e3e3e, 3px 3px #3e3e3e, 4px 4px #3e3e3e, 5px 5px #3e3e3e, 6px 6px #3e3e3e, 7px 7px #3e3e3e, 8px 8px #3e3e3e;
      transform: translateX(-6px) translateY(-6px);
    }
    100% {
      box-shadow: 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e;
      transform: translateX(0) translateY(0);
    }
  }
  /* ********************* OTHER *********************** */
  #other-skills {
    margin-top: 80px;
    padding: 50px 100px 100px 100px;
    width: 100%;
    background-color: #2c7da0;
    clip-path: polygon(0 11%, 100% 0%, 100% 100%, 0 84%);
  }
  #other-skills h3 {
    transform: rotate(-3.2deg);
    font-size: 3em;
    padding-top: 30px;
    padding-bottom: 30px;
    text-shadow: -1px 1px 0px #375E97;
  }
  .cloud {
    text-align: center;
    padding: 50px 0;
    font-size: 2em;
    text-transform: uppercase;
  }
    /* ********************* LANGUAGE *********************** */
    #language {
      padding: 250px 50px 100px 50px;
      margin: -300px 0px -90px 0px;
      background-color: #61a5c2;
      clip-path: polygon(0 14%, 100% 31%, 100% 88%, 0% 93%);
    }
    #language h3 {
      transform: rotate(4.2deg);
      font-size: 3em;
      padding-top: 0px;
      padding-bottom: -100px;
      text-shadow: -1px 1px 0px #375E97;
    }
    .cloud {
      text-align: center;
      padding: 50px 0;
      font-size: 2em;
      text-transform: uppercase;
    }
  /* ******************** HOBBIES ******************** */
  #hobbies {
    margin-top: -120px;
    padding: 20px 100px 100px 100px;
    width: 100%;
    clip-path: polygon(0 9%, 100% 0%, 100% 100%, 0 90%);
    background: #a9d6e5;
  }
  #hobbies h3 {
    transform: rotate(-3.2deg);
    font-size: 3em;
    padding-top: 30px;
    padding-bottom: 80px;
    text-shadow: -1px 1px 0px #375E97;
  }
  .pictures {
    display: flex;
    justify-content: center;
  }
  .flip-box-back div {
    margin: 0 auto;
    writing-mode: vertical-lr;
    text-orientation: upright;
  }
  .flip-box-back p {
    text-transform: uppercase;
    padding: 10px;
    font-size-adjust: auto;
  }
  .flip-box-back {
    color: white;
    transform: rotateY(180deg);
  }
  .flip-box-front, .flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
  }
  .flip-box {
    overflow: hidden;
    background-color: transparent;
    width: 100%;
    max-width: 300px;
    height: 300px;
    perspective: 1000px;
  }
  .flip-box-inner {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 300px;
    transition: transform 1.2s;
    transform-style: preserve-3d;
  }
  .flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
  }
  
  /* ********************** FOOTER ************************ */
  footer {
    background: url(./media/footer.jpg) 50% 0% no-repeat fixed;
    background-size: cover;
    text-align: center;
    padding: 160px 50px 5 50px;
    margin-top: -80px;
    height: 110vh;
  }
  footer h3 {
    padding: 150px 0 60px 0;
    font-size: 2.5em;
  }
  .footer-icons {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    max-width: 60%;
  }
  .network {
    font-size: 4em;
    border: 1px solid #b3aca7;
    padding: 30px 45px;
    color: #726659;
    z-index: -1 !important;
    border-radius: 50%;
  }
  .network:hover, textarea:hover, input:hover, .form-button:hover {
    background: #b3aca7;
    color: #e2dedb;
    transition: all 0.3s ease-in-out;
  }
  .form-container {
    padding-top: 20px;
  }
  #reused_form {
    position: relative;
    margin: 50px auto;
  }
  input {
    font-size: 0.85em;
    width: 470px;
    height: 50px;
    padding: 0px 15px;
    background: transparent;
    outline: none;
    color: #726659;
    border: solid 1px #b3aca7;
    border-bottom:none;
  }
  textarea {
    width: 470px;
    height: 110px;
    max-height: 110px;
    padding: 15px;
    background: transparent;
    outline: none;
    color: #726659;
    border: solid 1px #b3aca7;
    resize: none !important;
  }
  input::placeholder, textarea::placeholder, input:focus::placeholder, textarea:focus::placeholder {
    color: #aca49c;
  }
  input:hover::placeholder, textarea:hover::placeholder, input:hover:focus::placeholder, textarea:hover:focus::placeholder {
    color: #e2dedb;
  }
  .form-button {
    background: transparent;
    border: solid 1px #b3aca7;
    padding: 20px 75px;
    margin: 14px 0 -20px 0;
  }
  .form-container h4 {
    font-size: 2em;
  }
  #error_message {
    color: red;
    border: 1px solid red;
    max-width: 400px;
    margin: 0 auto;
    padding: 15px 15px 8px 15px;
    box-shadow: 0 0 5px red;
  }
  #success_message {
    color: green;
    border: 1px solid green;
    max-width: 400px;
    margin: 150px auto;
    padding: 50px;
    box-shadow: 0 0 5px green;
  }
  .arrow {
    margin: -20 auto;
    padding-top: 15px;
    animation: arrow linear 1.5s;
    animation-iteration-count: infinite;
  }
  @keyframes arrow {
    0% {
      transform: translateY(0px);
    }
    38% {
      transform: translateY(8px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  .arrow a {
    font-size: 3em;
    border: none;
    color: #726659;
  }
  .arrow:hover i {
    transform: scale(1.6);
    transition: 0.5s ease-in-out;
    color: #726659;
  }
  footer p {
    font-size: 0.9em;
    letter-spacing: 0.3em;
  }
  /* ********************** MEDIA QUERIES *********************** */
  @media screen and (max-width: 900px) {
    .infos h5, .typed {
      font-size: 0.9em;
    }
    #competence {
      margin-left: 1%;
    }
    #formation {
      margin-right: 1%;
    }
    .network {
      font-size: 2em;
      padding: 10x 20px; 
    }
  }
  @media screen and (max-width: 770px) {
    .navbar {
      display: none !important;
    }
    .fixed-top {
      position: unset !important;
    }
    .id, .button {
      margin-top: 50px;
    }
    h1 {
      font-size: 2em;
    }
    h2 {
      font-size: 2em;
    }
    #competence {
      width: 80%;
      margin-left: 10%;
    }
    #formation {
      margin: 210px 0 0 10%;
      width: 80%;
      float: none;
      display: block;
    }
    .counter-value {
      font-size: 1em;
    }
    .data-span {
      font-size: .8em;
    }
    #parcours {
      margin-top: -50px
    }
    .legende p {
      display: none;
    }
    #other-skills h3, #hobbies h3, #language h3, footer h3 {
      font-size: 2em;
    }
    .cloud {
      font-size: 1em;
    }
    .flip-box-back p {
      padding: 10px 0px;
    }
    .network {
      font-size: 1.4em;
      padding: 14px 20px;
    }
    input, textarea {
      width: 300px;
    }
  }
  @media screen and (max-width: 520px) {
    h1 {
      padding-top: 20px;
    }
    h2 {
      font-size: 1.2em !important;
    }
    h3 {
      font-size: 1em !important;
    }
    #bts, #bac {
      padding: 50px 0 0 0;
    }
    .projet:nth-child(2), .projet:nth-child(3) {
      margin-left: 0;
    }
    .legende {
      opacity: 1;
    }
    #hobbies {
      margin-top: -30px;
      clip-path: polygon(0 7%, 100% 0%, 100% 100%, 0 90%);
    }
    #other-skills {
      clip-path: polygon(0 11%, 100% 0%, 100% 100%, 0 84%);
    }
    #language {
      clip-path: polygon(0 21%, 100% 31%, 100% 88%, 0% 93%);    }
  }
