/* --- Global Styles & Variables --- */
:root {
    --color-primary: #2E8B57; /* Vert (Professionnalisme, confiance) */
    --color-secondary: #FFD700; /* Or (Prestige, qualité) */
    --color-text: #333333; /* Noir/Gris foncé pour texte principal */
    --color-text-light: #FFFFFF; /* Blanc pour texte sur fonds sombres */
    --color-background: #FFFFFF; /* Blanc (Clarté) */
    --color-footer-bg: #222222; /* Noir/Gris très foncé pour footer */
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Police moderne et pro - Consider Google Fonts later */
}

html {
    scroll-behavior: smooth; /* Added for smooth scrolling on anchor links */
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    /* Fade-in animation */
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

*, *:before, *:after {
    box-sizing: inherit;
}

h1, h2 {
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* Accessibility: Visible focus state */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3); /* Optional softer glow */
}

img {
    max-width: 100%;
    height: auto;
}

main {
    /* Remove default padding for full-width hero */
    /* padding: 20px; */ 
    max-width: 1200px;
    margin: 0 auto; /* Center content, remove top/bottom margin for hero */
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(46, 139, 87, 0.9); /* Semi-transparent green */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 20px;
    position: absolute; /* Position over hero */
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

/* Optional: Solid background on scroll */
/* header.scrolled {
    background-color: var(--color-primary);
} */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px; /* Adjust as needed based on SVG aspect ratio */
    width: auto;
    vertical-align: middle; /* Align logo better */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center; /* Align items vertically */
}

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

nav ul li a {
    font-weight: bold;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
    color: var(--color-text-light); /* White links in header */
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* Language switcher style */
nav ul li a[href*="_nl.html"],
nav ul li a[href*="index.html"]:not([href*="_nl"]) {
    font-weight: normal;
    font-size: 0.9em;
    padding: 3px 6px;
    border: 1px solid var(--color-text-light);
    border-radius: 3px;
    margin-left: 10px; /* Add some space */
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--color-text-light);
}
nav ul li a[href*="_nl.html"]:hover,
nav ul li a[href*="index.html"]:not([href*="_nl"]):hover {
     background-color: var(--color-text-light);
     color: var(--color-primary);
     border-bottom-color: transparent; /* Override hover effect */
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 28px; /* Larger icon */
    cursor: pointer;
    color: var(--color-text-light); /* White toggle */
    padding: 5px;
}

/* --- Footer --- */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    text-align: center;
    padding: 25px 20px;
    margin-top: 0; /* Remove margin if intro-text is directly above */
}

footer p {
    margin: 8px 0;
}

footer a {
    color: var(--color-text-light); /* Changed from gold to white */
    text-decoration: underline; /* Optional: Add underline for clarity */
}

footer a:hover {
    color: var(--color-secondary); /* Gold on hover */
    text-decoration: none; /* Optional: Remove underline on hover */
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light) !important; /* Ensure text is light */
    padding: 12px 25px;
    border-radius: 25px; /* More rounded */
    font-weight: bold;
    text-align: center;
    margin: 10px 5px;
    border: none; /* Remove default border */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-footer-bg) !important; /* Dark text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* --- Page Specific Styles --- */

/* Homepage New Hero Section */
.hero-new {
    position: relative;
    height: 75vh; /* Adjust height as needed */
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    justify-content: center; /* Center vertically */
    text-align: center;
    padding-top: 80px; /* Space for header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-background-new.png'); /* Use new image */
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* Optional: slight darkening filter for better text contrast */
    filter: brightness(0.8);
}

.hero-overlay {
    position: relative;
    z-index: 1;
    padding: 20px;
    color: var(--color-text-light);
    max-width: 90%;
    margin-top: auto; /* Push content towards the bottom */
    margin-bottom: 5vh; /* Space from bottom */
}

/* Style for the concise hero slogan */
.hero-slogan-concise {
    font-size: 1.4em; /* Adjust size as needed */
    font-style: italic; /* Ensure italic style */
    color: var(--color-text-light);
    margin-bottom: 25px; /* Space before button */
    opacity: 0.95;
    line-height: 1.5;
    max-width: 800px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

/* Ensure emphasis tag inside inherits color */
.hero-slogan-concise em {
    color: inherit; 
    font-style: italic; /* Reinforce */
}

/* Removed .hero-main-title as it's replaced by logo in header */
/* Removed .hero-icons, .icon-item, .icon-placeholder */

.hero-cta {
    padding: 15px 35px; /* Larger button */
    font-size: 1.1em;
    margin-top: 10px; /* Adjusted margin */
}

/* Intro Text Section Below Hero */
.intro-text {
    background-color: var(--color-footer-bg); /* Dark background */
    color: var(--color-text-light);
    padding: 50px 20px;
    text-align: center;
}

.intro-text h2 {
    color: var(--color-text-light); /* White heading */
    font-size: 1.8em;
    margin-bottom: 15px;
}

.intro-text p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Page */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly larger min size */
    gap: 30px;
    margin-top: 30px;
    padding: 20px; /* Add padding since main lost it */
}

