/* Variables de couleur */
:root {
    --primary-color: #0d47a1; /* Bleu foncé */
    --secondary-color: #1976d2; /* Bleu moyen */
    --accent-color: #d32f2f; /* Rouge pour les accents */
    --light-gray-color: #f5f5f5;
    --dark-gray-color: #333;
    --text-color: #212121;
}

/* Réinitialisation et styles de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav a {
    text-decoration: none;
    color: var(--dark-gray-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--primary-color);
}

/* Section Hero */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/engine.png') center center/cover no-repeat;
    color: #fff;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #b71c1c; /* Rouge plus foncé */
}

/* Sections générales */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: var(--light-gray-color);
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.service-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    font-weight: 500;
}

/* Section Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Pied de page */
footer {
    background-color: var(--dark-gray-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 15px; }
    #hero h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
}