/* actualiter.css - Version responsive corrigée */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2E8B57;
    --bright-green: #00C853;
    --white: #FFFFFF;
    --gold: #FFD700;
    --dark-text: #333;
    --light-gray: #F5F5F5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    background-color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
header {
    background-color: var(--primary-green);
    padding: 0.8rem 2rem;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 55px;
    width: auto;
    border-radius: 4px;
    max-width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--gold);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--bright-green) 0%, var(--primary-green) 100%);
    padding: 5rem 2rem;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    color: var(--white);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Section Actualités */
.actualites-section {
    padding: 5rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-green);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gold);
}

/* Grid & Cards */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.actualite-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.actualite-image-container {
    position: relative;
    height: 220px;
    width: 100%;
}

.actualite-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--primary-green);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 2;
}

.actualite-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.actualite-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.actualite-tag {
    color: var(--bright-green);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.actualite-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--primary-green);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.actualite-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-lire {
    margin-top: auto;
    background-color: var(--gold);
    color: var(--primary-green);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: 0.3s;
    display: inline-block;
}

.btn-lire:hover {
    background-color: var(--primary-green);
    color: var(--gold);
}

/* Footer */
footer {
    background-color: var(--primary-green);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablettes (max-width: 968px) */
@media (max-width: 968px) {
    header {
        padding: 0.8rem 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        justify-content: center;
    }

    .hero {
        margin-top: 90px;
        padding: 3rem 1.5rem;
        min-height: 350px;
        height: auto;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-image {
        max-width: 500px;
    }

    .actualites-section {
        padding: 3rem 1.5rem;
    }

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

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

/* Smartphones (max-width: 576px) */
@media (max-width: 576px) {
    header {
        padding: 0.6rem 1rem;
    }

    .logo img {
        height: 45px;
    }

    nav ul {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    nav ul li a {
        padding: 0.3rem 0.6rem;
    }

    .hero {
        margin-top: 100px;
        padding: 2rem 1rem;
        min-height: 300px;
        height: auto;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn-lire {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .actualites-section {
        padding: 2rem 1rem;
    }

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

    .actualites-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .actualite-image-container {
        height: 180px;
    }

    .actualite-content {
        padding: 1.5rem;
    }

    .actualite-content h3 {
        font-size: 1.2rem;
    }

    .actualite-meta {
        font-size: 0.8rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    footer {
        padding: 2rem 1rem;
    }
}

/* Très petits écrans (max-width: 360px) */
@media (max-width: 360px) {
    .logo img {
        height: 40px;
    }

    nav ul {
        font-size: 0.85rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

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

    .actualite-content h3 {
        font-size: 1.1rem;
    }
}