@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
    font-family: 'Poppins',sans-serif;
    padding: 0;
    margin:0;
    box-sizing: border-box;
}

body{
    
    width: 100%;
    background-color: #292929;
    background-size: cover; /*le fond prend toute la page*/
    background-position: right;
    background-repeat: no-repeat; /* l'image ne se repete pas*/
    z-index: -10;   
}


.menu{
    height: 100vh;
    width: 100%;
    background-image: url("../images/background.jpg");
    background-size: cover; /*le fond prend toute la page*/
    background-position: right;
    background-repeat: no-repeat; /* l'image ne se repete pas*/
   
}

nav{
    display: flex;
    align-items: center; /* aligner verticalement*/
    justify-content: space-between; /*espace entre le menu sauf sur les cotés*/
    padding-top: 45px;
    padding-left: 8%;
    padding-right: 8%;
}

/* Sidenav menu */
.sidenav {
    height: 100%;
    width: 260px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: -260px;
    background-color: #5f5f5f;
    padding-top: 60px;
    transition: left 0.5s ease;
  }

  #openBtn{
    display: none;
  }
  
  .sidenav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  /* Sidenav menu links */
  .sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: block;
    transition: 0.3s;
  }
  
  .sidenav a:hover {
    color: #111;
  }
  
  /* Active class */
  .sidenav.visible {
    left: 0;
  }
  
  /* Close btn */
  .sidenav .close {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
  }
  
  .burger-icon{
    visibility: hidden;
  }

  .burger-icon span {
    display: block;
    width: 35px;
    height: 5px;
    background-color: white;
    margin: 6px 0;
  }


.logo{
    font-size: 35px;
    color: white;
    letter-spacing: 1px;
}

nav span{
    color:#f9004d;
}

nav ul li{
    list-style: none; /* enleve les points */
    display: inline-block; /* aligne la liste*/
    padding: 10px 10px;
}

nav ul li a{
    text-decoration: none;
    color:white;
    font-size: 18px;
    padding-left: 10px;
    padding-right: 10px;
    border: 2px solid transparent;
    border-radius: 25px;
    
}

nav ul li a:hover{
    background-color:#f9004d;
    
}


.info{
    position: absolute;
    top: 25%;
    left: 8%;
    color: white;

}

.info h1{
    margin: 20px 0px 20px;
    font-size: 4rem;
    animation: apparition 0.8s ease-out;
}

.info h3{
    font-size: 1.5rem;
    margin-bottom: 3rem;
    animation: apparition 0.8s ease-out;
}


.info h4{
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: grey;
    animation: apparition 0.8s ease-out;
}

@keyframes apparition {
    from {
        opacity: 0;
        transform: translateX(-200px);
    }
    to{
        opacity: 1;
        transform: translateX(0px);
    }
}

div span{
    color:#f9004d;
}

.active{
    background-color: #f9004d;
}

.image-pc{
    position: absolute;
    left: 8%;
    top: 65%
    
}

.pc{
    width: 150px;
    height: 100px;
    animation: apparition 0.8s ease-out;
}


.reseau{
    position: absolute;
    bottom: 10%;
    width: 300px;
    left:8%;
    display: flex;
    justify-content:space-evenly;
    align-items: center;
    
}

.reseau a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    
    border: 2px solid #f9004d;
    text-decoration: none;
    border-radius: 50px;
    color: white;
    transition: transform .4s;
}

div h2{
    color : white;
    font-size: 1.5rem;
    letter-spacing: 1px;
}


.reseau a:hover{
    transform: scale(1.2);
    background-color: #f9004d;
}

