*{
  margin: 0;
  padding: 0;
}
html {
    scroll-behavior: smooth;
}
/* Styles de base */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0px;
    overflow-x: hidden; /* Empêche le débordement horizontal */
    background-color: rgb(247, 248, 253);
}
.space-between{
    justify-content: space-between;
}
.aligncenter{
    align-items: center;
}
.dark{
    background-color: rgb(25, 25, 25);    
    background-size: cover;
    color: white;
    width: 100%;
}
.boxed{
    max-width: 1280px;
    margin-inline: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.flex{
    display: flex;
    
}
.wrap{
    flex-wrap: wrap;
}
.w20{
    width: 20%;
}
.w60{
    width: 60%;
}
.center{
  text-align: center;  
}
.w25{
    width: 25%;
}
.gap20{
    gap: 20px;
}
.espace{
    margin-top: 20px;
}

/*Sommaire*/
header{
    position: sticky;
    top:0;
    left:0;
    z-index: 2;
    background: rgb(247, 248, 253);
    width: 100%;
    box-shadow: 1px 1px 25px rgba(0,0,0,0.3);   
}
header a {
    color: black;
    padding: 6px 20px;
    margin-top: 4px;
    box-sizing: border-box;
    text-decoration:none;
}
.header-menu{
    display: flex;
    justify-content: flex-end;
}
.header-menu a:hover{
    background-color: rgba(7, 47, 96, 0.1);;
    border-radius: 20px; 
}

.header-menu a:last-child{
    background-color: rgb(58, 100, 227);
    color: white;
    border-radius: 20px; 
}
#sommaire{
    display: none;
}
#sommaire-icon{
    display: none;
}

.Marine a{
    font-weight: bold;
    font-size: 2.3rem;

}
.Marine a::before {
    content: "M";
    color: rgb(58, 100, 227); /* Changez cette couleur selon votre préférence */
    font-size: 48px; /* Ajustez la taille du point si nécessaire */
}

/*Langue*/
.language-switcher{
    gap: 10px;
    margin-right: 20px;
}
.language-switcher button {
    margin-top: 4px;
    background-color: rgb(247, 248, 253); /* Couleur de fond */
    border: 2px solid  rgb(58, 100, 227); /* Couleur de la bordure */
    border-radius: 20px; /* Arrondir les bords */
    cursor: pointer;
    font-size: 16px;
    padding:7px 16px 5px; /* Ajuster l'espace interne */
    color: rgb(58, 100, 227); /* Couleur du texte */
    transition: background-color 0.3s, color 0.3s; /* Transition pour l'effet */
}
.language-switcher button:hover {
    background-color:  rgb(58, 100, 227); /* Changer la couleur de fond au survol */
    color: #ffffff; /* Changer la couleur du texte au survol */
}

/*Titre*/
.slider-content h1 {
    opacity: 0; /* L'élément est initialement invisible */
    transform: translateY(-60px); /* Déplacement vers le haut */
    animation: fadeIn 1.5s ease-out forwards;
    color: white;
    font-size: 4vw;
}
@keyframes fadeIn {
    to {
        opacity: 1; /* L'élément devient visible */
        transform: translateY(0); /* Retourne à sa position initiale */
    }
}
.slider-content p {
    opacity: 0; /* L'élément est initialement invisible */
    transform: translateY(-60px); /* Déplacement vers le haut */
    animation: fadeIn 1.5s ease-out forwards;
    text-align: left;
    color: white;
    font-size: 2.5vw;
}
.slider{
    width:100%;
    min-height:60vh;
    aspect-ratio: 16/9;
    background-color: black;
    position: relative;
    color: white;
    z-index: 1;
}

.slider-background{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter:brightness(70%);
}
.slider-content{
    top: 0;
    text-align: left;
    padding: 20px;
    transition: opacity 0.5s ease;
    position: absolute;
    top:34%;
    left:23%;
    transform: translate(-50%,-50%); 
}
.competence h2{
    font-size: 2.8rem;
}
h2{
    font-size:2.8rem;
}
.titre{
    width:100%;
    min-height:20vh;
    aspect-ratio: 12/5;
    background-color: #000;
    position: relative;
    text-align: justify;
    color: white;
    z-index: 1;
    padding-top: 20px;
}


/*About me*/
#about{
margin: 0 12rem;
}
#projets{
   margin: 0 12rem; 
}
.a-propos{
    padding: 40px; 
    box-sizing: border-box;
}
.a-propos p{
    width: 100%;
    font-size: 1rem;
    line-height: 1.5em;
    margin-bottom: 20px;
    text-align: justify;
}
.a-propos  h2{
    margin-bottom: 30px;
}
/*Boutons*/
.button-container{
    text-align: left;
    margin-bottom: 20px; 
    margin-top: 25px;
    margin-left: -20px;
}
.link {
    text-decoration: none;
    font-size: 1.7rem;
    margin: 0 20px;
    color: black;
    cursor: pointer;
    position: relative;
}
.link:hover {  
    color: rgb(58, 100, 227);
}
.link.active {
    color: rgb(58, 100, 227); 
    font-weight: bold;
    
}

