/* Styling specific to Actualités page */

.page-actualites {
    background-color: #f4f5f6;
    color: #111111;
}

.page-actualites .header {
    background: transparent;
}

.page-actualites .header a {
    color: #1a2f33;
}

.page-actualites .header a.btn-contact {
    color: #ffffff;
}

.page-actualites .header.scrolled {
    background: rgba(242, 245, 244, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.actualites-main {
    padding-top: 220px; /* Augmenté pour éviter le chevauchement avec le header fixe */
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 100px;
}

/* HERO SECTION */
.news-hero {
    margin-bottom: 80px;
    max-width: 800px;
}

.news-hero .subtitle {
    display: block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0px;
    color: #b0b8bc;
    margin-bottom: 24px;
}

.news-hero h1 {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    color: #1a2f33;
    letter-spacing: -1.5px;
}

/* FILTERS */
.news-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    background-color: transparent;
    color: #1a2f33;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #1a2f33;
    color: #ffffff;
    border-color: #1a2f33;
}

/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-card {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.news-img-wrapper {
    position: relative; /* Assure que le badge absolu reste à l'intérieur */
    overflow: hidden;
    height: 260px; /* Légèrement plus haut pour un rendu plus élégant */
    background-color: #eee; /* Fallback couleur si l'image charge lentement */
}

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

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #1a2f33;
}

.news-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.news-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a2f33;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #EE1B24;
}

.news-excerpt {
    font-size: 16px;
    color: #4a5d60;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #EE1B24;
    transition: gap 0.3s ease;
}

.news-link svg {
    width: 16px;
    height: 16px;
}

.news-card:hover .news-link {
    gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .actualites-main {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 140px;
    }
    .news-hero h1 {
        font-size: 44px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
}
