/* ============================================================
   news.css — Page Actualités + Détail article
   ============================================================ */

/* ══════════════════════════════════════════════
   HERO LISTE
══════════════════════════════════════════════ */

.news-hero {
    background: linear-gradient(155deg, #0F2547 0%, #1B3A6B 60%, #1B5EA7 100%);
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(245,166,35,.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(58,127,202,.08) 0%, transparent 50%);
    pointer-events: none;
}

.news-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,.18);
    border: 1px solid rgba(245,166,35,.4);
    color: #F5A623;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    margin-bottom: 20px;
}

.news-hero-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.news-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.75;
    margin: 0;
}

/* ══════════════════════════════════════════════
   BARRE FILTRES CATÉGORIES
══════════════════════════════════════════════ */

.news-filters-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(27,58,107,.08);
    padding: 14px 0;
    position: sticky;
    top: 107px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(27,58,107,.06);
}

.news-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    background: #F0F4F8;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 200ms ease;
    white-space: nowrap;
}

.news-filter-btn:hover {
    border-color: #1B5EA7;
    color: #1B5EA7;
    background: #EBF4FF;
}

.news-filter-btn.is-active {
    background: #1B3A6B;
    color: #ffffff;
    border-color: #1B3A6B;
}

/* ══════════════════════════════════════════════
   SECTION PRINCIPALE LISTE
══════════════════════════════════════════════ */

.news-main { background: #F0F4F8; }

/* État vide */
.news-empty {
    text-align: center;
    padding: 80px 24px;
    color: #444444;
}

.news-empty i {
    font-size: 56px;
    color: #D0DCEA;
    display: block;
    margin-bottom: 20px;
}

.news-empty h2 {
    font-size: 1.4rem;
    color: #1B3A6B;
    margin-bottom: 10px;
}

.news-empty p { font-size: 14px; margin: 0; }

/* ── Article featured ─────────────────────── */

.news-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 32px rgba(27,58,107,.08);
    border: 1px solid rgba(27,58,107,.06);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(27,58,107,.12);
}

.news-featured-img {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.news-featured:hover .news-featured-img img {
    transform: scale(1.04);
}

.news-featured-cat {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #1B3A6B;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.news-featured-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.news-date,
.news-author {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #444;
    font-weight: 600;
}

.news-featured-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin-bottom: 16px;
    line-height: 1.3;
}

.news-featured-title a {
    color: #1B3A6B;
    text-decoration: none;
    transition: color 200ms ease;
}

.news-featured-title a:hover { color: #1B5EA7; }

.news-featured-excerpt {
    font-size: 14px;
    color: #111;
    line-height: 1.75;
    margin-bottom: 24px;
    flex: 1;
}

.news-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #1B5EA7;
    text-decoration: none;
    transition: gap 200ms ease;
    align-self: flex-start;
}

.news-featured-link:hover { gap: 12px; color: #1B3A6B; }

/* ── Grille articles ──────────────────────── */

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

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(27,58,107,.07);
    transition: all 250ms ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(27,58,107,.12);
}

.news-card-img-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    text-decoration: none;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

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

.news-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1B3A6B;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.news-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta { margin-bottom: 10px; }

.news-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1B3A6B;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.news-card-title a:hover { color: #1B5EA7; }

.news-card-excerpt {
    font-size: 13px;
    color: #111;
    line-height: 1.65;
    margin-bottom: 16px;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #1B5EA7;
    text-decoration: none;
    transition: gap 200ms ease;
    margin-top: auto;
}

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

/* ── Placeholders images ──────────────────── */

.news-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #EBF4FF, #D0DCEA);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-img-placeholder--lg {
    aspect-ratio: unset;
    height: 100%;
    min-height: 360px;
}

.news-img-placeholder i {
    font-size: 48px;
    color: #8AB4D9;
    opacity: .5;
}

/* ── Pagination ───────────────────────────── */

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.news-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #1B3A6B;
    background: #ffffff;
    border: 1.5px solid #D0DCEA;
    text-decoration: none;
    transition: all 200ms ease;
}

.news-page-btn:hover {
    border-color: #1B5EA7;
    color: #1B5EA7;
    background: #EBF4FF;
}

.news-page-btn.is-active {
    background: #1B3A6B;
    color: #ffffff;
    border-color: #1B3A6B;
}

/* ── Animation fade-in ────────────────────── */

.news-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 450ms ease, transform 450ms ease;
}

.news-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════
   PAGE DÉTAIL ARTICLE
══════════════════════════════════════════════ */