@media screen and (max-width: 1355px) {
    .nav-links {
        display: none; /* Masquer le menu de navigation principal */
    }

    #openBtn{
        display: block;
      }
    
    .burger-icon {
        position:fixed; /* Afficher l'icône du menu hamburger */
        top : 0;
        left: 0;
        margin : 3.2rem 0 0 2rem;
        visibility: visible;
    }

    nav{
        margin-left: 5rem;
    }

    .menu{
        background-image: none;
        background-color: #111;
    }

    .info h1{
        margin: 20px 0px 20px;
        font-size: 3.5rem;
        animation: apparition 0.8s ease-out;
    }
    
    .info h3{
        font-size: 1.5rem;
        margin-bottom: 3rem;
        animation: apparition 0.8s ease-out;
    }
    
    
    .info h4{
        font-size: 1.5rem;
        letter-spacing: 2px;
        color: grey;
        animation: apparition 0.8s ease-out;
    }
}

@media screen and (max-width: 702px) {
    .info h1{
        margin: 20px 0px 20px;
        font-size: 2.5rem;
        animation: apparition 0.8s ease-out;
    }
    
    .info h3{
        font-size: 1rem;
        margin-bottom: 3rem;
        animation: apparition 0.8s ease-out;
    }
    
    
    .info h4{
        font-size: 1rem;
        letter-spacing: 2px;
        color: grey;
        animation: apparition 0.8s ease-out;
    }

    .pc{
        width: 130px;
        height: 90px;
        animation: apparition 0.8s ease-out;
    }

}

@media screen and (max-width: 467px) {
    .info h1{
        margin: 20px 0px 20px;
        font-size: 2rem;
        animation: apparition 0.8s ease-out;
    }
    
    .info h3{
        font-size: 1rem;
        margin-bottom: 3rem;
        animation: apparition 0.8s ease-out;
    }
    
    
    .info h4{
        font-size: 1rem;
        letter-spacing: 2px;
        color: grey;
        animation: apparition 0.8s ease-out;
    }

    .pc{
        width: 110px;
        height: 80px;
        animation: apparition 0.8s ease-out;
    }
}

/* ------------------------- a propos ----------------- */

.presentation{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-left:8%;
    margin-right: 8%;
    margin-top: 5%;

}

.presentation-image img{
    height: 300px;
    width: 300px;
    margin-right: 100px;
}

.bio {
    margin-bottom: 60px;
    padding: 20px 50px;
    background-color: #3F3F3F;
    border-radius: 25px;
}

.objectif{
    padding: 20px 50px;
    background-color: #3F3F3F;
    border-radius: 25px;

}

.presentation-texte .bio h1, .presentation-texte .objectif h1{
    color: #f9004d;
    font-size: 2rem;
    text-align: center;

}

.presentation-texte .bio h2, .presentation-texte .objectif h2{
    color: white;
    font-size: 1rem;
    text-align: justify;

}

@media screen and (max-width: 1218px) {
    .presentation{
        flex-direction: column;

        text-align: center;
    }

    .presentation-image img{
        margin: auto;
    }


}

@media screen and (max-width: 750px) {
    .presentation-image img{  
        margin: auto;
        height: 300px;
        width: 300px;
    }

    .presentation-texte .bio h1, .presentation-texte .objectif h1{
        color: #f9004d;
        font-size: 1.5rem;
        text-align: center;
    
    }
    
    .presentation-texte .bio h2, .presentation-texte .objectif h2{
        color: white;
        font-size: 1rem;
        text-align: justify;
    
    }
}

@media screen and (max-width: 450px) {
    .presentation-image img{  
        margin: auto;
        height: 200px;
        width: 200px;
    }

    .bio {
        margin-bottom: 60px;
        padding: 20px 30px;
        border: solid 2px red;
        border-radius: 25px;
    }
    
    .objectif{
        padding: 20px 30px;
        border: solid 2px red;
        border-radius: 25px;
    
    }
    
    
    .presentation-texte .bio h2, .presentation-texte .objectif h2{
        color: white;
        font-size: 0.8rem;
        text-align: justify;
    
    }
}


/* ------------------------- skills -------------------*/

.skills{
    width: 100%;
}

.boite{
    display: flex;
    justify-content: center; 
    margin: 70px 0px; /* espacement entre les 2 boites*/
}

