/* Style global */
html {
    scroll-behavior: smooth;
  }
  
body {
    background-image: url("../image/back.png"); /* à renommer selon ton nom local */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 18px; /* Augmente la taille globale du texte */
}

/* Barre de navigation */
nav {

    background-color: #003366;
    padding: 10px 15px;
    position: fixed;
    width: 100%;
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    font-size: 16px; /* Augmente la taille des liens */
}

nav ul li a:hover {
    background-color: #006699;
    border-radius: 3px;
}

/* Contenu principal */
.main-content {
    padding: 80px 20px 20px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 10px;
    margin: 20px auto;
    width: 95%;
    max-width: 1000px;
}

.profile-pic {
    width: 300px; /* Taille de la photo augmentée */
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #003366;
    margin: 10px 0; /* Réduit l'espace vertical */
}

h1 {
    font-size: 32px; /* Augmente la taille du titre principal */
    color: #003366;
}

h2 {
    font-size: 24px; /* Augmente la taille des sous-titres */
    color: #003366;
}

.section {
    padding: 20px;
    margin: 20px auto;
    background-color: white;
    border-radius: 10px;
    width: 95%;
    max-width: 1000px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section h1 {
    font-size: 30px;
    color: #003366;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 3px solid #003366;
    padding-bottom: 5px;
    display: inline-block;
}


.section h2 {
    font-size: 28px; /* Augmente la taille des titres des sections */
    color: #003366;
}

.section p, .section ul {
    font-size: 18px; /* Augmente la taille du texte dans les sections */
    line-height: 1.6; /* Améliore la lisibilité */
}

.section ul {
    list-style: disc inside;
}

.cv-link {
    display: inline-block;
    background-color: #003366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px; /* Augmente la taille du bouton */
    margin-top: 10px;
}

.cv-link:hover {
    background-color: #006699;
}

/* Images dans les sections */
.image-container {
    text-align: center;
    margin: 20px 0;
}

.image-container img {
    width: 100%; /* L'image occupe tout l'espace disponible */
    max-width: 400px; /* Taille maximale de 400px */
    height: auto; /* Préserve les proportions */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre subtile */
    margin: 0 auto; /* Centre l'image */
}

.image-caption {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    background-color: #003366;
    color: white;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 16px; /* Augmente la taille du texte du footer */
}

/* Styles pour la section Compétences Techniques */
.competences-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.competence {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.competence:hover {
    transform: translateY(-5px);
}

.competence img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.competence h3 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 10px;
}

.competence p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.competence-block {
    margin-bottom: 40px;
    background-color: #fdfdfd;
    padding: 20px;
    border-left: 5px solid #003366;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.competence-block h2 {
    color: #003366;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.competence-item {
    margin-bottom: 20px;
}

.competence-title {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.competence-percent {
    color: #003366;
}

progress {
    width: 100%;
    height: 14px;
    border-radius: 5px;
    background-color: #ddd;
}

progress::-webkit-progress-bar {
    background-color: #ddd;
    border-radius: 5px;
}

progress::-webkit-progress-value {
    background-color: #003366;
    border-radius: 5px;
}


progress::-moz-progress-bar {
    background-color: #003366;
    border-radius: 5px;
}

.competence-item p {
    font-size: 16px;
    color: #444;
    margin-top: 8px;
    line-height: 1.5;
}

.sous-section { margin-top: 40px; }
.sous-section h2 { font-size: 26px; color: #003366; margin-bottom: 25px; }
.soft-skills { list-style: none; padding: 0; }
.soft-skills li { margin-bottom: 25px; }
.soft-skills h3 { font-size: 20px; color: #003366; }
.soft-skills p  { font-size: 16px; color: #444; line-height: 1.6; }

.projet-block {
    background-color: #f8f8f8;
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.projet-block h2 {
    color: #003366;
    font-size: 24px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.projet-block h3 {
    color: #003366;
    font-size: 20px;
    margin-top: 20px;
}

.projet-block ul {
    list-style: disc inside;
    padding-left: 10px;
    margin: 10px 0;
}

.projet-block p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

.projet-block object {
    margin-top: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Responsiveness */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }

    .main-content {
        padding: 60px 10px 10px;
    }

    .profile-pic {
        width: 150px; /* Réduit la photo sur petit écran */
        height: 150px;
    }

    h1 {
        font-size: 28px; /* Réduit légèrement la taille du titre principal */
    }

    h2 {
        font-size: 22px; /* Réduit la taille des sous-titres */
    }

    .section {
        padding: 15px;
    }

    .cv-link {
        font-size: 16px; /* Réduit la taille du bouton */
    }

    .image-container img {
        max-width: 300px; /* Réduit la taille maximale des images sur petit écran */
    }
}
