/* ======================= News Listing — styles spécifiques uniquement ======================= */
/* Layout (#center, #menu, #container, header, footer) géré par tradu-france.css             */

/* ======================= News Listing Container ======================= */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

/* ======================= News Card ======================= */
.news-card {
    width: 85%;
    max-width: 850px;
    min-width: 300px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 75%);
    border: 2px solid #00f2ff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.9), 0 0 50px rgba(0, 242, 255, 0.4) inset;
}

/* ======================= Titre + date ======================= */
.title-category {
    background-color: #1e3c72;
    padding: 12px 20px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 242, 255, 0.1);
}

.title-category h2 {
    font-size: 1.2em;
    color: #00f2ff;
    margin: 0;
    line-height: 1.3;
}

.title-category .category {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    color: #aefeff;
}

.published-date {
    font-size: 0.85em;
    color: #aefeff;
    font-style: italic;
}

/* ======================= Extrait ======================= */
.news-excerpt {
    background: linear-gradient(160deg, #0d1f35 0%, #111827 100%);
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    line-height: 1.7;
    color: #e0f2fe;
    overflow-wrap: break-word;
}

.news-excerpt p {
    margin-bottom: 15px;
    color: #cce7f5;
}

/* ======================= Container paragraphes ======================= */
#container p {
    color: #e0f2fe;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ======================= Lire la suite ======================= */
.read-more {
    display: inline-block;
    padding: 6px 14px;
    text-decoration: none;
    color: #00f2ff;
    border: 2px solid #00f2ff;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background 0.3s, color 0.3s;
}

.read-more:hover,
.read-more:focus {
    background-color: #00f2ff;
    color: #000;
}

/* ======================= Meta (auteur + partage) ======================= */
.news-meta {
    background-color: #1a2b4d;
    padding: 12px 20px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9em;
    color: #b3e5fc;
}

.news-meta .info-left {
    font-weight: bold;
    color: #00f2ff;
}

.news-meta .info-center {
    display: flex;
    gap: 12px;
    color: #aefeff;
}

.news-meta .news-share a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #00f2ff;
    background-color: rgba(0, 242, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.news-meta .news-share a:hover,
.news-meta .news-share a:focus {
    background-color: #00f2ff;
}

.news-meta .news-share a svg {
    width: 18px;
    height: 18px;
    fill: #00f2ff;
}

.news-meta .news-share a:hover svg,
.news-meta .news-share a:focus svg {
    fill: #000;
}

/* ======================= Bouton RSS ======================= */
.news-meta .news-share a.rss {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #00f2ff;
    background-color: rgba(0, 242, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.news-meta .news-share a.rss:hover,
.news-meta .news-share a.rss:focus {
    background-color: #00f2ff;
}

.news-meta .news-share a.rss svg {
    width: 18px;
    height: 18px;
    fill: #00f2ff;
}

.news-meta .news-share a.rss:hover svg,
.news-meta .news-share a.rss:focus svg {
    fill: #000;
}

/* ======================= Pagination ======================= */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    padding: 6px 12px;
    color: #00f2ff;
    border: 1px solid #00f2ff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #00f2ff;
    color: #000;
}

/* ======================= Responsive mobile (max 700px) ======================= */
@media (max-width: 700px) {
    .news-card {
        width: 100%;
        min-width: 0;
        padding: 10px;
        border-radius: 12px;
    }

    .title-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 15px;
    }

    .title-category h2 { font-size: 1.2em; }
    .title-category .category { font-size: 0.85em; }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 0.85em;
        padding: 10px 15px;
    }

    .news-meta .news-share a { width: 28px; height: 28px; }
    .news-meta .news-share a svg { width: 16px; height: 16px; }

    .pagination a {
        padding: 6px 10px;
        font-size: 0.85em;
    }
}
