/* 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 top, #69005b 0%, #0c0d13 50%);
  background-attachment: fixed;
  font-family: "Kanit", sans-serif;
}

.espace {
  height: 5%;
}

/* 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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 5%;
}

.main-intro {
  max-width: 1300px;
  margin: 50px auto;
  margin-bottom: 0;
  padding: 20px;
  padding-bottom: 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 (max-width: 430px) {
  .title {
    font-size: 4.75rem;
  }
  .about-text {
    align-items: center;  
    text-align: center;
  }

}

/* Projets */

.list-projects {
  max-width: 1300px;
  margin: 50px auto;
  padding: 10px;
}

.case-study-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1900px;
  margin: 0 auto;
}

.case-study {
  position: relative;
  display: block;
  width: 30%; 
  height: 250px;
  margin: 10px; 
  background-size: cover;
  border-radius: 10px;
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.4s ease;
}

.case-study__img {
  width: 90%;
  display: block;
  margin-top: 50%;
  transform: translateY(50%);
  margin: 0 auto;
}

.case-study__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-study__overlay:after {
  content: "";
  width: 100%;
  border-radius: 10px;
  height: 100%;
  background-color: #202020;
  opacity: 0; 
  position: absolute;
  top: 0;
  z-index: -1;
  left: 0;
  transition: opacity 0.3s ease;
  
}

.case-study__title {
  font-size: 2.25rem;
  font-family: "genos", sans-serif;
  color: white;
  text-align: center;
  letter-spacing: 5px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.3, 0, 0, 1.3);
}

.case-study__link {
  display: block;
  width: 60%;
  padding: 10px;  
  margin: 0 auto;
  color: #d400b8;
  letter-spacing: 3px;
  text-decoration: none;
  text-align: center;
  border: 2px solid #d400b8;
  border-radius: 3px;
  font-size: 1.25em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.3, 0, 0, 1.3);
}

.case-study__link:hover {
  background-color: #d400b8;
  color: #000000;
}

.case-study:hover .case-study__overlay {
  opacity: 1;
  
}

.case-study:hover .case-study__overlay:after {
  opacity: 0.75;
}

.case-study:hover .case-study__title,
.case-study:hover .case-study__link {
  opacity: 1;
  transform: translateY(0); 
}

.study1 {
  background-image: url(images/Accueil-ENT.png);
  background-size:cover ;
  background-position: center;
}

.study2 {
  background-image: url(images/Dataviz.png);
  background-size:cover ;
  background-position: center;
}

.study3 {
  background-image: url(images/Campagne-promo-n1.png);
  background-size:cover ;
  background-position: center;
}

.study4 {
  background-image: url(images/sapeco.png);
  background-size:cover ;
  background-position: center;
}

.study5 {
  background-image: url(images/resaweb.png);
  background-size:cover ;
  background-position: center;
}

.study6 {
  background-image: url(images/photomontage.png);
  background-size:cover ;
  background-position: center;
}

.study7 {
  background-image: url(images/uty-patch-fr.jpg);
  background-size:cover ;
  background-position: center;
}

.study8 {
  background-image: url(images/dessins.png);
  background-size:cover ;
  background-position: center;
}

@media screen and (max-width: 1200px) {
  .case-study {
    width: 45%;
  }

  .case-study__title {
    font-size: 1.7rem;
  }

  .case-study__link {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .case-study {
    width: 100%;
    height: 200px;
  }

  .case-study__title {
    font-size: 1.5rem;
  }

  .case-study__link {
    font-size: 1rem;
  }
}

/* Fond */  

#particles-js {
  position:fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

canvas {
  display: block;
  vertical-align: bottom;
}