/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


/* ----- VARIABLES ----- */
:root{
    /* Couleurs pour le thème clair */
    --body-color-light: rgb(250, 250, 250);
    --color-white-light: rgb(255, 255, 255);
    --text-color-second-light: rgb(68, 68, 68);
    --text-color-third-light: rgb(30, 159, 171);
    --first-color-light: rgb(110, 87, 224);
    --first-color-hover-light: rgb(40, 91, 212);
    --second-color-light: #00B5E7;
    --third-color-light: rgb(192, 166, 49);
    --first-shadow-color-light: rgba(0, 0, 0, 0.1);
    --footer-bg-color-light: #F8F8F8;
    --footer-text-color-light: #2C2C2C;
    --footer-link-color-light: #0056b3;
    --footer-link-hover-color-light: #003885;

    /* Couleurs pour le thème sombre */
    --body-color-dark: #333333;
    --color-white-dark: #1E1E1E;
    --text-color-second-dark: #ffffff;
    --text-color-third-dark: #0c6cd4;
    --first-color-dark: #673AB7;
    --first-color-hover-dark: #9575CD;
    --second-color-dark: #EEEEEE ;
    --third-color-dark: #FFEB3B;
    --first-shadow-color-dark: rgba(255, 255, 255, 0.1);
   
  

    /* Pour le mode sombre */
    --footer-bg-color-dark: #333333;
    --footer-text-color-dark: #FFFFFF;
    --footer-link-color-dark: #89CFF0;
    --footer-link-hover-color-dark: #569DC7;
}

body.dark-mode {
    --body-color: var(--body-color-dark);
    --color-white: var(--color-white-dark);
    --text-color-second: var(--text-color-second-dark);
    --text-color-third: var(--text-color-third-dark);
    --first-color: var(--first-color-dark);
    --first-color-hover: var(--first-color-hover-dark);
    --second-color: var(--second-color-dark);
    --third-color: var(--third-color-dark);
    --first-shadow-color: var(--first-shadow-color-dark);
    --footer-bg-color: var(--footer-bg-color-dark);
    --footer-text-color: var(--footer-text-color-dark);
    --footer-link-color: var(--footer-link-color-dark);
    --footer-link-hover-color: var(--footer-link-hover-color-dark);
}

body {
    /* Valeurs initiales pour le thème clair */
    --body-color: var(--body-color-light);
    --color-white: var(--color-white-light);
    --text-color-second: var(--text-color-second-light);
    --text-color-third: var(--text-color-third-light);
    --first-color: var(--first-color-light);
    --first-color-hover: var(--first-color-hover-light);
    --second-color: var(--second-color-light);
    --third-color: var(--third-color-light);
    --first-shadow-color: var(--first-shadow-color-light);

    background: var(--body-color);
    color: var(--text-color-second);
    --footer-bg-color: var(--footer-bg-color-light);
    --footer-text-color: var(--footer-text-color-light);
    --footer-link-color: var(--footer-link-color-light);
    --footer-link-hover-color: var(--footer-link-hover-color-light);
}

/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}


/* ---##-- REUSABLE CSS --##--- */

/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
}
.container{
    width: 100%;
    position: relative;
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
.nav-logo{
   position: relative;
}
.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-logo span{
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}




/* Ajoutez d'autres styles spécifiques au thème sombre ici */
.dark-mode-toggle .dark-mode-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #FFFFFF; /* Couleur de l'icône en mode sombre pour assurer la visibilité */
    font-size: 1.5rem; /* Plus grand pour mieux le voir */
    margin-right: 20px;
    transition: color 0.3s, transform 0.3s;
}


body.dark-mode .dark-mode-toggle .dark-mode-button {
    color: #CCCCCC; /* Ajustez la couleur pour un meilleur contraste en mode sombre */
}
body:not(.dark-mode) .dark-mode-toggle .dark-mode-button {
    color: #000000; /* Couleur visible en mode clair */
}

/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}

.social_icons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 100px; /* Ajoute de l'espace sur les côtés */
    height: 60px; /* Garde une bonne hauteur */
    border-radius: 25px; /* Arrondi léger */
    font-size: 45px;
    color: var(--color-white);
    background-color: var(--first-color);
    box-shadow: 0 2px 5px var(--first-shadow-color);
    transition: background-color 0.3s, transform 0.3s;
}

.icon:hover {
    background-color: #053eff;
    transform: scale(1.05);
}


