/* ==========================================================
   POLITISTRAT ACTUALITÉS & VEILLE LÉGALE (DESIGN DNA V2)
   ========================================================== */

#news-page,
#news-single-article {
    background: var(--color-background, #f8fafc);
}

/* ==========================================================
   HERO INSTITUTIONNEL (PAGE GLOBALE)
   ========================================================== */

.news-hero {
    padding: 100px 0 80px;
    background: linear-gradient(
        135deg,
        rgba(2, 12, 27, 0.97) 0%,
        rgba(8, 30, 58, 0.94) 55%,
        rgba(0, 85, 164, 0.88) 100%
    );
    color: var(--white, #ffffff);
}

.news-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-kicker {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.page-title {
    margin: 0;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.page-intro {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ==========================================================
   BARRE D'OUTILS : RECHERCHE AJAX & CATÉGORIES
   ========================================================== */

.news-toolbar-section {
    padding: 2rem 0 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.news-toolbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.news-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.news-search-field {
    width: 100%;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    box-sizing: border-box;
}

.news-search-field:focus {
    border-color: #0055A4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.15);
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 1.25rem;
}

.search-spinner {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0055A4;
    font-size: 1.2rem;
    animation: spin-news 1s infinite linear;
}

.search-spinner.is-hidden {
    display: none !important;
}

@keyframes spin-news {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

/* Pastilles de Catégories */
.news-categories-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.news-category-pill {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.news-category-pill:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.news-category-pill.is-active {
    background: #002157 !important;
    border-color: #002157 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 33, 87, 0.25);
}

/* ==========================================================
   GRILLE DES CARDS HORIZONTALES
   ========================================================== */

.news-list-section {
    padding: 3rem 0 5rem;
	background: #FFFFFF;
}

.news-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-horizontal-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: #ffffff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

/* Article épinglé "À la une" */
.news-horizontal-card.is-featured {
    border-left: 6px solid #0055A4;
    background: #ffffff;
}
/* immage en mode content

.news-card-media {
    position: relative;
    width: 100%;
    min-height: 220px;
    max-height: 260px; 
    background-color: #f1f5f9; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
    transition: transform 0.3s ease;
}
 */
 
.news-card-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-color: #0f172a;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-horizontal-card:hover .news-card-img {
    transform: scale(1.03);
}

.news-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #0055A4;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Contenu Texte de la Card */
.news-card-content {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.news-card-date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.news-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.news-card-title a {
    color: var(--ps-blue-deep, #002157);
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-card-title a:hover {
    color: #0055A4;
}

.news-card-excerpt {
    margin: 0 0 1.25rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
}

.news-read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0055A4;
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    transition: all 0.15s ease;
}

.news-read-more-link:hover {
    color: #002157;
    transform: translateX(4px);
	text-decoration: none;
}

.link-arrow {
    font-size: 18px;
}



/* ==========================================================
   BADGES DE CATÉGORIES EN PUR CSS (FIN DU GAMING PNG)
   ========================================================== */

.news-badge-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-cat-actualite {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-cat-juridique {
    background-color: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.badge-cat-communique {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-cat-guide {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* ==========================================================
   PAGINATION AJAX (OPTION C)
   ========================================================== */

.news-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.news-pagination-bar.is-hidden {
    display: none !important;
}

.pagination-indicator {
    font-size: 0.9rem;
    color: #475569;
}

/* État vide */
.news-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.empty-icon {
    font-size: 3rem !important;
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* ==========================================================
   PAGE DE LECTURE D'ARTICLE (VUE FULL & HERO ZONE)
   ========================================================== */

.article-hero {
    position: relative;
    padding: 90px 0 70px;
    background-color: #002157;
    color: #ffffff;
    overflow: hidden;
}

.article-hero.has-hero-image .article-hero-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.article-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: blur(2px);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.article-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.article-hero-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.article-hero-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.article-hero-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.author-icon {
    font-size: 18px;
    color: #60a5fa;
}

/* Corps de texte de l'article */
.article-body-section {
    padding: 3rem 0 5rem;
}

.article-layout-centered {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-back-bar {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0055A4;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.btn-back-link:hover {
    transform: translateX(-3px);
}

/* Contenu HTML Riche & Typography */
.article-rich-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
}

.article-rich-content p {
    margin-bottom: 1.6rem;
}

.article-rich-content h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #002157;
    margin: 2.5rem 0 1rem;
}

.article-rich-content h3 {
    font-size: 1.35rem;
    font-weight: 750;
    color: #0f172a;
    margin: 2rem 0 0.85rem;
}

.article-rich-content ul, 
.article-rich-content ol {
    margin-bottom: 1.6rem;
    padding-left: 1.5rem;
}

.article-rich-content li {
    margin-bottom: 0.5rem;
}

/* Médias inline résolus {{media:id}} */
.article-inline-figure {
    margin: 2.5rem 0;
    text-align: center;
}

.article-inline-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.article-inline-caption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* Vidéo responsive {{video:id}} */
.article-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    margin: 2.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.article-video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-footer-nav {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* ==========================================================
   RESPONSIVE SMARTPHONE (< 768px)
   ========================================================== */

@media (max-width: 768px) {
    .news-horizontal-card {
        grid-template-columns: 1fr; /* Image au-dessus sur mobile */
    }

    .news-card-media {
        min-height: 180px;
        height: 180px;
    }

    .news-card-content {
        padding: 1.25rem 1.25rem;
    }

    .news-toolbar-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search-wrapper {
        max-width: 100%;
    }

    .article-hero {
        padding: 60px 0 45px;
    }

    .article-rich-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}