body {
  margin: 0;
  padding: 0;
  color: rgb(255, 255, 255);
  font-family: "Oxygen", sans-serif;
  background-color: rgb(25, 25, 25);
}

section {
  width: 100%;
  height: 100vh;
}

#homepage {
  height: 100vh;
  display: flex;
  flex-direction: row;
  background-color: rgb(25, 25, 25);
  align-items: flex-start;
  position: absolute;
  z-index: 10;
}

#champ {
  margin: auto;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  width: 30vw;
  max-height: 4vh;
  border: 1px solid grey;
  border-radius: 8px;
}

#champ i {
  margin-right: 1vw;
  font-size: 1.3vw;
}

.line-1 {
  padding-left: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  font-size: 1.3vw;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carte {
  display: flex;
}

.cover {
  width: 600px;
  height: 300px;
}

a:hover {
  opacity: 0.7;
}

.anim-typewriter {
  animation: typewriter 1.5s steps(18) 1.5s 1 normal both,
    blinkTextCursor 500ms steps(44) infinite normal;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 8vw;
  }
}
@keyframes blinkTextCursor {
  from {
    border-right-color: rgba(255, 255, 255, 0.75);
  }
  to {
    border-right-color: transparent;
  }
}

#portfolio {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background-color: rgb(25, 25, 25);
}

#aboutme {
  position: fixed;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 100vh;
  width: 50vw;
}

.social {
  margin-left: 5vw;
  margin-bottom: 3vw;
}

#box-projets {
  position: absolute;
  right: 5vw;
  top: 5vh;
  width: 50vw;
  height: 90vh;
  overflow-y: auto;
  padding-right: 2vw;
}

#arnaque {
  width: 2vw;
  height: 100vh;
  z-index: 3;
  background-color: rgb(25, 25, 25);
  position: absolute;
  right: 5vw;
}

#projets {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

#infos {
  width: 70%;
  margin-left: 5vw;
}

.subtitle {
  color: #078bbb;
  font-size: 2vw;
}

h1 {
  font-size: 3vw;
  font-weight: 700;
}

#infos p {
  font-size: 1.3vw;
  font-weight: 300;
  margin: 2.5vh 0 ! important;
  color: #888;
  line-height: 2vw;
  margin: 1em;
}

.mail {
  color: white;
}

.news-card {
  border: 0px solid aqua;
  margin: 1rem 0;
  width: 70%;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  min-width: 290px;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0)
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 80%);
  z-index: 0;
}

.news-card__card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /*     background: rgba(255,0,0,.5); */
}

.news-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  z-index: -1;
}

.news-card__text-wrapper {
  position: absolute;
  bottom: 0rem;
  padding: 1rem;
  color: white;
  /*     background-color: rgba(0, 0, 0, 0.4); */
  transition: background-color 1.5s ease;
}

.news-card__title {
  transition: color 1s ease;
  margin-bottom: 0.5rem;
}

.news-card__post-date {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.news-card__details-wrapper {
  max-height: 0;
  opacity: 0;
  transition: max-height 1.5s ease, opacity 1s ease;
}

@media (min-width: 900px) {
  .news-card:hover .news-card__details-wrapper {
    max-height: 20rem;
    opacity: 1;
  }
  .news-card:hover .news-card__text-wrapper {
    background-color: rgba(0, 0, 0, 0.6);
  }
  /* .news-card:hover .news-card__title {
        color: yellow;
      } */
  .news-card:hover .news-card__image {
    transform: scale(1.2);
    z-index: -1;
  }
}

.news-card__excerpt {
  font-weight: 300;
}

.news-card__read-more {
  background: black;
  color: #bbb;
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.3rem;
  margin-top: 1rem;
  border: 1px solid #444;
  font-size: 0.8rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-decoration: none;
  width: 8.5rem;
  margin-left: auto;
  position: relative;
  z-index: 5;
}

.news-card__read-more i {
  position: relative;
  left: 0.2rem;
  color: #888;
  transition: left 0.5s ease, color 0.6s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.news-card__read-more:hover i {
  left: 0.5rem;
}

.social-icons {
  padding: 0;
  list-style: none;
  display: flex;
  height: 100%;
}

.social-icons div {
  display: inline-flex;
  align-items: center;
  background-color: rgb(25,25,25);
  width: 25%;
  transition: all  0.5s ease-in;
}

.social-icons div:nth-child(2) {
  transform: translateX(calc(-100% + 60px + 1vw));
}

.social-icons div:nth-child(3) {
  transform: translateX(calc(-200% + 120px + 2vw));
}

.social-icons:hover #gh, .social-icons:hover #in, .social-icons:hover #filler{
  transform: translateX(0);
}

#filler {
  height: 100%;
  transform: translateX(calc(-300% + 180px + 3vw));
}

.social-icons li {
  display: inline-block;
  margin-right: 1vw;
  position: relative;
  font-size: 1.2em;
}

.social-icons p {
  margin-right: 1vw;
}

.social-icons i {
  color: #fff;
  position: absolute;
  top: 21px;
  left: 21px;
  transition: all 265ms ease-out;
}
.social-icons a {
  display: inline-block;
}
.social-icons a:before {
  transform: scale(1);
  -ms-transform: scale(1);
  -webkit-transform: scale(1);
  content: " ";
  width: 60px;
  height: 60px;
  border-radius: 100%;
  display: block;
  background: linear-gradient(45deg, #00b5f5, #002a8f);
  transition: all 265ms ease-out;
}
.social-icons a:hover:before {
  transform: scale(0);
  transition: all 265ms ease-in;
}
.social-icons a:hover i {
  transform: scale(2.2);
  -ms-transform: scale(2.2);
  -webkit-transform: scale(2.2);
  color: #00b5f5;
  background: -webkit-linear-gradient(45deg, #00b5f5, #002a8f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 265ms ease-in;
}

@media only screen and (max-width: 700px) {

  #infos {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px 0 0 0;
  }

  #infos p {
    text-align: center;
    font-size: 2vw;
    margin: 1.5vh 0 ! important;
  }

  #aboutme {
    width: 100vw;
    max-height: 100vh;
    position: initial;
    align-items: center;
  }

  #box-projets{
    width: 90vw;
    position: initial;
    overflow-y: visible;
    padding: 0;
  }

  #portfolio {
    flex-direction: column;
    align-items: center;
  }

  #arnaque {
    display: none;
  }

  .news-card {
    width: 100%;
  }

  .social {
    display: flex;
    margin: 0;
  }

  h1 {
    font-size: 4vw;
  }

  .subtitle {
    font-size: 3vw;
  }

  ul div p {
    display: none;
  }

  #filler {
    display: none;
  }

  .social-icons a:before {
    width: 8vw;
    height: 8vw;
  }

  .social-icons i {
    font-size: 3.4vw;
    top: 2.5vw;
    left: 2.5vw;
  }

}