*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #101318;
    color: #333;
}
body.light {
    background :linear-gradient(238deg, #3A65AD 7.39%, #101318 100%);

}

/*---HEADER---------------------------------------*/
.header-container{
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0px; /* caché au départ */
    width: 100%;
    z-index: 1000; /* Pour qu'il passe devant tout */
    transition: top 0.4s ease-in-out; /* <<< animation fluide */
}

.header-container.show {
    top: 0; /* fait apparaître la navbar */
}
.header-container.nshow{
    top: -300px;
}

.header-center{
    display: flex;
    justify-content: center;
    margin: 2em;
    padding: 2em;
    border: 4px solid transparent; /* transparent to let the gradient show */
    border-radius: 2.4rem;

    background: 
        linear-gradient(180deg, rgb(16, 19, 24) 0%, rgb(16, 19, 24) 100%) padding-box, 
        linear-gradient(to right, #ffffff, #153062) border-box;

    box-shadow: 0 4px 40px 10px rgba(255, 255, 255, 0.25);
    width: 60rem;

}
ul{
    display: flex;
    list-style: none;
    gap: 4.9375rem; 
}

li a{
    text-decoration: none;  
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    font-family: "Inter", sans-serif;

}

/* Icône burger cachée sur grand écran */
.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Menu normal */
ul {
    display: flex;
    list-style: none;
    gap: 4.9375rem; 
}

/* Responsive */
@media screen and (max-width: 900px) {
    .header-center {
        width: 90%;
        margin: 1em;
        padding: 1em;
    }
    .menu-toggle {
        display: block; /* Afficher le bouton ☰ */
    }
    nav ul {
        display: none; /* Cacher le menu par défaut */
        flex-direction: column;
        background: rgb(16, 19, 24);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem;
    }
    nav ul.show {
        display: flex; /* Afficher le menu quand on clique */
    }
}



.header-right{
    display: flex;
    align-items: center;
    margin: 0.5em;
    gap: 1em;
}

/* From Uiverse.io by alexruix */ 
/* The switch - the box around the slider */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  --background: #28096b;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  transition: .5s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 50%;
  left: 10%;
  bottom: 15%;
  box-shadow: inset 8px -4px 0px 0px #fff000;
  background: var(--background);
  transition: .5s;
}

input:checked + .slider {
  background-color: #522ba7;
}

input:checked + .slider:before {
  transform: translateX(100%);
  box-shadow: inset 15px -4px 0px 15px #fff000;
}
/*---FIN HEADER---------------------------------------*/

.Titre-container h1 {
    color: white;
    font-size: 2em;
    font-weight: 400;
}
.Titre-container{
    text-align: center;
}
.Titre{
    margin-top: 13em;
    padding: 3em;
    background: rgba(255, 255, 255, 0.08);
    width: 50vw;
    border-radius: 0 4em 0 0 ;
}


.presentation-container p{
    color: white;
    text-align: justify;
    font-size: 1.3em;
}
.presentation-container{
    padding: 1em;
    border-left: 5px solid #D9D9D9;
}

.presentation{
    margin: 3em;
    padding: 1em;
}

.objectif-container p {
    color: white;
    font-size: 1.3em;
    text-align: center;
}
.objectif-container{
    width: 70vw;
}
.objectif{
    display: flex;
    justify-content: center;
    margin: 3em;
    padding: 1em;
}




.carousel-container {
  position: relative;
  width: 700px;
  overflow: hidden;
}

.carousel-container:hover .carousel-button{
  opacity: 1;
}

.carousel{
  display: flex;
  transition: transform 0.5s ease;
}

.carousel img {
  width: 700px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.carousel-button {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #313131;
  border: none;
  border-radius: 100px;
  color: #ffffff;
  transition: opacity .3s ease;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  z-index: 1;
}

.carousel-button.left {
  left: 10px;
}

.carousel-button.right {
  right: 10px;
}

.ImgProj{
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 700px) {
.carousel img{
    width: 500px;
}
.carousel-container{
    width: 500px;
}
}

@media screen and (max-width: 500px) {
.carousel img{
    width: 300px;
}
.carousel-container{
    width: 300px;
}
}
@media screen and (max-width: 300px) {
.carousel img{
    width: 200px;
}
.carousel-container{
    width: 200px;
}
}



.titre h2{
    color: white;
}
.titre{
    margin: 2em;
}
.roles-descriptions{
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 100px;
}
.role{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.role-img{
    display: flex;
    justify-content: center;
}
.role-img img{
    width: 500px;
}
.role-text p {
    color: white;
    font-size: 1.3em;
}
.role-text{
    width: 700px;
    text-align: justify;
    margin: 2em;
}

@media screen and (max-width: 500px) {
.role-img img{
    width: 300px;
}
}

@media screen and (max-width: 300px) {
.role-img img{
    width: 200px;
}
}

.competences-description{
    display: flex;
    justify-content: center;
}
.competences-list{
    width: 70vw;
    text-align: center;
}

.bouton-en-savoir-plus {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    margin: 1em;
    border: none;
    font-size: 1.3em;
    background-color: inherit;
    border-radius: 100px;
    font-weight: 600;
    color: #ffffff40;
    box-shadow: 0 0 0 2px #ffffff20;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.bouton-en-savoir-plus span:last-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 20px;
    background-color: #2196F3;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.bouton-en-savoir-plus span:first-child {
    position: relative;
    z-index: 1;
}

.bouton-en-savoir-plus:hover {
    box-shadow: 0 0 0 5px #2195f360;
    color: #ffffff;
}

.bouton-en-savoir-plus:active {
    scale: 0.95;
}

.bouton-en-savoir-plus:hover span:last-child {
    width: 350px;
    height: 150px;
    opacity: 1;
}

@media screen and (max-width: 450px) {
.bouton-en-savoir-plus {
    padding: 12px 24px;
    font-size: 1em;
}
}





    /* Arrière-plan du popup */
    .overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(5px); /* flou */
      display: none; /* caché au départ */
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    /* Contenu du popup */
    .popup {
      background: white;
      padding: 30px;
      border-radius: 15px;
      max-width: 400px;
      text-align: center;
      box-shadow: 0 0 20px rgba(0,0,0,0.3);
    }

    .close {
      cursor: pointer;
      background: #e74c3c;
      color: white;
      border: none;
      padding: 10px 15px;
      border-radius: 5px;
      margin-top: 15px;
    }






.connaissances-description{
    display: flex;
    justify-content: center;
}
.connaissances-list{
    width: 50vw;
    text-align: center;
}

.connaissances-button {
    position: relative;
    display: inline-block;
    padding: 32px 24px;
    margin: 1em;
    border: none;
    font-size: 1.3em;
    background-color: inherit;
    border-radius: 10px;
    font-weight: 600;
    color: #ffffff40;
    box-shadow: 0 0 0 2px #ffffff20;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.connaissances-button span:last-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 20px;
    background-color: #f32121;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.connaissances-button span:first-child {
    position: relative;
    z-index: 1;
}

.connaissances-button:hover {
    box-shadow: 0 0 0 5px #f3212160;
    color: #ffffff;
}

.connaissances-button:active {
    scale: 0.95;
}

.connaissances-button:hover span:last-child {
    width: 350px;
    height: 150px;
    opacity: 1;
}

@media screen and (max-width: 450px) {
.connaissances-button {
    padding: 12px 24px;
    font-size: 1em;
}
}


.competence-connaissance{
    background: rgba(255, 255, 255, 0.08);
    margin: 3em;
    padding: 2em;
    border-radius: 2em;
}


/* Arrière-plan du popup */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px); /* flou */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none; /* évite les clics quand caché */
    transition: opacity 0.3s ease;
    }

/* Quand on l’active */
.overlay.show {
    opacity: 1;
    pointer-events: auto;
    }

/* Popup */
.popup {
    background: #1f1f1f;
    padding: 0.5em;
    border-radius: 1rem;
    max-width: 950px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    }


.overlay.show .popup {
    transform: translateY(0);
    opacity: 1;
    }

/* Contenu du popup */  
.text-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    background-color: #1f1f1f;
    padding: 2em;
    width: 70vw;
    border-radius: 2em;
    margin-bottom: 2em;    
    }
