/* ============================================================================
   BLOG ARTICLE 2026 - Page article individuel
   Template: blog/show.html.twig
   Prototype: Proto X+ (Edito Centree + TOC/CTA sidebar + Partage sticky)
   Architecture Blog dediee - Mobile First
   Selecteurs: toujours prefixes .sxo-2026-wrapper
   Variables: toutes hardcodees (pas de var(--sxo-*))
   ============================================================================ */

/* ═══════════════════════════════════════════════════════════
   PAGE BACKGROUND + BASE RESET
   Override du fond navy fonce du site (body { background: #0a1628 })
   et du reset des marges (.sxo-2026-wrapper p/h1-h6 { margin: 0 })
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper.blog-page-2026 {
    background-color: #FFFFFF;
    color: #2d2d2d;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Contrer le .sxo-2026-wrapper > section { background-color: inherit } qui herite du fond sombre */
.sxo-2026-wrapper.blog-page-2026 > section,
.sxo-2026-wrapper.blog-page-2026 > header,
.sxo-2026-wrapper.blog-page-2026 > div,
.sxo-2026-wrapper.blog-page-2026 > article,
.sxo-2026-wrapper.blog-page-2026 > aside {
    background-color: #FFFFFF;
    color: #2d2d2d;
}

/* ═══════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-progress-2026 {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #D4A853;
    z-index: 200;
    transition: width 0.1s;
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB ARTICLE
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-breadcrumb-2026 {
    padding: 16px 24px;
    font-size: 14px;
    color: #6B7280;
    max-width: 860px;
    margin: 0 auto;
}

.sxo-2026-wrapper .blog-breadcrumb-2026 a {
    color: #2C5F8A;
    text-decoration: none;
}

.sxo-2026-wrapper .blog-breadcrumb-2026 a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE HEADER (centre)
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-art-header-2026 {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 24px 0;
    text-align: center;
    background-color: #FFFFFF;
}

.sxo-2026-wrapper .blog-art-header-2026 .blog-badge-2026 {
    display: inline-block;
    background: rgba(212, 168, 83, 0.15);
    color: #b8922e;
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sxo-2026-wrapper .blog-art-header-2026 h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1B2A4A;
    line-height: 1.3;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .blog-art-header-2026 h1 {
        font-size: 36px;
    }
}

/* META AUTEUR */
.sxo-2026-wrapper .blog-art-meta-2026 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 14px;
    color: #6B7280;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.sxo-2026-wrapper .blog-art-meta-2026 strong {
    color: #2d2d2d;
}

/* AVATAR AUTEUR (meta) */
.sxo-2026-wrapper .blog-avatar-2026 {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2C5F8A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 600;
    flex-shrink: 0;
}