/*CV*/
.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: rgb(247, 248, 253);
    border: 2px solid rgb(58, 100, 227);  /* Couleur de fond du bouton */
    color: rgb(58, 100, 227); 
    margin-left: 20px;               
    padding: 10px 20px;          /* Espacement autour du texte */
    text-decoration: none;       /* Retirer le soulignement */
    border-radius: 5px;          /* Coins arrondis */
    font-size: 16px;             /* Taille du texte */
    transition: background-color 0.3s ease; /* Effet de transition */
}
.download-btn:hover {
    background-color: rgb(58, 100, 227);
    color:white; /* Couleur du bouton au survol */
    border: 2px solid rgb(58, 100, 227);
}
.material-symbols-outlined {
    font-size: 20px;            /* Taille de l'icône */
    margin-right: 8px;          /* Espacement entre l'icône et le texte */
}

/*Timeline*/
.timeline {
    display:flex;
    flex-direction: column;
}
.timeline-item {
    align-items: center;
    margin: 20px 60px;
}
.timeline-item img {
    width: 70px; /* Increase the size of the logos */
    height: auto; /* Ensure a proportional size */
    margin-right: 30px;
}
.timeline-content {
    flex: 1; 
}
.timeline h3{
    margin-top: 20px;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.timeline-item h3 {
    margin: 0;
    font-size: 1.2em;
}
.timeline-item p {
    margin: 5px 0;
    font-display: left;
}

/*Section*/
.section{ 
    padding: 40px 0;
    width: 100%;
    top: -100vh; 
}
section{
    scroll-margin-top: 60px;
}

/*Skill boutons*/
.button-lang{
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
}
.lang {
    font-size: 1.7rem;
    text-align: center;
    text-decoration: none;
    color: white(0,0,0);
    cursor: pointer;
    position: relative;
    margin-top: 15px;
}
.lang:hover {  
    color: rgb(58, 100, 227);
}

.lang.active {
    color: rgb(58, 100, 227); 
    font-weight: bold;   
}

/*Skills : langues*/
.skill-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    margin-bottom: 40px;
  }
  .language-skill {
    text-align: center;
    width: 100px; /* Taille du graphique */
    height: 100px; 
  }
  .language-skill p {
    margin-top: 12px;
  }
  
/*skills: programing*/
.skill{
    border-radius: 15px;
    padding: 20px;
    box-sizing:border-box ;
}
.skill img {  
    width: 70%;
    height: 70%;
    aspect-ratio: 1/1;
    object-fit: contain;
}
.skill h3{
    margin-left: -55px ;
}

/*carousel*/
.slick-dots li button:before {
    color:white !important; /* Forcer l'application de la couleur */
    font-size: 12px; /* Taille des dots, tu peux ajuster */
}
.slick-dots li.slick-active button:before {
    color:white !important; /* Couleur pour le dot actif */
}

/*Projets*/
.proj p{
    text-align: justify;
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 50px;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-size: 0.75em;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
}
.python{
    background-color: #007BFF;
}
.csharp{
    background-color: #c355f1;
}
.cplus{
    background-color: #7bc907;
}
.html{
    background-color: #f9522c;
}
.realisations {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.realisations:hover {
  transform: translateY(-5px);
}

.realisations img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.realisations a {
  text-decoration: none;
}
.realisations h3 {
  margin: 12px 8px 10px;
  font-size: 1em;
  color: #222;
}
/*Contact*/
#chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    aspect-ratio: 1/1;
    background-color: rgb(58, 100, 227);   
    box-shadow: 0 4px 6px rgba(0, 0, 0, 1);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.material-symbols-outlined{
    padding-left: 6.5px;
    padding-top: 2px;
    font-size: 26px;
}
#chatbot-window {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 300px;
    height: auto;
    background-color: #fffffd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}
#chatbot-header {
    background-color: rgb(58, 100, 227);
    color: white;
    padding: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.chatbot-message {
    flex-direction: column;
    max-height: 300px;
    background-color: #d5e4f8; 
    align-self: flex-start;
    overflow-y: auto;
    border-radius: 15px;
    padding: 10px; 
    margin: 10px 10px; 
    max-width: 100%;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: #333; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}
.chatbot-message p {
    margin: 0;
}

.close-btn{
    cursor : pointer;
    font-size: 20px;
    padding: 5px;
}
.close-btn:hover{
    font-weight: bold;
    color:#fffffd;
}
#contact-info {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: #333;
}
#contact-info p {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre l'icône et le texte */
    margin: 10px 10px;
    width: 100%;
}
#contact-info i {
    font-size: 16px;
}
#contact-info a {
    color: #0078d7;
    text-decoration: none;
    transition: color 0.3s;
}
#contact-info a:hover {
    font-weight: bold;
    text-decoration: underline;
}


