/**
 * Actualités Page Styles
 */

/* News Navigation Tabs */
.news-nav-tabs {
    margin-bottom: 50px;
}

.news-nav-tabs .nav-tabs {
    border: none;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e2e8f0;
}

.news-nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 15px 25px;
    margin: 0 10px;
    border-radius: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: none;
    border-bottom: 3px solid transparent;
    position: relative;
}

.news-nav-tabs .nav-link:hover {
    background: transparent;
    color: var(--primary);
    transform: none;
    box-shadow: none;
    border-bottom-color: var(--primary);
}

.news-nav-tabs .nav-link.active {
    background: transparent;
    color: var(--primary);
    transform: none;
    box-shadow: none;
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.news-nav-tabs .nav-link i {
    font-size: 1.2rem;
}

/* News Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.news-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.news-card-link:hover .news-card {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(8, 104, 150, 0.15);
}

.news-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(8, 104, 150, 0.08);
    border: 1px solid rgba(8, 104, 150, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}



.news-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.news-card .news-image .news-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(8, 104, 150, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 58px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.news-card .news-image .news-category::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 20px;
    gap: 16px;
}

.news-content .news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #0f172a;
}

.news-content .news-excerpt {
    flex: 1;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #718096;
    gap: 12px;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    pointer-events: none;
    margin-top: auto;
}

.news-card-link:hover .news-read-more {
    color: var(--primary-dark);
    gap: 12px;
}

/* Article Detail */
.article-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 80px;
    color: #fff;
}

.article-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 104, 150, 0.35) 0%, rgba(8, 104, 150, 0.85) 100%);
}

.article-hero-content {
    position: relative;
    max-width: 760px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.article-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0 24px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.article-meta i {
    margin-right: 8px;
}

.article-meta-role {
    font-style: normal;
    opacity: 0.85;
}

.article-body-section {
    padding: 80px 0;
    background: #f8fafc;
}

.article-body {
    background: #fff;
    padding: 48px;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #1f2937;
}

.article-body p {
    margin: 0;
}

.article-key-points {
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(8, 104, 150, 0.08), rgba(114, 178, 58, 0.06));
    border: 1px solid rgba(8, 104, 150, 0.16);
}

.article-key-points h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--primary);
}

.article-key-points ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.article-key-points li::marker {
    color: var(--primary);
    font-size: 0.9rem;
}

.article-quote {
    margin: 0;
    padding: 32px;
    border-left: 4px solid var(--primary);
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 1.15rem;
    font-style: italic;
    color: #0f172a;
}

.article-quote footer {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.article-share span {
    font-weight: 600;
    color: #334155;
}

.article-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.article-share a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.article-back-link {
    margin-top: 32px;
    text-align: left;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.back-to-news:hover {
    color: var(--primary-dark);
}

.related-articles {
    padding: 60px 0 90px;
}

.related-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-header p {
    color: #64748b;
}

.related-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.12);
}

.related-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.related-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.related-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.related-content a {
    color: #0f172a;
    text-decoration: none;
}

.related-content a:hover {
    color: var(--primary);
}

.related-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.related-meta {
    margin-top: auto;
    display: flex;
    gap: 14px;
    font-size: 0.85rem;
    color: #94a3b8;
}

