/* ── Hero ── */
.hero-linkedin {
    background-color: var(--gray-900);
    color: #fff;
    padding: 64px 0 0;
}

.hero-linkedin .label-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}

.hero-linkedin .label-section::before,
.hero-linkedin .label-section::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--red);
}

.hero-linkedin h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0;
}

.hero-linkedin h1 em {
    display: block;
    font-style: italic;
    color: var(--red);
}

.hero-linkedin .hero-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,.5);
    line-height: 1.8;
}

/* ── Stats bar ── */
.hero-linkedin .stats-bar {
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hero-linkedin .stat-item {
    padding: 28px 0 28px 32px;
    border-right: 1px solid rgba(255,255,255,.08);
}

.hero-linkedin .stat-item:last-child {
    border-right: none;
}

.hero-linkedin .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-linkedin .stat-value sup {
    font-size: 0.875rem;
    vertical-align: super;
}

.hero-linkedin .stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 500;
}

/* ── Bannière LinkedIn ── */
.linkedin-banner {
    background: #0a66c2;
    padding: 24px 0;
}

.linkedin-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.linkedin-banner-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.linkedin-logo-box {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.linkedin-logo-box svg {
    width: 32px;
    height: 32px;
    fill: #0a66c2;
}

.linkedin-banner-info .linkedin-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.linkedin-banner-info .linkedin-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,.7);
}

.btn-linkedin-follow {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50px;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}

.btn-linkedin-follow:hover {
    background: #fff;
    color: #0a66c2;
}

/* ── Section publications ── */
.section-publications {
    padding: 64px 0 80px;
    background: #fff;
}

.publications-header {
    margin-bottom: 40px;
}

.publications-header .label-section-dark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.publications-header .label-section-dark::before,
.publications-header .label-section-dark::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--red);
}

.publications-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0;
}

.publications-header h2 em {
    font-style: italic;
    color: var(--red);
}

/* ── Grille posts ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* ── Card post ── */
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.post-card-img {
    aspect-ratio: 4 / 3;
    background: #e8f4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #e8f4fd;
}

.post-card-img svg {
    width: 40px;
    height: 40px;
    fill: #0077b5;
    opacity: 0.25;
}

.post-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-card-tag {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0077b5;
    background: #e8f4fd;
    padding: 3px 10px;
    border-radius: 20px;
}

.post-card-date {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.post-card-title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px;
    line-height: 1.3;
}

.post-card-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.post-card-stats {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.post-card-link {
    font-size: 0.875rem;
    color: #0077b5;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.post-card-link:hover {
    opacity: 0.7;
}

.publications-empty {
    text-align: center;
    padding: 60px;
    color: var(--gray-300);
    font-size: 0.9rem;
}

/* ── Page show post ── */
.post-show-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    padding: 32px;
}

.post-show-img {
    margin: -32px -32px 24px;
}

.post-show-img img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-show-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.post-show-content {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 24px;
    white-space: pre-wrap;
}

.post-show-stats {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--gray-300);
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.post-show-cta {
    text-align: center;
}
.post-show-back {
    display: inline-block;
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color .2s;
}

.post-show-back:hover {
    color: rgba(255,255,255,0.8);
}

.post-show-cover {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.post-show-cover-img {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    display: block;
    background: #f4f4f4;
}

.post-show-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero-linkedin .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-linkedin .stat-item:nth-child(2) {
        border-right: none;
    }

    .linkedin-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-linkedin .stats-bar {
        grid-template-columns: 1fr;
    }

    .hero-linkedin .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.pagination-btn {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--red);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.pagination-btn:hover {
    background: var(--red);
    color: #fff;
}

.pagination-btn--disabled {
    color: #ccc;
    border-color: #ccc;
    cursor: default;
    pointer-events: none;
}

.pagination-pages {
    display: flex;
    gap: 6px;
}

.pagination-page {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    color: var(--gray-700);
    border: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
}

.pagination-page:hover {
    background: var(--gray-100);
}

.pagination-page--active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* ── PDF card ── */
.post-card-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    color: #cc1f1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.post-card-pdf:hover { opacity: 0.75; }

/* ── Post show blocks ── */
.post-show-blocks { display: flex; flex-direction: column; gap: 32px; max-width: 800px; margin: 0 auto; }

.post-block-text { font-size: 1rem; color: var(--gray-700); line-height: 1.9; }

.post-block-img { width: 100%; height: auto; display: block; border-radius: 8px; }

.post-block-video { width: 100%; border-radius: 8px; }

.post-block-video-embed iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px; }

.post-block-pdf-embed { width: 100%; height: 600px; border: 1px solid var(--border); border-radius: 8px; margin-top: 12px; }

.post-block-pdf-link, .post-block-linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    transition: background .2s;
}
.post-block-pdf-link:hover, .post-block-linkedin-link:hover { background: #f5f5f5; }

.post-card-no-thumb {
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f4f4f4;
}
