/*
 Theme Name:   Mytheme
 Description:  Portfolio de Tristan Martot
 Author:       Tristan
 Version:      1.0.0
*/

/********** GENERAL ***********/
@font-face {
  font-family: "Ubuntu";
  src: url(./fonts/Ubuntu-Regular.ttf);
  font-weight: normal;
}

body,
.parent_container {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

a {
  color: rgb(255, 255, 255);
}

h1 {
  font-family: Ubuntu;
  font-size: 30px;
  font-weight: bolder;
  text-align: center;
}

h2 {
  font-family: Ubuntu;
  font-size: 30px;
  font-weight: 400;
  color: white;
  text-align: center;
}

h3 {
  font-family: Ubuntu;
  font-size: 18px;
  font-weight: 400;
}

p {
  font-family: Ubuntu;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

/************ MENU ***********/

.cross {
  background: url(assets/cross_nav.svg) center center / 40px 40px no-repeat;
  width: 80px;
  height: 80px;
  position: absolute;
  top: 0;
  right: 0px;
  padding: 50px 20px 50px 20px;
  z-index: 11;
}

.no-scroll {
  overflow: hidden;
}

.hidden {
  right: -150vw;
  transition: 0.3s ease;
  display: none;
  visibility: hidden;
}

.visible {
  right: 0;
  transition: 0.3s ease;
  display: block;
  z-index: 10;
}

.nav_container {
  width: 100%;
  height: 100vh;
  position: fixed;
  background-image: linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);
  top: 0;
  z-index: 10;
}

.nav_header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0 20px 0 20px;
}

.nav_container .nav_body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow-y: auto;
}

.nav_body ul {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0;
  font-size: 30px;
  font-family: Ubuntu;
  list-style-type: none;
  text-decoration: none;

}

.nav_body li {
  list-style-type: none;
  text-decoration: none;
}

.nav_body a {
  color: white;
  text-decoration: none;
}


/******** MENU PROJETS *********/

.retour {
  background: url(assets/cross_nav.svg) center center / 40px 40px no-repeat;
  width: 80px;
  height: 80px;
  position: absolute;
  top: 0;
  right: 0px;
  padding: 50px 20px 50px 20px;
}

.nav_container_projets {
  width: 100%;
  height: 100vh;
  position: fixed;
  background-image: linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);
  top: 0;
  z-index: 30;
}

.nav_container_projets .nav_body {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
  top: 100px;
  overflow-y: auto;
}

.nav_projet {
  position: relative;
  display: flex;
  justify-content: center;
  width: 500px;
}

.nav_projet video,
.nav_projet img,
.nav_projet a img {
  max-width: 90%;
}

.nav_projet a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav_projet:hover .info {
  opacity: 1;
  pointer-events: auto;
  display: flex;
  justify-content: center;
}

.info {
  position: absolute;
  background: rgb(205, 205, 205);
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  width: 90%;
  height: 100%;
}

.info p {
  padding-right: 20px;
  padding-left: 20px;
}

.info h2 {
  font-size: 20px;
  color: black;
  margin: 0;
}

.plus {
  width: 250px;
  border: 0;
  background-color: #4a1e76;
  font-family: ubuntu;
  font-size: 12px;
  transition: ease 500ms;
  cursor: pointer;
  color: #000;
  padding: 10px;
  text-align: center;
}

.plus:hover {
  width: 250px;
  border: 0;
  background-color: #8e0000;
  font-family: ubuntu;
  font-size: 12px;
  transition: ease 500ms;
  cursor: pointer;

}


