/* 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 left, #69005b 0%, #0c0d13 50%);
  overflow-x: 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;
  }
}

/* Fenêtre modale */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #373737;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 0;
  right: -25px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.btn-download {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #69005b;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: #500045;
}

/* Texte */

.about-me {
  max-width: 1300px;
  margin: 50px auto;
  padding: 20px;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 5%;
  padding-bottom: 8%;
}

.about-text {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #FFF;
  flex: 1 1 50%;
  max-width: 600px;
  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 {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF;
  margin-bottom: 20px;
}

.download-cv {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #a80092;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.download-cv:hover {
  background-color: #640057;
}

p a {
  color: #db00be;
}

/* Image */
.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

@media screen and (max-width: 768px) {

  .about-text {
    text-align: left;
  }

  .about-container,
  .hobbies-list {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .about-image {
    max-width: 100%;
  }

  .download-cv {
    width: 60%;
    padding: 20px 30px;
    font-size: 1.3rem;
  }
}

/*animation images*/

.image {
  position: relative;
  width: 500px;
  height: 350px;
  box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.5);
}

.image-trans {
  backface-visibility: hidden;
  background-color: #a80092;
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 2;
  border-radius: 15px;
  transform: translate3d(0px, 0px, 0px) scale(0, 1);
  transform-origin: top right;
}

.image-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  background-image: url('images/moi.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  border-radius: 15px;
  transition: all .5s ease;
}

.image-content:hover {
  transform: scale(1.02);
}


@media screen and (max-width: 768px) {

  .image {
    width: 40vh;
    height: 40vh;
  }

}


/*Témoignages*/

.comments-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
}

.comments-section h2 {
  font-size: 2rem;
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.comments-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 3%;
  padding-bottom: 10%;
}

.comment {
  display: flex;
  align-items: flex-start;
  background-color: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.comment.visible {
  opacity: 1;
  transform: translateY(0);
}

.comment:hover {
  transform: scale(1.02);
}

.profile-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.comment-content {
  max-width: 900px;
}

.username {
  font-family: "Genos", sans-serif;
  font-weight: bold;
  color: white;
  font-size: large;
}

.comment-text {
  font-size: 1rem;
  color: #ffffff;
  margin-top: 5px;
}

@media screen and (max-width: 768px) {
  .comments-container {
    gap: 15px;
  }

  .comment {
    align-items: center;
    text-align: left;
  }

  .profile-image {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    margin-right: 15px;
  }

  .comment-content {
    margin-top: 0;
    text-align: left;
  }

  .username {
    font-size: 1.1rem;
  }

  .comment-text {
    font-size: 1rem;
    margin-top: 5px;
  }
}


/*HOBBIES*/

.hobbies-list {
  max-width: 1300px;
  margin: 50px auto;
  padding: 20px;
}

.hobbies-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 3%;
}

.hobbies-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hobbies-right.visible {
  opacity: 1;
  transform: translateY(0);
}

.hobbies-right:hover {
  transform: scale(1.02);
}

.hobbies-content-right {
  max-width: 700px;
}

.hobbies-content-right .hobby-name {
  font-family: "Genos", sans-serif;
  font-weight: bold;
  color: white;
  font-size: large;
}

.hobbies-content-right .hobby-desc {
  font-size: 1rem;
  color: #ffffff;
  margin-top: 5px;
}

.hobby-image-right {
  width: 100px;
  height: 100px;
  border-radius: 15px;
  overflow: hidden;
  margin-left: 15px;
  flex-shrink: 0;
}

.hobby-image-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .hobbies-container {
    gap: 15px;
  }

  .hobbies-right {
    flex-direction: row;
    text-align: left;
    padding: 15px;
  }

  .hobby-image-right {
    width: 80px;
    height: 80px;
    margin: 10px 20px;
  }

  .hobbies-content-right {
    margin-top: 10px;
    max-width: 100%;
  }
}


/* Fond */

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

canvas {
  display: block;
  vertical-align: bottom;
}