.carte{
    height: 250px;
    width: 260px;
    padding-top: 50px;
    background: #3F3F3F ;
    border-radius: 20px;
    text-align: center;
    margin: 0px 50px; /* espacement entre les cartes */
    position: relative;
    overflow: hidden;
    transition: transform .2s;;
}

.carte i{
    font-size: 50px;
    color: #f9004d;
    text-align: center;
    margin: 25px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.carte h2{
    color: white;
    font-size:23px;
}

.carte:hover{
    background-color: #5f5f5f;
    transform: scale(1.03);
}

@media screen and (max-width: 1089px) {
    .boite{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0px 0px; /* espacement entre les 2 boites*/
    }

    .boite2{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .boite3, .boite4{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .carte{
        margin: 50px 50px;;
    }

}


/* ------------------ Etudes -------------------- */

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top : 2%;
    margin-bottom: 2%;
}

.event {
    padding: 20px;
    position: relative;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f9004d;
    border-radius: 50%;
    top: 20px;
    left: -25px;
}

.event .period {
    font-size: 14px;
    font-weight: bold;
    color: #f9004d;
    margin-bottom: 10px;
}

.event h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.event p {
    font-size: 16px;
    color: #666;
}

@media screen and (min-width: 768px) {
    .event {
        margin-left: 40px;
        padding-left: 40px;
    }
    
    .timeline::before {
        content: "";
        position: absolute;
        left: 25px;
        top: 0;
        bottom: 0;
        width: 4px;
        background-color: white;
    }
}

/* ---------------- CV ----------------------*/

.cv-pdf{
    position:relative;
    margin-top: 3%;
    text-align: center;
}

.cv-pdf embed{
    width: 80%;
    height: 100vh;
}

.cv{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    margin-top: 2%;
}

.cv-titre{
    color: white;
    font-size: 2rem;
}

.cv-lien{
    margin-left: 30px;
    border: solid 2px transparent;
    background-color: #f9004d;
    border-radius: 25px;
    padding: 8px;
    display: flex;
    transition: transform .2s;
}

.cv-lien:hover{
    transform: scale(1.03);
}

.cv-lien a{
    text-decoration: none;
    color:white;
    font-size: 20px;
    padding-right: 8px;    
}


@media (max-width: 564px) {
    .cv-pdf embed{
        width: 60%;
        height: 50rem;
    }

    .cv{
        flex-direction: column;
        text-align: center;
    }

    .cv-titre{
        color: white;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .cv-lien{
        margin: auto;
    }
}

@media (max-width: 303px) {
    .cv-titre{
        color: white;
        font-size: 1.3rem;
    }
}

/* ------------------------------------- Projet -------------------------------------*/

/* Container pour le carrousel */
.carroussel-container {
    position: relative;
    max-width: 900px;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    background-color: #393939;
}

.carroussel-image {
    display: none; /* Par défaut, caché pour le carrousel */
    max-height: 100%; /* Limite la hauteur sans dépasser le conteneur */
    max-width: 100%; /* Limite la largeur sans dépasser le conteneur */
    object-fit: contain; /* Préserve les proportions sans recadrage */
    margin: auto; /* Centre l'image dans le conteneur */
    background-color: #292929; /* Couleur de fond pour les bandes vides */
}

/* Boutons de navigation (flèches) */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

/* Points indicateurs */
.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: lightgray;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot:hover {
    background-color: gray;
}

.dot.active {
    background-color: black;
}


#scrollToTopBtn {
    display: none; /* Cacher le bouton par défaut */
    position: fixed; /* Fixe le bouton en bas à droite */
    bottom: 30px; /* Espacement du bas */
    right: 30px; /* Espacement de la droite */
    background-color: #f9004d; /* Couleur du bouton */
    color: white; /* Couleur du texte */
    border: none; /* Pas de bordure */
    border-radius: 5px; /* Coins arrondis */
    padding: 10px 15px; /* Espacement intérieur */
    cursor: pointer; /* Changement du curseur */
    font-size: 16px; /* Taille du texte */
}

#scrollToTopBtn:hover {
    background-color: #5f5f5f; /* Couleur au survol */
}

.projets{
    width: 100%;
}

.projet-conteneur{
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}

.projet-titre{
    display: inline-block;
    justify-content: center;
    margin: 30px auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.projet-titre h2{
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.projet-titre hr {
    border: 3px solid #f9004d;
}

.projet{
    background-color: #181717;
    width: 40%;
    margin: 20px auto;
    padding: 20px;
    transition: transform .4s;
    text-align: center;
    color: white;
}

.projet h1{
    color : white;
    font-size: 30px;
    padding-top: 20px;
    padding-bottom: 30px;
}

.projets .projet h1 span{
    color: #f9004d;
    text-decoration: underline;
}

.projets .projet-bio-block{
    padding: 30px;
    text-align: left;
}

.projets .projet-bio-block .projet-bio{
    color :#f9004d;
    font-size: 20px;
    font-weight: bold;
    padding-right: 10px;
}

.projets .projet-bio-block .projet-bio-texte{
    color: white;
    font-size: 20px;
}

.projets .projet-bio-block .projet-bio-image{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding-top: 10px;
}

.projets .projet-bio-block .projet-bio-image img{
    width: 50px;
    height: 50px;
    margin: 0px 5px;
}

@media (max-width: 547px) {
    .projet-titre{
        font-size: 2rem;
    }
}

@media (max-width: 348px) {
    .projet-titre{
        font-size: 1.5rem;
    }
}

/* ----------------------------------- Contact -------------------------------------- */


.contact-titre{
    color: white;
    text-align: center;
    font-size: 3rem;
    margin-top: 70px;
}

.contact{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-left:8%;
    margin-right: 8%;
    margin-top: 3%;
}

.contact-info1 , .contact-info2{
    color : white;
    font-size: 1.5rem;
}


.contact-info1 .contact-dcp, .contact-info2 .contact-dcp{
    color : white;
    background-color: #f9004d;
    border-radius: 15px;
    padding: 5px;
    margin-right: 10px;
}

.contact-info1{
    margin-right: 200px;
}

.map{
    
    text-align: center;
    margin-top: 3%;
}

.map iframe{
    height: 70vh;
    width: 60%;
}

.case {
    color:white;
}

@keyframes apparition2 {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to{
        opacity: 1;
        transform: translateY(0px);
    }
}

@media(max-width: 1117px){
    .contact{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin : 4% 8%;
        padding-bottom: 8%;

    }

    .contact-info1 , .contact-info2{
        color : white;
        font-size: 1.5rem;
        margin-top: 30px;
    }


    .contact-info1 .contact-dcp, .contact-info2 .contact-dcp{
        color : white;
        background-color: #f9004d;
        border-radius: 15px;
        padding: 5px;
        margin-right: 0px;
    }

    .contact-info1{
        margin-right: 0px;
    }
}

@media(max-width: 900px){
    .map iframe{
        height: 50vh;
        width: 70%;
    }
}

@media (max-width: 625px) {
    .contact-titre{
        font-size: 2rem;
    }

    .map iframe{
        height: 40vh;
        width: 70%;
    }
}

@media(max-width: 519px) {
    .contact-info1 , .contact-info2{
        color : white;
        font-size: 1.3rem;
        margin-top: 30px;
    }

}

@media(max-width: 459px) {
    .contact-titre{
        font-size: 1.8rem;
    }

    .contact-info1 , .contact-info2{
        color : white;
        font-size: 1.1rem;
        margin-top: 30px;
    }
}

@media (max-width: 378px) {
    .contact-info1 , .contact-info2{
        color : white;
        font-size: 0.9rem;
        margin-top: 30px;
    }
}


@media (max-width: 348px) {
    .contact-titre{
        font-size: 1.5rem;
    }
}
