/* Réinitialisation de base et variables */
:root {
    --primary-color: #4a7c59; /* Vert doux */
    --secondary-color: #e1d9c5; /* Beige clair */
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --accent-color: #d4a373; /* Accent terreux */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
    display: flex; /* Added for sticky footer */
    flex-direction: column; /* Added for sticky footer */
    min-height: 100vh; /* Added for sticky footer */
}

/* Ensure main content takes available space */
main {
    flex: 1; /* Added for sticky footer */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    width: 100%; /* Ensure header spans full width */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a { /* Style link within logo */
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none; /* Remove underline from logo link */
}

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

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 5px 0; /* Added padding for better active state visualization */
    border-bottom: 2px solid transparent; /* Prepare for active state underline */
}

nav ul li a:hover,
nav ul li a.active { /* Style for active page link */
    color: var(--primary-color);
    font-weight: 700;
    border-bottom-color: var(--primary-color); /* Underline effect for active */
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(74, 124, 89, 0.6), rgba(74, 124, 89, 0.6)), url('hero-background.png') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 100px 0;
    /* min-height: 60vh; */ /* Let content define height or adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* Allow hero to grow if it's the only content */
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #bf8f5a; /* Darker accent */
    transform: translateY(-2px);
}

/* Sections générales (now main content areas) */
main section { /* Target sections within main */
    padding: 60px 0;
}

main section h2 { /* Target section headings */
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.light-bg {
    background-color: var(--secondary-color);
}

/* À Propos Section Specific Styles */
.apropos-content .container {
    text-align: center;
}

.apropos-content p {
    max-width: 700px;
    margin: 0 auto 1rem auto;
    text-align: justify;
}
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Services Section Specific Styles */
.services-content .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.services-content .service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-content .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.services-content .service-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    /* color: var(--primary-color); If using SVGs or font icons */
}

.services-content .service-item h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Contact Section Specific Styles */
.contact-content #contact-form {
    max-width: 600px;
    margin: 30px auto 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.contact-content #contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-content #contact-form input[type="text"],
.contact-content #contact-form input[type="email"],
.contact-content #contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.contact-content #contact-form textarea {
    resize: vertical;
}

.contact-content #contact-form button {
    width: 100%;
    margin-top: 10px;
}

.contact-content .form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    min-height: 1.2em; /* Reserve space for status message */
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Changed for sticky footer */
    width: 100%; /* Ensure footer spans full width */
}

footer p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo a { /* Adjust logo size */
        font-size: 1.5rem;
    }

    nav ul {
        display: none; /* Hide nav links by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 1rem 0;
        text-align: center;
    }

    nav ul.active { /* Class added by JS to show menu */
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        margin-left: 0; /* Reset margin */
    }
     nav ul li a.active {
        border-bottom-color: transparent; /* Don't show underline on mobile nav */
     }
     nav ul li a:hover, nav ul li a.active {
         color: var(--primary-color); /* Ensure active color */
         font-weight: 700;
     }

    .menu-toggle {
        display: block; /* Show hamburger menu */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    main section h2 {
        font-size: 2rem;
    }

    .apropos-content p {
        text-align: left; /* Justify looks weird on narrow screens */
    }

     .services-content .service-grid {
        grid-template-columns: 1fr; /* Stack services vertically */
    }

    .contact-content #contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
     .hero p {
        font-size: 1rem;
    }
    .logo a { /* Adjust logo size */
        font-size: 1.3rem;
    }
}