/* Général */
/*Récupérer les polices*/
@import url('https://fonts.googleapis.com/css2?family=Genos:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Genos:ital,wght@0,100..900;1,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, #69005b 0%, #0c0d13 50%);
  overflow: hidden;
  font-family: "Kanit", sans-serif;
}

/* Transition de page */

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* Nav Barre */

.fixed-nav-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background-color: #222;
  box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  z-index: 1000;
  height: 8vh;
  width: 100%;
  max-width: 1700px;
  margin: 10px auto;
}

.nav-links {
  display: flex;
  gap: 15px;
  transition: all 0.3s ease;
}

.nav-links.hidden {
  display: none;
}

@media screen and (min-width: 768px) {
  .nav-links {
    display: flex !important; 
    gap: 15px;
  }
  
  .hamburger-menu {
    display: none; 
  }
}
.logo {
  text-transform: uppercase;
  color: #ffffff;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
}

span {
  color: #a80092;
  font-weight: 600;
}

.drop-down-item {
  position: relative; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 8vh;
}

.nav-links a {
  display: flex; 
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #CCC; 
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  z-index: 1;
  height: 100%; 
  width: 100%; 
}

.nav-links a:hover {
  color: #FFF; 
}

.drop-down-item::after {
  content: "";
  position: absolute;
  bottom: -3px; 
  left: 0; 
  right: 0; 
  height: 3px; 
  background: #a80092;
  transform: scaleX(0); 
  transform-origin: center; 
  transition: transform 0.3s ease; 
  z-index: 0;
}

.drop-down-item:hover {
  background-color: #444; 
}

.drop-down-item:hover::after {
  transform: scaleX(1); 
}

.hamburger-menu {
  display: none;
  font-size: 24px;
  color: #CCC;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
  }

  .nav-links.hidden {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .drop-down-item {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 20px;
  }

  .fixed-nav-bar {
    justify-content: space-between;
  }
}

/* Texte */

#target-text {
  font-family: "Genos", sans-serif;
}

.sep-point {
  color: transparent;
}

.titre {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  color: #FFF;
  z-index: 10;
}

h1 {
  font-size: 7rem;
  margin: initial;
  text-transform: uppercase;
  font-family: 'bebas Neue';
  opacity: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.char {
  transform: translateY(115px);
  transition: transform 0.5s;
}

span {
  color: #a80092;
  font-weight: 600;
}

p {
  transform: translateY(50px); 
  opacity: 0; 
  font-size: 1.7rem; 
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

@media screen and (max-width: 1024px) {
  h1 {
    font-size: 5rem;
  }

  p {
    font-size: 1.5rem;
    line-height: 1.5;
    width: 55vh;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 4rem;
  }

  p {
    font-size: 1.2rem;
    transform: translateY(30px);
    width: 50vh;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 3.5rem; 
  }

  p {
    font-size: 1rem;
    padding: 0 55px;
  }
}


/* Fond */  

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

canvas {
  display: block;
  vertical-align: bottom;
}
