/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* Fond blanc */
}

header {
    background: url('header.jpg') no-repeat center center/cover, #2e7d32;
    height: 400px;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

header h1, header p {
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 2.5rem;
}

header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
}

nav {
    background: #ffff00; /* Fond jaune pour la navigation */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #000000; /* Texte noir pour les liens de navigation */
    text-decoration: none;
    font-size: 1.1rem;
}

nav ul li a:hover {
    text-decoration: underline;
}

section {
    padding: 50px 20px;
    text-align: center;
}

#accueil, #services, #a-propos, #contact {
    background: #ffffff;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000000; /* Titres en noir */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 10px;
    color: #2e7d32;
}

#contact p {
    font-size: 1.2rem;
    margin: 10px 0;
}

#contact a {
    color: #2e7d32;
}

#contact a:hover {
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff9800; /* Changé de vert (#2e7d32) à orange (#ff9800) */
    color: #ffffff;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e68900; /* Orange plus foncé pour le survol */
}

.intro-section {
    background: #ffffff;
    padding: 50px 20px;
    text-align: center;
}

.intro-section img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.intro-section ul {
    list-style: disc;
    margin: 20px auto;
    max-width: 600px;
    text-align: left;
}

.intro-section ul li {
    margin-bottom: 10px;
}

.horaires {
    font-size: 1.1rem;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.service-section {
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.service-section h3 {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-section p {
    margin-bottom: 15px;
}

.service-image {
    width: 300px;
    max-width: 300px;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    nav {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }
    nav ul {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    nav ul li {
        margin: 5px 10px;
    }
    nav ul li a {
        font-size: 0.9rem;
    }
    section {
        padding-top: 80px;
    }
    .intro-section img, .service-image {
        max-width: 200px;
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .intro-section img, .service-image {
        max-width: 500px;
    }
    header h1 {
        font-size: 3.5rem;
    }
    section {
        max-width: 1200px;
        margin: 0 auto;
    }
}