.service-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.service-item h2 {
    margin-top: 0;
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Why Us Page */
.why-us-content {
    padding: 20px; /* Add padding since main lost it */
}
.why-us-content p {
    margin-bottom: 20px;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.key-point {
    padding: 20px;
    border-left: 4px solid var(--color-primary);
    background-color: #f9f9f9;
    border-radius: 5px;
}

.key-point h2 {
    margin-top: 0;
    font-size: 1.25em;
    margin-bottom: 8px;
}

/* Contact Page */
.contact-page-main {
    padding: 20px; /* Add padding since main lost it */
}
.contact-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
     border-color: var(--color-primary);
     box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2); /* Focus glow matching primary color */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-details {
    text-align: center;
    margin-top: 40px;
}

.contact-details p {
    margin: 10px 0;
    font-size: 1.1em;
}

/* Added style for contact tagline */
.contact-tagline {
    color: var(--color-primary); /* Dark green */
    font-weight: bold;
    margin-top: 25px !important; /* Add space above */
    font-size: 1em; /* Adjust size if needed */
    line-height: 1.4;
}

/* Legal Page */
.legal-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px; /* Add padding since main lost it */
}

.legal-content h1 {
    margin-bottom: 30px;
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.legal-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}
.legal-content li {
    margin-bottom: 8px;
}

/* --- Responsive Design --- */

/* Tablet Styles */
@media (max-width: 992px) {
    .hero-slogan-bottom {
        font-size: 1.6em;
    }
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .key-points {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        background-color: var(--color-primary); /* Solid green on mobile */
        position: sticky; /* Sticky on mobile */
    }
    nav ul {
        display: none; /* Hide menu items */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    nav ul.active {
        display: flex; /* Show when active */
    }

    nav ul li {
        margin: 15px 20px; /* Increased spacing */
        text-align: center;
    }
    nav ul li a {
        padding: 10px 0;
        display: block; /* Make links full width */
        color: var(--color-text-light);
    }
    nav ul li a.active,
    nav ul li a:hover {
        border-bottom-color: transparent; /* Remove border on mobile */
        color: var(--color-secondary);
    }
    /* Ensure language switcher is also spaced */
    nav ul li a[href*="_nl.html"],
    nav ul li a[href*="index.html"]:not([href*="_nl"]) {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block; /* Keep it inline-block */
        width: auto;
        border-color: var(--color-text-light);
        color: var(--color-text-light);
    }
    nav ul li a[href*="_nl.html"]:hover,
    nav ul li a[href*="index.html"]:not([href*="_nl"]):hover {
        background-color: var(--color-text-light);
        color: var(--color-primary);
    }

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

    .hero-new {
        height: 60vh;
        min-height: 450px;
    }
    .hero-slogan-top {
        font-size: 1em;
    }
    .hero-slogan-bottom {
        font-size: 1.3em;
    }

    .intro-text {
        padding: 40px 15px;
    }
    .intro-text h2 {
        font-size: 1.6em;
    }
    .intro-text p {
        font-size: 1em;
    }

    .services-list,
    .key-points {
        grid-template-columns: 1fr; /* Stack items on mobile */
        padding: 15px;
    }
    .contact-page-main, .why-us-content, .legal-content {
        padding: 15px;
    }
}

/* Smaller Mobile Styles */
@media (max-width: 480px) {
    .hero-new {
        height: 55vh;
        min-height: 400px;
    }
    .hero-slogan-top {
        font-size: 0.9em;
    }
    .hero-slogan-bottom {
        font-size: 1.1em;
    }
    .hero-cta {
        padding: 12px 25px;
        font-size: 1em;
    }

    .intro-text {
        padding: 30px 10px;
    }
    .intro-text h2 {
        font-size: 1.4em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .contact-form {
        padding: 20px;
    }
}

/* --- Light Animations --- */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Optional: Subtle slide-in for service items (uncomment JS part too) */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.service-item, .key-point {
   animation: slideIn 0.6s ease-out forwards;
   opacity: 0; 
}
.service-item:nth-child(1), .key-point:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2), .key-point:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3), .key-point:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }
*/

