/* Global Resets & Basic Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem; /* Adjusted size */
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #007bff; /* Example link color */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding-left: 20px; /* Indent list items slightly */
}

li {
    margin-bottom: 0.5rem;
}

/* Header */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky; /* Makes header stick on scroll */
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.site-header nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

.site-header nav ul li {
    margin-left: 20px;
    margin-bottom: 0; /* Override default li margin */
}

.site-header nav ul li a {
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.site-header nav ul li a:hover {
    color: #0056b3;
}


/* Hero Section */
.hero-section {
background-image: url(estate.png);
    background-size: cover;
    background-position: center center;
    min-height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: flex-start; /* Align text to the left */
    color: #fff;
    text-align: center; /* Ensure text aligns left */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Ombre portée pour améliorer la lisibilité */
}
.oustroupistache {
background-image: url(invest.webp);
    background-size: cover;
    background-position: center center;
    min-height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: flex-start; /* Align text to the left */
    color: #fff;
    text-align: center; /* Ensure text aligns left */
}
.oustroupistache2 {
background-image: url(key.jpg);
    background-size: cover;
    background-position: center center;
    min-height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: flex-start; /* Align text to the left */
    color: #fff;
    text-align: center; /* Ensure text aligns left */
}

.hero-content {
    max-width: 600px; /* Limit width of text */
}

.hero-section .subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.gray-bg {
    background-color: #f8f9fa; /* Light gray background */
}

.content-container {
    display: flex;
    gap: 40px; /* Space between text and chart/image */
    align-items: flex-start; /* Align items to the top */
}

/* Adjust layout for single column content if needed */
#le-defi .content-container {
    flex-direction: column; /* Stack title/text and chart vertically */
    align-items: center; /* Center content */
    text-align: center;
}

#le-defi .text-content {
     max-width: 800px; /* Limit width of centered text */
}


#le-defi .chart-placeholder img {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
}


/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between cards */
    margin-top: 30px;
}

.project-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners match border radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Scale image nicely */
}

.project-card h3,
.project-card p,
.project-card .btn {
    padding: 0 20px; /* Padding inside the card, below image */
}

.project-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #333;
}

.project-card p {
    color: #666;
    font-size: 0.95rem;
    flex-grow: 1; /* Allows description to push button down */
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-bottom: 20px; /* Spacing at the bottom of the card */
    align-self: flex-start; /* Align button to the start (left) */
    margin-left: 20px; /* Match padding */
}

.btn:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Vision Section */
.vision-content {
    display: flex;
    gap: 40px;
    align-items: center; /* Center items vertically */
    margin-top: 30px;
}

.vision-image {
    flex: 1; /* Take up half the space */
}

.vision-image img {
    border-radius: 8px;
}
.vision-text {
    flex: 1; /* Take up the other half */
}


.vision-text ul {
    list-style: disc; /* Use standard bullet points */
    padding-left: 25px;
    margin-top: 1rem;
}

.vision-text li {
    margin-bottom: 0.7rem;
}


/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0 auto; /* Center form */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
#contact.content-section { /* Add this if form is on white background */
    background-color: #f8f9fa; /* Or another contrasting color */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize */
}

.contact-form button.btn {
    display: block; /* Make button full width */
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    margin: 0; /* Reset margins */
}


/* Footer */
.site-footer {
    background-color: #343a40; /* Dark background */
    color: #f8f9fa; /* Light text */
    text-align: center;
    padding: 30px 0;
    margin-top: 60px; /* Space above footer */
}

.site-footer p {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: #adb5bd; /* Lighter link color */
    margin: 0 10px;
}

.site-footer a:hover {
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .site-header nav ul {
       flex-direction: column;
       margin-top: 1rem;
    }

     .site-header nav ul li {
       margin: 5px 0;
    }

    .hero-section {
        min-height: 50vh;
        text-align: center;
        justify-content: center; /* Center text on mobile */
    }
    .oustroupistache {
        min-height: 50vh;
        text-align: center;
        justify-content: center; /* Center text on mobile */
    }
    .oustroupistache2 {
        min-height: 50vh;
        text-align: center;
        justify-content: center; /* Center text on mobile */
    }

    .hero-content {
        padding: 0 15px; /* Add padding on mobile */
    }

    .content-container,
    .vision-content {
        flex-direction: column; /* Stack items vertically */
        text-align: center;
    }

     .vision-content {
        align-items: center; /* Center items when stacked */
     }

    .vision-image {
        margin-bottom: 20px;
        max-width: 80%; /* Control image size */
        margin-left: auto;
        margin-right: auto;
    }

    .project-grid {
        grid-template-columns: 1fr; /* Single column grid */
    }

    .contact-form {
        padding: 20px;
    }
}