/* --- Variables & Reset --- */
:root {
    --color-primary: #105821; /* Vert foncé principal */
    --color-secondary: #12ae37; /* Vert vif */
    --color-accent: #a0cc2b; /* Vert clair/jaune-vert */
    --color-text: #333;
    --color-bg-light: #F9F9F9;
    --font-heading: 'Georgia', serif;
    --font-body: 'Arial', sans-serif;
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Layout Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; margin-top: 2rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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

.btn-primary:hover { 
    background-color: #0e8c2c; /* Version plus foncée de #12ae37 */
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 1px solid white;
    color: white;
    background: transparent;
}

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

.btn-outline-dark {
    border: 1px solid #ccc;
    color: #555;
    background: transparent;
}
.btn-outline-dark:hover { 
    background: #eee; 
    border-color: var(--color-accent);
}

/* Bouton avec couleur d'accent */
.btn-accent {
    background-color: var(--color-accent);
    color: white;
    border: none;
}

.btn-accent:hover {
    background-color: #8db826; /* Version plus foncée de #a0cc2b */
}

.btn-nav {
    background-color: var(--color-secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-nav:hover {
    background-color: #0e8c2c;
}

/* --- Header --- */
header {
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.desktop-nav ul { 
    display: flex; 
    gap: 25px; 
    align-items: center;
}
.desktop-nav a { 
    font-size: 0.9rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    color: #555;
    transition: color 0.3s;
}
.desktop-nav a:hover, .desktop-nav a.active { 
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-accent);
}

/* --- Hero Section --- */
.hero { 
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(16, 88, 33, 0.05) 0%, rgba(18, 174, 55, 0.05) 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: bold;
}
.hero-images { position: relative; height: 400px; }
.hero-images img { 
    border-radius: 8px; 
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.img-main { 
    width: 70%; 
    position: absolute; 
    top: 0; 
    left: 0;
    border: 5px solid white;
}
.img-small-1 { 
    width: 30%; 
    position: absolute; 
    top: 20px; 
    right: 0; 
    border: 5px solid white;
    border-radius: 50%;
}
.img-small-2 { 
    width: 40%; 
    position: absolute; 
    bottom: 0; 
    right: 20px; 
    border: 5px solid white;
    border-radius: 8px;
}

/* --- Cards Section --- */
.cards-section { padding-bottom: 60px; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 40px 20px;
    text-align: center;
    color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card h3 { 
    font-family: var(--font-heading); 
    font-size: 1.5rem; 
    margin: 15px 0; 
}
.card p { 
    font-size: 0.9rem; 
    margin-bottom: 25px;
    opacity: 0.9;
}
.icon-large { 
    font-size: 2.5rem; 
    margin-bottom: 10px;
    color: white;
}

.card-brown { 
    background-color: var(--color-primary);
}
.card-green { 
    background-color: var(--color-secondary);
}
.card-accent {
    background-color: var(--color-accent);
}
.card-image { 
    padding: 0; 
    position: relative; 
    overflow: hidden; 
}
.card-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.5s;
}
.card-image:hover img {
    transform: scale(1.05);
}
.btn-overlay {
    position: absolute;
    bottom: 30px;
    background: var(--color-secondary);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    transition: all 0.3s;
}
.btn-overlay:hover {
    background: var(--color-primary);
}

/* --- Impact Section --- */
.impact {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 0 0;
    position: relative;
}

.impact h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.impact-item { 
    text-align: center;
    padding: 20px;
}
.impact-item h4 { 
    font-family: var(--font-heading); 
    margin: 15px 0; 
    font-size: 1.1rem; 
    color: var(--color-accent);
}
.impact-item i { 
    font-size: 2rem; 
    margin-bottom: 10px;
    color: var(--color-accent);
}
.impact-item ul li { 
    font-size: 0.85rem; 
    margin-bottom: 5px; 
    position: relative; 
    padding-left: 15px; 
    text-align: left;
}
.impact-item ul li::before { 
    content: "✓"; 
    position: absolute; 
    left: 0;
    color: var(--color-accent);
}

.wave-bottom svg { 
    display: block; 
    width: 100%; 
    height: auto;
    fill: var(--color-primary);
}

/* --- Actualités / News --- */
.news { 
    padding: 60px 0; 
    background-color: #FDFBF7; 
}
.news-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}
.news-text-main h2 { 
    font-family: var(--font-heading); 
    font-size: 2.5rem; 
    color: var(--color-primary); 
    margin-bottom: 15px; 
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news article { 
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.news article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.news article img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    margin-bottom: 15px; 
}
.news .date { 
    font-size: 0.8rem; 
    color: #888; 
    display: block; 
    margin-bottom: 5px; 
    padding: 0 15px;
}
.news h4 { 
    font-family: var(--font-heading); 
    font-size: 1.1rem; 
    color: var(--color-secondary); 
    margin-bottom: 10px; 
    padding: 0 15px;
}
.news p {
    padding: 0 15px 15px;
    font-size: 0.9rem;
}
.read-more { 
    font-size: 0.9rem; 
    text-decoration: underline; 
    color: var(--color-accent);
    display: inline-block;
    margin: 0 15px 15px;
    font-weight: bold;
}
.read-more:hover {
    color: var(--color-primary);
}

/* --- Expertise --- */
.expertise { padding: 60px 0; }
.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
}
.expertise-text h2 { 
    font-family: var(--font-heading); 
    font-size: 2.5rem; 
    color: var(--color-primary); 
    margin-bottom: 20px; 
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    font-size: 0.9rem;
    color: #666;
}
.feature-item {
    text-align: center;
    padding: 20px;
}
.feature-item i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}
.feature-item h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* --- Poles --- */
.poles { 
    background-color: var(--color-primary); 
    color: white; 
    padding: 40px 0; 
}
.poles-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    text-align: left; 
}
.pole { 
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}
.pole i { 
    font-size: 2rem; 
    margin-bottom: 15px; 
    display: block; 
    color: var(--color-accent);
}
.pole h4 { 
    font-family: sans-serif; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    letter-spacing: 1px; 
}
.pole p { 
    font-size: 0.9rem; 
    opacity: 0.9; 
}

/* Style pour les images dans les pôles */
.pole img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.pole img:hover {
    transform: scale(1.05);
}

/* --- Join --- */
.join { 
    padding: 60px 0; 
    background-color: #F5F5F0; 
}
.join-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 0; 
    align-items: center; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.join-content { 
    padding: 40px; 
    background: white;
}
.join-content h2 { 
    font-family: var(--font-heading); 
    font-size: 2.5rem; 
    color: var(--color-primary); 
    margin-bottom: 20px; 
}
.join-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    min-height: 400px;
}

