/* Variables CSS - Charte graphique de la page d'accueil */
:root {
    --primary-color: #07411E;
    --primary-dark: #052E15;
    --primary-light: #0A5C2B;
    --secondary-color: #ABC41B;
    --secondary-dark: #8FA118;
    --secondary-light: #C4DE1F;
    --accent-color: #FFB100;
    --accent-dark: #E69D00;
    --accent-light: #FFC033;
    --text-color: #333333;
    --text-light: #666666;
    --light-text: #FFFFFF;
    --background-light: #F5F7F5;
    --background-alt: #E8ECE8;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-light: #F5F7F5;
    --border-color: #E8ECE8;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 15px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Header et Navigation - Style de la page d'accueil */
.header-transparent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-transparent.scrolled {
    background: rgba(7, 65, 30, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav {
    height: 50px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-right: 2rem;
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-elements {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: rgb(255, 253, 253);
    text-decoration: none;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.scrolled .nav-item a {
    color: var(--text-color);
}

.nav-item a:hover {
    color: var(--accent-color);
}

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

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    border-radius: 10px;
    padding: 1rem 0;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: var(--light-text);
    padding: 0.5rem 1rem;
    display: block;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}



.menu-toggle {
    display: none;
}

/* Responsive Navigation */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 45px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 45px);
        background: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-item:hover .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: var(--light-text);
        font-size: 1.2rem;
        cursor: pointer;
    }
}

.actualites-main {
    padding-top: 45px; /* Compensation pour le header fixe */
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-alt) 100%);
    min-height: 100vh;
}

.actualites-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.actualites-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7, 65, 30, 0.9) 0%, rgba(10, 92, 43, 0.8) 50%, rgba(171, 196, 27, 0.9) 100%);
    z-index: 1;
}

.actualites-hero > * {
    position: relative;
    z-index: 2;
}

.categories-filter {
    margin-top: 2rem;
}

.categories-filter button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.categories-filter button.active,
.categories-filter button:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.actualites-grid {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card.featured {
    grid-column: 1 / -1;
}

.article-image {
    position: relative;
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

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

.category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 177, 0, 0.3);
    z-index: 2;
}

.article-content {
    padding: 1.5rem;
}

.date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date::before {
    content: '📅';
    font-size: 1rem;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(171, 196, 27, 0.1);
}

.read-more:hover {
    color: var(--secondary-dark);
    background: rgba(171, 196, 27, 0.2);
    transform: translateX(5px);
}

/* Sidebar styles */
.sidebar {
    position: sticky;
    top: 100px;
}

.upcoming-events {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.upcoming-events:hover {
    box-shadow: var(--shadow-hover);
}

.event {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.event:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.event-date {
    text-align: center;
    min-width: 60px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(171, 196, 27, 0.3);
}

.event-date .month {
    font-size: 0.9rem;
    color: #666;
}

.newsletter-signup {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7, 65, 30, 0.9) 0%, rgba(10, 92, 43, 0.8) 100%);
    z-index: 1;
}

.newsletter-signup > * {
    position: relative;
    z-index: 2;
}

.newsletter-signup form {
    margin-top: 1rem;
}

.newsletter-signup input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.newsletter-signup input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(171, 196, 27, 0.2);
}

.newsletter-signup input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-signup button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-signup button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(171, 196, 27, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .actualites-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .actualites-hero {
        padding: 3rem 1rem;
    }
    
    .categories-filter button {
        margin: 0.25rem;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .article-card {
        margin-bottom: 1.5rem;
    }
    
    .article-image img {
        height: 200px;
    }
    
    .upcoming-events,
    .newsletter-signup {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .actualites-hero h1 {
        font-size: 2rem;
    }
    
    .categories-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .event {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        min-width: auto;
    }
}