/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

.header-container {
    display: flex;
    align-items: center; /* Aligne le logo et la navigation verticalement */
    justify-content: space-between; /* Espace entre le logo et la navigation */
    max-width: 1200px; /* Limite la largeur du conteneur pour qu'il ne soit pas trop large */
    margin: 0 auto; /* Centre le conteneur horizontalement */
    padding: 0 20px; /* Ajoute un peu de padding à gauche et à droite */
}

.logo {
    flex: 1; /* Le logo occupe l'espace disponible à gauche */
}

.logo img {
    max-width: 150px; /* Limite la largeur maximale du logo */
    height: auto; /* Maintient le ratio de l'image */
}

nav {
    flex: 2; /* Les liens de navigation occupent l'espace disponible à droite */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end; /* Aligne les liens à droite */
}

nav ul li {
    margin: 0 10px; /* Ajoute de l'espace entre les éléments de la liste */
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
}

nav a:hover {
    background-color: #e8491d;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: url('https://i.pinimg.com/564x/c4/f5/a8/c4f5a87e697fb3818f0ca28150326b74.jpg') no-repeat center center/cover;
    height: 500px;
    color: #fff;
    text-align: center;
    padding-top: 150px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background: #e8491d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #c63d19;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.services-grid, .projects-grid, .clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service, .project, .client {
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: center;
}

.service img, .project img, .client img {
    max-width: 100%;
    height: auto;
}

.service a, .project a {
    text-decoration: none;
    color: inherit;
}



.contact-info {
    display: flex;
    flex-wrap: wrap; /* Permet de gérer le retour à la ligne si nécessaire */
    gap: 20px; /* Espace entre les éléments */
    justify-content: center; /* Centre les éléments horizontalement */
}

.contact-item {
    display: flex;
    align-items: center;
    flex: 1 1 200px; /* Ajuste la largeur minimale des éléments */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.contact-item img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.contact-item p {
    font-size: 1rem;
    margin: 0;
}



.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    background: #e8491d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #c63d19;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .services-grid, .projects-grid, .clients-grid {
        flex-direction: column;
        align-items: center;
    }
}




/* Section À-propos de nous */
.about-content {
    display: flex;
    align-items: center; /* Centre verticalement les éléments */
    justify-content: space-between; /* Espace entre le texte et l'image */
    gap: 20px; /* Espace entre le texte et l'image */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
}

.about-text {
    flex: 1 1 50%; /* Le texte occupe 50% de la largeur */
    max-width: 600px; /* Limite la largeur maximale du texte */
}

.about-text p {
    margin-bottom: 15px; /* Espace entre les paragraphes */
    text-align: justify; /* Justifie le texte */
}

.about-content img {
    flex: 1 1 40%; /* L'image occupe 40% de la largeur */
    max-width: 100%; /* Assure que l'image ne dépasse pas la largeur de son conteneur */
    border-radius: 10px; /* Ajoute des coins arrondis */
}
