:root {
    --background-color: #101318;
    --text-color: #d9d9d9;
    --header-background: rgba(16, 19, 24, 0.8);
    --bg-projet: #2E3135
}
body.light {
    --background-color: linear-gradient(238deg, #3A65AD 7.39%, #101318 100%);
    --bg-projet: rgba(17, 17, 17, 0.37);

}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body{
    background : var(--background-color);

}

/*--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, var(--header-background) 0%, var(--header-background) 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: var(--header-background);
        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--------------------------------------------------------*/







/*--MAIN--------------------------------------------------------------*/


/*--SECTION NOM---------------------------------*/
.nom{
    margin-top: 13em;
}
.bg-nom{
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 3em;
    border: 4px solid white; 
    margin: 2em;
    padding: 2em;  
}

.bg-nom span {
    font-size: 3.75rem;
    font-family: "inter",sans-serif;
    font-weight: 700;
    letter-spacing: 2rem;
    background: linear-gradient(90deg, #FFC331 0%, #737373 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container-nom{
    padding: 2em;
    width: 1200px;
    align-items: center;
}
#prenom {
    display: flex;
    justify-content: flex-start;
}
#nom {
    display: flex;
    justify-content: flex-end;
}

@media screen and (max-width : 900px) {
    .bg-nom span{
        font-size: 2.75rem;
    }
}
@media screen and (max-width : 700px) {
    .bg-nom span{
        font-size: 1.75rem;
    }
}
@media screen and (max-width: 550px) {
    .bg-nom span{
        font-size: 1.45rem;
        letter-spacing: 1rem;
    }
    .nom{
        margin-top: 8em;
    }
}

/*--FIN SECTION NOM-----------------------------*/



/*--PRESENTATION--------------------------------*/

.bg-presentation{
    display: flex;
    justify-content: center;
    padding: 2em;
    background: rgba(255, 255, 255, 0.06);
}
.container-presentation{
    background: rgba(255, 255, 255, 0.08);
    padding: 2em;
    width: 1080px;
    border-radius: 2.625rem;
}
.container-presentation h1 {
    font-size: 1.875rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: rgba(217, 217, 217, 1);
    padding: 0.5em;
}
.text-presentation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    font-size: 1.5625rem;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    line-height: 150%; /* 2.34375rem */
    text-align: justify;
    color: rgba(217, 217, 217, 1);
    padding-bottom: 2em;
}
.bouton{
    display: flex;
    justify-content: end;
}

.bouton button{
    border-style: none;
}
.bouton-en-savoir-plus span {
    text-decoration: none;
    color: white;
    font-size: 1.25rem ;
    font-family: "inter", sans-serif ;
}

.bouton-en-savoir-plus a {
    text-decoration: none;
    color: white;
    font-size: 1.25rem ;
    font-family: "inter", sans-serif ;
}
.bouton-en-savoir-plus{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    padding: 0.7em 2em 0.7em 2em;
    border-radius: 2.4375rem;
    background: linear-gradient(180deg, rgba(255, 224, 82, 0.50) 0%, rgba(255, 224, 82, 0.50) 100%);
    box-shadow: 0 4px 40px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    cursor: pointer;
}
.bouton-en-savoir-plus:hover {
    box-shadow: 0 0 15px rgba(255, 224, 82, 0.8), 
                0 0 40px rgba(255, 224, 82, 0.6);
    transition: 0.3s ease;
}
.point-blue{
    width: 1.25rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 2.4375rem;
    background: linear-gradient(180deg, rgba(170, 170, 170, 0.6) 0%, rgba(170, 170, 170, 0.4) 100%);
    box-shadow: 0 4px 40px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
}
/*--FIN PRESENTATION----------------------------*/



/*--COMPETENCE----------------------------------*/
.bg-competence{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 170px 1fr 1fr  ; /*170px 240px 300px*/
    justify-content: center;
    padding: 4em;
    gap: 2em;
}
.box{
    background: rgba(217, 217, 217, 0.04);
    color: white;
    font-family: "Inter", sans-serif;
}

.logo-prog{
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.logo-prog img{
    margin: 1em;
    padding: 1.5em;
    width: 90px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0.25);
}

.box h2{
    padding: 2em;
}

.box1{
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
    text-align: justify;
    align-items: center;
    font-size: 1.25em;
    padding: 1em;
}
.box2{
    grid-column: 2/3;
    grid-row:1/3 ;
}

@media screen and (max-width: 1020px) {
    .bg-competence{
        grid-template-columns: 1fr ;
        grid-template-rows: auto;
    }
    .box2{
        grid-column: 1/2;
        grid-row: auto ;
    }
}

/*--FIN COMPETENCE------------------------------*/



/*--PROJET--------------------------------------*/
.container-projet{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    flex-direction: row;
    align-items: center;
    gap: 2em;
    padding: 1em;
    flex-wrap: wrap;
}
.projets{
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 5em;
}
.projets h1{
    font-size: 1.875rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: rgb(255, 255, 255);
    padding: 1em;
    margin-bottom: 2em;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
}
.projet{
    display: flex;
    flex-direction: column;
    justify-self: center;
    justify-content: center;
    border-radius: 21px;
    background-color: var(--bg-projet);
    width: 30rem;
    padding: 1em;
}
.titre-projet{
    padding: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
}
.titre-projet h2{    
    font-size: 1.40rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin-left: 0.5em;
}.titre-projet img{
    height: 50px;
}
.texte-projet{
    padding: 1em;
    font-size: 1.20rem;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: rgb(255, 255, 255);
    text-align: justify;
}
.icones-projet{
    padding-left: 1em;    
    padding-bottom: 1em;
}
.icones-projet img{
    height: 30px;
}

@media screen and (max-width: 1020px) {
    .container-projet{
        grid-template-columns: 1fr ;
        grid-template-rows: auto;
    }
    .projet{
        width: 90%;
    }
}

/*--FIN PROJET----------------------------------*/


/*--CV-----------------------------------------*/

.cv-section {
    text-align: center;
    padding: 2em 1em;
    margin: 1em;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    border-radius: 2em;
}
.cv-section h2 {
    font-size: 1.875rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    margin-bottom: 0.5em;
}
.cv-container {
    max-width: 800px;
    margin: auto;
    border: 2px solid #d9d9d9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5em;
}

.cv-download .btn-download {
    background-color: #FF7979;
    color: white;
    padding: 0.8em 1.5em;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.cv-download .btn-download:hover {
    background-color: #e66060;

}
.cv-download a{
    font-family: "Inter", sans-serif;
}

/*--Fin CV-------------------------------------*/


/*--POPUP--------------------------------------*/

/* 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: var(--text-color);
    }
.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;
    }




.contact {
    margin-top: 13em;
    color: var(--text-color);
    padding: 2em;
    text-align: center;
}

.contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact input,
.contact textarea {
    padding: 1em;
    border-radius: 8px;
    border: none;
    font-size: 1em;
}

.contact button {
    background-color: #FF7979;
    color: white;
    border: none;
    padding: 0.8em;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.contact button:hover {
    background-color: #e66060;
}




.footer {
  background-color: var(--background-color) ;
  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;
  }
}

/*--FIN MAIN----------------------------------------------------------*/