.icon.linkedin:hover { background-color: #053eff; }



/* ----- FEATURED IMAGE BOX ----- */
.featured-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.image {
    margin: auto 0;
    width: 450px; /* Taille de base agrandie */
    height: 450px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}

.image img {
    width: 100%; /* Toujours prendre 100% du conteneur */
    height: 100%;
    object-fit: cover;
}

/* Animation */
@keyframes imgFloat {
    50% {
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}

/* Responsive : pour les tablettes */
@media (max-width: 768px) {
    .image {
        width: 300px;
        height: 300px;
    }
}

/* Responsive : pour les mobiles */
@media (max-width: 480px) {
    .image {
        width: 220px;
        height: 220px;
    }
}

.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 200px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}
@media only screen and (max-width: 900px) {
    .scroll-btn{
        display: none;
    }
}


/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/* ----- ABOUT INFO ----- */
.about-info{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 500px;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
  
}
.about-info p{
    text-align: center;
    font-size: 15px;
    color: #777;
}
.about-btn {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Un petit espace au-dessus du bouton */
}

.about-btn button {
    padding: 12px 30px;
    background-color: var(--first-color);
    color: var(--color-white);
    border: none;
    border-radius: 25px; /* Arrondi des coins */
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.about-btn button:hover {
    background-color: var(--first-color-hover);
    transform: scale(1.05); /* Petit zoom au hover */
}



/* ----- ABOUT / SKILLS BOX ----- */
.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 30px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skills-list span{
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}

/* ----- PROJECTS BOX ----- */
.project-container{
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.project-box{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 30%;
    height: 250px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
    text-align: center; /* Assure que le texte soit centré à l'intérieur du project-box */
    box-sizing: border-box; /* Pour s'assurer que les padding n'affectent pas la largeur */

}
.project-box>i{
    font-size: 50px;
    color: #00B5E7;
    margin-bottom: 25px;

}
.project-box label{
    font-size: 15px;
    color: #777;
}
.project-box::after, .contact-info::after{
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}
.project-box:hover.project-box::after,
.contact-info:hover.contact-info::after{
    bottom: 0;
}
.project-box:hover.project-box i,
.project-box:hover.project-box>h3,
.project-box:hover.project-box>label{
    color: var(--color-white);
    z-index: 2;
}

/* ----- CONTACT BOX ----- */
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background: var(--second-color);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.contact-info>h2{
    color: var(--color-white);
    margin-bottom: 20px;
}
.contact-info>p{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    margin-block: 5px;
}
.contact-info p>i{
    font-size: 18px;
}
.contact-info::after{
    background: var(--color-white);
}
.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i{
    color: #777;
    z-index: 2;
}



/* ----- CONTACT FORM ----- */
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
}
.input-field{
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 60px;
    outline: none;
}
textarea{
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px 20px;
    outline: none;
    resize: none;
}
.form-button>.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    color: var(--color-white);
}
.form-button>.btn:hover{
    background: #00B5E7;
}
.form-button i{
    font-size: 18px;
    rotate: -45deg;
}
/* Améliorations globales du footer */
footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 40px 20px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer_menu_list {
    margin: 0 15px;
}

.footer_menu_list a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer_menu_list a:hover {
    color: var(--footer-link-hover-color);
}

.bottom-footer {
    margin-top: 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-menu {
        flex-direction: column;
    }

    .footer_menu_list {
        margin: 10px 0;
    }
}   

@media only screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }
}
/* ----- NAVIGATION BAR (Mobile & PC) ----- */



/* ----- Rendre le bouton avec seulement l'icône sur mobile ----- */
@media only screen and (max-width: 768px) {
    /* Masque le texte sur mobile */
    .nav-button .btn .btn-text {
        display: none;
    }

    /* Ajuste le bouton pour qu'il soit plus petit avec l'icône seulement sur mobile */
    .nav-button .btn {
        width: auto;
        padding: 8px 20px;
        font-size: 16px; /* Ajuste la taille du texte pour PC */
    }

    .nav-button .btn i {
        font-size: 20px;
        margin-right: 8px; /* Espacement entre l'icône et le texte */
    }
}



/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {

    .nav-menu.responsive{
        left: 0;
    }
    .nav-menu{
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
    }
    .nav_menu_list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box{
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }
    .social_icons{
        margin-top: 2em;
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }
    .image, .image img{
        width: 150px;
        height: 150px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;
    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }

}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */

@media only screen and (max-width: 540px){
    .featured-name{
        font-size: 40px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }
}

/* Responsive */
@media only screen and (max-width: 900px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr); /* 2 éléments par ligne sur les écrans plus petits */
        
    }
}

