/* Variables et réinitialisation */
        :root {
            --primary-color: #2e7d32;
            --secondary-color: #7cb342;
            --accent-color: #c5e1a5;
            --text-color: #333;
            --light-text: #fff;
            --background: #f9f9f9;
            --section-padding: 80px 0;
        }

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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--background);
        }

        /* Typographie */
        h1,
        h2,
        h3 {
            font-weight: 600;
            line-height: 1.2;
            margin-bottom: 20px;
        }

        p {
            margin-bottom: 15px;
        }

        /* Layout */
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        section {
            padding: var(--section-padding);
        }

        /* Navigation */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            padding: 15px 0;
            transition: all 0.3s ease;
        }

        header.scrolled {
            padding: 10px 0;
        }

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

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-color);
            display: flex;
            align-items: center;
        }

        .logo i {
            margin-right: 10px;
        }

        .nav-menu {
            display: flex;
            list-style: none;
        }

        .nav-menu li {
            margin-left: 30px;
        }

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

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

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1527525443983-6e60c75fff46?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
            background-size: cover;
            background-position: center;
            color: var(--light-text);
            text-align: center;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: var(--secondary-color);
            color: var(--light-text);
            text-decoration: none;
            border-radius: 30px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

        /* About Section */
        .about {
            background-color: #fff;
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
            color: var(--primary-color);
        }

        .about-content {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .about-text {
            flex: 1;
        }

        .about-image {
            flex: 1;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }

        .about-image:hover img {
            transform: scale(1.05);
        }

        /* Objectives Section */
        .objectives {
            background-color: #f5f9f2;
        }

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

        .objective-card {
            background-color: #fff;
            padding: 30px;
            border-radius: 10px;
            transition: transform 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            text-align: center;
        }

        .objective-card:hover {
            transform: translateY(-10px);
        }

        .objective-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .objective-card h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        /* Gallery Section */
        .gallery {
            background-color: #fff;
        }

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

        .gallery-item {
            border-radius: 10px;
            overflow: hidden;
            height: 250px;
            position: relative;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            color: white;
            padding: 20px 15px 15px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .gallery-item:hover .gallery-caption {
            opacity: 1;
        }

        /* Impact Section */
        .impact {
            background-color: #f5f9f2;
            text-align: center;
        }

        .stats-container {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 30px;
        }

        .stat {
            padding: 30px;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            min-width: 200px;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .stat-text {
            font-weight: 500;
        }

        /* Footer */
        footer {
            background-color: var(--primary-color);
            color: var(--light-text);
            padding: 50px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .footer-section h3 {
            margin-bottom: 20px;
            font-size: 1.3rem;
        }

        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--light-text);
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            background-color: var(--secondary-color);
            transform: translateY(-3px);
        }

        .gallery-stacks {
            padding: 40px 0;
        }

        .stacks-container {
            display: flex;
            gap:100px;
            justify-content: center;
        }

        .stack {
            position: relative;
            width: 180px;
            height: 180px;
            cursor: pointer;
            transition: transform .3s;
        }

        .stack:hover {
            transform: scale(1.05);
        }

        .stack img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }

        .top-img {
            transform: rotate(0deg);
        }

        .mid-img {
            transform: rotate(-5deg);
            top: 8px;
        }

        .bottom-img {
            transform: rotate(5deg);
            top: 16px;
        }

        .grid.hidden {
            display: none;
        }

        .grid {

            text-align: center;
            justify-content: center;
            padding: 5% 10%;
        }

        #close-grid {
            padding: 8px 16px;
            margin-bottom: 15px;
            cursor: pointer;
        }

        #grid-images {

            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 14px;
            padding: 10px;
        }

        #grid-images img {
            width: 100%;
            aspect-ratio: 1 / 1;
            /* Force le carré */
            object-fit: cover;
            /* Pour remplir proprement */
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transition: transform .25s ease;
        }


        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Responsive */
        @media (max-width: 968px) {
            .about-content {
                flex-direction: column;
            }

            .about-image {
                order: -1;
            }
        }

        @media (max-width: 768px) {
            .nav-menu {
                display: none;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .stats-container {
                flex-direction: column;
                align-items: center;
            }
        }
#partners {
    padding: 80px 0;
    background: #f9fafb;
}

#partners .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 35px;
    justify-items: center;
}

.partner-item {
    background: #fff;
    padding: 25px 15px;
    border-radius: 16px;
    width: 100%;
    max-width: 240px;
    text-align: center;
    cursor: pointer;
    transition: all .3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0px 4px 20px rgba(0,0,0,0.03);
}

.partner-item:hover {
    transform: translateY(-7px);
    box-shadow: 0px 10px 35px rgba(0,0,0,0.08);
}

.partner-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: all .3s ease;
    filter: saturate(0.9) contrast(1.1);
}

.partner-item:hover img {
    transform: scale(1.15);
    filter: saturate(1.2);
}

.partner-item p {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.5px;
    line-height: 1.4;
    transition: all .3s ease;
}

.partner-item:hover p {
    color: #0078ff;
}
