@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== Blog homepage ===== */

.blog-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-home-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dde3ea;
    text-decoration: none;
	box-shadow: 8px 0 24px rgba(30, 58, 95, 0.5) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .2s;
}

.blog-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 0 32px rgba(30, 58, 95, 0.65);
    border-color: #2E86AB;
}

.blog-home-img {
    height: 180px;
    overflow: hidden;
}

.blog-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-home-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.blog-home-date {
    font-size: 12px;
    color: #2E86AB;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.blog-home-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1E3A5F;
    line-height: 1.4;
    margin: 0;
}

.blog-home-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.blog-home-link {
    font-size: 13px;
    color: #1A9CD8;
    font-weight: 600;
	transition: transform .2s;
	text-align: right;
}

.blog-home-card:hover .blog-home-link {
	transform: translateX(4px);
}

@media (max-width: 768px) {
    .blog-home-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Page Actualités ===== */

/* Layout */
.blog-sidebar {
    position: sticky;
    top: 200px;
    left: 3%;
    width: 300px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 40px;
    float: left; 
}

.blog-content-wrap {
    width: 1140px;
    margin: 0 auto;
}

/* Sidebar title — même que nsc-sidebar-title */
.blog-sidebar .nsc-sidebar-title {
    background: linear-gradient(135deg, #2e86ab, #1E3A5F);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 14px 16px;
}

.nsc-search-wrap {
    position: relative;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #eef1f4;
}
.nsc-search-input {
    width: 100%;
    padding: 9px 32px 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #444;
    background: #f8fafc;
    font-family: inherit;
    transition: all .2s;
    box-sizing: border-box;
}
.nsc-search-input:focus {
    border-color: #2E86AB;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46,134,171,0.08);
}
.nsc-search-icon {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: #2E86AB;
    font-size: 11px;
    pointer-events: none;
}
.nsc-filter-group {
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f4;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.nsc-filter-group:last-child {
    border-bottom: none;
}
.nsc-filter-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2E86AB;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.nsc-filter-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.nsc-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    white-space: nowrap;
    width: auto;
}
.nsc-filter-btn:hover {
    border-color: #2E86AB;
    color: #2E86AB;
    background: #f0f8ff;
}
.nsc-filter-btn.active {
    background: #1E3A5F;
    border-color: #1E3A5F;
    color: #fff;
    font-weight: 600;
}
.nsc-filter-btn i {
    font-size: 12px;
}

/* ===== Grid articles ===== */
#blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 0 40px;
    transition: opacity 0.2s ease;
}

.blog-archive-card {
    box-shadow: 8px 0px 24px 0px rgba(30,58,95,0.5) !important;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dde3ea;
    text-decoration: none !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .2s !important;
    opacity: 0;
}
.blog-archive-card.is-visible {
    animation: fadeInLeft .40s ease forwards;
}
.blog-archive-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 12px 0px 32px 0px rgba(30,58,95,0.65) !important;
    border-color: #2E86AB;
}
.blog-archive-img {
    height: 200px;
    overflow: hidden;
}
.blog-archive-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-archive-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.blog-archive-date {
    font-size: 12px;
    color: #2E86AB;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.blog-archive-content h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1E3A5F;
    line-height: 1.4;
    margin: 0;
}
.blog-archive-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    text-align: justify;
}
.blog-archive-link {
    font-size: 13px;
    color: #1A9CD8;
    font-weight: 600;
    text-align: right;
    transition: transform .2s;
}
.blog-archive-card:hover .blog-archive-link {
    transform: translateX(4px) !important;
}

/* ===== No results ===== */
.blog-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.blog-no-results i {
    font-size: 40px;
    color: #dde3ea;
    display: block;
    margin-bottom: 16px;
}
.blog-no-results p { font-size: 15px; margin-bottom: 20px; }

/* ===== Skeleton loader ===== */
.blog-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 0 40px;
}
.blog-skeleton-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dde3ea;
    overflow: hidden;
}
.blog-skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s infinite;
}
.blog-skeleton-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blog-skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s infinite;
}
.blog-skeleton-line.short  { width: 35%; }
.blog-skeleton-line.medium { width: 65%; }
.blog-skeleton-line.long   { width: 100%; }

@keyframes skeleton-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 900px) {
    .blog-skeleton { grid-template-columns: 1fr; }
}

/* ===== Pagination ===== */
.blog-pagination {
    text-align: center;
    padding: 20px 0 40px;
}
.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    color: #1E3A5F;
    text-decoration: none;
    margin: 0 4px;
    font-size: 14px;
    transition: all .2s;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}
.blog-pagination .page-numbers.current {
    background: #1E3A5F;
    color: #fff;
    border-color: #1E3A5F;
}
.blog-pagination .page-numbers:hover {
    background: #f4f7fa;
    border-color: #2E86AB;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .blog-sidebar {
        position: static;
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }
    .blog-content-wrap {
        width: 100%;
        margin: 0;
        padding-top: 20px;
    }
    #blog-archive-grid {
        grid-template-columns: 1fr;
    }
    .blog-archive-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* ===== Article single ===== */

.article-hero {
    position: relative;
    background: #1E3A5F;
    padding: 50px 20px 90px 20px;
    overflow: visible;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 95, 0.65);
    z-index: 0;
}

.article-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

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

.article-date {
    font-size: 13px;
    color: rgba(255,255,255,.7);
}

.article-cat {
    background: #2E86AB;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    max-width: 800px;
}

.fiche-hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.fiche-hero-shape svg {
    display: block;
    width: 100%;
    height: 130px;
}

.article-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 32px 0 16px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1E3A5F;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.article-content a {
    color: #1A9CD8;
    text-decoration: underline;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 200px;
}

.article-sidebar-box {
    background: #f4f7fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #dde3ea;
}

.article-sidebar-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #2E86AB;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2E86AB;
}

.article-recent-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid #dde3ea;
    text-decoration: none;
    transition: all .2s;
}

.article-recent-item:last-child {
    border-bottom: none;
}

.article-recent-item:hover .article-recent-title {
    color: #1A9CD8;
}

.article-recent-date {
    font-size: 11px;
    color: #888;
}

.article-recent-title {
    font-size: 13px;
    color: #1E3A5F;
    font-weight: 600;
    line-height: 1.4;
    transition: color .2s;
}

/* ----- CTA final ----- */

.fiche-cta-final {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
}

.fiche-cta-final-inner {
    max-width: 680px;
    margin: 0 auto;
}

/* ----- Boutons ----- */
.btn-primary {
    display: block;
    background: linear-gradient(135deg, #0072ba, #0a2068);
    color: #fff;
    text-align: center;
    padding: 13px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background .2s;
}
.btn-primary:hover { color: #fff; }
.btn-secondary {
    display: block;
    border: 2px solid #1E3A5F;
    color: #1E3A5F;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}
.btn-secondary:hover { background: #1E3A5F; color: #fff; }


.fiche-cta-final .btn-primary { display: inline-block; width: auto; padding: 14px 32px; }

@media (max-width: 1024px) {
    .article-body {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 24px;
    }
}