
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: oklch(55% 0.15 150); /* A more vibrant, modern green */
    --secondary-color: oklch(75% 0.2 60); /* A punchy, warm orange */
    --background-color: oklch(98% 0.01 240); /* A very light, slightly cool gray */
    --text-color: oklch(25% 0.02 240);
    --text-light-color: oklch(45% 0.02 240);
    --surface-color: oklch(100% 0 0); /* White */

    --headline-font: 'Poppins', sans-serif;
    --body-font: 'Lato', sans-serif;

    /* A modern, layered shadow system for depth */
    --shadow-color: 220 3% 15%;
    --shadow-elevation-low:
        0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
        0.4px 0.8px 1px -1.2px hsl(var(--shadow-color) / 0.34),
        1px 2px 2.5px -2.5px hsl(var(--shadow-color) / 0.34);
    --shadow-elevation-medium:
        0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.36),
        0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.36),
        2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.36),
        5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.36);
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    position: relative;
}

/* Subtle noise texture for a premium feel */
body::before {
    content: "";
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    opacity: 0.025;
    z-index: -1;
}

#hero {
    background-image: linear-gradient(to right, oklch(50% 0.15 150 / 0.85), oklch(65% 0.2 90 / 0.85)), url('/Enfecalgy/images/energie-places.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 2rem 10rem 2rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--headline-font);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#hero p {
    font-size: 1.25rem;
    color: oklch(95% 0.01 240);
    max-width: 600px;
    margin: 1rem auto 0 auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--headline-font);
    margin-top: 2.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-elevation-medium);
}

.cta-button:hover {
    transform: translateY(-4px);
    background-color: oklch(from var(--secondary-color) calc(l + 0.05) c h);
    box-shadow: 0 0 25px 0 oklch(from var(--secondary-color) calc(l + 0.1) c h / 0.6), var(--shadow-elevation-medium);
}

section {
    padding: 5rem 2rem;
    position: relative;
}

/* Add a decorative top border to sections */
section:not(#hero)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--text-light-color);
}

h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 4rem;
}

.problem-content, .solution-content, .how-it-works-content, .crowdfunding-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-content {
    grid-template-columns: 1fr 1.2fr; /* Give image a bit more space */
}
.how-it-works-content {
     grid-template-columns: 1.2fr 1fr;
}

.problem-text, .solution-text, .how-it-works-text, .funding-goal {
    max-width: 500px;
}

.problem-image img, .solution-image img, .how-it-works-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-elevation-medium);
}

ul, ol {
    padding-left: 20px;
}
li {
    margin-bottom: 0.75rem;
}

.table-container {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 1000px;
    box-shadow: var(--shadow-elevation-medium);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid oklch(90% 0.01 240);
}

table th {
    background-color: var(--surface-color);
    font-family: var(--headline-font);
    color: var(--primary-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

table tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background-color: oklch(from var(--primary-color) l c h / 0.1);
}
.highlight-row td {
    color: var(--primary-color);
    font-weight: bold;
}

.efficiency-notes, .reward-card {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-elevation-medium);
    transition: all 0.3s ease;
}

.efficiency-notes:hover, .reward-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevation-high);
}

.efficiency-notes {
    max-width: 1000px;
    margin: 3rem auto 0 auto;
}

.crowdfunding-content {
    align-items: flex-start;
}

.rewards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    flex: 1.5;
}

.funding-goal { flex: 1; }

.reward-card h4 {
    font-.size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
}

#community {
    text-align: center;
    background-color: oklch(from var(--primary-color) l c h / 0.05);
}

.community-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.community-link {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-elevation-low);
}

.community-link:hover {
    background-color: oklch(from var(--primary-color) calc(l - 0.05) c h);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevation-medium);
}

footer {
    background-color: var(--text-color);
    color: oklch(95% 0.01 240);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}


/* Responsive Design */
@media (max-width: 992px) {
    .rewards {
        grid-template-columns: 1fr;
    }
    .problem-content, .solution-content, .how-it-works-content, .crowdfunding-content {
        grid-template-columns: 1fr;
    }
    .solution-content, .how-it-works-content {
        /* Flip order on mobile for better flow */
        grid-auto-flow: dense;
    }
    .solution-image, .how-it-works-image {
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}
