@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Hammersmith+One&family=Poiret+One&display=swap');

html, body {
    padding: 0 0%;
    margin: 0;
    font-family: "Dosis", serif;
    background-color: #0A0E28;
    height: 100%;
}

nav {
    display: flex;
    flex-direction: column;
    color: #57BDA2;
    background-color:#0A0E28;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 17.5%;
    padding-left: 2%;
    padding-top: 2%;
    z-index: 2;
}

nav h1 {
  cursor: pointer;
}
nav .subtitle {
  cursor: pointer;
}
nav .profile{
    display: flex;
    flex-direction: column;
    align-items: start;
}

h1 {
    margin: 1%;
    font-size: 2.5vw;
    font-family: "Hammersmith One", serif;
}
nav .profile .subtitle {
  margin: 0px;
  font-size: 2vw;
}
nav .socialLinks {
  display: flex;
  flex-direction: row;
  padding-left: 2%;
}

nav .socialIcon {
  position: relative;
  width: 100%;
  height: auto;
}


#sectionList {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style-type: none;
  font-size: 1.5vw;
  line-height: 2;
  padding-left: 0;
}
#projectList {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style-type: none;
  font-size: 1.5vw;
  line-height: 1.25;
  position: absolute;
  top: 100%;
  left: 0%;
}

li[sectionName]{
  position: relative;
  cursor: pointer;
  padding-left: 7.5%;
  transition: transform 0.2s ease 0.3s, width 0.3s ease, padding-left 0.3s ease;
  bottom: 20%;
}
li[projectName]{
  display: none;
  position: relative;
  cursor: pointer;
  width: 100%;
  padding-left: 7.5%;
  left: 20%;
  top: 75%;
  color: #57BDA2;
  transition: transform 1s ease, padding-left 0.3s ease;
}
nav ul li::before {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 50%;
  transform: translateY(50%);
  height: 2px;
  width: 5%;
  background-color: #57BDA2;
  transition: width 0.3s ease, padding-left 0.3s ease;
}

nav ul li:hover::before, nav .active::before {
  width: 20%;
  background-color: #DCB13C;
}
nav ul li:hover, nav .active {
  padding-left: 22.5%;
  color: #DCB13C;
}

