/* Blog — liste & articles (Agence Lignani) */
.blog-page {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
    min-height: 70vh;
}

.blog-page--article {
    padding-bottom: 3rem;
}

/* ——— Liste : en-tête ——— */
.blog-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 42%, #312e81 100%);
    color: #fff;
    padding: 2.75rem 0 3.25rem;
    margin-bottom: 2.75rem;
    border-radius: 0 0 1.75rem 1.75rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(99, 102, 241, 0.35), transparent 55%);
    pointer-events: none;
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.blog-hero-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: rgba(196, 181, 253, 0.95);
    margin-bottom: 0.65rem;
}

.blog-hero-title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #fff;
}

.blog-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.92);
    max-width: 36rem;
}

.blog-list-body {
    padding-bottom: 2rem;
}

/* ——— Cartes liste ——— */
.blog-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.125rem;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.28s ease, transform 0.22s ease, border-color 0.22s ease;
    background: #fff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.blog-card:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
    object-fit: cover;
    width: 100%;
}

.blog-card-body {
    padding: 1.4rem 1.45rem 1.55rem;
}

.blog-card-meta {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0.55rem 0 0.7rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-card-title a:hover {
    color: #4f46e5;
}

.blog-card-excerpt {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .btn {
    font-weight: 600;
    font-size: 0.8125rem;
}

/* ——— Page article ——— */
.blog-article-shell {
    padding-top: 0.25rem;
}

.blog-article-top {
    margin-bottom: 1.25rem;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.blog-back-link:hover {
    color: #3730a3;
    transform: translateX(-2px);
}

.blog-back-link .bi {
    font-size: 1.25rem;
    line-height: 1;
}

.blog-article-hero {
    padding: 0 0 2rem;
}

.blog-article-hero-inner {
    max-width: 64rem;
}

.blog-article-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.6rem;
}

.blog-article-title {
    font-size: clamp(1.75rem, 4.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 1.35rem;
}

.blog-article-meta {
    font-size: 0.875rem;
    color: #64748b;
}

.blog-article-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: #f1f5f9;
    border-radius: 999px;
    font-weight: 600;
    color: #475569;
}

.blog-article-meta-pill .bi {
    color: #6366f1;
    font-size: 0.95rem;
}

.blog-article-featured {
    margin: 0 0 2.5rem;
    padding: 0;
}

.blog-article-featured-inner {
    max-width: 1200px;
    border-radius: 1.125rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    line-height: 0;
}

.blog-article-featured-inner img {
    width: 100%;
    height: auto;
    max-height: min(52vh, 480px);
    object-fit: cover;
    display: block;
}

.blog-article-body {
    padding-bottom: 2.5rem;
}

.blog-article-content {
    max-width: 58rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.78;
    color: #334155;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.blog-article-content h2 {
    font-size: 1.45rem;
}

.blog-article-content h3 {
    font-size: 1.2rem;
}

.blog-article-content p {
    margin-bottom: 1.15rem;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 1.15rem;
    padding-left: 1.4rem;
}

.blog-article-content li {
    margin-bottom: 0.35rem;
}

.blog-article-content blockquote {
    border-left: 4px solid #6366f1;
    padding: 0.65rem 0 0.65rem 1.35rem;
    margin: 1.75rem 0;
    font-style: italic;
    color: #475569;
    background: linear-gradient(90deg, #f8fafc 0%, #fff 100%);
    border-radius: 0 0.65rem 0.65rem 0;
}

.blog-article-content a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.blog-article-content a:hover {
    color: #3730a3;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.65rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.blog-article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.1rem 1.3rem;
    border-radius: 0.65rem;
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.blog-article-content code {
    font-size: 0.9em;
}

.blog-article-cta {
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.blog-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    color: #64748b;
    border-radius: 1.125rem;
}

.blog-pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.2rem;
    color: #4f46e5;
    font-weight: 600;
}

.blog-pagination .page-item.active .page-link {
    background: #6366f1;
    border-color: #6366f1;
}