.presentation-container{
    display: flex;
    justify-content: center;
    }

.titre-presentation h2{
    font-size: 2rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin-top: 1em;
    }
    
.text-case{
    background: rgba(255, 255, 255, 0.06);
    padding: 2em;
    border-radius: 1.5em;
    width: 100%;
    max-width: 300px;
    }
.text-case h3{
    font-size: 1.40rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin: 0.5em;
    }
.text-case p{
    font-family: "Inter", sans-serif;
    text-align: justify;
    font-size: 1em;
    color: #d9d9d9;
    }
.text-case:hover .important{
    color: #FF7979;
}


@media screen and (max-width: 768px) {
.presentation {
    padding: 1em 1em;
    height: auto; /* évite le scroll inutile sur petits écrans */
}
.text-container {
    flex-direction: column;
    align-items: center;
    width: 90vw;
    padding: 1.5em 1em;
    gap: 1.5em;
}
.text-case {
    padding: 1.5em;
    max-width: 100%;
}

.text-case h3 {
    font-size: 1em;
}

.text-case p {
    font-size: 0.7em;
}
}

/*fin contenu popup*/


/* Bouton de fermeture */
.close {
    cursor: pointer;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 1rem;
    transition: background 0.3s ease;
    }

.close:hover {
    background: #c0392b;
    }



.footer {
  background: #101318;
  color: #fff;
  padding: 2rem 1rem 1rem;
  font-family: "Inter", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}



.footer h3, .footer h4 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer p {
  line-height: 1.6;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 0.5rem 0;
}

.footer-links ul li a {
  text-decoration: none;
  color: #aaa;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.social-icons a {
  margin-right: 1rem;
  display: inline-block;
}

.social-icons img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}
#Github{
  filter: invert(1); /* pour rendre les icônes blanches */
}
.social-icons img:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #777;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .social-icons a {
    margin: 0 0.5rem;
  }
  .footer-links {
    display: none;
  }
}
