/*------------------- GENERAL -------------------*/
body {
  background-color: rgba(22, 22, 26, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: white;
}

section {
  scroll-margin-top: 110px;
}


/*------------------- NAVBAR -------------------*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

nav {
  position: fixed;
  z-index: 99;
  width: 100%;

  background: #242526;
}

nav .wrapper {
  position: relative;
  max-width: 1300px;
  padding: 0px 30px;
  height: 10vh;
  line-height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wrapper .logo a {
  color: #f2f2f2;
  font-size: 30px;
  font-weight: 600;
  text-decoration: none;
}

.wrapper .nav-links {
  display: inline-flex;
}

.nav-links li {
  list-style: none;
}

.nav-links li a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  background: #3a3b3c;
}

.nav-links .mobile-item {
  display: none;
}

.nav-links .drop-menu {
  position: absolute;
  background: #242526;
  width: 180px;
  line-height: 45px;
  top: 85px;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.nav-links li:hover .drop-menu,
.nav-links li:hover .mega-box {
  transition: all 0.3s ease;
  top: 70px;
  opacity: 1;
  visibility: visible;
}

.drop-menu li a {
  width: 100%;
  display: block;
  padding: 0 0 0 15px;
  font-weight: 400;
  border-radius: 0px;
}

.mega-box {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0 30px;
  top: 85px;
  opacity: 0;
  visibility: hidden;
}

.mega-box .content {
  background: #242526;
  padding: 25px 20px;
  display: flex;
  width: 100%;
  justify-content: space-between;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.mega-box .content .row {
  width: calc(25% - 30px);
  line-height: 45px;
}

.content .row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content .row header {
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 500;
}

.content .row .mega-links {
  margin-left: -40px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.row .mega-links li {
  padding: 0 20px;
}

.row .mega-links li a {
  padding: 0px;
  padding: 0 20px;
  color: #d9d9d9;
  font-size: 17px;
  display: block;
}

.row .mega-links li a:hover {
  color: #f2f2f2;
}

.wrapper .btn {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
}

.wrapper .btn.close-btn {
  position: absolute;
  right: 30px;
  top: 10px;
}

@media screen and (max-width: 970px) {
  .wrapper .btn {
    display: block;
  }

  .wrapper .nav-links {
    position: fixed;
    height: 100vh;
    width: 100%;
    max-width: 350px;
    top: 0;
    left: -100%;
    background: #242526;
    display: block;
    padding: 50px 10px;
    line-height: 50px;
    overflow-y: auto;
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
  }

  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: #242526;
  }

  ::-webkit-scrollbar-thumb {
    background: #3a3b3c;
  }

  #menu-btn:checked~.nav-links {
    left: 0%;
  }

  #menu-btn:checked~.btn.menu-btn {
    display: none;
  }

  #close-btn:checked~.btn.menu-btn {
    display: block;
  }

  .nav-links li {
    margin: 15px 10px;
  }

  .nav-links li a {
    padding: 0 20px;
    display: block;
    font-size: 20px;
  }

  .nav-links .drop-menu {
    position: static;
    opacity: 1;
    top: 65px;
    visibility: visible;
    padding-left: 20px;
    width: 100%;
    max-height: 0px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
  }

  #showDrop:checked~.drop-menu,
  #showMega:checked~.mega-box {
    max-height: 100%;
  }

  .nav-links .desktop-item {
    display: none;
  }

  .nav-links .mobile-item {
    display: block;
    color: #f2f2f2;
    font-size: 20px;
    font-weight: 500;
    padding-left: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
  }

  .nav-links .mobile-item:hover {
    background: #3a3b3c;
  }

  .drop-menu li {
    margin: 0;
  }

  .drop-menu li a {
    border-radius: 5px;
    font-size: 18px;
  }

  .mega-box {
    position: static;
    top: 65px;
    opacity: 1;
    visibility: visible;
    padding: 0 20px;
    max-height: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .mega-box .content {
    box-shadow: none;
    flex-direction: column;
    padding: 20px 20px 0 20px;
  }

  .mega-box .content .row {
    width: 100%;
    margin-bottom: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mega-box .content .row:nth-child(1),
  .mega-box .content .row:nth-child(2) {
    border-top: 0px;
  }

  .content .row .mega-links {
    border-left: 0px;
    padding-left: 15px;
  }

  .row .mega-links li {
    margin: 0;
  }

  .content .row header {
    font-size: 19px;
  }
}

nav input {
  display: none;
}

.body-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  padding: 0 30px;
}

.body-text div {
  font-size: 45px;
  font-weight: 600;
}



/*------------------- ACCUEIL -------------------*/

#name {
  color: white;
  font-size: 5vw;
  font-weight: bold;
  margin-bottom: 1rem;
}

#job {
  color: white;
  font-size: 3vw;
  margin-bottom: 1rem;
}

#description {
  color: white;
  font-size: 1.4vw;
  margin-bottom: 3vh;
  padding-right: 60%;
  text-align: justify;
}