/********** HEADER ************/
header {
  height: 160px;
  margin: auto;
  box-shadow: 0px 4px 4px 0px #00000017;
  position: relative;
  width: 100%;
  background: #060010;
  background: -moz-linear-gradient(top,
      #060010 0%,
      #060010 6%,
      #090016 11%,
      #070016 20%,
      #0a0121 48%,
      #0a0127 55%,
      #0a0129 57%,
      #0c012b 62%,
      #0e0131 68%,
      #0d012f 69%,
      #18023c 78%,
      #19023e 79%,
      #19023e 79%,
      #1c0242 81%,
      #22034b 85%,
      #2e045a 92%,
      #2f045e 96%,
      #340464 98%,
      #370569 100%);
}

.light-base {
  position: absolute;
  bottom: -145px;
  width: 100%;
  height: 100px;
  border-radius: 50%;
  box-shadow: -0px -10px 30px 10px #fff, -0px -20px 40px 20px #f2d6ce, -0px -30px 60px 30px #0040ff, -0px -50px 150px 75px #021738;
  background-color: #efedeb;
  background-color: #ffc1a0;
}

.header_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 160px;
  max-width: 1280px;
  margin: auto;
  z-index: 2;
  position: absolute;
  top: 0px;
  width: 100%;
}

.toggle {
  background: url(assets/toggle.svg) center center / 40px 40px no-repeat;
  background-color: #00000079;
  width: 80px;
  height: 20px;
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 70px 20px 70px 20px;
}

.stars {
  background: url('assets/starry_background_transparent.png') no-repeat center center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.star {
  position: absolute;
  border-radius: 50%;
  background-color: white;
  opacity: 0.9;
  will-change: transform, opacity;
  /* Activation du GPU pour des animations fluides */
}

.blink {
  animation: blink 2s ease-in-out infinite;
}

.star-1 {
  width: 2px;
  height: 2px;
}

.star-2 {
  width: 3px;
  height: 3px;
}

.bubble-container {
  position: relative;
  width: 20px;
  top: -95px;
  left: 48px;
}

.bubble {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: rise 8s infinite;
  animation-delay: 0s;
  opacity: 0;
}

.bubble:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  left: 10%;
  animation-delay: 4s;
}

.bubble:nth-child(4) {
  left: 30%;
  animation-delay: 6s;
}

.flb {
  position: absolute;
  animation: flotting 50s linear infinite;
  left: 200px;
  top: 30px;
}

.flb img {
  width: 65px;
  top: 25px;
  left: 200px;
}

.prof img {
  position: absolute;
  width: 55px;
  top: 30px;
  right: 200px;
  animation: flottingprof 50s linear infinite;
}


/*********** ACCUEIL ***********/

#hero {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: calc(100vh - 140px);
  justify-content: center;
  align-items: start;
  padding-top: 70px;
  padding-bottom: 100px;
  background-color: #0d0730;
  color: white;
  position: relative;
  z-index: 9;
}

#text1,
#text2,
#text3 {
  padding: 10px;
  opacity: 0;
  width: 90%;
  margin-left: 20px;
}

.open {
  width: 60%;
  transition: 500ms;
}

.open img,
.open video {
  width: 60%;
  transition: 500ms;
  object-fit: contain;
  border-radius: 15px;
}

.close {
  width: 10%;
  height: 50%;
  transition: 500ms;
  display: block !important;
}

.close img,
.close video {
  width: 10%;
  height: 100%;
  transition: 500ms;
  object-fit: cover;
  border-radius: 15px;
}

.apparition {
  animation: hello 1000ms 100ms forwards;
}

.disparition {
  animation: bye 0ms forwards;
  pointer-events: none;
  display: none;
}

#slide1,
#slide2,
#slide3 {
  height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  max-width: 100vw;
}

#slide1 img {
  width: 90%;
  border-radius: 15px !important;
  max-width: 100vw;
}

#slide2 video {
  width: 90%;
  border-radius: 15px !important;
  max-width: 100vw;
}

#slide3 img {
  width: 90%;
  border-radius: 15px !important;
  max-width: 100vw;
}


/*************** CONTACT *****************/

.wpforms-field-label {
  margin: 0 !important;
  font-family: ubuntu !important;
}

.wpforms-field-container,
.wpforms-submit {
  font-family: ubuntu !important;
}


/********* FOOTER *********/
footer {
  display: flex;
  align-items: center;
  justify-content: start;
  height: 400px;
  width: calc(100% - 300px);
  position: relative;
  left: 0px;
  background-image: linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);
  padding: 50px 150px 50px 150px;
}

