/* ========================================
   RL ARTTECH — Blog Article CSS
   ======================================== */

.article-main { background: #f8f8f6; }

/* Hero article */
.article-hero {
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 76px;
}
.article-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(20,20,20,0.45) 0%, rgba(20,20,20,0.85) 100%);
    display: flex; align-items: flex-end;
    padding-bottom: 3rem;
}
.article-breadcrumb {
    font-size: 0.82rem; color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.article-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.article-breadcrumb span { color: rgba(255,255,255,0.5); }
.article-hero__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white; line-height: 1.2;
    margin-bottom: 1rem; max-width: 800px;
}
.article-meta {
    display: flex; align-items: center; gap: 0.75rem;
    flex-wrap: wrap; font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* Layout article */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
    align-items: start;
}
@media (max-width: 968px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { order: -1; }
}

/* Contenu article */
.article-content {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.article-intro {
    font-size: 1.1rem; line-height: 1.8;
    color: #444; border-left: 4px solid var(--color-primary);
    padding-left: 1.25rem; margin-bottom: 2rem;
    font-style: italic;
}
.article-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #1a1a1a;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0ebe3;
}
.article-content h3 {
    font-size: 1.15rem; color: var(--color-primary);
    margin: 1.75rem 0 0.75rem;
}
.article-content p { line-height: 1.85; color: #444; margin-bottom: 1rem; }
.article-content ul, .article-content ol {
    margin: 0.75rem 0 1.25rem 1.5rem; color: #444;
}
.article-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-content strong { color: #1a1a1a; }
.article-content a:not(.btn) { color: var(--color-primary); }

/* Tableau */
.article-table { overflow-x: auto; margin: 1.5rem 0; }
.article-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.article-table th {
    background: #1c1c1c; color: white;
    padding: 0.75rem 1rem; text-align: left; font-weight: 600;
}
.article-table td {
    padding: 0.75rem 1rem; border-bottom: 1px solid #eee;
    color: #444;
}
.article-table tr:nth-child(even) td { background: #f9f9f9; }
.article-table tr:hover td { background: #fff9f0; }

/* Highlight */
.article-highlight {
    background: rgba(245,144,30,0.08);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #444; line-height: 1.7;
}

/* Info box */
.article-info {
    background: #f0f8ff;
    border: 1px solid #b3d9f7;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #1a4a6e; line-height: 1.7;
}

/* Warning box */
.article-warning {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #5d4200; line-height: 1.7;
}

/* CTA dans l'article */
.article-cta {
    background: linear-gradient(135deg, #1c1c1c 0%, #2d2d2d 100%);
    border-radius: 12px; padding: 2rem;
    text-align: center; margin-top: 3rem;
}
.article-cta h3 { color: white; font-size: 1.3rem; margin-bottom: 0.75rem; }
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

/* Images dans l'article */
.article-img {
    width: 100%;
    border-radius: 10px;
    margin: 1.75rem 0;
    object-fit: cover;
    max-height: 380px;
    display: block;
}
.article-img-caption {
    font-size: 0.82rem;
    color: #888;
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Sidebar */
.article-sidebar { position: sticky; top: 120px; }
.sidebar-card {
    background: white; border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
}
.sidebar-card h4 {
    font-size: 1rem; font-weight: 700;
    color: #1a1a1a; margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0ebe3;
}
.sidebar-card p { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 1rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 0.65rem; }
.sidebar-links a {
    font-size: 0.88rem; color: var(--color-primary);
    text-decoration: none; line-height: 1.4;
    display: block;
}
.sidebar-links a:hover { text-decoration: underline; }