#main-page {
  padding-left: 10%;
  padding-top: 25vh
}

#circle-1 {
  width: 30vw;
  height: 30vw;
  position: absolute;
  margin-left: 50%;
  background: rgba(217, 217, 217, 0);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 100%;
  border: 8px;
  border-style: solid;
  border-color: #7f5af0;
}

#circle-2 {
  width: 8vw;
  height: 8vw;
  position: absolute;
  margin-left: 75%;
  transform: translateY(60%);
  background: linear-gradient(to right, #7f5af0, #638bbe);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 100%;
  border: 8px linear-gradient(90, #7f5af0, #638bbe) solid;
}

#circle-3 {
  width: 15vw;
  height: 15vw;
  position: absolute;
  margin-left: 65%;
  background-size: cover;
  background-position: center;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 100%;
  border: 8px;
  border-style: solid;
  border-color: #7f5af0;
  transform: translateY(-35%);
}

#photo {
  width: 100%;
  height: 100%;
  border-radius: 100%;
}

#CV-btn {
  /*background-image: linear-gradient(to right, #7f5af0, #638bbe);*/
  background: #464546;
  padding: 1rem 2rem;
  border-radius: 1rem;
  border: none;
  color: white;
  font-size: 1.5vw;
  cursor: pointer;
}

#CV-btn:hover {
  background-position: 100% 0;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 4px 15px 0 rgba(116, 79, 168, 0.75);
}

@media screen and (max-width: 630px) {

  #circle-1,
  #circle-2 {
    display: none;
  }

  #circle-3 {
    width: 35vw;
    height: 35vw;
    position: relative;
    margin: 0 auto;
    padding: 0;
    display: block;
  }

  #main-page {
    padding-top: 20vh;
    padding-left: 5%;
    padding-right: 5%;
    text-align: center;
  }

  #name,
  #job {
    color: white;
    margin-bottom: 1rem;
    padding: 0 10%;
    text-align: center;
  }

  #name {
    font-size: 5vw;
    font-weight: bold;
  }

  #job {
    font-size: 3vw;
  }

  #description {
    color: white;
    font-size: 1rem;
    margin-bottom: 3vh;
    padding: 0 5%;
  }

  #infos {
    position: relative;
    margin: -5vw auto 0;
    padding: 0;
    width: 80%;
  }

  #CV-btn {
    display: block;
    margin: 20px auto;
    border-radius: 1rem;
    border: none;
    color: white;
    font-size: 4vw;
    cursor: pointer;
    padding: 5% 20%;
  }
}


/*------------------- PROJECTS -------------------*/


#projects {
  margin-top: 25vh;
}

h2 {
  padding-left: 10%;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px;
  margin: 0 5%;
}

.project {
  width: calc((100% / 3) - (20px * 2 / 3));
  margin-bottom: 2%;
  min-width: 300px;
  max-width: calc(33.333% - 20px);
  background: #262626;
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  position: relative;
}

@media screen and (max-width: 1220px){
  .project {
    width: calc((100% / 2) - (20px * 2 / 2));
    max-width: calc(50% - 20px);
  }
  
  .projects-container {
    padding: 0;
    margin: 0 3%;
  }
}

@media screen and (max-width: 830px) {
  .project {
    width: 100%;
    max-width: 100%;
  }
 
  h2{
    font-size: 1.6rem;
  }

  .project-details h4{
    font-size: 1.2rem!important; 
  }

  .projects-container {
    padding: 0;
    margin: 10px;
  }
}

.project-details h4 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.project-image {
  width: 100%; /* Largeur complète du conteneur de projet */
  padding-top: 56.25%; /* 100 * (9 / 16) = 56.25%, ce qui maintient le ratio 16:9 */
  position: relative; /* Position relative pour le placement de l'image absolue */
  overflow: hidden; /* Cache les parties de l'image qui débordent */
  border-radius: 10px; /* Rayon pour les coins arrondis, si souhaité */
  margin-bottom: 20px; /* Espacement sous l'image */
}

.project-image img {
  position: absolute; /* Positionnement absolu de l'image pour la centrer correctement */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recadrage pour maintenir le ratio tout en couvrant l'espace */
  border-radius: 10px;
  margin-bottom: 20px;
}

.project-details {
  font-size: calc(1vw + 1vh);
}

.project-details p {
  font-size: 1.2rem;
  text-align: justify;
}



.project-btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #6c63ff;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s ease;
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 1.3rem;
  cursor: pointer;
  background-image: linear-gradient(to right, #7f5af0, #638bbe);
}

.project-btn:hover {
  background-position: 100% 0;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 4px 15px 0 rgba(116, 79, 168, 0.75);
}

.project-details {
  font-size: calc(1vw + 1vh);
  margin-bottom: 50px;
}

.project-popup {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.4); 
  backdrop-filter: blur(5px); 
}

.project-popup-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 20px;
  position: relative; 
  z-index: 2; 
}

.project-popup-content p {
  color: black;
  text-align: justify;
}

