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

:root {
    --primary-color: #1E88E5; /* Bleu vif */
    --secondary-color: #43A047; /* Vert nature */
    --accent-color: #FB8C00; /* Orange chaleureux */
    --primary-dark: #1565C0;
    --secondary-dark: #2E7D32;
    --accent-dark: #F57C00;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
}

body {
    font-family: '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Header */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo a {
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--primary-color);
}

nav a.active::after {
    width: 100%;
}

nav li:nth-child(1) a:hover { color: var(--primary-color); }
nav li:nth-child(2) a:hover { color: var(--secondary-color); }
nav li:nth-child(3) a:hover { color: var(--accent-color); }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle:hover span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.content-section {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
}

/* Page-specific border colors */
#contact .content-section {
    border-left-color: var(--accent-color);
}

h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#contact h1 {
    color: var(--accent-color);
}

h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

#contact h2 {
    color: var(--accent-color);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.work-package {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.work-package h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.work-package .wp-number {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 0.5rem;
}

.work-package .wp-leader {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.work-package ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.work-package ul li {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.work-package ul li::before {
    content: '→';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.activity-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.activity-card h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.component-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.component-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.component-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.component-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(67, 160, 71, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box p {
    margin-bottom: 0.5rem;
}

.highlight-box strong {
    color: var(--primary-color);
}

.highlight-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.highlight-box a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.objectives-list {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    list-style: none;
}

.objectives-list li {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
}

.objectives-list li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

.objectives-list li strong {
    color: var(--text-color);
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

table tr:hover {
    background-color: var(--bg-light);
}

table strong {
    color: var(--primary-color);
    font-weight: 600;
}

.kpi-box {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-color);
}

.kpi-box strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.partner-section {
    margin: 2rem 0;
}

.partner-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 0.8rem;
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-card strong {
    color: var(--text-color);
    font-weight: 600;
}
/* Footer */
footer {
    background-color: var(--bg-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
    }

    nav a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .header-container {
        padding: 1rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .work-package {
        padding: 1.5rem;
    }
            .components-grid {
                grid-template-columns: 1fr;
            }

            .contact-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
    .logo img {
        height: 60px;
    }

    h1 {
        font-size: 1.75rem;
    }

            .component-card {
                padding: 1rem;
            }

            .highlight-box {
                padding: 1rem;
            }

            .contact-card {
                padding: 1.5rem;
            }
        }