.article-page { background: #ffffff; }

/* En-tête */
.article-header {
    background: linear-gradient(160deg, #0F2547 0%, #1B3A6B 100%);
    padding: 60px 0 0;
    color: #ffffff;
}

/* Fil d'Ariane */
.article-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.article-breadcrumb a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color 200ms ease;
}

.article-breadcrumb a:hover { color: #ffffff; }

.article-breadcrumb i { color: rgba(255,255,255,.4); font-size: 11px; }

.article-breadcrumb span { color: rgba(255,255,255,.9); font-weight: 600; }

/* Catégorie */
.article-cat {
    display: inline-block;
    background: #F5A623;
    color: #1B3A6B;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0 24px 16px;
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
    max-width: calc(1200px - 48px);
    margin: 0 auto 16px;
    padding: 4px 12px;
}

/* Titre article */
.article-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #ffffff;
    line-height: 1.2;
    max-width: 1152px;
    margin: 0 auto 20px;
    padding: 0 24px;
}

/* Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1152px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    font-weight: 600;
}

/* Image de couverture */
.article-cover {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    display: block;
}

.article-cover-placeholder {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
    height: 320px;
    background: rgba(255,255,255,.05);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cover-placeholder i {
    font-size: 72px;
    color: rgba(255,255,255,.15);
}

/* ── Layout contenu + sidebar ─────────────── */

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 72px;
    align-items: start;
}

/* Contenu */

.article-lead {
    font-size: 1.1rem;
    color: #1B3A6B;
    line-height: 1.8;
    font-weight: 500;
    border-left: 4px solid #F5A623;
    padding: 16px 20px;
    background: #F8FAFC;
    border-radius: 0 8px 8px 0;
    margin-bottom: 28px;
}

.article-body {
    font-size: 15px;
    color: #333;
    line-height: 1.85;
    margin-bottom: 40px;
}

.article-body p { margin-bottom: 1.2em; }

/* Partage */
.article-share {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 0;
    border-top: 1px solid rgba(27,58,107,.08);
    border-bottom: 1px solid rgba(27,58,107,.08);
    margin-bottom: 28px;
}

.article-share-label {
    font-size: 13px;
    font-weight: 700;
    color: #1B3A6B;
}

.article-share-btns {
    display: flex;
    gap: 8px;
}

.article-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 200ms ease;
    border: none;
    cursor: pointer;
}

.article-share-btn--fb { background: #E7F0FF; color: #1877F2; }
.article-share-btn--tw { background: #F0F0F0; color: #000000; }
.article-share-btn--li { background: #E8F0F7; color: #0A66C2; }
.article-share-btn--copy { background: #F0F4F8; color: #444; }

.article-share-btn:hover { transform: translateY(-2px); filter: brightness(.9); }
.article-share-btn--copy.copied { background: #E8F5E9; color: #2E8B3A; }

/* Navigation back */
.article-nav {
    display: flex;
    align-items: center;
}

.article-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1B5EA7;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid #D0DCEA;
    transition: all 200ms ease;
}

.article-nav-back:hover {
    background: #EBF4FF;
    border-color: #1B5EA7;
    gap: 12px;
}

/* ── Sidebar ──────────────────────────────── */

.article-sidebar {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-sidebar-card {
    background: #F8FAFC;
    border-radius: 16px;
    border: 1px solid rgba(27,58,107,.08);
    padding: 24px;
}

.article-sidebar-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1.1rem;
    color: #1B3A6B;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F5A623;
    display: inline-block;
}

.article-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.article-sidebar-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.article-sidebar-item:hover { opacity: .8; }

.article-sidebar-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-sidebar-img-ph {
    width: 100%;
    height: 100%;
    background: #D0DCEA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-sidebar-img-ph i { font-size: 20px; color: #8AB4D9; }

.article-sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.article-sidebar-cat {
    font-size: 10px;
    font-weight: 700;
    color: #F5A623;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.article-sidebar-ttl {
    font-size: 12.5px;
    font-weight: 700;
    color: #1B3A6B;
    line-height: 1.4;
    margin: 0;
}

.article-sidebar-date {
    font-size: 11px;
    color: #444;
}

.article-sidebar-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1B5EA7;
    text-decoration: none;
    transition: gap 200ms ease;
}

.article-sidebar-all:hover { gap: 10px; }

.article-sidebar-empty {
    font-size: 13px;
    color: #444444;
    margin: 0;
}

/* CTA sidebar */
.article-sidebar-cta {
    background: #1B3A6B;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.article-sidebar-cta-icon {
    font-size: 32px;
    color: #F5A623;
    display: block;
    margin-bottom: 12px;
}

.article-sidebar-cta-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.article-sidebar-cta-text {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    .news-featured { grid-template-columns: 1fr; }
    .news-featured-img { min-height: 240px; }
    .news-featured-body { padding: 24px; }
    .article-title { font-size: 1.6rem; }
    .article-layout { padding-top: 28px; }
}

@media (max-width: 575px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-filters { gap: 6px; }
    .article-share { flex-direction: column; align-items: flex-start; }
}
