:root {
    --color-primary: #002b36;
    /* Dark Teal from Logo Text */
    --color-secondary: #7fb03e;
    /* Lime Green from Logo Graphic */
    --color-accent: #2e8b57;
    /* Darker Green for gradients/hover */
    --color-text: #333;
    --color-bg: #f9f9f9;
    --color-white: #ffffff;
    --font-main: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --spacing-unit: 1rem;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 135px;
    /* Increased by 50% from 90px */
    width: auto;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-secondary);
}

/* Burger Menu */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    padding: 0;
    z-index: 1100;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Menu Animation */
.burger-menu.active span:first-child {
    transform: rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, box-shadow 0.3s;
        box-shadow: none;
    }

    .main-nav.active {
        max-height: 400px;
        /* Adjust if menu grows bigger */
        padding: 2rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .logo-img {
        height: 60px;
        /* Smaller logo on mobile */
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 43, 54, 0.4), rgba(46, 139, 87, 0.4)), url('./hero-banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 8rem 0;
    /* Increased padding for better visual with image */
    text-align: center;
}

.hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 4rem 0;
}

/* Reduce spacing for Bilan page */
.page-header {
    padding-bottom: 1rem;
}

.content-section {
    padding-top: 1rem;
}

.intro {
    background-color: var(--color-white);
    text-align: center;
}

.intro h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.news h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-secondary);
}

.news-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Download CTA */
.download-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 4rem 0;
}

.download-cta h3 {
    margin-bottom: 1rem;
}

.download-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Program Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
    gap: 3rem;
    /* Increase gap */
    margin-top: 3rem;
    text-align: left;
}

@media (max-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr;
    }
}

.program-item {
    background-color: var(--color-bg);
    padding: 2.5rem;
    /* Increased padding */
    border-radius: 12px;
    /* Slightly more rounded */
    border-left: 6px solid var(--color-secondary);
    /* Thicker border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    /* Slightly stronger shadow */
    font-size: 1.05rem;
    /* Slightly larger base text */
}

.program-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    /* Critical: Increased from 0.9rem */
    letter-spacing: 0.05rem;
    font-weight: 700;
}

.program-item h5 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    /* Increased from 1.1rem */
    font-style: italic;
    /* Match the "handwriting" style vibe */
}

.program-item ul {
    list-style: none;
    padding: 0;
}

.program-item li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.program-item li::before {
    content: "•";
    color: var(--color-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Team Carousel Section */
.team-carousel-section {
    background-color: var(--color-bg);
    padding: 4rem 0;
    text-align: center;
}

.team-carousel-section h3 {
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.team-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
}

.team-carousel .team-card {
    flex: 0 0 350px;
    /* Fixed width cards */
    scroll-snap-align: start;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-carousel .team-photo {
    width: 240px;
    height: 240px;
    /* Explicitly larger for carousel */
}

.team-card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--color-primary);
}

.team-photo-placeholder {
    width: 120px;
    height: 120px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.team-carousel::-webkit-scrollbar {
    height: 8px;
}

.team-carousel::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.team-carousel::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

/* Footer */
.site-footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

/* Specific styles for the Team Grid Page (Notre liste) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-grid-section .team-card {
    background-color: var(--color-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 6px solid var(--color-secondary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-grid-section .team-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    /* Circle */
    margin-bottom: 1.5rem;
}

.team-grid-section .team-photo-placeholder {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    /* Circle */
    font-size: 1.2rem;
}

.team-grid-section .team-card p {
    text-align: left;
    width: 100%;
}

.discover-card {
    background-color: var(--color-secondary) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    /* Remove padding to let link fill card */
    border-left: none !important;
    /* Remove colored border for program grid items */
}

.discover-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--color-white);
    padding: 2rem;
    /* Add padding to link instead */
    transition: background-color 0.3s;
    border-radius: 8px;
}

.discover-link:hover {
    background-color: var(--color-accent);
}

.discover-link h3 {
    color: var(--color-white);
    margin: 0 0 1rem 0;
}

.arrow {
    font-size: 2rem;
    color: var(--color-white);
}

/* Bilan Teaser Section */
.bilan-teaser-section {
    text-align: center;
    background-color: var(--color-white);
}

.bilan-teaser-section h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.bilan-teaser-section p {
    margin-bottom: 2rem;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: color 0.3s;
    color: var(--color-primary);
}

.footer-social .social-icon {
    color: var(--color-white);
}

.social-icon:hover {
    color: var(--color-secondary);
}

.footer-social .social-icon:hover {
    color: var(--color-secondary);
}

/* News Section */
.news-section {
    background-color: var(--color-bg);
}

.news-section h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ddd;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

.news-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.news-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
}

/* Bilan Page Styles */
.bilan-section {
    margin-bottom: 2rem;
    border-radius: 12px;
    background-color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.bilan-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid;
}

.bilan-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.bilan-header .bilan-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.bilan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.bilan-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: #fcfcfc;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.bilan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bilan-item .item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.bilan-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Specific Section Colors */

/* 1. Développement (Purple) */
.bilan-section.purple .bilan-header {
    background-color: #f3e5f5;
    border-color: #7b1fa2;
    color: #7b1fa2;
}

.bilan-section.purple .item-icon {
    fill: #7b1fa2;
}

.bilan-section.purple .bilan-item {
    background-color: #faf7fb;
}

/* 2. Communication (Cyan) */
.bilan-section.cyan .bilan-header {
    background-color: #e0f7fa;
    border-color: #0097a7;
    color: #0097a7;
}

.bilan-section.cyan .item-icon {
    fill: #0097a7;
}

.bilan-section.cyan .bilan-item {
    background-color: #f2fcfd;
}

/* 3. Gestion (Orange) */
.bilan-section.orange .bilan-header {
    background-color: #fff3e0;
    border-color: #f57c00;
    color: #f57c00;
}

.bilan-section.orange .item-icon {
    fill: #f57c00;
}

.bilan-section.orange .bilan-item {
    background-color: #fffbf5;
}

/* 4. Animation (Red) */
.bilan-section.red .bilan-header {
    background-color: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f;
}

.bilan-section.red .item-icon {
    fill: #d32f2f;
}

.bilan-section.red .bilan-item {
    background-color: #fff5f6;
}

/* 5. Environnement (Green) */
.bilan-section.green .bilan-header {
    background-color: #e8f5e9;
    border-color: #388e3c;
    color: #388e3c;
}

.bilan-section.green .item-icon {
    fill: #388e3c;
}

.bilan-section.green .bilan-item {
    background-color: #f1f8f2;
}

/* Contact Form Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.contact-form input[type="text"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(127, 176, 62, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: var(--color-accent);
}

/* Next Meeting Section */
.next-meeting-section {
    background-color: #f0f7f4;
    /* Light greenish tint matching theme */
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.next-meeting-section h3 {
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.meeting-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.meeting-details {
    flex: 1;
    min-width: 300px;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-secondary);
}

.meeting-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.meeting-info-list {
    list-style: none;
    padding: 0;
}

.meeting-info-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.meeting-info-list li::before {
    content: "•";
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4rem;
}

.meeting-map {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #eee;
}

.meeting-map iframe {
    display: block;
    width: 100%;
    height: 300px;
}

.map-link {
    display: block;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 0.8rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.map-link:hover {
    background-color: var(--color-secondary);
}

@media (max-width: 768px) {
    .meeting-content {
        flex-direction: column;
        align-items: stretch;
    }
}