#article {
    color: var(--color-text);
}

.article-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.article-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.article-hero-image {
    width: 100%;
    height: 100%;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.article-header-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

/* Breadcrumbs */

#breadcrumbs-article span:not(.breadcrumb_last):not(:last-child)::after {
    content: "";
    display: inline-block;
    background-image: url(https://staging.jesto2026.lets-preprod.com/wp-content/uploads/2025/12/dot-breadcrumb.svg);
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    vertical-align: middle;
}

.article-breadcrumbs {
    width: 100%;
    margin-bottom: 20px;
}

.article-breadcrumbs #breadcrumbs-article {
    color: #ffffff;
    font-size: 16px;
    margin: 0;
}

.article-breadcrumbs #breadcrumbs-article a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumbs #breadcrumbs-article a:hover {
    color: #a0642f;
}

/* Catégorie */
.article-category {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

/* Titre */
.article-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Meta informations */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
}

.article-meta-icon {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.article-meta-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Contenu de l'article */
.article-content {
    width: 100%;
    max-width: 1320px;
    margin: auto;
    position: relative;
    padding: 15px 0;
}

ul.wp-block-list {
    text-align: left;
    padding-left: 20px;
}

/* Table des matières en haut */
.article-toc-top {
    max-width: 1200px;
    margin: 40px auto 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #a0642f;
}

.article-toc-top-title {
    font-size: 24px;
    font-weight: 700;
    color: #0c374b;
    margin: 0 0 20px 0;
}

.article-toc-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.article-toc-top-item {
    margin: 0;
}

.article-toc-top-item::before {
    content: "";
    display: none;
}

.article-toc-top-link {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: var(--color-text)!important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.article-toc-top-link:hover {
    background: var(--color-secondary);
    color: var(--color-text-tertiary)!important;
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.article-content {
    font-size: 2rem;
}

.entry-content h2 {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

/* Sidebar sticky */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Articles similaires */
.article-related {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.article-related-title {
    font-size: 20px;
    font-weight: 700;
    color: #0c374b;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #a0642f;
}

.article-related-posts {
    width: 100%;
    max-width: 1320px;
    margin: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.article-related-post {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.article-related-post-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-related-post:hover .article-related-post-image img {
    transform: scale(1.05);
}

.article-related-post-content {
    padding: 20px;
}

.article-related-post-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
}

.article-related-post-title a {
    color: #0c374b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-related-post-title a:hover {
    color: #a0642f;
}

.article-related-post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.article-related-post-date,
.article-related-post-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-related-posts {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Navigation entre articles */

.article-navigation {
    width: 100%;
    max-width: 1320px;
    margin: auto;
    position: relative;
    padding: 15px 0;
}

.article-nav-wrapper {
    display: flex;
    justify-content: space-between;
}

.article-nav-item {
    width: 100%;
    max-width: 440px;
    padding: 1rem 2rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.article-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #0c374b;
    transition: color 0.3s ease;
}

.blog-nav-arrow svg{
stroke: #0c374b;
}

.blog-nav-arrow svg:hover{
stroke: #a0642f;
}

.article-nav-content .article-nav-label {
    color: #a0642f;
    font-size: 1.5rem;
}

.article-nav-content .article-nav-title {
    font-size: 2rem;
}

.article-nav-content .article-nav-title:hover {
    color: #a0642f;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-single {
        padding: 0 20px;
    }
    
    .article-content-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .article-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        display: none;
    }

    .article-toc-top {
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .article-hero {
        min-height: 60vh;
    }
    
    .article-header-content {
        min-height: 60vh;
        padding: 40px 20px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-toc-top {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .article-toc-top-title {
        font-size: 20px;
    }
    
    .article-toc-top-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-toc-top-link {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .article-content {
        font-size: 1.6rem;
    }
    
    .entry-content h2 {
        margin-bottom: 2rem;
        font-size: 28px;
    }

    .article-nav-wrapper {
        gap: 2rem;
    }
}

@media (max-width: 480px) {

    .article-related-post:nth-of-type(n+2) {
        display: none;
    }

    .article-nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
}