@media only screen and (max-width: 600px) {
    .portfolio-container {
        grid-template-columns: 1fr; /* 1 élément par ligne sur les écrans très petits */
    }
    .portfolio-item {
        height: auto; /* Permet aux conteneurs de s'adapter à la hauteur de l'image */
    }
}
.timeline-container {
    position: relative;
    width: 100%;
    height: 30px;
    background-color: var(--color-white);
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    margin: 40px 0;
}

.timeline-bar {
    position: relative;
    height: 100%;
    background-color: var(--first-color);
    border-radius: 15px;
    transition: width 0.4s ease-in-out;
}

.timeline-milestones {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: -20px;
}

.milestone {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: var(--color-white);
    border: 4px solid var(--second-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone-reached {
    background-color: var(--second-color);
}

.milestone span {
    position: absolute;
    width: max-content;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--text-color-second);
}


.diploma {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
    /* Ajout pour un espacement équilibré dans la vue horizontale */
    margin: 10px;
}

.arrow {
    font-size: 24px;
    color: var(--text-color-second);
    /* Masquer les flèches dans la disposition verticale par défaut */
    display: none; 
}

/* Media Query pour les écrans plus larges que 600px */

.diplomas-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap; /* Permet le passage à la ligne */
    margin: 40px 0; /* Augmenté à 40px pour plus d'espace */
    flex-direction: column; /* Commencez en colonne pour les petits écrans */
}

/* Puis ajustez pour les écrans plus larges */
@media (min-width: 600px) {
    .diplomas-container {
        flex-direction: row; /* Rétablit la disposition horizontale */
    }

    .diploma {
        margin: 10px; /* Ajustement pour une disposition équilibrée */
        max-width: 30%; /* Assure que les blocs ne deviennent pas trop larges */
    }

    .arrow {
        display: block; /* Affiche les flèches pour la disposition horizontale */
    }
}

@media (max-width: 599px) {
    .diploma {
        width: 80%; /* Ajustement pour les petits écrans */
        margin: 20px auto; /* Augmente l'espace vertical et centre les blocs */
    }
}


.project-header {
    text-align: center;
    margin-top: 20px;

}

.project-header h1 {
    color:  blue;

}

.project-header p {
    color: #666;
}



/* Mode sombre */
body.dark-mode {
    background-color: #333; /* Couleur de fond plus sombre pour le mode sombre */
    color: #f0f0f0; /* Couleur de texte plus claire pour le mode sombre */
    border: 1px solid #444; /* Bordure plus sombre pour contraster */
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1); /* Ombre claire pour le relief */
}



body.dark-mode  {
    box-shadow: 0 8px 12px rgba(255, 255, 255, 0.2); /* Ombre plus prononcée au survol en mode sombre */
}





.bold-text {
    font-weight: bold; /* Rend tout le texte plus gras */
}

.web-dev, .digital-creation, .digital-comm, .ux-design {
    font-weight: bold; /* Optionnel, si vous voulez que ces parties soient également en gras */
}

.web-dev {
    color: #007BFF; /* Bleu pour le développement web */
}

.digital-creation {
    color: #007BFF; /* Vert pour la création numérique */
}

.digital-comm {
    color: #007BFF; /* Rouge pour la communication numérique */
}

.ux-design {
    color: #007BFF /* Jaune pour le design d'expérience */
}