.project-popup-content h2 {
  color: black;
}

.project-popup-content li {
  color: black;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.project-extra-details {
  display: none;
}

.project-btn:hover {
  background-color: #5750c0;
}


/*------------------- pop up project -------------------*/

.project-popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project-popup-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.project-popup-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-popup-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-popup-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.project-popup-content ul li {
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}

.project-popup-content ul li:before {
  content: '\2022';
  position: absolute;
  left: 0;
}


.skill-category {
  font-weight: bold;
  margin-top: 10px;
}

.project-skill {
  margin-left: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 5px;
  background-color: #f0f0f0; /* Couleur de fond pour les compétences */
  color: #333; /* Couleur de texte pour les compétences */
}

.project-popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project-popup-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.project-popup-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-popup-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-popup-content .skill-category {
  color: #6c63ff;
}

.project-popup-content .project-skill {
  margin-top: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
}

@media screen and (max-width: 830px) {
  .project-popup{
    margin-top: 10vh;
  }

  .project-popup-content {
    padding: 10px;
  }

  .project-popup-content h2 {
    font-size: 1.2rem;
  }

  .project-popup-content p {
    font-size: 0.9rem;
  }

  .project-popup-content .skill-category {
    font-size: 1rem;
  }

  .project-popup-content .project-skill {
    font-size: 0.8rem;
  }
  
}


/*------------------- SKILLS -------------------*/


#skills {
  margin-top: 25vh;
}

.skills-section {
  background-color: #1c1c1e;
  color: white;
  text-align: center;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2%;
  margin-left: 8%;
  margin-right: 8%;
}

.skill {
  display: flex;
  align-items: center;
  flex-basis: calc((100% - 40px) / 2);
  color: #fff;
  margin: 1% 1% 3%;
  min-width: 220px;
}

.skill-name {
  width: 75px;
  font-size: 1rem;
  text-align: left;
}

@media screen and (min-width: 1280px){
  .skill-name{
    width: 100px;
    font-size: 1.3rem;
  
  }
}

.skill-bar {
  flex: auto;
  background-color: #2c2c2e;
  border-radius: 10px;
  margin: 0 10px;
  height: 20px;
  position: relative;
}

.skill-percentage {
  width: 50px;
  text-align: right;
}

.skill-undersection {
  flex-basis: calc((100% - 40px) / 2);
  margin-bottom: 1%;
}

@media screen and (max-width: 630px) {
  .skill-undersection {
    flex-basis: 100%;
  }
}

.skill-undersection h3 {
  margin-bottom: 1.5rem;
}

.skill-progress {
  background: linear-gradient(to right, #7f5af0, #638bbe);
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: width 1s ease;
}

.subskill {
  margin-left: 30px;
  margin: 1% 1% 3% 5%;
}

/*------------------- EXPERIENCES/FORMATION -------------------*/

@import url("https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400&display=swap");

.design-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 10vh;
  font-family: Jost;
}

.design {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline {
  height: auto;
  max-width: 800px;
  padding-left: 0%;
  padding-right: 0%;
  margin-left: 0%;
  margin-right: 0%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline-content {
  padding: 20px;
  background: #1f1f1f;
  -webkit-box-shadow: 5px 5px 10px #1a1a1a, -5px -5px 10px #242424;
  box-shadow: 5px 5px 10px #1a1a1a, -5px -5px 10px #242424;
  border-radius: 5px;
  color: white;
  padding: 1.75rem;
  transition: 0.4s ease;
  overflow-wrap: break-word !important;
  margin: 1rem;
  margin-bottom: 20px;
  border-radius: 6px;
}

.timeline-component {
  margin: 0px 20px 20px 20px;
}

.timeline-component p{
  text-align: justify;
}

@media screen and (max-width: 768px) {
  .timeline-component{
    border-style: solid;
    border-color: #7f5af0;
    border-width: 2px;
    border-width: 2px;
  }
}

@media screen and (min-width: 768px) {
  .timeline {
    display: grid;
    grid-template-columns: 50% 0% 50%;
  }

  .timeline-middle {
    position: relative;
    background-image: linear-gradient(45deg, #8868e7, #5491df);
    width: 3px;
    height: 100%;
  }

  .main-middle {
    opacity: 0;
  }

  .timeline-circle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-image: linear-gradient(45deg, #8868e7, #5491df);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

}

#expe_forma {
  margin-top: 25vh;
}

#expe_forma_btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}



.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked+.slider {
  background-color: #7f5af0;
}

input:focus+.slider {
  box-shadow: 0 0 1px #7f5af0;
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.content-section {
  transition: transform 0.4s, opacity 0.4s;
}

input:checked+.slider:before {
  box-shadow: 0 2px 5px -2px rgba(0, 0, 0, 0.2);
}

.txt-expe-forma {
  color: white;
  font-size: 1.25rem;
  margin-right: 1rem;
  margin-left: 1rem;
}


footer p {
  color: white;
  text-align: center;
  padding-top: 60px;
}