/**
 * Beriox-HUB — Article de blog (extrait des vues Blade)
 */
* { box-sizing: border-box; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    margin: 0;
    line-height: 1.7;
}
.wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .toc-sidebar {
        display: none;
    }
}
.article-main {
    min-width: 0;
}
.article-header {
    margin-bottom: 3rem;
}
.article-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    color: #1f2937;
    letter-spacing: -0.02em;
}
@media (max-width: 640px) {
    .article-header h1 {
        font-size: 2rem;
    }
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}
.meta-item svg {
    width: 18px;
    height: 18px;
}
.meta-item a {
    color: #5a5fca;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.meta-item a:hover {
    color: #8b5cf6;
}
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(90, 95, 202, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #5a5fca;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.category-badge:hover {
    background: linear-gradient(135deg, rgba(90, 95, 202, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    transform: translateY(-1px);
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.tag:hover {
    background: #5a5fca;
    color: white;
    border-color: #5a5fca;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.3);
}
.article-summary {
    background: linear-gradient(135deg, rgba(90, 95, 202, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-left: 4px solid #5a5fca;
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}
.article-summary h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 1rem;
}
.article-summary ul {
    margin: 0;
    padding-left: 1.5rem;
}
.article-summary li {
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}
.article-content {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}
@media (max-width: 640px) {
    .article-content {
        padding: 2rem 1.5rem;
    }
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1f2937;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.article-content h1 {
    font-size: 2rem;
}
.article-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}
.article-content h3 {
    font-size: 1.5rem;
}
.article-content h4 {
    font-size: 1.25rem;
}
.article-content p {
    margin-bottom: 1.5rem;
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.8;
}
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.article-content li {
    margin-bottom: 0.75rem;
    color: #374151;
    line-height: 1.7;
}
.article-content strong {
    color: #1f2937;
    font-weight: 700;
}
.article-content a {
    color: #5a5fca;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.article-content a:hover {
    color: #8b5cf6;
}
.article-content blockquote {
    border-left: 4px solid #5a5fca;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #6b7280;
    font-style: italic;
}
.article-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #dc2626;
}
.article-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}
.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.related-articles {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.related-articles h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.related-articles h2 svg {
    width: 24px;
    height: 24px;
    color: #5a5fca;
}
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.related-list a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.related-list a:hover {
    color: #5a5fca;
    padding-left: 0.5rem;
}
.related-list a::before {
    content: "→";
    opacity: 0;
    transition: opacity 0.2s;
}
.related-list a:hover::before {
    opacity: 1;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5a5fca;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: gap 0.2s;
}
.back-link:hover {
    gap: 0.75rem;
}
.back-link svg {
    width: 20px;
    height: 20px;
}
.toc-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.toc-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.toc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-list li {
    margin-bottom: 0.5rem;
}
.toc-list a {
    display: block;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}
.toc-list a:hover {
    color: #5a5fca;
    background: rgba(90, 95, 202, 0.08);
}
.toc-list a.active {
    color: #5a5fca;
    background: rgba(90, 95, 202, 0.1);
    font-weight: 600;
}
.toc-list li.toc-level-3 {
    padding-left: 1rem;
}
.toc-list li.toc-level-3 a {
    font-size: 0.85rem;
}
