.extern {
  position:relative;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: auto;
  background-color: #deebc7;
}


.preloader-scan {
  position: fixed;
  left: 0;
  right: 0;
  max-width: 200px;
  display: table;
  margin: 0 auto;
  height: 50%;
  text-align:left;

}

.cv a {
  flex-basis: auto;
  position: absolute;
  top: 27px;
  right: 20px;
  font-size: 70px;
  text-decoration: none;
  color: black;
  font-family: "poppins";
  font-weight: 700;
  color: #eb6b0b;
}

.nom {
  margin-left: 20px;
}

.presentation {
  overflow: hidden;
  height: 94%;
  position: relative;
}

.presentation img {
  weight: 100%;
  height: 100%;
}

.moi {
  position: absolute;
  background-color: grey;
  width: 17%;
  height: 10%;
  margin: 9% 32%;
}

.propos {
  background-color: #eb6b0b;
  width: 70%;
  height: none;
  font-size: 130px;
  color: white;
  font-family: "poppins";
  font-weight: 400;
  position: absolute;
  padding: 1%;
  margin: 40% 70%;
}

.demande {
  background-color: #eb6b0b;
  width: 95%;
  height: 50px;
  color: white;
  font-size: 25px;
  font-family: "poppins";
  font-weight: 400;
  margin: auto;
  margin-top: 50px;
  text-align: center;
}

.projet {
  background-color: #e4bbb2;
  margin: auto;
  margin-top: 50px;
  width: 95%;
  height: 80%;
  animation: anim-bug-un 2s infinite;

}

@keyframes anim-bug-un {
  0% {background: #e4bbb2; width: 5vh; font-size: 5px;}
  25% {background: #e4bbb2; width: 15vh;}
  50% {background: #e4bbb2; font-size: 50px;}
  75% {background: #e4bbb2; width: 1vh;}
  100% {background: #e4bbb2; width: 75vh; }

}

.image {
  margin: auto;
  width: 50%;
  height: 80%;
  padding-left: 2%;
  padding-right: 2%;
}

.imagev {
  margin: auto;
  width: 100%;
  height: 10px;
  padding-right: 2%;
}

.proj {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.texte {
  margin: auto;
  flex-basis: auto;
  width: 50%;
  height: 80%;
}


.titre {
  width: 90%;
  height: 10%;
  margin-top: 15%;
  font-size: 24px;
  font-family: "poppins";
  font-weight: 700;
}

.description {
  width: 90%;
  height: 70%;
  font-size: 17px;
  font-family: "poppins";
  font-weight: 400;
}

.footer {
  background-color: #eb6b0b;
  text-align: center;
  height: 50px;
  width: 60%;
  margin-top: 50px;
  color: white;
  font-size: 30px;
  font-family: "poppins";
  font-weight: 100;
  padding: 1% 0;
}

body {
  background: black;
  font-style: italic;
}

.container {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 40%;
  left: 50%;
}

.glitch {
  color: rgb(223, 191, 191);
  position: relative;
  font-size: 9vw;
  // margin: 70px 200px;
  animation: glitch 5s 5s infinite;
}

.glitch::before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  text-shadow: -5px 0 magenta;
  background: black;
  overflow: hidden;
  top: 0;
  animation: noise-1 3s linear infinite alternate-reverse, glitch 5s 5.05s infinite;
}

.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  text-shadow: -5px 0 lightgreen;
  background: black;
  overflow: hidden;
  top: 0;
  animation: noise-2 3s linear infinite alternate-reverse, glitch 5s 5s infinite;
}

@keyframes glitch {
  1%{
    transform: rotateX(10deg) skewX(90deg);
  }
  2%{
    transform: rotateX(0deg) skewX(0deg);
  }
}

@keyframes noise-1 {
  $steps: 30;
  @for $i from 1 through $steps {
    #{percentage($i*(1/$steps))} {
      $top: random(100);
      $bottom: random(101 - $top);
      clip-path: inset(#{$top}px 0 #{$bottom}px 0);
    }
  }
}

@keyframes noise-2 {
  $steps: 30;
  @for $i from 0 through $steps {
    #{percentage($i*(1/$steps))} {
      $top: random(100);
      $bottom: random(101 - $top);
      clip-path: inset(#{$top}px 0 #{$bottom}px 0);
    }
  }
}

.scanlines {
  overflow: hidden;
  mix-blend-mode: difference;
}

.scanlines::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  background: repeating-linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.05) .5%,
    transparent 1%
  );

  animation: fudge 7s ease-in-out alternate infinite;
}


@keyframes fudge {
  from {
    transform: translate(0px, 0px);
  }
  to {
    transform: translate(0px, 2%);
  }
}

.glow {
  @extend .glitch;
  text-shadow: 0 0 1000px rgb(223, 191, 191);
  color: transparent;
  position: absolute;
  top: 0;
}

.subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 100;
  font-size: .8vw;
  color: rgba(165, 141, 141, .4);
  texat-transform: uppercase;
  letter-spacing: 1em;
  text-align: center;
  position: absolute;
  left: 17%;
  animation: glitch-2 5s 5.02s infinite;
}

@keyframes glitch-2 {
  1%{
    transform: rotateX(10deg) skewX(70deg);
  }
  2%{
    transform: rotateX(0deg) skewX(0deg);
  }
}



@media (min-width: 200px) and (max-width: 600px) {

  .moi {
    width: 12px;
    height: 2px%;
    margin: 19% 9%;
  }

  .propos {
    width: 75%;
    height: auto;
    font-size: 13px;
    padding: 1%;
    margin: 65% 14%;
  }

  .demande {
    height: 10px;
    width: 90%;
    font-size: 17px;
  }

  .projet {
    margin: auto;
    margin-top: 50px;
    padding-bottom: 20px;
    width: 90%;
    height: auto;
    display: block;
  }

  .image {
    flex-basis: none;
    padding-top: 7%;
    width: 85%;
    height: 300px;
    padding-left: 0%;
    padding-right: 0%;
    padding-bottom: 4%;
  }

  .imagev {
    flex-basis: none;
    margin: auto;
    width: 85%;
    height: 450px;
    padding-right: 0%;
  }


  .texte {
    margin: auto;
    flex-basis: none;
    width: 85%;
    height: 40%;
  }
  .titre {
    width: 90%;
    height: 6%;
    margin-top: 7%;
    font-size: 20px;
  }

  .description {
    width: 90%;
    height: 40%;
    font-size: 15px;
  }

  .footer {
    font-size: 8px;
    height: auto;
  }
}