footer li {
  list-style-type: none !important;
  font-family: Ubuntu;
  font-size: 16px;
  text-transform: uppercase;
  color: black;
}

footer li a {
  color: black;
  text-decoration: none;
}

.footer_nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 40%;
}

.footer_contact {
  width: 80%;
}


/******** ANIMATIONS *********/

@keyframes bye {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    display: none;
  }
}

@keyframes hello {
  0% {
    opacity: 0;
    pointer-events: none;
  }

  100% {
    opacity: 1;
    pointer-events: visible;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 0;
    transform: scale(1.1);
    /* Variation de taille pour l'effet de scintillement */
  }
}

@keyframes rise {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-30px);
    opacity: 0;
  }
}

@keyframes flotting {
  0% {
    transform: translate(0)rotate(0deg)scale(0.9);
  }

  20% {
    transform: translate(-45px, -25px)rotate(80deg)scale(1.2);
  }

  40% {
    transform: translate(-85px, 0px)rotate(160deg)scale(1.3);
  }

  60% {
    transform: translate(45px, 25px)rotate(230deg)scale(1.1);
  }

  80% {
    transform: translate(25px, 25px)rotate(300deg)scale(0.8);
  }

  100% {
    transform: translate(0)rotate(360deg)scale(0.9);
  }
}

@keyframes flottingprof {
  0% {
    transform: translate(0)rotate(0deg)scale(0.7);
  }

  20% {
    transform: translate(-45px, -25px)rotate(-20deg)scale(1.2);
  }

  40% {
    transform: translate(-85px, 0px)rotate(20deg)scale(1.5);
  }

  60% {
    transform: translate(0px, 25px)rotate(-20deg)scale(1.1);
  }

  80% {
    transform: translate(25px, 25px)rotate(20deg)scale(1);
  }

  100% {
    transform: translate(0)rotate(0deg)scale(0.7);
  }
}

/********** RESPONSIVE ***********/

@media screen and (max-width: 899px) {

  /**** GENERAL *****/

  h1 {
    font-size: 50px;
  }


  /**** HEADER ****/

  .header_container a img {
    width: 150px;
  }

  .prof img {
    position: absolute;
    width: 50px;
    top: 30px;
    right: 70%;
    animation: flottingprof 50s linear infinite;
  }

  .flb {
    position: absolute;
    animation: flotting 50s linear infinite;
    left: 70%;
    top: 30px;
  }

  .flb img {
    width: 50px;
  }

  .bubble-container {
    position: relative;
    width: 20px;
    top: -66px;
    left: 60%;
  }


  /**** MENU ****/

  .cross,
  .retour {
    background: url(assets/cross_nav.svg) center center / 100% 100% no-repeat;
    display: block;
    width: 6px;
    height: 6px;
    margin-right: 20px;
  }
  
  .toggle {
    background: url(assets/toggle.svg) center center / 100% 100% no-repeat;
    display: block;
    width: 6px;
    height: 6px;
    margin-right: 20px;
  }

  .nav_container {
    background-image: linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: white;
    z-index: 10;
    top: 0;
    left: 0px;
  }

  .nav_container .nav_body {
    width: 100%;
    height: calc(100% - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow-y: auto;
  }

  .nav_container_projets {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-image: linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);
    top: 0;
    left: 0;
    z-index: 30;
    overflow-y: auto;
  }
  .nav_container_projets .nav_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 10px;
    position: relative;
    top: 100px;
    overflow-y: auto;
  }

  .nav_projet {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
  }


  /**** ACCUEIL ****/

  #hero {
    max-width: 100vw;
  }

  .open {
    width: 70%;
    transition: 500ms;
  }

  .open img,
  .open video {
    width: 70%;
    transition: 500ms;
    object-fit: contain;
    border-radius: 15px;
  }


  /***** FOOTER *******/

  .footer_nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  footer {
    height: 100%;
    background-image: linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);
    flex-direction: column-reverse;
    width: 100%;
    padding: 0px;
    gap: 50px;
  }
}