/* --- Variables et styles de base --- */
:root {
    --primary-color: #007bff; /* Bleu vif pour les liens, boutons */
    --secondary-color: #2c3e50; /* Gris foncé pour le texte et le footer */
    --accent-color: #28a745; /* Vert pour le bouton "Devis" */
    --background-hero: #2c3e50; 
    --background-dark: #34495e; 
    --background-light: #ecf0f1; /* Fond de la section services */
    --text-light: #ffffff; 
    --text-dark: #2c3e50; 
    --font-family: Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: bold;
    color: var(--text-dark);
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
}

/* --- Header --- */
header {
    background-color: var(--text-light);
    color: var(--text-dark);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    height: 80px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--primary-color);
}

/* --- Section Héro (Accueil) --- */
#accueil {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/banner.png') no-repeat center center/cover;
    height: 100vh;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

#accueil .hero-content {
    max-width: 600px;
}

#accueil h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--text-light);
}

#accueil p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #218838;
}

/* --- Section Services --- */
#services {
    background-color: var(--background-light); /* Fond gris clair */
}

.service-grid {
    display: flex;
    justify-content: center; /* Centrer les éléments */
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: var(--text-light); /* Fond blanc pour les cartes */
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre légère */
    width: 350px; /* Largeur fixe pour la cohérence */
}

.service-item img {
    height: 300px; /* Taille de l'image ajustée */
    width: 300px;  /* Taille de l'image ajustée */
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 10px;
    color: var(--text-dark); /* Texte de titre sombre */
}

/* --- Section Portfolio --- */
#portfolio {
    background-color: var(--background-dark);
}

#portfolio h2 {
    color: var(--text-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.portfolio-grid img:hover {
    transform: scale(1.05);
}

/* --- Section Contact --- */
#contact {
    background-color: var(--background-dark);
    color: var(--text-light);
}

#contact h2 {
    color: var(--text-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    text-align: center;
}

.contact-form .btn:hover {
    background-color: #0056b3;
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
}

/* --- Média Queries pour la Responsivité --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 10px;
        justify-content: center;
    }
    
    #accueil {
        padding-left: 0;
        justify-content: center;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
}