/* --- Team / Direction --- */
.team { 
    padding: 80px 0; 
    background-color: #f8f9fa;
}

.team h2 { 
    font-family: var(--font-heading); 
    font-size: 2.5rem; 
    color: var(--color-primary); 
    margin-bottom: 50px; 
    text-align: center;
}

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

.team-member { 
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-member img { 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    margin: 0 auto 20px; 
    object-fit: cover;
    border: 5px solid var(--color-accent);
}

.team-member h4 { 
    margin: 10px 0;
    color: var(--color-secondary);
    font-size: 1.3rem;
}

.team-member .role {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 5px 0 15px 0;
}

.team-member .bio { 
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 15px 0;
}

.member-contact {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.member-contact a:hover {
    background-color: var(--color-primary);
    transform: scale(1.1);
}

/* --- Footer --- */
.footer { 
    background-color: var(--color-primary); 
    color: white; 
    padding: 50px 0 20px; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 40px; 
}
.footer h4 { 
    margin-bottom: 20px; 
    font-size: 1.2rem;
    color: var(--color-accent);
}
.footer ul li { 
    margin-bottom: 10px; 
    transition: transform 0.3s;
}
.footer ul li:hover {
    transform: translateX(5px);
}
.footer ul li a:hover {
    color: var(--color-accent);
}
.footer input { 
    width: 100%; 
    padding: 10px; 
    margin-bottom: 10px; 
    border: none; 
    border-radius: 4px; 
}
.footer button { 
    width: 100%; 
    padding: 10px; 
    background: var(--color-accent); 
    color: var(--color-primary); 
    border: none; 
    font-weight: bold; 
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}
.footer button:hover {
    background: white;
    transform: translateY(-2px);
}
.footer-bottom { 
    text-align: center; 
    font-size: 0.8rem; 
    border-top: 1px solid rgba(255,255,255,0.2); 
    padding-top: 20px; 
    opacity: 0.8;
}

/* --- Page Content --- */
.page-content {
    padding: 60px 0;
}

.page-header {
    background: linear-gradient(135deg, rgba(16, 88, 33, 0.1) 0%, rgba(18, 174, 55, 0.1) 100%);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* --- Badges de statut --- */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

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

/* --- Responsive (Mobile) --- */
@media (max-width: 992px) {
    .hero-grid, .cards-grid, .impact-grid, 
    .news-header, .news-grid, .expertise-content, 
    .features-grid, .poles-grid, .join-grid, 
    .team-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container { flex-direction: column; }
    nav ul { flex-wrap: wrap; justify-content: center; margin-top: 15px; }
    
    .img-small-1, .img-small-2 { display: none; }
    .img-main { width: 100%; position: relative; }
    .hero-images { height: auto; margin-bottom: 20px; }
    
    .card { min-height: auto; }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .impact h2,
    .news-text-main h2,
    .expertise-text h2,
    .join-content h2,
    .team h2 {
        font-size: 2rem;
    }
    
    .join-grid {
        gap: 20px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
}