@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Oxanium:wght@200..800&display=swap');


@font-face {
  font-family: "galaxy";
  src: url(fonts/nasalization/nasalization-rg.otf);
}

@font-face {
  font-family: "futurist";
  src: url(fonts/forgotten_futurist/forgotten\ futurist\ bd.otf);
}

@font-face {
  font-family: "zelda";
  src: url(fonts/zelda_dx/zeldadxt.ttf);
}
:root {
  --navHeight: 15rem;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* To prevent horizontal scrolling */
  overflow-y: hidden; /* To prevent vertical scrolling */
  color: white;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navHeight);
}
/* CSS */
a {
  position: relative;
  text-decoration: none;
  color: white; /* Couleur du lien */
}

.downloads-container p, .collapse p {
  margin: 10px 0;
}
.downloads-container a:hover, .collapse a:hover {
  text-decoration: underline;
}

h2 {
  text-align: center;
}

section {
  width: auto;
  display: flex;
  justify-content: center;
  margin: 20px auto;
  padding-bottom: 30px;
}

section h2 {
  margin-bottom: 30px;
}

.menu-site a:hover::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 0.5px; /* Hauteur de la traînée lumineuse */
  top: 150%; /* Position verticale de la traînée lumineuse */
  left: 0;
  background-color: white; /* Couleur de la traînée lumineuse */
  animation: shooting-link 0.2s linear; /* Durée plus courte pour une vitesse plus rapide */
}

@keyframes shooting-link {
  from {
    width: 0%;
    right: 100%;
  }
  to {
    width: 100%;
    right: 0%;
  }
}

.paragraph span {
  opacity: 0;
  animation: reveal 0.5s forwards var(--d);
}
@keyframes reveal {
  from {
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


body, html {
  background-color: black;
  margin: 0;
  color: white;
  font-family: "Oxanium", sans-serif;
  overflow: auto;
}


h1, h2, h3, p {
  margin: 0;
}

ul {
  padding-inline-start: 0;
}

li {
  list-style-type: none;
  display: list-item;
}

.night {
  background-color: #000;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 0; 
}

.star {
  position: fixed;
  background-color: #fff;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  animation: shooting-star linear infinite, twinkle 3s infinite alternate;
}

.star:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-duration: 3s;
}

.star:nth-child(2) {
  top: 20%;
  left: 20%;
  animation-duration: 4s;
}

.star:nth-child(3) {
  top: 30%;
  left: 40%;
  animation-duration: 5s;
}

.star.bright {
  animation: shooting-star linear infinite, twinkle 3s infinite alternate, shine 5s infinite;
}

.large {
  position: fixed;
  width: 4px;
  height: 4px;
  top: 20%;
  left: 20%;
}

.medium {
  position: fixed;
  width: 3px;
  height: 3px;
  top: 50%;
  left: 60%;
}

.small {
  position: fixed;
  width: 2px;
  height: 2px;
  top: 80%;
  left: 80%;
}
/* Ajoutez des styles pour chaque étoile si nécessaire */

@keyframes shooting-star {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(100vw) translateY(100vh) scale(0.2);
  }
}

