/* ========================Fonts======================== */

@font-face {
  font-family: 'PaytoneOne';
  src: url('./fonts/PaytoneOne-Regular.woff')format('woff2'),
       url('./fonts/PaytoneOne-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Satoshi';
  src: url('./fonts/Satoshi-Black.woff2')format('woff2'),
       url('./fonts/Satoshi-Black.woff') format('woff');
}

/* Float animation settings */

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}

/* ========================GLOBAL======================== */



*,
*::after,
::before {
    box-sizing: border-box;
}

body {
    height: 100%;
    margin: 0;
}


section, header{
  width: 100%;
  height: 100vh;
}

h1, h2, h3{
  font-family: 'PaytoneOne', sans-serif;
  text-transform: uppercase;
  display: flex;
  position: relative;
  z-index: 1;
  padding: 2px 20px;
}

ul {
  list-style-type: none;
  font-family: "Satoshi", sans-serif;
  font-weight: 200;
}

p, strong{
  font-family: "Satoshi", sans-serif;
  font-weight: 200;
  display: flex;
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
}

* {
  margin: 0;
  padding: 0;
}


#logoLL {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6vh;
  z-index: 1;

}

.firstimg {
  display: none;
}

.regularbtn { 
  width: 300px;
  height: 68px;
  margin-top: 17px;
  background: transparent;
  border: solid 1px black;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease-in-out;
  font-family: 'PaytoneOne', sans-serif;
  text-transform: uppercase;
}

.regularbtn:hover {
  width: 280px;
  height: 64px;
  font-size: 2.3rem;
}

.logo {
  width: 50px;
  height: 50px;
}

a {
  color: black;
  font-family: "Satoshi", sans-serif;
  font-weight: 200;
  text-decoration: none;
}

/*   ===============================LOADER=================================== */

.loader {
  width: 100vw;
  height: 100vh;
  background-color: #F1F9F3;
  position: fixed;
  z-index: 1000;

}

.L-right {
  transform: translateX(15px);
  position: absolute;
}

.L-left {
  transform: translateX(-15px); 
  position: absolute;
}


.loader-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 4rem;
}

.loader-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: transparent; /* Couleur de fond initiale transparente */
  width: 0; /* Largeur initiale nulle */
  height: 0; /* Hauteur initiale nulle */
}



/*   ===============================NAVBAR=================================== */

.navbar {
  position: fixed;
  top: 45%;
  right: 0%;
  height: 175px;
  z-index: 6;
  opacity: 0;
}

.progress-bar {
  position: absolute;
  top: -20px;
  left: 0;
  width: 2px;
  height: 61%;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.2);
}

.progress-bar--increment {
  background-color: rgb(0, 0, 0, 1);
  position: absolute;
  top: -10px;
  left: 0;
  width: 2px;
  height: 0;
  border-radius: 5px;
}

.progress-bar--circle {
  position: absolute;
  bottom: 9px;
  left: -21px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 1);
  transition: all 0.1s;
}

.circles-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-bar--circle.active {
  background-color: #FFD4D4; 
  border: 2px solid rgb(0, 0, 0);
}

.navbar ul {
    padding: 0 1em;
    list-style: none;
}

.navbar ul li {
    position: relative;
    margin-bottom: 1em;
}

.navbar ul li a {
    font-size: 1.2em;
    color: white;
    text-decoration: none;
    transition: all 0.1s;
}

.active {
 color: transparent;
}

/* ================================HEADER================================= */

.App-header {
  background-color: #F1F9F3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  }
  
.circle {
    display: none;
  }

.substitution-circle {
    display: block;
    position: absolute;
    z-index: 0;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background-color: #FFE6E6;
    margin-bottom: 20px;
}

.header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 3s ease-in-out infinite;
  z-index: 3;
  opacity: 0;
}

.header-title h1 {
  font-size: 1.7rem;
}

.header-title p {
  font-size: 0.8em;
}

/* ================================PRES================================= */


/* DEFILEMENT */

.messagedefilant {
  top: 54px;
  font-family: "Satoshi", sans-serif;
    font-weight: 200;
  display: block;
  margin: 40px auto;
  padding: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 60px;
}
 
.messagedefilant div {
  position: absolute;
  min-width: 100%; /* au minimum la largeur du conteneur */
}
 
.messagedefilant div span, 
.messagedefilant div:after {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  white-space: nowrap;
  top:0;
}
 
.messagedefilant div span {
  animation: defilement 25s infinite linear;
}
 
.messagedefilant div:after {
  position: absolute;
  top:0; left:0;
  content:attr(data-text);
  animation: defilement2 25s infinite linear;
}

.text-pres-container {
  background-color: #F1F9F3;
  padding: 30px 51px;
  width: 90%;
}

.text-pres-container h2 {
  font-size: 1.6em;
  justify-content: center;
}

