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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden; /* Pour éviter que le contenu ne dépasse */
    padding: 0 20px;
}

/* En-tête */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Pour qu'il reste au-dessus des autres éléments */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Pour s'adapter aux petits écrans */
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007bff; /* Couleur bleue */
}

/* NOUVEAU: Style du bouton toggle mobile - Caché par défaut */
.menu-toggle {
    display: none; /* Caché sur les écrans larges */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    /* Ajustements pour le centrage si nécessaire */
    line-height: 1;
}

/* Sections générales */
section {
    padding: 80px 0 40px 0; /* Ajuste le padding pour laisser de la place au header fixed */
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

/* Section Hero */
#hero {
    background: #e2e2e2;
    color: #333;
    min-height: 100vh; /* Hauteur plein écran */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px; /* Espace pour le header */
}

#hero .profile-pic {
    border-radius: 50%; /* Rend l'image ronde */
    width: 200px;
    height: 200px;
    object-fit: cover; /* S'assure que l'image couvre l'espace sans distorsion */
    margin-bottom: 20px;
    border: 5px solid #fff; /* Bordure blanche autour de la photo */
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

#hero h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #555;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #007bff; /* Couleur bleue */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #0056b3; /* Bleu plus foncé */
}

/* Section About */
#about {
    background: #fff;
    padding: 60px 0; /* Ajuste le padding */
}

#about p {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}


/* Section Services */
#services {
    background: #f4f4f4;
    padding: 60px 0; /* Ajuste le padding */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Grille responsive */
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}



.service-item i {
    font-size: 2.5rem; /* Taille de l'icône */
    color: #007bff; /* Couleur de l'icône */
    margin-bottom: 15px; /* Espace entre l'icône et le titre */
    display: block; /* Pour que l'icône soit sur sa propre ligne si nécessaire */
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #555;
}


/* Section Portfolio */
#portfolio {
    background: #e2e2e2;
    padding: 60px 0; /* Ajuste le padding */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grille responsive */
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* Pour que l'image ne dépasse pas les bords arrondis */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.portfolio-item img {
    width: 100%;
    height: 200px; /* Hauteur fixe pour les images du portfolio */
    object-fit: cover; /* Assure que l'image couvre l'espace */
}

.portfolio-item h3 {
    font-size: 1.3rem;
    margin: 15px 15px 5px 15px;
    color: #333;
}

.portfolio-item p {
    margin: 0 15px 15px 15px;
    color: #555;
}

.portfolio-item a {
    display: inline-block;
    margin: 0 15px 15px 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.portfolio-item a:hover {
    text-decoration: underline;
}

/* Section Contact */
#contact {
     background: #fff;
    padding: 60px 0; /* Ajuste le padding */
    text-align: left; /* Alignement à gauche pour le formulaire/infos */
}

#contact h2 {
     text-align: center; /* Centre le titre */
     margin-bottom: 40px;
}

#contact > p { /* Le paragraphe juste après le titre */
    text-align: center;
    margin-bottom: 30px;
}


.contact-info-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes */
    gap: 50px;
    max-width: 900px; /* Limite la largeur du bloc contact */
    margin: auto;
}

.contact-form {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
}

.contact-form label {
    display: block; /* Chaque label sur une nouvelle ligne */
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%; /* Prend toute la largeur du conteneur */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    display: block; /* Bouton sur une nouvelle ligne */
    width: 100%;
    background: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
     background: #0056b3;
}

.contact-details {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
}

.contact-details h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-details strong {
    color: #333;
}

/* Liens Sociaux dans Contact */
.social-links {
    margin-top: 25px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.8rem;
    color: #333; /* Couleur des icônes par défaut */
    transition: color 0.3s ease;
}

.social-links a:hover {
     color: #007bff; /* Couleur au survol */
}

/* Pied de page */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px; /* Espace avec la section contact */
}

footer p {
    margin: 5px 0;
}


/* Responsive Design */
@media (max-width: 768px) {
	/* NOUVEAU: Header top pour logo et bouton */
    header .header-top {
        display: flex; /* Alignement horizontal */
        justify-content: space-between; /* Espacement max entre logo et bouton */
        align-items: center; /* Centrage vertical */
        width: 100%; /* Prend toute la largeur */
        padding-bottom: 1rem; /* Espace sous le header-top */
        border-bottom: 1px solid #555; /* Ligne de séparation */
    }
	/* NOUVEAU: Afficher le bouton toggle sur mobile */
    .menu-toggle {
        display: block;
    }

    /* NOUVEAU: Cacher le menu UL par défaut sur mobile */
    header nav ul {
        flex-direction: column; /* Les éléments de liste en colonne */
        width: 100%; /* Prend toute la largeur */
        text-align: center; /* Centre le texte des liens */
        display: none; /* CACHE le menu par défaut */
        background: #444; /* Fond pour le menu déroulant */
        padding: 1rem 0;
    }
	header nav ul.active { /* NOUVEAU: Afficher le menu quand la classe 'active' est présente */
        display: flex; /* Affiche le menu */
    }
	
    header .container {
        flex-direction: column;
        align-items: center;
    }

    header nav ul {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 5px 0;
    }

     section {
         padding: 60px 0 30px 0; /* Ajuste le padding pour les petits écrans */
     }

    #hero {
        min-height: 80vh; /* Moins de hauteur plein écran sur mobile */
        padding-top: 80px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h2 {
        font-size: 1.2rem;
    }

    .contact-info-form-grid {
        grid-template-columns: 1fr; /* Passe en une seule colonne */
        gap: 30px;
    }

    .contact-details {
        margin-top: 0; /* Supprime la marge supérieure si elle existe */
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }

     section h2 {
         font-size: 1.8rem;
     }

    .service-item, .portfolio-item {
        padding: 20px;
    }
}