@keyframes twinkle {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes shine {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
/* NAVIGATION */

header {
  max-height: calc(100vh - someOffset); /* Adjust accordingly */

  width: 100%;
  height: auto;
  position: fixed;
  top: 0; /* Assurez-vous que la barre de navigation reste en haut */
  z-index: 1000; /* Un z-index élevé pour s'assurer que la barre de navigation est au-dessus des autres éléments */
  background-color: black; /* Ajoutez une couleur de fond pour mieux visualiser la barre de navigation */
}

.navbartransparent {
  height: 0;
}

.nav-bar {
  display: flex;
  height: auto;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%; /* Assurez-vous que la barre de navigation occupe toute la largeur de la fenêtre */
}

.logo-name {
  text-align: center;
  width: 50%;
  height: auto;
  font-family: "galaxy";
  letter-spacing: 1em;
  margin-right: -1em;
  font-size: 1.5em;
}
.nav-menu {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-site, .menu-social {
  display: flex;
  justify-content: center;
}

.menu-social {
  font-size: 20px;
  letter-spacing: 1em;
  margin-right: -1em;
}

.nav-menu li {
  display: inline;
  margin: 0 10px;
}

/* CONTENU */

.container { 
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.introduction {
  position: relative;
  display: flex;
  justify-content: center;
  width: 80%;
  height: 100vh;
}

.image-intro {
  position: relative;
  width: 100%;
  height: auto;
  text-align: center;
}

.image-intro img {
  height: calc(100vh - var(--navHeight))
}

.texte-tape {
  position: absolute;
  left: 60%;
  top: 30%;
  font-family: "galaxy";
  font-size: 1em;
  padding: 10px;
  z-index: 998;
}

.intro-content {
  position: absolute;
  height: auto;
  left: 60%;
  top: 35%;
  /* background-color: rgb(8,13,38, 0.5); */
  color: white;
}

.intro-txt {
  position: relative;
  text-align: center;
}

.planet {
  position: absolute;
  top: 110%;
  left: 55%;
  transform: translate(-65%, -40%);
}

.oval {
  display: none;
}

.planet img, .oval img {
  height: 100px;
}

.intro-content h1, .intro-content p {
  padding: 10px;
}

.today {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.today h2 {
  padding: 20px;
}

.cards-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-image: linear-gradient(to bottom, #2D137F, #0F0541); /* Dégradé vertical du jaune au orange */
  border-radius: 15px;
  padding-bottom: 20px;
}

.card-menu {
  width: 100%;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  height: 30px;
  border-top-left-radius: 15px;
  border-top-right-radius:15px;
  background-image: linear-gradient(to bottom, #8D49E7, #7037DA); /* Dégradé vertical du jaune au orange */
}
.circle-buttons {
  display: flex;
}
.card-menu .circle {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  margin-left: 10px;
}

.menu-title {
  color: #E6D9F9;
  font-size: 0.8em;
  font-weight: bold;
  padding-left: 15px;
}
.dot1 {
  background-color: #FA5E58;
}
.dot2 {
  background-color: #FEBC2E;
}
.dot3 {
  background-color: #27CA42;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-hashtags {
  display: flex;
  justify-content: center;
}

.card h3 {
  margin-top: 20px;
  color: #F3F2F7;
  padding: 0 1em;
  text-align: center;
}
.card p {
  text-align: center;
  padding: 1em;
  color: #BAACD2;
}

.card-hashtags {
  display: flex;
  flex-wrap: wrap;
  white-space: nowrap;
}

.card-hashtags span {
  color: #DAC8F6;
  font-size: 0.7em;
  padding: 0.5em 0.7em;
  margin: 0.5em;
  border-radius: 30px;
  opacity: 0.9;
}

/* TYPES DE HASHTAGS */
.htmlcss {
  background-color: purple;
}
.proglang {
  background-color: #D1666A;
}
.software {
  background-color: #3375BD;
}
.framework {
  background-color: #59977E;
}
.method {
  background-color: #BC8766;
}
.tool {
  background-color: #5B648D;
}

.badge {
  display: none;
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: green;
  color: white;
  padding: 5px 10px;
  border-top-right-radius: 10px;
  transform: rotate(45deg);
  transform-origin: 0 100%;
}

.skills-container {
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap:  30px;
}

.soft-skills, .hard-skills {
  flex-direction: column;
  align-items: center;
  font-family: "Zelda";
}

.soft-skills {
  width:60%;
}

.hard-skills {
  width: 40%;
}

.character {
  text-align: center;
  padding: 20px;
  background-color: #3B206C;
  border-radius: 20px;
  box-shadow: rgba(240, 46, 170, 0.4) 5px 5px, rgba(240, 46, 170, 0.3) 10px 10px, rgba(240, 46, 170, 0.2) 15px 15px, rgba(240, 46, 170, 0.1) 20px 20px, rgba(240, 46, 170, 0.05) 25px 25px;
}

.char-content {
  display: flex;
  flex-direction: row;
}

#character-img {
  width: 200px;
}

.character-description {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#char-desc-left {
  align-items: flex-start;
}

#char-desc-right {
  align-items: flex-end;
}

.soft-skill-card {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
}

.soft-skill-card p {
  padding: 10px 10px;
}

.filled-heart, #master-sword-px {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.icon-gear {
  background-color: #CC90D0;
  box-shadow: 5px 5px 0 0 rgba(240, 46, 170, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 3px;
}

/*  */
.openclassrooms {
  background-image: url(images/background-formation.jpeg);
  background-size: cover;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
}
.cards-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.project-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.3);
  width: 25%;
  height: auto;
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.project-card p {
  text-align: justify;
}

.title-icons, .project-card .subtitle, .project-card .content {
  margin-bottom: 20px;
}

.project-card .title {
  font-family: "galaxy";
  font-size: 1.5em;
}

.project-card .subtitle {
  font-family: "galaxy";
  font-size: 1em;
}

.project-card .image {
  position: relative;
}

.project-card .image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.7;
}

.gradient {
  border-radius: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(to bottom, rgba(0, 0, 0,0) 0%, rgba(0, 0, 0,1) 100%);
}

.project-icons {
  display: flex;
}

.neon-btn {
  opacity: 0.7;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  margin-left: 15px;
}

.github {
  background-color: #ff44cc;
  box-shadow: 0 0 5px #ff44cc,
              0 0 10px #ff44cc,
              0 0 15px #ff44cc;
              top: -20px;
              right: 80px;
}
.github:hover {
  background-color: #F5138E;
  box-shadow: 0 0 5px #F5138E,
              0 0 10px #F5138E,
              0 0 15px #F5138E;
              top: -20px;
              right: 80px;
}

.git-website {
  background-color: #8529D8;
  box-shadow: 0 0 5px #8529D8,
              0 0 10px #8529D8,
              0 0 15px #8529D8;
              top: -20px;
              right: 140px;
}

.git-website:hover {
  background-color: #B412F4;
  box-shadow: 0 0 5px #B412F4,
              0 0 10px #B412F4,
              0 0 15px #B412F4;
              top: -20px;
              right: 140px;
}
.medal {
  background-color: #39FF14;
  box-shadow: 0 0 3px #39FF14,
              0 0 6px #39FF14,
              0 0 9px #39FF14;
              top: -20px;
              right: 20px; 
}
/*  */

.hidden {
  display: none;
}

.media-tablets {
  display: none;
}

.title-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.display-mobile {
  display:none;
}

.card-downloads {
  border: 1px solid #080D26;
  padding: 20px;
  text-align: center;
  margin-top: 30px;
}

.elements-downloads {
  position: relative;
}

.title-downloads {
  position: absolute;
  top: -20px; /* La div commence à partir de la moitié du haut */
  left: 50%; /* La div commence à partir de la moitié de la gauche */
  transform: translate(-50%, -50%); /* Déplacement */
  border: solid 1px #080D26;
  border-radius: 20px;
  padding: 5px 10px 5px 10px;
  background-color: #391555;
}

.dev-skills {
  width: 80%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0;
}

.prog-skills {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.front-end {
  background-color: red;
  border-radius: 10px 0 0 10px;
}

.back-end {
  background-color: blue;
  border-radius: 0 10px 10px 0;
}

/* CERTIFICATS */
.certificates {
  padding: 30px;
  background-color: #391555;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.image-certificate {
  position: relative;
}

.thumbnail-certificate {
  display: block;
  height: 200px;
  transition: opacity 0.3s ease; /* Ajoute une transition pour un effet de fondu */
  border: solid 10px #9A67EB;
  border-radius: 20px;
  margin: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.5); /* Ombre plus marquée au survol */
}

.image-certificate::after {
  content: attr(data-text); /* Affiche le texte stocké dans l'attribut data-text */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0; /* Initialement caché */
  transition: opacity 0.3s ease; /* Ajoute une transition pour un effet de fondu */
  pointer-events: none; /* Évite que l'élément ::after réponde aux événements de souris */
}

.image-certificate:hover::after {
  opacity: 1; /* Affiche le texte au survol */
}

.thumbnail-certificate:hover {
  opacity: 0.3; /* Opacité réduite de l'image au survol */
  filter: blur(1px); /* Légèrement flou pour un effet doux */

}

/* ACCORDION */
.accordion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.accordion li {
  opacity: 0.7;
  list-style: none;
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
  border-radius: 5px;
  box-shadow: 3px 3px 6px -1px rgba(75,78,171, 0.15),
              -3px -3px 6px -1px rgba(203,145,208, 0.7);
}

.accordion li label {
  font-family: "galaxy";
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
}

label::before {
  content: "+";
  margin-right: 10px;
  font-size: 24px;
  font-weight: 600;
}

input[type="checkbox"] {
  display: none;
}

.accordion .content {
  /* padding: 0 10px; */
  margin: 0;
  line-height: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s, padding 0.5s;
}

.accordion input[type="checkbox"]:checked + label + .content {
  max-height: 400px;
  padding: 5px;
}

.accordion input[type="checkbox"]:checked + label::before {
  content: "-";
}

footer {
  background-color: #080D26;
  text-align: center;
  padding: 50px 0;
}

/* Parallax */
.parallax {
  /* overflow: hidden; */
  position: relative;
  z-index: 0;
  min-height: 70;
  display: grid;
  grid-template-areas: "stack";
}

.parallax > * {
  grid-area: stack;
  animation: parallax linear;
  animation-timeline: scroll();
}

.parallax > img {
  width: 100%;
  height: auto;
}


.parallax img {
  will-change: transform;

}
.parallax__character {
  --parallax-speed-y: -0.1;
  --parallax-speed-x: 0;
  z-index: 10;
}

.parallax__violin {
  --parallax-speed-y: 0.7;
  --parallax-speed-x: 0;
    z-index: 3;
  }
  
  .parallax__guitar {
    --parallax-speed-y: 0.3;
    --parallax-speed-x: 0;
    z-index: 4;
  }
  
  .parallax__piano {
    --parallax-speed-y: 0.4;
    --parallax-speed-x: 0;
    z-index: 5;
}

.parallax__cube {
  --parallax-speed-y: 0.9;
  --parallax-speed-x: 0;
  z-index: 6;
}

.parallax__remote {
  --parallax-speed-y: 0.7;
  --parallax-speed-x: 0;
  z-index: 7;
}

.parallax__rocket {
  --parallax-speed-y: 0.5;
  --parallax-speed-x: 0;
  z-index: 999;
}

.parallax__foreground-back {
  z-index: 998;
}

.parallax__foreground-front {
  --parallax-speed-y: -0.07;
  --parallax-speed-x: 0;
  z-index: 997;
}

.parallax__foreground-back,
.parallax__foreground-front {
  mix-blend-mode: hard-light;
}

@keyframes parallax {
  to {
    transform: 
      translateY(calc(var(--parallax-speed-y) * 200px))
      translateX(calc(var(--parallax-speed-x) * 200px));
  }
}

@keyframes parallax {
  to {
    transform: 
      translateY(calc(var(--parallax-speed-y) * 200px))
      translateX(calc(var(--parallax-speed-x) * 200px));
  }
}


/* Version tablette */
@media (max-width: 1024px) {
  body {
      width: 100%;    
      display: flex;
      flex-direction: column;
  }

  .media-tablets {
    display: flex;
    justify-content: flex-end;
  }

  .media-tablets button {
    margin-left: 10px;
  }

  .github-btn, .reward-btn {
    border: none;
    color: white;
    border-radius: 20px;
  }
  .github-btn {
    background-color: #ff44cc;
    box-shadow: 0 0 5px #ff44cc,
                0 0 10px #ff44cc,
                0 0 15px #ff44cc;

  }

  .reward-btn {
    background-color: #39FF14;
    box-shadow: 0 0 3px #39FF14,
                0 0 6px #39FF14,
                0 0 9px #39FF14;
  }

  /* .neon-btn {
    display: none;
  } */

  .card-icons {
    display: none;
  }

  .cards-container {

  }

  .project-card {
    width: 40%;
  }

  .card {
    width: 100%;
    margin: 0;
  }

  .skills-container {
    flex-direction: column;
  }

  .soft-skills, .hard-skills {
    width: 100%;
  } 
} 

/* Version mobile */
@media (max-width: 767.98px) {

  body {
    margin: 0;
  }

  section {
    margin-top: 0;
  }
  .project-card {
    width: 80%;
  }

  .nav-bar {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo-name, .nav-menu {
    width: 100%;
  }

  .introduction {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .planet {
    display: none;
  }

  .image-intro {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .intro-content {
    display: none;
    position: relative;
    top: 0;
    left: 0;
  }


  .cards-section {
    display: flex;
    flex-direction: column;
    gap: 10px;

  }

  .card {
    padding-bottom: 0;
  }

  .char-content {
    display: flex;
    flex-direction: column;
  }

  .project-card {
    margin-top: 10px;
    padding: 10px;
  }

  .parallax__foreground-back,
  .parallax__foreground-front {
    display: none;
  }


}