@media (max-width: 992px) {
    .article-hero {
        padding: 100px 0 60px;
        min-height: 320px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-body {
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 90px 0 50px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-body {
        padding: 28px;
        border-radius: 20px;
    }

    .article-key-points {
        padding: 24px;
    }

    .article-share {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .article-hero {
        padding: 80px 0 40px;
    }

    .article-meta {
        gap: 10px 16px;
        font-size: 0.85rem;
    }

    .article-body-section {
        padding: 60px 0;
    }

    .article-body {
        padding: 24px;
    }

    .related-image {
        height: 180px;
    }
}

.news-card .news-image .news-category--innovation,
.news-card .news-image .news-category--ia,
.news-card .news-image .news-category--telemedecine,
.news-card .news-image .news-category--partenariat,
.news-card .news-image .news-category--education,
.news-card .news-image .news-category--reseau,
.news-card .news-image .news-category--formation,
.news-card .news-image .news-category--evenement,
.news-card .news-image .news-category--webinaire {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.news-date {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

/* Modern News Cards */
.news-card-actualites {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    border: 2px solid transparent;
}

.news-card-actualites:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.news-image-actualites {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.news-card-actualites:hover .news-image-actualites img {
    transform: scale(1.1);
}

.news-category-badge-actualites {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.news-category-badge-actualites.innovation,
.news-category-badge-actualites.partenariat,
.news-category-badge-actualites.formation,
.news-category-badge-actualites.evenement {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.news-content-actualites {
    padding: 30px;
}

.news-meta-actualites {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.news-date-actualites {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-author-actualites {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.news-title-actualites {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-title-actualites a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title-actualites a:hover {
    color: var(--primary);
}

.news-excerpt-actualites {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.news-footer-actualites {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.news-link-actualites {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-link-actualites::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.news-link-actualites:hover::after {
    width: 100%;
}

.news-share-actualites {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    border: 3px solid var(--primary);
}

.featured-article .news-image-actualites {
    height: 400px;
}

.featured-article .news-content-actualites {
    padding: 40px;
}

.featured-article .news-title-actualites {
    font-size: 2rem;
    margin-bottom: 20px;
}

.featured-article .news-excerpt-actualites {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(8, 104, 150, 0.3);
}

/* Newsletter Subscription */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 0;
    margin-top: 80px;
    border-radius: 24px;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.newsletter-form .form-control::placeholder {
    color: #666;
}

.newsletter-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.newsletter-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination-custom {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-custom .page-item {
    display: block;
}

.pagination-custom .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Search and Filter */
.news-filters {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box .form-control {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 104, 150, 0.1);
    outline: none;
}

.filter-select {
    min-width: 180px;
}

.filter-select .form-control {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 104, 150, 0.1);
    outline: none;
}

.filter-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 104, 150, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .featured-article .news-content-actualites {
        padding: 30px;
    }

    .featured-article .news-title-actualites {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .news-nav-tabs .nav-link {
        padding: 12px 15px;
        margin: 5px;
        font-size: 0.9rem;
    }

    .news-nav-tabs .nav-link span {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card-actualites {
        margin-bottom: 20px;
    }

    .news-content-actualites {
        padding: 25px 20px;
    }

    .featured-article .news-image-actualites {
        height: 250px;
    }

    .featured-article .news-content-actualites {
        padding: 25px 20px;
    }

    .featured-article .news-title-actualites {
        font-size: 1.4rem;
    }

    .newsletter-title {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form .form-control,
    .newsletter-btn {
        border-radius: 25px;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .search-box,
    .filter-select {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .news-content-actualites {
        padding: 20px 15px;
    }

    .news-title-actualites {
        font-size: 1.2rem;
    }

    .news-image-actualites {
        height: 200px;
    }

    .featured-article .news-image-actualites {
        height: 200px;
    }

    .newsletter-section {
        padding: 40px 20px;
        margin: 40px 15px 0;
    }

    .newsletter-title {
        font-size: 1.8rem;
    }

    .news-filters {
        padding: 20px 15px;
        margin: 0 15px 30px;
    }
}

/* Load More Button */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.35s ease;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 50px;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    z-index: 0;
}

.load-more-btn span,
.load-more-btn i {
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}

.load-more-btn i {
    font-size: 1.1rem;
}

.load-more-btn:hover::before {
    transform: translateY(0);
}

.load-more-btn:hover {
    color: #fff;
    box-shadow: 0 20px 40px rgba(8, 104, 150, 0.25);
    transform: translateY(-3px);
}

.load-more-btn:hover span,
.load-more-btn:hover i {
    color: #fff;
}