/* --- VARIABLES & RESET --- */
:root {
    --green-primary: #15803d;
    --green-dark: #166534;
    --green-light: #86efac;
    --orange: #f97316;
    --white: #ffffff;
    --gray-light: #f9fafb;
    --gray-text: #6b7280;
    --dark: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gray-light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    background-color: var(--green-primary);
    color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    background: var(--white);
    color: var(--green-primary);
    padding: 8px;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 1;
}

.logo-text span {
    font-size: 0.6rem;
    letter-spacing: 2px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--green-light);
}

/* --- HEADER --- */
header {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

header img.bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0, 50, 0, 0.9));
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    transform: translateY(205px); /* Ajusté pour éviter le décalage bizarre */
}

header h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    max-width: 800px;
}

/* --- BUTTONS --- */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--green-dark);
}

/* --- MAIN SECTION --- */
main {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.line {
    height: 6px;
    width: 80px;
    background: var(--green-primary);
    margin-top: 8px;
}

/* --- GRID & ARTICLES --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

article {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 126%;
    object-fit: cover;
    transition: transform 0.5s;
}

article:hover .card-img img {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--green-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-body {
    padding: 2rem;
}

.date {
    font-size: 0.75rem;
    color: var(--gray-text);
}

.card-body h3 {
    margin: 1rem 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.card-body p {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: var(--gray-text);
    padding: 4rem 2rem;
    border-top: 8px solid var(--green-primary);
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    color: var(--white);
    font-weight: 900;
    font-size: 1.5rem;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--green-light);
}

/* --- NOUVEAUX STYLES POUR LE BURGER --- */
.menu-burger {
    display: none; /* Caché sur ordinateur */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--white);
    z-index: 1100;
}

/* --- MISE À JOUR MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .menu-burger {
        display: block; /* On affiche le burger */
    }

    .btn-follow {
        display: none; /* On cache le bouton pour faire de la place */
    }

    .nav-links {
        display: none; /* On cache les liens par défaut */
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%; /* Le menu prend 70% de la largeur */
        background-color: var(--green-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 1050;
        transition: transform 0.4s ease;
        box-shadow: -10px 0 20px rgba(0,0,0,0.2);
    }

    /* Classe activée par le JavaScript */
    .nav-links.mobile-active {
        display: flex; /* On affiche le menu au clic */
        animation: slideIn 0.3s forwards;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    @keyframes slideIn {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    /* Ajustement Hero Header pour mobile */
    header { height: 70vh; }
    header h1 { 
        font-size: 1.8rem; 
        transform: translateY(100px); 
    }
}