/* ============================= */
/* Styles communs pour Actualités */
/* ============================= */

body {
    font-family: 'Public Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

/* ====== Cartes des actualités ====== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.card-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.8rem;
}

.card-meta .meta-item {
    display: flex;
    align-items: center;
}

.card-meta .meta-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.3rem;
}

.card-description {
    flex: 1;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.read-more {
    text-decoration: none;
    font-weight: 600;
    color: #007BFF;
    align-self: flex-start;
}

.read-more .arrow {
    margin-left: 0.3rem;
}

/* ====== Page détail ====== */
.detail-news {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.detail-news h1 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
}

.news-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.news-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.detail-news a {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #007BFF;
    font-weight: 600;
}


/* ====== Responsive ====== */
@media (max-width: 768px) {
    .card-image img {
        height: 180px;
    }

    .detail-news {
        padding: 1rem;
    }

    .detail-news h1 {
        font-size: 1.6rem;
    }
}