@import url(./reset.css);
@import url(./../fonts/Jost/Jost.css);
@import url(./../fonts/HelveticaNeue/HelveticaNeue.css);
@keyframes fill-stroke-svg {
  0% {
    fill: var(--transparent);
    stroke: var(--main-white);
    stroke-dashoffset: 200;
  }
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    fill: var(--main-white);
  }
}
@keyframes spin {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* MAIN VARIABLE */

:root {
  --transparent: #ffffff00;
  --white: #ffffff;
  --black: #000000;
  --main-grey: #1b1b1b;
  --main-black: #101010;
  --main-white: #f3fcf0;
  --main-orange: #fd6b0b;
  --secondary-grey: #524f4d;
  --jost: "Jost";
  --helveticaNeue: "HelveticaNeuePro";
  --duration-transition: 0.3s;
  --duration-load: 0.8s;
  font-size: 16px;
}

html {
  font-family: var(--helveticaNeue), -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  letter-spacing: 0.5px;
  line-height: 1.15;
  touch-action: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  height: 100vh;
  width: 100vw;
  background-color: var(--main-orange);
}

/* Global */
.clickable {
  cursor: pointer;
}
.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.fade {
  opacity: 0 !important;
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}
.none {
  display: none !important;
}
.call {
  color: var(--main-orange);
}

/* LOADER */
.loader {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: var(--main-grey);
  z-index: 999;
  -webkit-transition: all var(--duration-load) ease-in-out;
  -moz-transition: all var(--duration-load) ease-in-out;
  transition: all var(--duration-load) ease-in-out;
}
.loader__circle {
  height: 130px;
  width: 130px;
  border-radius: 100%;
  border: 3px solid var(--main-orange);
  border-top: 2px solid var(--secondary-grey);
  animation: spin 2s linear infinite;
}
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.logo__path {
  width: auto;
  height: 100%;
  stroke-width: 1px;
  color: var(--main-white);
  stroke: var(--transparent);
  stroke-dasharray: 80;
  animation: 3s fill-stroke-svg ease;
}

/* HEADER */
.overlay {
  position: relative;
  display: flex;
  z-index: 850;
  width: fit-content;
  color: var(--main-orange);
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}

.overlay:not(.overlay--open).up {
  transform: translateY(-150%);
}
.logotype {
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem;
  font-family: var(--jost);
}
.logotype .titre {
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  white-space: nowrap;
}
.logotype .circle {
  position: relative;
  top: 0;
  left: 0;
  height: 6rem;
  width: 6rem;
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}
.circle__back {
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
  clip-path: circle();
  background-color: var(--main-orange);
  position: absolute;
  height: 0;
  width: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.overlay:not(.overlay--open) .logotype:hover .circle__logo {
  color: var(--main-white);
}
.overlay:not(.overlay--open) .logotype:hover .circle .circle__back {
  height: 100%;
  width: 100%;
}
.overlay--open .logotype:hover {
  color: var(--main-white);
}
.about__back {
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
  background-color: var(--main-grey);
  clip-path: ellipse(0% 0% at 0% 0%);
  position: absolute;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}
.overlay--open .about__back {
  -webkit-transition: all var(--duration-load) ease-in-out;
  -moz-transition: all var(--duration-load) ease-in-out;
  transition: all var(--duration-load) ease-in-out;
}

.overlay .about {
  width: 100vw;
  height: calc(100vh - 7.5rem);
  margin-top: 7.5rem;
  clip-path: ellipse(0% 0% at 0% 0%);
  color: var(--main-white);
  overflow-y: scroll;
  -webkit-transition: all var(--duration-load) ease-in-out;
  -moz-transition: all var(--duration-load) ease-in-out;
  transition: all var(--duration-load) ease-in-out;
  position: absolute;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.overlay--open .about {
  clip-path: ellipse(200% 200% at 0% 0%);
}
.overlay--open .about__back {
  clip-path: ellipse(100vw 100vw at 50% 50%);
}
.overlay--open .logotype {
  color: var(--main-grey);
}

.overlay--open .logotype .circle .circle__back {
  height: 1000%;
  width: 1000%;
  -webkit-transition: all var(--duration-load) ease-in-out;
  -moz-transition: all var(--duration-load) ease-in-out;
  transition: all var(--duration-load) ease-in-out;
}

.about .titre {
  font-size: 1.75rem;
  font-style: italic;
  font-weight: bold;
}
.about .sous-titre {
  font-size: 1.5rem;

  text-decoration: underline;
  font-variant: small-caps;
}
.about a {
  color: var(--main-orange);
}
.description a:hover {
  filter: brightness(80%);
}
.description {
  display: flex;
  gap: 2rem;
}
.description img {
  width: 20rem;
  border-radius: 6px;
}
.description__texte {
  display: flex;
  height: 100%;
  gap: 1rem;
  justify-content: space-between;
  flex-direction: column;
  background-color: #101010cc;
  border-radius: 6px;
  padding: 1rem;
}
.passion {
  background-color: #101010cc;
  border-radius: 6px;
  padding: 1rem;
}
.passion__texte {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}
.contact {
  background-color: #101010cc;
  border-radius: 6px;
  padding: 1rem;
}
.contact .titre {
  margin-bottom: 1rem;
}
.contact__liste {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.contact__liste a {
  color: var(--main-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}
.contact .icon {
  height: 3rem;
  width: 3rem;
}
.contact__liste a:hover {
  color: var(--main-orange);
}
/* MAIN */
.part {
  overflow-y: scroll;
  position: absolute;
  z-index: 700;
  height: 100vh;
  width: 100vw;
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
  top: 0;
  left: 0;
}
.dev {
  clip-path: polygon(0px 0px, 100% 0px, 100% 0%, 0% 100%);
  background-color: var(--main-grey);
  color: var(--main-white);
}
.dsg {
  background-color: var(--main-white);
  color: var(--main-grey);
  clip-path: polygon(0% 100%, 100% 30%, 100% 100%, 0% 100%);
}
.dev:not(.part--open):hover {
  clip-path: polygon(0px 0px, 100% 0px, 100% 25%, 0% 100%);
}
.dsg:not(.part--open):hover {
  clip-path: polygon(0% 100%, 100% 5%, 100% 100%, 0% 100%);
}
/* .dev:not(.part--open):hover .titre {
  transform: translate(-50%, -10%);
}
.dsg:not(.part--open):hover .titre {
  transform: translate(-50%, -90%);
} */
.part:not(.part--open):hover .titre .call {
  text-shadow: 16px 22px 15px var(--main-orange);
  letter-spacing: 3px;
  font-size: 2.7rem;
}
.part--open .titre:hover .call {
  color: var(--secondary-grey);
}

.part > .titre {
  font-weight: 600;
  text-align: center;
  font-size: 2.5rem;
  position: absolute;
  font-family: var(--jost);
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}
.part > .titre .call {
  white-space: nowrap;
  text-transform: uppercase;
  font-style: italic;
  font-family: var(--helveticaNeue);
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}
.dev > .titre {
  top: 35%;
  left: 25%;
  transform: translate(-50%, -50%);
}
.dsg > .titre {
  top: 65%;
  left: 75%;
  transform: translate(-50%, -50%);
}
.arrow {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
  bottom: -5px;
  left: -10px;
  transition: 0.4s ease;
  margin-top: 2px;
  text-align: left;
  transform: rotate(45deg);
}
.arrow:before,
.arrow:after {
  position: absolute;
  content: "";
  display: inline-block;
  width: 13.5px;
  height: 3.38333px;
  transition: 0.4s ease;

  background-color: var(--main-orange);
}
.arrow:after {
  position: absolute;
  transform: rotate(90deg);
  top: -5px;
  left: 5px;
}
.dsg .arrow {
  transform: rotate(45deg) translate(-5px, -5px);
}
.dsg .arrow:before,
.dsg .arrow:after {
  transform: translate(10px, 0);
}
.dsg .arrow:after {
  transform: rotate(90deg) translate(10px, 0);
}
.part .content {
  padding: 4rem;
  padding-top: 16rem;
  opacity: 0;
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}
.part .content > div {
  margin-bottom: 7rem;
}

.part .content p {
  padding-top: 1rem;
  font-size: 1.5rem;
}
.part .content .titre {
  font-style: italic;
  font-weight: bold;
  color: var(--main-orange);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.part--open {
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 0% 100%);
  z-index: 750;
}
.part--open .content {
  opacity: 1;
}

.part--open > .titre {
  top: 11rem;
  left: 50%;
}
.part--open > .titre .arrow:before,
.part--open > .titre .arrow:after {
  background-color: var(--main-white);
  transform: translate(10px, 0);
}
.part--open > .titre .arrow:after {
  transform: rotate(90deg) translate(10px, 0);
}
.dsg.part--open > .titre .arrow {
  transform: rotate(45deg);
}
.dsg.part--open > .titre .arrow:before,
.dsg.part--open > .titre .arrow:after {
  transform: translate(0, 0);
  background-color: var(--main-grey);
}
.dsg.part--open > .titre .arrow:after {
  transform: rotate(90deg);
}

/* Skills */
.skill {
  margin-bottom: 6rem;
}
.skill .bar {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1rem;
}
.skill .icon {
  height: 4rem;
  fill: var(--main-orange);
}
.skill .cursor-container {
  width: 100%;
  background-color: var(--secondary-grey);
  height: 1rem;
  border-radius: 1rem;
}
.skill .cursor {
  height: 100%;
  background-color: var(--main-orange);
  border-radius: 1rem;
}

/* Projects */
.projects__wrapper {
  display: flex;
  gap: 2rem;
}
.carousel {
  width: 51%;
  height: 30vw;
  position: relative;
}
.carousel .item {
  border-radius: 6px;
  position: absolute;
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
  backdrop-filter: blur(5px);
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
  height: 30vw;
  width: 30vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: #524f4daa;
}

.dev .carousel .item {
  background-color: #f3fcf0aa;
}
.dsg .carousel .item {
  background-color: #1b1b1baa;
}
.carousel .item img {
  max-height: 100%;
  filter: grayscale(0.5);
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}
.carousel .main-pos:hover img {
  filter: grayscale(0);
}
.carousel .main-pos {
  z-index: 2;
}
.carousel .main-pos.open-pos {
  position: fixed;
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
  transform: translateX(0);
}
.carousel .main-pos.open-pos img {
  filter: grayscale(0);
}
.carousel .right-pos {
  opacity: 0.3;
  -webkit-transform: scale(0.8) translate(-21%, 5%);
  -moz-transform: scale(0.8) translate(-21%, 5%);
  transform: scale(0.8) translate(-21%, 5%);
  z-index: 1;
}
.carousel .left-pos {
  opacity: 0.3;
  -webkit-transform: scale(0.8) translate(-105%, 5%);
  -moz-transform: scale(0.8) translate(-105%, 5%);
  transform: scale(0.8) translate(-105%, 5%);
  z-index: 1;
}
.carousel .right-pos:hover {
  opacity: 0.6;
}
.carousel .left-pos:hover {
  opacity: 0.6;
}
.carousel .back-pos {
  opacity: 0;
  z-index: -1;
}
.projects .cardboard {
  width: 45%;
  display: flex;
  flex-direction: column;
}
.projects .name {
  color: var(--main-orange);
  font-size: 1.5rem;
}
/* FOOTER */
.navbar-wrapper {
  position: fixed;
  top: 0;
  margin: 0.25rem;
  right: 0;
  width: fit-content;
  z-index: 750;
  background-color: #524f4daa;
  backdrop-filter: blur(8px);
  padding: 0.75rem;
  border-radius: 6px;
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: var(--main-white);
  gap: 1.5rem;
}

.navbar .link {
  color: var(--main-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  -webkit-transition: all var(--duration-transition) ease-in-out;
  -moz-transition: all var(--duration-transition) ease-in-out;
  transition: all var(--duration-transition) ease-in-out;
}
.navbar .link:hover {
  color: var(--main-orange);
}
.navbar .icon {
  height: 2rem;
  width: 2rem;
}

.navbar--out {
  transform: translateY(-150%);
}

@media screen and (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  .logotype {
    justify-content: space-between;
    padding-top: 1.25rem;
  }
  .logotype .titre {
    font-size: 2.5rem;
  }
  .overlay {
    justify-content: center;
    width: 100vw;
  }
  .overlay--open {
    height: 100vh;
    overflow: hidden;
  }

  .overlay--open .logotype .circle .circle__back {
    height: 850%;
    width: 850%;
  }

  .overlay--open .logotype {
    color: var(--main-white);
  }
  .overlay--open .about__back {
    clip-path: ellipse(100vh 100vh at 50% 50%);
  }
  .description {
    flex-direction: column;
  }
  .description img {
    width: 100%;
  }
  .contact__texte {
    display: none;
  }
  .dev {
    clip-path: polygon(0 0, 100% 0, 100% 42%, 0 52%);
  }
  .dsg {
    clip-path: polygon(0 58%, 100% 48%, 100% 100%, 0% 100%);
  }
  .part--open {
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 0% 100%);
  }
  .dev > .titre {
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .dsg > .titre {
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .part--open > .titre {
    top: 10rem;
    transform: translateX(-50%);
  }
  .part > .titre {
    font-size: 2rem;
  }
  .part .content {
    padding: 3rem;
    padding-top: 20rem;
  }
  .part .content p {
    font-size: 1rem;
  }
  .skill .bar {
    gap: 1rem;
  }
  .skill img {
    width: 2.5rem;
  }
  .skill .cursor-container {
    height: 0.5rem;
  }
  .projects__wrapper {
    flex-direction: column;
  }
  .carousel {
    width: 100%;
    height: 60vw;
  }
  .carousel .item {
    height: 60vw;
    width: 60vw;
  }
  .carousel .item img {
    filter: grayscale(0);
  }
  .projects .cardboard {
    width: 100%;
  }
  .navbar-wrapper {
    width: 90vw;
    top: unset;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    height: fit-content;
    -webkit-transition: all var(--duration-transition) ease-in-out;
    -moz-transition: all var(--duration-transition) ease-in-out;
    transition: all var(--duration-transition) ease-in-out;
  }
  .navbar-wrapper .link {
    flex-direction: column;
  }
  .navbar--out {
    transform: translate(-50%, 150%);
  }
}
