/* 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;
}

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;
}

/* Menu de navigation horizontal */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #333; /* Fond gris foncé */
    z-index: 1000; /* Au-dessus de tout */
    padding: 8px 10px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: row !important; /* Forcer horizontal */
    flex-wrap: nowrap; /* Pas de retour à la ligne */
    justify-content: center;
    align-items: center;
}

.nav-menu ul li {
    margin: 0 2px; /* Marges minimales */
}

.nav-menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.7rem; /* Très compact */
    padding: 8px 10px; /* Zone cliquable */
    white-space: nowrap; /* Pas de coupure de texte */
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: #ff9800; /* Orange au survol */
}

section {
    padding: 40px 20px; /* Espace pour le menu fixe */
    text-align: center;
}

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

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000000;
}

.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;
    color: #ffffff;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e68900;
}

.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 queries pour ajuster sans changer la direction */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .nav-menu ul li a {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
    section {
        padding-top: 40px;
    }
    .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;
    }
    .nav-menu ul li a {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    section {
        max-width: 1200px;
        margin: 0 auto;
        padding-top: 40px;
    }
}
