/* =================================================================
   BLOG ProfOrga (1.22.0)
   ================================================================= */

/* ===== Page d'accueil du blog ===== */
.po-blog-head {
    padding: 56px 0 24px;
    text-align: center;
}
.po-blog-head h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    color: var(--navy-900);
    margin: 12px 0 16px;
    line-height: 1.1;
}
.po-blog-head p {
    color: var(--po-text-2);
    font-size: 17px;
    line-height: 1.55;
    max-width: 700px;
    margin: 0 auto;
}

/* Filtres clusters (pastilles) */
.po-blog-clusters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 32px auto 0;
    max-width: 800px;
}
.po-blog-cluster-pill {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 100px;
    background: #fff;
    border: 1px solid var(--po-border);
    color: var(--po-text-2);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.po-blog-cluster-pill:hover {
    border-color: var(--navy);
    color: var(--navy);
    transform: translateY(-1px);
}
.po-blog-cluster-pill.is-active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* Grille des articles */
.po-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.po-blog-card {
    background: #fff;
    border: 1px solid var(--po-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.po-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15,23,42,0.10);
    border-color: var(--teal);
}
.po-blog-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-50) 0%, #DBEAFE 100%);
}
.po-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.po-blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 60px;
    color: var(--navy);
    opacity: 0.45;
}
.po-blog-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.po-blog-card-cluster {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--teal);
}
.po-blog-card h2,
.po-blog-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.3;
    color: var(--navy-900);
    font-weight: 700;
}
.po-blog-card-desc {
    margin: 0;
    color: var(--po-text-2);
    font-size: 14.5px;
    line-height: 1.55;
    flex: 1;
}
.po-blog-card-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--po-muted);
    font-size: 12.5px;
    margin-top: 8px;
}
.po-blog-card-meta time { color: var(--po-muted); }

/* Pagination */
.po-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}
.po-blog-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--po-border);
    color: var(--po-text-2);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .15s;
}
.po-blog-page:hover {
    border-color: var(--navy);
    color: var(--navy);
}
.po-blog-page.is-current {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.po-blog-page.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ===== Page article ===== */
.po-article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.po-article-breadcrumb {
    font-size: 13px;
    color: var(--po-muted);
    margin-bottom: 18px;
}
.po-article-breadcrumb a {
    color: var(--po-text-2);
    text-decoration: none;
}
.po-article-breadcrumb a:hover {
    color: var(--navy);
    text-decoration: underline;
}
.po-article-breadcrumb-sep {
    margin: 0 8px;
    color: var(--po-border);
}

.po-article-header {
    margin-bottom: 36px;
}
.po-article-cluster {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--teal);
    text-decoration: none;
    margin-bottom: 14px;
}
.po-article-cluster:hover { text-decoration: underline; }

.po-article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.5vw, 44px);
    line-height: 1.15;
    color: var(--navy-900);
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}
.po-article-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--po-text-2);
    margin: 0 0 24px;
    font-weight: 400;
}
.po-article-meta {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--po-muted);
    font-size: 13.5px;
    padding-top: 18px;
    border-top: 1px solid var(--po-border);
}
.po-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.po-article-hero {
    margin: 0 -10px 36px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--teal-50) 0%, #DBEAFE 100%);
}
.po-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Corps de l'article */
.po-article-body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--po-text);
}
.po-article-body h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--navy-900);
    margin: 56px 0 18px;
    line-height: 1.25;
    scroll-margin-top: 80px;
}
.po-article-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--navy-900);
    margin: 40px 0 14px;
    line-height: 1.3;
    scroll-margin-top: 80px;
}
.po-article-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-900);
    margin: 28px 0 12px;
}
.po-article-body p {
    margin: 0 0 22px;
}
.po-article-body ul,
.po-article-body ol {
    margin: 0 0 22px;
    padding-left: 26px;
}
.po-article-body li {
    margin-bottom: 8px;
}
.po-article-body blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--teal);
    background: linear-gradient(90deg, var(--teal-50) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
}
.po-article-body blockquote p { margin: 0; }
.po-article-body blockquote p + p { margin-top: 12px; }
.po-article-body a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.po-article-body a:hover {
    color: var(--teal);
}
.po-article-body strong {
    font-weight: 700;
    color: var(--navy-900);
}
.po-article-body code {
    background: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    color: var(--navy-900);
}
.po-article-body pre {
    background: #0F172A;
    color: #E2E8F0;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 22px 0;
    font-size: 14px;
    line-height: 1.55;
}
.po-article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.po-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 24px 0;
    display: block;
}
.po-article-body hr {
    border: none;
    border-top: 1px solid var(--po-border);
    margin: 40px 0;
}

