/* Réinitialisation de styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ecf0f1;
}

/* Style de la barre de navigation */
header {
    background-color: #181818;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between; /* Sépare les deux parties : gauche et droite */
    align-items: center; /* Aligne verticalement le contenu */
    width: 100%;
}

.gauche a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
}

.droite {
    display: flex;
    justify-content: flex-end; /* Aligne la liste des liens à droite */
    flex-grow: 1; /* Permet à la partie droite de prendre toute la place restante */
}

.droite ul {
    display: flex;
    list-style: none;
}

.droite ul li {
    margin: 0 15px;
}

.droite ul li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
}

.droite ul li a:hover {
    color: #f39c12;
}

/* Section Accueil */
.hero {
    background: #ecf0f1;
    color: rgb(0, 0, 0);
    padding: 100px 20px;
    text-align: center;
}

.hero .content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* Section À propos */
#about {
    background: #ecf0f1;
    padding: 50px 20px;
    text-align: center;
}

#about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Logiciels */
#logiciels {
    background: #ecf0f1;
    padding: 50px 20px;
    text-align: center;
}

#logiciels h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#logiciels img {
    width: 50px;
    height: 50px;

}

#logiciels p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

/* Portfolio */
#portfolio {
    padding: 50px 20px;
    text-align: center;
}

#portfolio h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.mes-projets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.projets {
    background: #ecf0f1;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.projets h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.projets img {
    width: 100%;
    height: 60%;
}

.projets p {
    font-size: 1.1em;
    color: #555;
}

/* Section Contact */
#contact {
    background: #3498db;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

#contact h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#contact p {
    font-size: 1.2em;
}

/* Footer */
footer {
    background: #181818;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Responsiveness pour petits écrans */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    #about h2 {
        font-size: 2.2em;
    }

    #portfolio h2 {
        font-size: 2.2em;
    }

    .projets h3 {
        font-size: 1.5em;
    }
}