.content-pres {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
}

.secondimg {
  width: 40%;
  animation: float 3s ease-in-out infinite;
}

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

.content-pres a {
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PaytoneOne', sans-serif;
  text-transform: uppercase;
}

/*===============================SKILLS================================= */

#skills {
  height: auto;
  text-align: center;
  height: 150vh;
}

.skills-container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  max-width: 100%;
  height: 600px;
  transform: translateY(-150px);
}



.skills-name h3 {
  font-size: 2rem;
  transition: all 0.3s ease-in-out;
  opacity: 0.5;
  cursor: default;
}

.skills-name h3:hover {
  transform: translateX(-50px);
  opacity: 1;
}


.skills-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
}

.oval-container {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 800px;
  transition: all 0.8s ease-in-out;
  transform: translateX(-500px);
  opacity: 0;
}

.oval {
  width: 300px;
  height: 400px;
  background-color: #FFE6E6;
  border-radius: 50%;
  position: absolute;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#skills-li{
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.title-skills h2 {
  font-size: 2.6rem;
}

.title-skills {
  padding: 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}


/*=================================PROJETS================================= */

#projets h2 {
  font-size: 3rem;
  color: #F1F9F3;
}

#projets p {
    color: #F1F9F3;
}

.title-projets {
    padding: 30px;
    width: 100%;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#projets {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
}

.video-container {
  position: absolute;
  display: flex;
  z-index: 0;
  justify-content: center;
  gap: 1rem;
  margin-top: 20%;
  opacity: 0.4;
}

#backgroundVideo {
    width: 70%;
    height: 70%;
    object-fit: cover;
}

.play {

    text-align: center;
    padding: 20px;
}

.play:hover + .video-container video {
    display: block;
}

.projects-list-container h3{
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease-in-out;
    cursor: default;
}

.projects-list-container h3:hover{
  color: #F1F9F3;
}

.projects-list-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding: 42px;
}

.players {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    z-index: 2;

}

.right-player, .left-player {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-see a, .btn-info a {
  color: #F1F9F3;
  font-family: 'PaytoneOne', sans-serif;
  text-transform: uppercase;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  position: relative;
}

.btn-info, .btn-see {
  position: relative;
  border-bottom: 1px solid white;
  margin: 1rem;
  padding: 1rem;
}


/*=================================MODAL================================= */

.modal-project {
  position: fixed;
  display: none;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  justify-content: flex-end;
  z-index: 3;
  align-items: center;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: #999; 
  transition: all 0.3s ease-in-out;
}

.close:hover {
  color: black;
  scale: 2.6;
}

.modal-project-content {
  width: 100vw;
  height: 100vh;
  background-color: white;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 3rem 1rem;
  gap: 2rem;
  position: relative;
}

.modal-project-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.modal-project-header h3 {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.modal-project-header span{
  position: absolute;
  right: 2rem;
  scale: 2.5;
  top: 2rem;

  z-index: 10;
}

.modal-project-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.modal-project-body img {
  width: 100%;
  object-fit: cover;
}

.modal-project-body h3 {
  padding: 0;
}

.details-container {
  display:flex;
  flex-direction: row;
  justify-content: space-between;
}

.modal-project-footer {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 1rem;

}

.body-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-project a{
  text-decoration: underline;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
  background-color: #1E1E1E;
}

.project {
  position: relative;
  min-width: 400px;
  height: 50vh;
  display: flex;
  cursor: pointer;
  border: rgba(176, 176, 176, 0.1) solid 0.2px;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(2px);
  transition: all 0.3s ease-in-out;
}

.project .project-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.project:hover img {
  opacity: 1;
  filter: blur(0px);
  scale: 1.01;
}

#project-grid {
  background-color: #1E1E1E;
  height: auto;
}

#project-grid h1 {
  font-size: 4rem;
  color: #F1F9F3;
  padding: 2rem;
}