/* Tags en bas d'article */
.po-article-tags {
    margin: 48px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--po-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.po-article-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 100px;
    background: #F1F5F9;
    color: var(--po-text-2);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}
.po-article-tag:hover {
    background: var(--teal-50);
    color: var(--teal);
}

/* CTA contextuel produit en bas d'article */
.po-article-cta {
    margin: 56px 0 0;
    padding: 32px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 100%);
    color: #fff;
    border-radius: 18px;
    text-align: center;
}
.po-article-cta h3 {
    font-family: var(--font-display);
    color: #fff;
    margin: 0 0 10px;
    font-size: 22px;
}
.po-article-cta p {
    color: rgba(255,255,255,0.85);
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.55;
}
.po-article-cta .po-btn { display: inline-block; }

/* Articles liés */
.po-article-related {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.po-article-related h2 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--navy-900);
    text-align: center;
    margin: 0 0 32px;
}

/* Page cluster */
.po-cluster-head {
    padding: 56px 0 24px;
    text-align: center;
}
.po-cluster-head .po-section-eyebrow { color: var(--teal); }
.po-cluster-head h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.5vw, 44px);
    color: var(--navy-900);
    margin: 8px 0 16px;
}
/* Lead éditorial sous le H1 (1.40.28) */
.po-cluster-head .po-cluster-lead {
    max-width: 680px;
    margin: 0 auto 8px;
    color: var(--po-text-2);
    font-size: 17px;
    line-height: 1.6;
}
.po-cluster-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--po-muted);
}

/* Intro éditoriale 500-700 mots (1.40.28 : hub d'autorité SEO).
   Style "article" lisible (largeur maxi mesurée pour le confort de lecture),
   visuellement différent des cartes d'articles plus bas. */
.po-cluster-intro {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: var(--po-text);
}
.po-cluster-intro p {
    margin: 0 0 20px;
}
.po-cluster-intro h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--navy-900);
    margin: 36px 0 14px;
    line-height: 1.3;
}
.po-cluster-intro a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.po-cluster-intro a:hover {
    color: var(--navy-900);
    text-decoration-thickness: 2px;
}
.po-cluster-intro strong {
    color: var(--navy-900);
    font-weight: 600;
}
.po-cluster-intro ul {
    margin: 0 0 20px;
    padding-left: 24px;
}
.po-cluster-intro li {
    margin-bottom: 8px;
}

/* Mobile */
@media (max-width: 720px) {
    .po-article-wrap { padding: 24px 18px 60px; }
    .po-article-body { font-size: 16px; line-height: 1.7; }
    .po-article-body h2 { font-size: 24px; margin: 40px 0 14px; }
    .po-article-body h3 { font-size: 20px; margin: 32px 0 12px; }
    .po-article-hero { margin: 0 0 24px; }
    .po-blog-head { padding: 32px 0 16px; }
    .po-cluster-intro { font-size: 16px; padding: 0 4px; }
    .po-cluster-intro h3 { font-size: 20px; margin: 28px 0 12px; }
}

/* =========================================================================
 * Bandeau ressources (page Blog index) — 1.40.33
 * Bandeau à deux colonnes signalant les comparatifs et le glossaire
 * juste après le hero du blog. Volontairement discret mais visible.
 * ========================================================================= */
.po-resources-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.po-resources-banner-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FB 100%);
    border: 1px solid var(--po-border);
    border-radius: 12px;
    border-left: 3px solid var(--teal);
    padding: 20px 22px;
}
.po-resources-banner-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.po-resources-banner-title {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--navy-900);
    margin: 0 0 6px;
    line-height: 1.3;
}
.po-resources-banner-text {
    color: var(--po-text-2);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 10px;
}
.po-resources-banner-link {
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.po-resources-banner-link:hover {
    color: var(--teal);
    text-decoration: underline;
}

@media (max-width: 720px) {
    .po-resources-banner { grid-template-columns: 1fr; gap: 14px; }
    .po-resources-banner-item { padding: 16px 18px; }
    .po-resources-banner-title { font-size: 16px; }
}
