body {
    font-family: 'Roboto Condensed', sans-serif;
    background-color: #fefae0;
    margin: 0;
    padding: 0;
}



header {
    background-color: #606c38;
    color: #fefae0;
    padding: 20px 0;
    display: flex;
    justify-content: center; /* Center both the logo and nav */
    align-items: center;
    flex-direction: column; /* Stack logo and nav vertically */
}

.logo {
    text-align: center;
    margin-bottom: 10px; /* Add spacing between logo and nav */
}

header h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 72px;
    margin: 0;
}

nav {
    width: 100%;
    text-align: center; /* Center the nav links */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center; /* Center the nav links horizontally */
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fefae0;
    text-decoration: none;
    font-weight: bold;
}



.hero {
    background-image: url('public/meunier_ble.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
}

.hero-text h2 {
    font-size: 48px; /* Increase text size */
    color: black; /* Text in black */
}

.hero-text p {
    font-size: 24px; /* Paragraph text size */
    color: black; /* Paragraph text in black */
}

.services h2 {
    text-align: center; /* Center the h2 text */
    margin-bottom: 30px;
    font-size: 36px; /* Adjust font size if needed */
}


.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.service-item {
    display: flex; /* Align items in a row */
    flex-direction: row; /* Image on the left, text on the right */
    background-color: #fefae0;
    color: #606c38;
    border-radius: 10px;
    padding: 20px;
    width: 80%; /* Set a width to center the items */
    max-width: 800px; /* Limit maximum width */
    gap: 20px; /* Add space between image and text */
}

.service-item.reverse {
    flex-direction: row-reverse; /* Image on the right, text on the left */
} 

.service-item.reverse img {
    width: 500px;
    height: 300px;
    object-fit: cover; /* Garantit que l'image occupe la dimension tout en restant bien cadrée */
    border-radius: 10px; /* Optionnel : ajout d'arrondis */
    margin-bottom: 20px; /* Optionnel : espacement entre l'image et le texte */
} 

.service-item div {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically align text */
}

.service-item h3 {
    margin: 0 0 15px 0;
}

.service-item p {
    margin: 0 0 15px 0;
}

.service-item ul {
    margin: 0 0 15px 0;
}

.service-item img {
    width: 500px;
    height: 300px;
    object-fit: cover; /* Garantit que l'image occupe la dimension tout en restant bien cadrée */
    border-radius: 10px; /* Optionnel : ajout d'arrondis */
    margin-bottom: 20px; /* Optionnel : espacement entre l'image et le texte */
}
.more-info-button {
    display: inline-block;
    font-size: 14px; /* Make the button smaller */
    color: white;
    background-color: #606c38;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    align-self: flex-start; /* Ensure the button stays on the left */
}

.more-info-button:hover {
    background-color: #dda15e; /* Change button color on hover */
}



.contact {
    padding: 50px 0;
    background-color: #606c38;
    color: #fefae0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
}

/* Centrer les informations de contact */
.contact p {
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Centrer et réduire la largeur du formulaire */
form {
    width: 100%; /* Responsive width */
    max-width: 600px; /* Limit the maximum width */
    margin: 0 auto; /* Center the form */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input, form textarea {
    padding: 10px;
    font-size: 16px;
    width: 100%; /* Ensure inputs take full width */
    box-sizing: border-box; /* Prevent overflow issues with padding */
}

form button {
    background-color: #dda15e;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    color: white;
    width: 100%; /* Ensure button matches input width */
    box-sizing: border-box;
}

form button:hover {
    background-color: #bc6c25;
}


footer {
    background-color: #0e0e0e;
    color: #fefae0;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */

/* Media Queries for responsiveness */

/* Tablet view (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .services-grid {
        flex-direction: column; /* Passe en colonne sur les tablettes */
    }

    .service-item, .service-item.reverse {
        flex-direction: column; /* Passe l'image au-dessus du texte sur les petits écrans */
        width: 100%; /* Prend toute la largeur */
        text-align: center; /* Centre le contenu */
    }

    .service-item img {
        width: 100%; /* Image responsive */
        height: auto;
    }

    .services h2 {
        font-size: 28px; /* Ajuste la taille du titre */
    }
}

/* Mobile view (max-width: 768px) */
@media screen and (max-width: 768px) {
    .service-item, .service-item.reverse {
        flex-direction: column; /* S'assure que tous les éléments sont en colonne */
        width: 100%; /* Prend toute la largeur */
    }

    .service-item img {
        width: 100%; /* Image responsive */
        height: auto;
    }

    .services h2 {
        font-size: 24px;
    }
}

/* Small mobile view (max-width: 480px) */
@media screen and (max-width: 480px) {
    .service-item, .service-item.reverse {
        flex-direction: column; /* S'assure que tous les éléments sont en colonne */
        width: 100%; /* Prend toute la largeur */
    }

    .service-item img {
        width: 100%; /* Image responsive */
        height: auto;
    }

    .services h2 {
        font-size: 20px;
    }
}