@media(max-width:700px){
    .w20{
        width: 40%;
    }

}

@media(max-width:910px){
    header{
        display: none;       
    }
    #sommaire{
        display: none;
        position: fixed;
        top: 10px;
        right: 20px;
        background-color:rgb(58, 100, 227);
        border-radius: 30px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        overflow: hidden;
        z-index: 1000;
    }
    .close-btn-sommaire{
        color:white;
        cursor : pointer;
        font-size: 24px;
        position: absolute;
        left: 110px;
        top:6px;
        z-index: 1001;
    }
    .close-btn-english{
        color:white;
        cursor : pointer;
        font-size: 24px;
        position: absolute;
        left: 98px;
        top:2px;
        z-index: 1001;
    }
    .sommaire-info {
        flex-direction: column;
        overflow-y: auto;
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px; 
        font-family: Poppins, sans-serif;
        font-size: 14px;
        gap:5px;
    }
    .sommaire-info a{     
        color:white;
        text-decoration: none;
    }

    .sommaire-info a:hover{
        font-weight: bold;
    }
    #sommaire-icon{
        position: fixed;
        top: 10px;
        right: 20px;
        width: 60px;
        aspect-ratio: 1/1;
        background-color: rgb(58, 100, 227);   
        box-shadow: 0 4px 6px rgba(0, 0, 0, 1);
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .a-propos p{
        font-size: 1.1rem;
    }
  
    .slider-content h1{
        font-size: 3.1rem;
    }
    .slider-content p{
        font-size: 1.8rem;       
        text-align: center;
    }
    .slider-content{
        top:42%;
        left: 50%;
        text-align: center;
    }
    h2{
        font-size: 2.5rem;
    }

    .timeline-item {
        display: none;
        align-items: center;
        margin: 20px 10px;
    }    
    .timeline-item h3 {
        margin: 0;
        font-size: 1rem;
    }
    .link{
        font-size: 1.4rem;
    }
    .download-btn{
        font-size: 16px;
        padding: 9px 13px;
    }
    .competence h2{
        font-size: 2rem;
    }
    .lang {
        font-size: 1.6rem;
    }
    .language-skill {
        width: 80px; /* Taille du graphique */
        height: 80px; 
    }

    #chatbot-window {
        position: fixed;
        bottom:90px;
        right: 20px;
        width: 230px;
        height: auto;
        border-radius: 25px;
    }
    #chatbot-header {
        background-color: rgb(58, 100, 227);
        color: white;
        padding: 4px;
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;     
        border-top-right-radius: 25px;
        border-top-left-radius: 25px;

    } 
    .close-btn{
        cursor : pointer;
        font-size: 25px;
        padding: 5px;
        margin-left: 50px;
    }
    #contact-info {
        font-family: Poppins, sans-serif;
        font-size: 12px;
        color: #333;
    }
    #contact-info p {
        display: flex;
        align-items: center;
        gap: 8; /* Espace entre l'icône et le texte */
        margin: 10px 10px;
        width: 90%;
    }
    #contact-info i {
        font-size: 13px;
    }

}

@media(max-width:610px){
    
    header{
        display: none;
    }   
    *{
        box-sizing: border-box;
    }
    body {
        margin: 10;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
    .slider-content h1{
        font-size: 2.4rem;
        top:70%;
    }
    .slider-content{
        width: 100%;
    }
    #about{
        margin:0;
    }
    #projets{
        margin:0;
    }
    .a-propos p{
        font-size:1rem;
        padding: 0 9px;
    }
    .a-propos h2{
        font-size: 2.1rem;
        text-align: left;
        padding: 0 9px;
    }   
    .button-container{
        margin-left: 0px;
    }
    .link{
        font-size: 1rem;
        margin:10px;
    }
    .download-btn{
        padding: 5px 8px;
        font-size: 0.8rem;
        margin-left: 3%;
    }
    .language-skill{
        width:20%;
    }
    .skill-container{
        gap:4rem;
    }
    .competence h2{
        font-size: 1.42rem;
    }
    .lang{
        font-size: 1.3rem;
    }
    .contacter h2{
        font-size: 1.4rem;
        margin-left:10px
    }
    .linker a{
        font-size: 0.8rem;
    }
    .linker p{
        font-size: 0.8rem;
    }
    .contacter{
        margin-right: 50px;
    }
    .skill img{
        width: 85%;
    }

    .skill h3{
        font-size: 0.8rem;
        margin-right: -48px;
    }
    h2{
        font-size: 1.6rem;
    }
    .timeline-item img{
        width: 65px;
        margin-right: 10px;
    }
    .timeline-item p{
        padding: 0px 2px;
        font-size: 0.8rem;
        text-align: left;
    }
    .timeline-item h3{
        font-size: 0.8rem;
        margin-top: 12px;
   }
  .realisations {
    max-width: 300px;
    margin: 0 auto;
  }
  .projets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .realisations h3{
    font-size:0.8rem;
  }
}