.title-project-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.title-project-grid img {
  width: 50px;
  height: 50px;
  margin-right: 1rem;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.title-project-grid img:hover {
  scale: 1.1;
  opacity: 1;
}

.project-title {
  font-family: 'PaytoneOne', sans-serif;
  position: absolute;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  text-align: center;
  text-transform: uppercase;
}

.project-title.hidden {
  opacity: 0;
}

/*=================================FOOTER================================= */

footer {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 1rem;
  align-items: center;
  background-color: #1E1E1E;
}

.mentions a {
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PaytoneOne', sans-serif;
  text-transform: uppercase;
}

footer p, .mentions a{
  color: white;
}

footer .regularbtn {
  border: white solid 2px;
}

/*=================================MEDIAS================================= */
 
@keyframes defilement {
  0% { margin-left: 0; }
  100% { margin-left: -100%; }
}
 
@keyframes defilement2 {
  0% { margin-left: 100%; }
  100% { margin-left: 0%; }
}

@media (min-width: 1133px) {

  h1, h2, h3{
    font-size: 2em;
  }

  .navbar {
    right: 2em;
  }

  .header-title p{
    font-size: 1.5em;
  }

  .header-title h1{
    font-size: 4rem;
  }

  .circle {
    display: block;
    position: absolute;
    z-index: 0;
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    background-color: #FFE6E6;
    animation: App-logo-spin infinite 20s linear;
  }

  .substitution-circle {
    display: none;
  }



  /* ================================PRES================================= */

  .content-pres {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 1rem;
    top: -2%;
  }

  .content-color-container {
    width: 70%;
    height: fit-content;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #F1F9F3;
  }

  .text-pres-container {
    width: 65%;
    height: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10% 0%;
  }

  .text-pres-container h2 {
    font-size: 3em;
    justify-content: center;
    margin-bottom: 30px;
  }

  .text-pres-container p {
    font-size: 1.2em;
  }

  .secondimg {
    position: absolute;
    left: -80px;
    width: 236px;
    top: -80px;
  }

/*=========================SKILLS=========================*/

.title-skills {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  position: relative;
  bottom: -12%;
  z-index: -1;
}

.skills-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 100%;
  margin: 2rem;
  height: 600px;
}



.skills-name h3 {
  font-size: 5rem;
  transition: all 0.3s ease-in-out;

  opacity: 0.5;
}

.skills-name h3:hover {
  transform: translateX(-50px);
  opacity: 1;
}


.skills-name {
  display: flex;
  flex-direction: column;
  gap: 3rem
}

.oval-container {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 800px;
  transition: all 0.8s ease-in-out;
  transform: translateX(-500px);
  opacity: 0;
}

.oval {
  width: 500px;
  height: 530px;
  background-color: #FFE6E6;
  border-radius: 50%;
  position: absolute;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#skills-li{
  gap: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.title-skills h2 {
  font-size: 9rem;
  color: rgba(0,0,0,0.1);
}
/*=========================PROJECTS=========================*/

#projets h2 {
  font-size: 10rem;
  color: rgba(255,255,255,1);;
}

#projets p {
    color: #F1F9F3;
}

.title-projets {
    padding: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#projets {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Empêcher le défilement de la page lors de la lecture de la vidéo */
  display: -webkit-box; /* Safari */
  display: -ms-flexbox; /* IE */
  display: flex;
  -webkit-box-pack: justify; /* Safari */
  -ms-flex-pack: justify; /* IE */
  justify-content: space-around;
  -webkit-box-align: center; /* Safari */
  -ms-flex-align: center; /* IE */
  align-items: center;
}

.video-container {
  position: absolute;
  display: -webkit-box; /* Safari */
  display: -ms-flexbox; /* IE */
  display: flex;
  height: 100%;
  z-index: 0;
  -webkit-box-pack: center; /* Safari */
  -ms-flex-pack: center; /* IE */
  justify-content: center;
  -webkit-box-align: start; /* Safari */
  -ms-flex-align: start; /* IE */
  align-items: flex-start;
  margin: 0;
  opacity: 1;
}

#backgroundVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  text-align: center;
  padding: 20px;
}

.play:hover + .video-container video {
  display: block;
}

.projects-list-container h3{
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.4rem;
}

.projects-list-container h3:hover{
  color: #F1F9F3;
  font-size: 1.41rem;
}


.projects-list-container {
  width: 100%;
  height: 70%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.players {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  position: relative;
  z-index: 2;
  height: 80%;
}

.right-player, .left-player {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.btn-info, .btn-see {
  height: 100%;
  width: 16%;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: none;
  margin: 0;
  padding: 0;
}

.btn-see a, .btn-info a {
  color: #F1F9F3;
  font-family: 'PaytoneOne', sans-serif;
  text-transform: uppercase;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  position: relative;
}

.underline {
    width: 10px;
    height: 1px;
    border: white solid;
    transition: width 0.3s ease;
}

.btn-info a:hover .underline,
.btn-see a:hover .underline {
    width: 60px; 
}

.btn-projets button:hover {
    width: 230px;
    height: 55px;
    font-size: 1.5em;
    background-color: #F1F9F3;
    color: black;
}

.projets-content {
  width: 80%;
  z-index: 2;
  height: 100%;
}



/*=========================MODAL=========================*/

.modal-project {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-project-content {
  width: 95%;
  height: 95%;
  border-radius: 10px ;
  padding: 50px;
}

.modal-project-body img{
  height: 500px;
}

/*=========================FOOTER=========================*/

footer {
  flex-direction: row;
  justify-content: space-between;
}

footer p, .mentions a{
  color: white;
}


footer .regularbtn {
  border: white solid 1px;
}

}
