:root {
    --couleur-principale: rgb(59 130 246);
    --couleur-secondaire: #333;
    --couleur-fond: #F4F4F4;
    --couleur-texte: #333;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--couleur-fond);
    color: var(--couleur-texte);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER ET NAVIGATION */
header {
    padding: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    height: 50px;
    width: auto;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu a {
    text-decoration: none;
    color: var(--couleur-secondaire);
    transition: var(--transition);
    font-size: 1.5em;
}

.menu a:hover {
    color: rgb(59 130 246);
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* PAGE D'ACCUEIL */
.presentation-container {
    display: flex;
    align-items: center;
}

/* SECTION PRESENTATION */
.presentation-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

.photo-container {
    flex: 0 0 300px;
}

.photo-ronde {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--couleur-principale);
}

.texte-presentation {
    flex: 1;
}

.btn-cv {
    display: inline-block;
    background-color: var(--couleur-principale);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-cv:hover {
    background-color: rgb(59 130 190);
}

/* PAGE COMPETENCES */
.competences {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.categories-competences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.categorie-competence {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.titre-categorie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--couleur-principale);
    padding-bottom: 0.5rem;
}

.titre-categorie h2 {
    margin: 0;
}

.icone-categorie {
    font-size: 2rem;
}

.liste-competences {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.competence {
    background-color: var(--couleur-principale);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.competence:hover {
    background-color: rgb(59 130 190);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
}

/* PAGE PARCOURS */
.parcours {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.parcours-container {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--couleur-principale);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.formation, .experience {
    position: relative;
    margin-bottom: 2rem;
}

.formation-contenu, .experience-contenu {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 45%;
    position: relative;
}

.formation {
    left: 0;
    text-align: right;
}

.experience {
    left: 55%;
}

/* PAGE PROJETS */
.projets {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.grille-projets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.projet {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 1;
    transition: var(--transition);
}

.details-projet {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 1rem;
    transition: var(--transition);
    overflow-y: auto;
}

.projet:hover .details-projet {
    top: 0;
}

.formulaire-contact {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.groupe-formulaire {
    margin-bottom: 1rem;
}

.groupe-formulaire label {
    display: block;
    margin-bottom: 0.5rem;
}

.groupe-formulaire input,
.groupe-formulaire textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-envoyer {
    background-color: var(--couleur-principale);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-envoyer:hover {
    background-color: rgb(59 130 190);
}

.mt-4 h3 {
    font-size: 2em;
}

.mt-4 h4 {
    font-size: 1.3em;
}

.mt-4 p {
    font-size: medium;
}

#footer {
    margin-top: auto;
}
.prenom{
    font-size: 8em;
}

        /* Style pour le footer */
        footer {
            background-color: white;
            padding: 20px;
            text-align: center;
            box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        }

        footer p {
            font-size: 1.1em; /* Augmenté */
            margin-bottom: 10px;
        }

        .menu-toggle {
            font-size: 3rem;
        }

        @media (max-width: 768px) {
            .main-container {
                flex-direction: column;
            }
            
            .split {
                min-height: auto;
            }
            
            .left {
                border-right: none;
                border-bottom: 1px solid #eee;
            }
        }
        @media (max-width: 768px) {
            header {
                padding: 10px;
            }
        
            .menu {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 60px;
                right: 20px;
                background-color: white;
                width: 200px;
                border: 1px solid #ddd;
                border-radius: 5px;
                padding: 10px;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            }
        
            .menu li {
                margin: 10px 0;
            }
        
            .menu.active {
                display: flex;
            }
        
            .menu-toggle {
                display: block;
            }
        }
        
        /* Adjust Font Sizes */
        @media (max-width: 768px) {
            body {
                font-size: 14px;
            }
        
            h1 {
                font-size: 2.5rem; /* Augmenté pour rester visible sur mobiles */
            }
        
            h2 {
                font-size: 1.5rem;
            }
        
            p {
                font-size: 0.9rem;
            }
        
            .btn-cv {
                font-size: 0.8rem;
            }
        
            footer {
                font-size: 0.8rem;
            }
        }
        
        @media (max-width: 480px) {
            body {
                font-size: 12px;
            }
        
            h1 {
                font-size: 2rem; /* Réduit légèrement sur les très petits écrans */
            }
        
            h2 {
                font-size: 1.2rem;
            }
        
            p {
                font-size: 0.8rem;
            }
        
            .btn-cv {
                font-size: 0.7rem;
            }
        
            footer {
                font-size: 0.7rem;
            }
        }

        /* Style pour l'image de profil */
.photo-ronde {
    width: 100%; /* L'image occupe toute la largeur de son conteneur */
    max-width: 300px; /* Limite la taille maximale de l'image pour ne pas trop l'agrandir */
    height: auto; /* Conserve les proportions de l'image */
    border-radius: 50%; /* Rend l'image ronde */
    display: block; /* Empêche les espaces sous l'image */
    margin: 0 auto; /* Centre l'image horizontalement */
}

/* Ajoutez des styles pour rendre l'image encore plus responsive pour les petits écrans */
@media (max-width: 768px) {
    .photo-ronde {
        max-width: 200px; /* Réduit la taille de l'image sur les tablettes et téléphones */
    }
    .prenom {
        font-size: 2em;
    }
}

        