/* SEPARATEUR POINT */
.sxo-2026-wrapper .blog-dot-2026 {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #6B7280;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   HERO IMAGE
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-art-hero-2026 {
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.sxo-2026-wrapper .blog-art-hero-img-2026 {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: linear-gradient(135deg, #1B2A4A, #2C5F8A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 32px;
    /* Pour les vraies images */
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════
   TOC MOBILE (accordeon, cache sur desktop)
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-toc-mobile-2026 {
    display: block;
    max-width: 700px;
    margin: 0 auto 24px;
    padding: 0 24px;
}

.sxo-2026-wrapper .blog-toc-mobile-2026 details {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 16px 20px;
}

.sxo-2026-wrapper .blog-toc-mobile-2026 summary {
    font-weight: 600;
    font-size: 15px;
    color: #1B2A4A;
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.sxo-2026-wrapper .blog-toc-mobile-2026 ul {
    list-style: none;
    margin-top: 12px;
    padding: 0;
}

.sxo-2026-wrapper .blog-toc-mobile-2026 li {
    padding: 8px 0;
    border-bottom: 1px solid #E5E7EB;
}

.sxo-2026-wrapper .blog-toc-mobile-2026 li:last-child {
    border: none;
}

.sxo-2026-wrapper .blog-toc-mobile-2026 a {
    text-decoration: none;
    color: #2C5F8A;
    font-size: 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .sxo-2026-wrapper .blog-toc-mobile-2026 {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT 3 COLONNES : share | content | toc+cta
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-art-layout-2026 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 40px;
    background-color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════
   SHARE BAR (sidebar gauche, desktop uniquement)
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-share-bar-2026 {
    display: none;
}

@media (min-width: 992px) {
    .sxo-2026-wrapper .blog-share-bar-2026 {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: sticky;
        top: 100px;
        align-self: flex-start;
        width: 48px;
    }
}

/* BOUTON PARTAGE (desktop share bar) */
.sxo-2026-wrapper .blog-share-btn-2026 {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s;
}

.sxo-2026-wrapper .blog-share-btn-2026:hover {
    border-color: #2C5F8A;
    color: #2C5F8A;
    background: rgba(44, 95, 138, 0.05);
}

/* ═══════════════════════════════════════════════════════════
   CONTENU ARTICLE
   Contrer .sxo-2026-wrapper p { margin: 0; padding: 0 }
   et .sxo-2026-wrapper h1-h6 { margin: 0; padding: 0 }
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-art-content-2026 {
    flex: 1;
    max-width: 700px;
}

.sxo-2026-wrapper .blog-art-content-2026 h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 40px 0 16px;
    padding-top: 16px;
}

.sxo-2026-wrapper .blog-art-content-2026 h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1B2A4A;
    margin: 28px 0 12px;
}

.sxo-2026-wrapper .blog-art-content-2026 p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 20px;
    color: #374151;
}

.sxo-2026-wrapper .blog-art-content-2026 ul,
.sxo-2026-wrapper .blog-art-content-2026 ol {
    margin: 0 0 20px 24px;
    font-size: 17px;
    line-height: 1.75;
    color: #374151;
}

.sxo-2026-wrapper .blog-art-content-2026 li {
    margin-bottom: 8px;
}

.sxo-2026-wrapper .blog-art-content-2026 strong {
    color: #1B2A4A;
}

.sxo-2026-wrapper .blog-art-content-2026 a {
    color: #2C5F8A;
    text-decoration: none;
}

.sxo-2026-wrapper .blog-art-content-2026 a:hover {
    text-decoration: underline;
}

.sxo-2026-wrapper .blog-art-content-2026 blockquote {
    border-left: 4px solid #D4A853;
    padding: 16px 20px;
    margin: 24px 0;
    background: rgba(212, 168, 83, 0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #2C5F8A;
}

.sxo-2026-wrapper .blog-art-content-2026 table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.sxo-2026-wrapper .blog-art-content-2026 th {
    background: #1B2A4A;
    color: #FFFFFF;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.sxo-2026-wrapper .blog-art-content-2026 td {
    padding: 10px 16px;
    border-bottom: 1px solid #E5E7EB;
    color: #374151;
}

.sxo-2026-wrapper .blog-art-content-2026 tr:nth-child(even) {
    background: #F8F9FA;
}

/* Images dans contenu article */
.sxo-2026-wrapper .blog-art-content-2026 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   CTA INLINE (engagement progressif - engagement faible)
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-cta-inline-2026 {
    border: 2px solid #D4A853;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    background: rgba(212, 168, 83, 0.04);
}

.sxo-2026-wrapper .blog-cta-inline-2026 h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 8px;
}

.sxo-2026-wrapper .blog-cta-inline-2026 p {
    font-size: 15px;
    color: #6B7280;
    margin-bottom: 14px;
}

.sxo-2026-wrapper .blog-cta-inline-2026 a {
    display: inline-block;
    background: #D4A853;
    color: #1B2A4A;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    min-height: 48px;
    line-height: 24px;
}

/* ═══════════════════════════════════════════════════════════
   CTA BLOCK (engagement moyen)
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-cta-block-2026 {
    background: #1B2A4A;
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
    color: #FFFFFF;
}

.sxo-2026-wrapper .blog-cta-block-2026 h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.sxo-2026-wrapper .blog-cta-block-2026 p {
    font-size: 15px;
    opacity: 0.8;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.sxo-2026-wrapper .blog-cta-block-2026 a {
    display: inline-block;
    background: #D4A853;
    color: #1B2A4A;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    min-height: 48px;
    line-height: 20px;
}

/* ═══════════════════════════════════════════════════════════
   FAQ ARTICLE (details/summary)
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-faq-item-2026 {
    border-bottom: 1px solid #E5E7EB;
}

.sxo-2026-wrapper .blog-faq-item-2026 summary {
    font-weight: 600;
    font-size: 16px;
    color: #1B2A4A;
    padding: 16px 0;
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.sxo-2026-wrapper .blog-faq-item-2026 p {
    padding: 0 0 16px;
    font-size: 15px;
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   RIGHT SIDEBAR : TOC + CTA (desktop uniquement)
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-right-sidebar-2026 {
    display: none;
}

@media (min-width: 992px) {
    .sxo-2026-wrapper .blog-right-sidebar-2026 {
        display: block;
        width: 220px;
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
}

/* TOC sidebar */
.sxo-2026-wrapper .blog-sidebar-toc-2026 {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sxo-2026-wrapper .blog-sidebar-toc-2026 h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6B7280;
    margin-bottom: 14px;
}

.sxo-2026-wrapper .blog-sidebar-toc-2026 ul {
    list-style: none;
    border-left: 2px solid #E5E7EB;
    padding: 0;
    margin: 0;
}

.sxo-2026-wrapper .blog-sidebar-toc-2026 li {
    padding: 6px 0 6px 16px;
    font-size: 13px;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all 0.2s;
}

.sxo-2026-wrapper .blog-sidebar-toc-2026 li a {
    text-decoration: none;
    color: #6B7280;
    transition: color 0.2s;
}

.sxo-2026-wrapper .blog-sidebar-toc-2026 li a:hover {
    color: #2C5F8A;
}

.sxo-2026-wrapper .blog-sidebar-toc-2026 li.active {
    border-left-color: #D4A853;
}

.sxo-2026-wrapper .blog-sidebar-toc-2026 li.active a {
    color: #1B2A4A;
    font-weight: 600;
}

/* CTA sidebar */
.sxo-2026-wrapper .blog-sidebar-cta-2026 {
    background: #1B2A4A;
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    color: #FFFFFF;
}

.sxo-2026-wrapper .blog-sidebar-cta-2026 h4 {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.sxo-2026-wrapper .blog-sidebar-cta-2026 p {
    font-size: 13px;
    opacity: 0.8;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.sxo-2026-wrapper .blog-sidebar-cta-2026 a {
    display: inline-block;
    background: #D4A853;
    color: #1B2A4A;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    min-height: 44px;
    line-height: 24px;
}

/* ═══════════════════════════════════════════════════════════
   SHARE MOBILE (barre centree, cache sur desktop)
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-share-mobile-2026 {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
    padding: 0 24px;
}

.sxo-2026-wrapper .blog-share-mobile-2026 .blog-share-btn-2026 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #6B7280;
    text-decoration: none;
}

@media (min-width: 992px) {
    .sxo-2026-wrapper .blog-share-mobile-2026 {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   CTA FINAL (engagement max)
   Contrer .sxo-2026-wrapper > section { background-color: inherit }
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-cta-final-2026 {
    background: #1B2A4A;
    padding: 48px 24px;
    text-align: center;
    color: #FFFFFF;
}

.sxo-2026-wrapper .blog-cta-final-2026 h2 {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.sxo-2026-wrapper .blog-cta-final-2026 p {
    font-size: 16px;
    opacity: 0.8;
    color: #FFFFFF;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sxo-2026-wrapper .blog-cta-final-2026 a {
    display: inline-block;
    background: #D4A853;
    color: #1B2A4A;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    min-height: 48px;
    line-height: 16px;
}

/* ═══════════════════════════════════════════════════════════
   BIO AUTEUR
   Contrer .sxo-2026-wrapper > section { background-color: inherit }
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-bio-2026 {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 24px;
    background-color: #FFFFFF;
}

.sxo-2026-wrapper .blog-bio-card-2026 {
    display: flex;
    gap: 20px;
    background: #F8F9FA;
    border-radius: 12px;
    padding: 24px;
    flex-direction: column;
    text-align: center;
}

@media (min-width: 576px) {
    .sxo-2026-wrapper .blog-bio-card-2026 {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
}

.sxo-2026-wrapper .blog-bio-avatar-2026 {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #2C5F8A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.sxo-2026-wrapper .blog-bio-info-2026 h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 0;
}

.sxo-2026-wrapper .blog-bio-info-2026 .blog-bio-title-2026 {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 6px;
}

.sxo-2026-wrapper .blog-bio-info-2026 p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 8px;
}

.sxo-2026-wrapper .blog-bio-info-2026 a {
    color: #2C5F8A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.sxo-2026-wrapper .blog-bio-info-2026 a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLES LIES
   Contrer .sxo-2026-wrapper > section { background-color: inherit }
   ═══════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .blog-related-2026 {
    max-width: 960px;
    margin: 0 auto 48px;
    padding: 0 24px;
    background-color: #FFFFFF;
}

.sxo-2026-wrapper .blog-related-2026 h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 24px;
    text-align: center;
}

.sxo-2026-wrapper .blog-related-grid-2026 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .sxo-2026-wrapper .blog-related-grid-2026 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sxo-2026-wrapper .blog-related-card-2026 {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(27, 42, 74, 0.08);
    background: #FFFFFF;
    transition: all 0.3s;
    cursor: pointer;
    /* Si utilise comme lien <a> */
    text-decoration: none;
    color: #2d2d2d;
    display: block;
}

.sxo-2026-wrapper .blog-related-card-2026:hover {
    box-shadow: 0 8px 24px rgba(27, 42, 74, 0.12);
    transform: translateY(-3px);
}

.sxo-2026-wrapper .blog-related-card-img-2026 {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #2C5F8A, #1B2A4A);
    /* Pour les vraies images */
    object-fit: cover;
    display: block;
}

.sxo-2026-wrapper .blog-related-card-body-2026 {
    padding: 16px;
}

.sxo-2026-wrapper .blog-related-card-body-2026 h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1B2A4A;
    line-height: 1.4;
    margin-bottom: 6px;
}

.sxo-2026-wrapper .blog-related-card-body-2026 span {
    font-size: 12px;
    color: #6B7280;
}