@media screen and (aspect-ratio <= 1) {
  nav {
    display: flex;
    flex-direction: row;
    color: #57BDA2;
    background-color:#0A0E28;
    position: fixed;
    top: 0;
    left: 0;
    height: 10%;
    width: 100%;
    padding-left: 5%;
    padding-top: 5%;
    z-index: 2;
  }
  nav .profile{
    width: 50%;
}
  nav .profile h1 {
    margin: 0px;
    font-size: 5vw;
    text-transform: uppercase;
    font-family: "Hammersmith One", serif;
  }
  nav .profile .subtitle {
  margin: 0px;
  font-size: 4vw;
  }
  nav .socialButton {
    width: 7%;
    height: 7%;
    padding-top: 1%;
    padding-right: 3%;
  }
  #sectionList {
    flex-grow: 1;
    display: flex;
    position: relative;
    left: 15%;
    flex-direction: column;
    justify-content: center;
    list-style-type: none;
    font-size: 4vw;
    line-height: 1.5;
    padding-left: 0;
  }
  #projectList {
    display: none;
  }
  .page-content {
    overflow-x: hidden;
    overflow-y: hidden;
    position: fixed;
    color: white;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    z-index: 1;
  }
  .page-content .presentation .presElement {
    flex-direction: row;
    position: absolute;
    /* top: 50%; */
    padding: 0;
    width: 100%;
    }
  .page-content .presentation .skills {
    display: flex;
    flex-direction: row;
    position: absolute;
    width: max-content;
    top: 30%;
    padding: 0;
    list-style-type: none;
    text-transform: uppercase;
    text-align: center;
    font-family: "Hammersmith One", serif;
    font-size: 3vw;
  }
      
  .page-content .presentation .skills .line {
    align-self: center; 
    position: relative;
    padding: 2% 5%;
    color: #2493A2;
    z-index: 5;
  }
  .page-content .presentation .picture {   
    display: flex;
    flex-direction: row;
    position: relative;
    top: 45%;
    width: auto;
    height: 35vw; 
  }
  .usp{
    display: flex;
    flex-direction: row;
    position: absolute;
    justify-content: end;
    top: 65%;
    width: 10%;
    height: max-content;
    font-size: 3.5vw;
  }
  .usp span {
    position: relative;
    z-index: 1;
    transition: left 0.3s ease; /* Animation fluide du décalage */
    line-height: 1.25;
    padding: 5%;
    width: max-content;
    color: #57BDA2;
    transition: left 0.3s ease;
  }
  .skillDescription{
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 70%;
    height: 33.33%;
    transform-origin: center;
    justify-content: center;
    text-align: justify;
    font-size: 3.5vw;
    padding-left: 2%;
    left: 300%;
    top: 60%;
    color: #57BDA2;
    transition: left 0.3s ease;
  }
  .tools {
    display: flex;
    flex-direction: row;
    position: absolute;
    left: 15%;
    top: 95%;
    width: 100%;
    height: 100%;
  }
  .tools span {
    position: absolute;
    left: 25%;
    top: -5%;
    color: #57BDA2;
    text-align: center;
    font-size: 3.5vw;
  }
  .tools img {
    padding-left: 0.5%;
  }
  .tools img[alt="unity logo"] {
    position: relative;
    width: auto;
    height: 3%; 
  }
  .tools img[alt="csharp logo"] {
    position: relative;
    width: auto;
    height: 3%; 
  }
  .tools img[alt="git logo"] {
    position: relative;
    width: auto;
    height: 5%;
    top: -1%;
  }
  .tools img[alt="vscode logo"] {
    position: relative;
    width: auto;
    height: 3%;
  }
  .tools img[alt="js logos"] {
    position: relative;
    width: auto;
    height: 3.5%;
    top: -0.35%;
  }
  .tools img[alt="ps logo"] {
    position: relative;
    width: auto;
    height: 3%;
  }
  .tools img[alt="flash logo"] {
    position: relative;
    width: auto;
    height: 2.5%;
    top: 0.25%;
  }
  .tools img[alt="premiere logo"] {
    position: relative;
    width: auto;
    height: 4%;
    top: -0.5%;
  }
  .section {
    height: 100%;
    width: 100%;
    left: 0%;
    top: 100%;
    transition: top 0.3s ease;
  }
  .section.active {
    display: flex;
    top: 0;
  }
  #projects h1{
    position: absolute;
    width: 100%;
    left: 0%;
    top: 20%;
    text-align: center;
    text-transform: uppercase;
    font-size: 9vw;
    color:#DCB13C;
    text-shadow: 
      1px 1px 0px #d1d1d1,
      2px 2px 0px #b3b3b3,
      3px 3px 0px #949494,
      4px 4px 0px #767676,
    5px 5px 5px rgba(0, 0, 0, 0.6);
  }
  #projects .roles{
    position: absolute;
    top: 82.5%;
    left: 5%;
    width: 40%;
    font-size: 3.5vw;
    color: #57BDA2;
  }
  #projects .platforms{
    position: absolute;
    top: 90%;
    left: 5%;
    font-size: 3.5vw;
    color: #57BDA2;
  }
  #projects a{
    position: relative;
    top: 100%;
    left: 5%;
  }
  #projects img[alt="Steam logo"]{
    position: relative;
    width: 50px;
    height: 16px;
  }
  #projects img[alt="Switch logo"]{
    position: relative;
    width: 40px;
    height: 40px;
  }
  #projects img[alt="img01"]{
    position: absolute;
    top: 65%;
    left: 2.5%;
    width: 45%;
    height: auto;
  }
  #projects img[alt="img02"]{
    position: absolute;
    top: 65%;
    left: 52.5%;
    width: 45%;
    height: auto;
  }
  #projects img[alt="img03"]{
    position: absolute;
    top: 82.5%;
    left: 52.5%;
    width: 45%;
    height: auto;
  }
  #projects img[alt="img04"]{
    position: absolute;
    top: 32.5%;
    left: 5%;
    width: 90%;
    height: auto;
  }
  #projects img[alt="img05"]{
    display: none;
  }
  #CHOP img[alt="Alric png"]{
    position: absolute;
    top: 15%;
    left: 10%;
    width: 30%;
    height: auto;
  }
  #CHOP img[alt="CHOP png"]{
    position: absolute;
    width: 40%;
    height: auto;
    overflow: visible;
    top: 12.5%;
    left: 32.5%;
  }
  #CHOP img[alt="Khuno png"]{
    position: absolute;
    top: 13%;
    left: 65%;
    width: 30%;
    height: auto;
  }
  #CHOP iframe[alt="Gameplay trailer"] {
    position: absolute;
    top: 30%;
    left: 5%;
    width: 90%;
    height: 30%;
    z-index: 6;
  }
  #CHOP iframe[alt="Switch trailer"] {
    display: none;
  }
  #Jams iframe {
    position: absolute;
    top: 30%;
    left: 5%;
    width: 90%;
    height: 30%;
    z-index: 6;
  }

  #experience.active .timeline::before {
    height: 75%;
  }
  .timeline::before {
    content: "";
    position: absolute;
    bottom:10%;
    left: 65%;
    transform: translateX(-50%);
    width: 10px;
    height: 0%;
    border-radius: 8px;
    background: linear-gradient(#DCB13C, #57BDA2);
    z-index: 1;
    transition: height 1s linear;
  }
  .timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 10%;
    top: 50%;
    opacity: 0;
    transition: opacity 1s;
    z-index: 2;
  }
  
  .timeline-date {
    width: 20%;
    position: relative;
    text-align: left;
    font-size: 3.5vw;
    right: 10%;
    color: #57BDA2;
  }
  .timeline-circle {
    content: "";
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #304A78;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 2;
  }
  
  .timeline-content {
    flex: 1;
    padding: 3.75%;
    position: relative;
    text-align: right;
    right: 15%;
  }
  
  .timeline-content h3 {
    margin: 0;
    font-size: 3.5vw;
    color: #57BDA2;
  }
  
  .timeline-content p {
    margin: 10px 0 0;
    font-size: 3.5vw;
    color: #2493A2;
  }
}
@media (pointer: fine) {
  .line:hover::before,
  .line:hover::after {
    transform: scale(1);
  }
  .line::before {
    content: "";
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #DCB13C;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.1s ease;
  }
  #line1::before {
    left: 0;
  }
  #line2::before {
    left: 100%;
  }
  #line3::before {
    left: 0;
  }
  #line4::before {
    left: 100%;
  }
  
  .line::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #DCB13C;
    transform: scaleX(0);
    transition: transform 0.5s ease;
  }
  
  #line1::after {
    transform-origin: left;
  }
  #line2::after {
    transform-origin: right;
  }
  #line3::after {
    transform-origin: left;
  }
  #line4::after {
    transform-origin: right;
  }
  #line4:hover img[alt="fire gif"] {
    display: block;
  }

  #SwipeArrow {
    display: none;
  }
}
@media (pointer: coarse) {
  #SwipeArrow {
    display: inline-flex;
    position: absolute;
    width: 10%;
    height: 10%;
    left: -7.5%;
    top: 93%;
    transform: rotate(90deg);
  }
  #SwipeArrow .char {
    opacity: 0;
    animation: appear 0.6s ease infinite;
  }
  
  #SwipeArrow .char:nth-child(1) {
    animation-delay: 0s;
  }
  
  #SwipeArrow .char:nth-child(2) {
    animation-delay: 0.15s;
  }
  
  #SwipeArrow .char:nth-child(3) {
    animation-delay: 0.3s;
  }
  
  @keyframes appear {
    0% {
      opacity: 0; /* Début invisible */
    }
    20% {
      opacity: 1; /* Apparition progressive */
    }
    90% {
      opacity: 0; /* Disparaît avant le prochain caractère */
    }
    100% {
      opacity: 0; /* Fin de cycle invisible */
    }
  }
  
  body:has(#experience.active) #SwipeArrow {
    display: none;
  }
}
@media screen and (aspect-ratio > 1){
  nav .socialButton {
    width: 7.5%;
    height: 7.5%;
    padding-top: 5%;
    padding-right: 5%;
  }
  .page-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    color: white;
    top: 0;
    left: 20%;
    width: 80%;
    height: 100%;
    padding: 10px;
    z-index: 1;
  }
  .page-content .presentation .presElement {
    width: 33.33%;
    padding: 0px;
    justify-content: center;
    left: -5%;
    }
  .page-content .presentation .skills {
    display: flex;
    flex-direction: column; 
    position: relative;
    list-style-type: none;
    padding-right: 2%;
    text-transform: uppercase;
    text-align: right;
    font-family: "Hammersmith One", serif;
  }     
  .page-content .presentation .skills .line {
    align-self:self-end; 
    position: relative;
    padding: 2% 5%;
    color: #2493A2;
    z-index: 5;
  }
  .page-content .presentation .picture {   
    display: flex;
    flex-direction: column;
    position: relative;
    width: 15vw;
    height: auto; 
  }
  .usp{
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    font-size: 1.25vw;
  }
  .usp span {
    position: relative;
    z-index: 1;
    transition: left 0.3s ease;
    line-height: 2;
    padding-left: 10%;
    width: max-content;
    color: #57BDA2;
  }
  
  .skillDescription{
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 33.33%;
    height: 100%;
    transform-origin: center;
    justify-content: center;
    font-size: 1.25vw;
    padding-left: 2%;
    left: 300%;
    top: 0;
    color: #57BDA2;
    transition: left 0.3s ease;
  }
  .tools {
    display: flex;
    flex-direction: row;
    position: absolute;
    left: 33%;
    top: 85%;
    width: 100%;
    height: 100%;
  }
  .tools span {
    position: absolute;
    left: 8%;
    top: -5%;
    color: #57BDA2;
    text-align: center;
  }
  .tools img {
    padding-left: 0;
  }
  .tools img[alt="unity logo"] {
    position: relative;
    width: auto;
    height: 3%; 
  }
  .tools img[alt="csharp logo"] {
    position: relative;
    width: auto;
    height: 3%; 
  }
  .tools img[alt="git logo"] {
    position: relative;
    width: auto;
    height: 5%;
    top: -1%;
  }
  .tools img[alt="vscode logo"] {
    position: relative;
    width: auto;
    height: 3%;
  }
  .tools img[alt="js logos"] {
    position: relative;
    width: auto;
    height: 3.5%;
    top: -0.35%;
  }
  .tools img[alt="ps logo"] {
    position: relative;
    width: auto;
    height: 3%;
  }
  .tools img[alt="flash logo"] {
    position: relative;
    width: auto;
    height: 2.5%;
    top: 0.25%;
  }
  .tools img[alt="premiere logo"] {
    position: relative;
    width: auto;
    height: 4%;
    top: -0.5%;
  }
  .tools img[alt="jira logo"] {
    position: relative;
    width: auto;
    height: 2%;
    top: 0.5%;
  }
  .section {
    height: 100%;
    width: 100%;
    left: 100%;
    bottom: 0;
    transition: left 0.3s ease;
  }
  
  .section.active {
    display: flex;
    left: 0;
  }
  #projects h1{
    position: absolute;
    width: 100%;
    left: -5%;
    top: 10%;
    text-align: center;
    text-transform: uppercase;
  
    font-size: 5vw;
    color:#DCB13C;
    text-shadow: 
      1px 1px 0px #d1d1d1,
      2px 2px 0px #b3b3b3,
      3px 3px 0px #949494,
      4px 4px 0px #767676,
    5px 5px 5px rgba(0, 0, 0, 0.6);
  }
  #projects .roles{
    position: absolute;
    top: 67.5%;
    left: 5%;
    width: 25%;
    font-size: 1.25vw;
    color: #57BDA2;
  }
  #projects .platforms{
    position: absolute;
    top: 75%;
    left: 5%;
    font-size: 1.25vw;
    color: #57BDA2;
  }
  #projects a{
    position: relative;
    top: 100%;
    left: 5%;
  }
  #projects img[alt="Steam logo"]{
    position: relative;
    width: 50px;
    height: 16px;
  }
  #projects img[alt="Switch logo"]{
    position: relative;
    width: 40px;
    height: 40px;
  }
  #projects img[alt="img01"]{
    position: absolute;
    top: 37.5%;
    left: 5%;
    width: 25%;
    height: auto;
  }
  #projects img[alt="img02"]{
    position: absolute;
    top: 37.5%;
    left: 32.5%;
    width: 25%;
    height: auto;
  }
  #projects img[alt="img03"]{
    position: absolute;
    top: 67.5%;
    left: 32.5%;
    width: 25%;
    height: auto;
  }
  #projects img[alt="img04"]{
    position: absolute;
    top: 37.5%;
    left: 60%;
    width: 25%;
    height: auto;
  }
  #projects img[alt="img05"]{
    position: absolute;
    top: 67.5%;
    left: 60%;
    width: 25%;
    height: auto;
  }
  #CHOP img[alt="Alric png"]{
    position: absolute;
    top: 5%;
    left: 10%;
    width: 25%;
    height: auto;
  }
  #CHOP img[alt="CHOP png"]{
    position: absolute;
    width: 35%;
    height: auto;
    overflow: visible;
    top: -2.5%;
    left: 27.5%;
    z-index: 2;
  }
  #CHOP img[alt="Khuno png"]{
    position: absolute;
    top: 0%;
    left: 55%;
    width: 25%;
    height: auto;
    z-index: 1;
  }
  #CHOP iframe[alt="Gameplay trailer"] {
    position: absolute;
    top: 37.5%;
    left: 60%;
    width: 25%;
    height: 25%;
    z-index: 5;
  }
  #CHOP iframe[alt="Switch trailer"] {
    position: absolute;
    top: 67.5%;
    left: 60%;
    width: 25%;
    height: 25%;
    z-index: 5;
  }
  #Jams iframe {
    position: absolute;
    top: 67.5%;
    left: 60%;
    width: 25%;
    height: 25%;
    z-index: 5;
  }
  #experience.active .timeline::before {
    height: 80%;
  }
  .timeline::before {
    content: "";
    position: absolute;
    bottom:10%;
    left: 55%;
    transform: translateX(-50%);
    width: 1%;
    height: 0%;
    border-radius: 8px;
    background: linear-gradient(#DCB13C, #57BDA2);
    z-index: 1;
    transition: height 1s linear;
  }
  .timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0;
    transition: opacity 1s;
    z-index: 2;
  }
  
  .timeline-date {
    width: 10%;
    position: relative;
    font-size: 1.25vw;
    text-align: left;
    right: 32.5%;
    color: #57BDA2;
  }
  .timeline-circle {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: #304A78;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 2;
  }
  
  .timeline-content {
    flex: 1;
    padding: 3.25%;
    position: relative;
    text-align: right;
    right: 35%;
  }
  
  .timeline-content h3 {
    margin: 0;
    font-size: 1.25vw;
    color: #57BDA2;
  }
  
  .timeline-content p {
    margin: 10px 0 0;
    font-size: 1.25vw;
    color: #2493A2;
  }
}

.page-content .presentation {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  position: absolute;
  justify-content: center;
  font-size: 1.5vw;
}
  

.page-content .presentation .skills .line:hover {
  color: #DCB13C;
  cursor: none;
}

.page-content .presentation .picture img {
  border-radius: 50%;
}

.skills img[alt="fire gif"] {
  display: none;
  position: absolute;
  left: -7.5%;
  bottom: 10%;
  width: 20%;
  height: auto;
}

.branching {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 5%;
  pointer-events: none;
  z-index: -1;
  transition: width 0.3s ease;
}
#projects{
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
#projects .project{
  opacity: 0;
  transition: opacity 0.5s ease;
}
#projects .project.active {
  opacity: 1;
}
#experience {
  flex-direction: column;
  position: absolute;
}

.halo {
  position: fixed;
  width: 800px;
  height: 800px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #2493a231, transparent 60%);
  transition: transform 0.1s ease-out;
  z-index: 0;
  will-change: transform;
}

