/* 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 right, #69005b 0%, #0c0d13 50%);
  background-attachment: fixed;
  font-family: "Kanit", sans-serif;
}

@media screen and (max-width: 768px) {
  .html, body {
    overflow-y:auto;
  }
}

/* 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: #CCC;
  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 */
.about-container,
.about-container2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 5%;
}

.about-container2 {
  padding-top: 0;
}

.main-intro,
.main-intro2 {
  max-width: 1300px;
  margin: 50px auto;
  margin-bottom: 0;
  padding: 20px;
  padding-bottom: 0;
}

.main-intro2 {
  margin-top: 0;
  padding-top: 0;
}

.about-text {
  max-width: 1300px;
  font-size: 2.5rem;
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-text h1 {
  font-family: "Genos", sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.blue-line {
  border: 2px solid #a80092;
  width: 50px;
  margin: 0 0 20px 0;
}

.about-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF;
}


@media screen and (min-width: 37.5em) {
  .title {
    font-size: 4.75rem;
  }
}

/* Compétences (Grille) */
.grid-container {
  max-width: 1300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
  margin: 30px auto;
}

.circle-skill {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  text-align: center;
  color: #FFF;
}

.circle-skill h2 {
  font-size: 1.2rem;
  color: #FFF;
  margin: 0 0 10px; 
}

.circle-skill p {
  font-size: 0.9rem; 
  color: #FFF;
  margin: 0 0 10px;
}

#container1, #container2, #container3, #container4, #container5, #container6, #container7, #container8, #container9 {
  width: 15vw; 
  height: 15vw;
  max-width: 100px; 
  max-height: 100px;
  position: relative;
  margin-top: 10px; 
}

.tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  display: none;
  pointer-events: none; 
  transition: opacity 0.2s ease;
}

@media screen and (max-width: 768px) {
  .about-text {
    font-size: 2rem; 
    text-align: center; 
    align-items: center;
  }

  .blue-line {
    margin: 0 auto 20px auto; 
  }

  #container1, #container2, #container3, #container4, #container5, #container6, #container7, #container8, #container9 {
    width: 20vw;
    height: 20vw;
    max-width: 80px;
    max-height: 80px;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* Fond */  

#particles-js {
  position:fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

canvas {
  display: block;
  vertical-align: bottom;
}