/* SECTION GÉNÉRALE */
.projects-mmi-page {
    padding: 100px 20px;
    text-align: center;
  }
  
  /* TITRE */
  .header-mmi h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .header-mmi p {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 50px;
  }
  
  /* BLOC PROJET */
  .project-card {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* ENTÊTE DU PROJET */
  .project-header {
    padding: 30px;
    cursor: pointer;
  }
  
  .project-header h2 {
    margin-bottom: 10px;
  }
  
  .project-header p {
    font-size: 16px;
    color: #555;
  }
  
  .open-btn {
    margin-top: 10px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 10px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
  }
  
  .open-btn:hover {
    transform: scale(1.05);
    background-color: var(--first-color-hover);
  }
  
  /* PARTIE CACHÉE / VISIBLE DU PROJET */
  .project-detail {
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    transition: max-height 0.8s ease, padding 0.8s ease;
    padding: 0 20px;
  }
  
  .project-detail.active {
    max-height: 2500px;
    padding: 30px 20px;
  }
  
  /* CONTENU DU PROJET */
  .project-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  
  /* GALERIE D'IMAGES */
/* Conteneur des images */
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  /* Taille fixe pour le conteneur des images */
  .project-gallery img {
    width: 250px;  /* Largeur du conteneur d'images */
    height: 180px;  /* Hauteur uniforme pour tous les conteneurs */
    object-fit: contain;  /* L'image s'ajuste à l'intérieur du conteneur sans déformation */
    border-radius: 15px;  /* Bordures arrondies */
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .project-gallery img:hover {
    transform: scale(1.05);  /* Effet de zoom au survol */
  }
  
  
  /* DESCRIPTION DANS UNE CARTE */
  .project-description {
    width: 800px;
    padding: 20px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 16px;
    color: #555;
  }
  
  /* VIDÉO */
  .project-video video {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  /* BOUTON DE TÉLÉCHARGEMENT DANS UNE CARTE */
  .project-download-box {
    width: 250px;
    height: 180px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
  }
  
  .project-download-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
  }
  
  .download-button {
    background: var(--first-color);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s;
  }
  
  .download-button:hover {
    background: var(--first-color-hover);
  }
  
  /* RESPONSIVE MOBILE */
  @media (max-width: 768px) {
    .project-gallery img,
    .project-download-box,
    .project-video video {
      width: 90%;
      height: auto;
    }
  
    .project-description {
      width: 90%;
    }
  }
  
  

/* Navbar Page Projets MMI */
.nav-bar-projects {
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 70px; /* Réduction de la hauteur pour être plus compact */
    line-height: 70px;
    background: var(--body-color);
    padding-inline: 5vw;
    transition: .3s;
    z-index: 100;
  }
  
  /* Logo "Abdel" à gauche */
  .nav-logo {
    display: flex;
    align-items: center;
  }
  
  .nav-name {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color-third);
  }
  
  .nav-logo span {
    position: absolute;
    top: -12px;
    right: -15px;
    font-size: 3em;
    color: var(--text-color-second);
  }
  
  /* Bouton Mode sombre */
  .dark-mode-toggle .dark-mode-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-left: 20px;
    transition: color 0.3s, transform 0.3s;
  }
  
  body.dark-mode .dark-mode-toggle .dark-mode-button {
    color: #CCCCCC;
  }
  
  body:not(.dark-mode) .dark-mode-toggle .dark-mode-button {
    color: #000000;
  }
  
  .dark-mode-toggle .dark-mode-button:hover {
    transform: scale(1.1); /* Effet de zoom */
  }
  
  /* Style de la modale */
.cv-modal {
    display: none; /* La modale est cachée par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Arrière-plan semi-transparent */
    animation: fadeIn 0.3s ease-out; /* Animation pour ouvrir la fenêtre */
}

/* Animation pour l'ouverture */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contenu de la modale */
.cv-modal-content {
    background-color: #fff;
    width: 80%;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

/* Animation pour faire glisser la modale depuis le bas */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Fermeture de la modale (le "x") */
.cv-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
}

/* Conteneur des aperçus des CV */
.cv-preview-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Option d'un CV */
.cv-option {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

/* Taille des images */
.cv-thumbnail {
    width: 150px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Effet sur l'image au survol */
.cv-option:hover {
    transform: scale(1.05);
}

/* Texte sous les images */
.cv-option p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

/* Effet de survol */
.cv-option:hover p {
    color: var(--first-color); /* Change la couleur du texte au survol */
}

/* ----- Retour à l'accueil en bas de la page (mobile et PC) ----- */
.return-home-container {
    display: flex;
    justify-content: center; /* Centrer le bouton */
    margin-top: 40px; /* Un peu d'espace au-dessus */
    margin-bottom: 40px; /* Un peu d'espace en bas */
}

.return-home-btn {
    font-size: 18px; /* Taille du texte */
    padding: 12px 30px;
    background: var(--first-color); /* Couleur du fond */
    color: var(--color-white); /* Couleur du texte */
    border-radius: 25px; /* Coins arrondis */
    text-decoration: none; /* Retirer la décoration du lien */
    text-align: center;
    transition: background 0.3s, transform 0.3s ease;
}

.return-home-btn:hover {
    background: var(--first-color-hover); /* Change de couleur au survol */
    transform: scale(1.05); /* Effet de zoom */
}

/* ----- Mobile Responsive (pour un affichage optimisé sur smartphone) ----- */
@media only screen and (max-width: 768px) {
    .return-home-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* ----- Option de visibilite pour petit écran ----- */
@media only screen and (min-width: 769px) {
    .return-home-btn {
        display: block; /* Le bouton sera visible sur tous les écrans */
    }
}

.highlight {
    color: #0277e4; /* Couleur accentuée choisie */
    font-weight: bold; /* Gras */
}
