/**
 * blog-article.css — Shared styles for all blog article pages
 * Provides article layout, typography, breadcrumbs, and component styles
 * that were previously inline in only 4 of 21 articles.
 */

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── CSS Variables ── */
:root {
    --bg-deep: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-subtle: #EEF1F8;
    --accent: #773396;
    --accent-glow: rgba(119, 51, 150, 0.12);
    --text-primary: #1F1F2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --success: #10B981;
}

/* ── Base Typography ── */
body {
    font-family: "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1, h2 { font-family: "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 600; line-height: 1.18; color: #1F1F2E; letter-spacing: 0; }
h3, h4 { font-family: "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 600; color: #1F1F2E; letter-spacing: 0; }

/* ── Nav (legacy — hidden by light-pastel.css, replaced by nav.js) ── */
nav:not(#navPill):not([aria-label]) {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; text-decoration: none; }
.logo span { color: #773396; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-link { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; padding: 0.4rem 1rem; border-radius: 8px; transition: all 0.2s; font-weight: 500; }
.nav-link:hover { color: var(--accent); }
.nav-auth-link { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; padding: 0.4rem 1rem; border: 1px solid var(--border); border-radius: 8px; transition: all 0.2s; font-weight: 500; }

/* ── Article Layout ── */
.article-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    flex: 1;
}

/* ── Breadcrumbs ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-left: 0;
    white-space: normal;
    overflow: visible;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
}

/* ── Article Tag ── */
.article-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6C4FEE;
    background: rgba(108, 79, 238, 0.1);
    border: 1px solid rgba(108, 79, 238, 0.25);
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

/* ── Article Title & Meta ── */
.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #1F1F2E;
    margin-bottom: 1rem;
}
.article-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* ── Article Body ── */
.article-body h2 { font-size: 1.5rem; color: #1F1F2E; margin: 2.5rem 0 1rem; padding-top: 0.5rem; }
.article-body h3 { font-size: 1.15rem; color: #1F1F2E; margin: 1.75rem 0 0.75rem; }
.article-body p { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: 1rem; }
.article-body strong { color: var(--text-primary); }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { color: var(--text-secondary); margin-bottom: 0.6rem; font-size: 1rem; }
.article-body li strong { color: var(--text-primary); }

/* ── Highlight Box ── */
.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid #773396;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}
.highlight-box p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.highlight-box strong { color: #773396; }

/* ── Step Blocks ── */
.step-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.1rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.step-num {
    background: linear-gradient(135deg, #A72270, #773396, #4444BC);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.step-content h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.step-content p { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }

/* ── STAR Examples ── */
.star-example {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.25rem 0;
}
.star-example h4 { color: #1F1F2E; margin-bottom: 0.75rem; }
.star-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #A72270, #773396);
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    margin-right: 0.5rem;
}

/* ── Checklist ── */
.checklist {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    margin: 2rem 0;
}
.checklist-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checklist-section { margin-bottom: 1.25rem; }
.checklist-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.checklist-item:last-child { border-bottom: none; }
.check-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Comparison Box (for score-ats article) ── */
.comparison-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.comparison-box h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.comparison-col h5 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}
.comparison-col h5.bad { color: #DC2626; background: rgba(220, 38, 38, 0.08); }
.comparison-col h5.good { color: #059669; background: rgba(5, 150, 105, 0.08); }
.comparison-col p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.comparison-col code { font-size: 0.85rem; background: var(--bg-subtle); padding: 0.1rem 0.4rem; border-radius: 4px; color: var(--text-primary); }

/* ── Score Meter (for score-ats article) ── */
.score-meter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}
.score-meter h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }
.score-bar { height: 12px; border-radius: 6px; background: var(--border); overflow: hidden; margin-bottom: 0.5rem; }
.score-fill { height: 100%; border-radius: 6px; }
.score-fill.low { background: #DC2626; width: 35%; }
.score-fill.medium { background: #F59E0B; width: 60%; }
.score-fill.high { background: #059669; width: 85%; }
.score-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }

/* ── Article CTA ── */
.article-cta {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    border: 1px solid rgba(119, 51, 150, 0.35);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0 1rem;
}
.article-cta h3, .article-cta .cta-heading {
    font-size: 1.4rem;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    font-weight: 700;
    margin-top: 0;
}
.article-cta p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, #A72270, #773396, #4444BC);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-cta:hover { transform: translateY(-2px); opacity: 0.9; }

/* ── Back Link ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 2rem;
    transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* ── Footer ── */
footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}
footer p { font-size: 0.85rem; color: var(--text-muted); }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* ── Lire Aussi ── */
.lire-aussi { margin: 2.5rem 0 0; }
.lire-aussi-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lire-aussi-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: #773396;
    border-radius: 2px;
}
.lire-aussi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.lire-aussi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.lire-aussi-card:hover {
    border-color: rgba(119, 51, 150, 0.3);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.lire-aussi-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.lire-aussi-tag.entretien, .lire-aussi-tag.blue { color: #6C4FEE; }
.lire-aussi-tag.cv { color: #E946A8; }
.lire-aussi-tag.tests { color: #047857; }
.lire-aussi-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}
.lire-aussi-read {
    font-size: 0.78rem;
    color: #773396;
    font-weight: 600;
    margin-top: auto;
}

/* ── FAQ ── */
.faq-section { margin: 3rem 0 1rem; }
.faq-title { font-size: 1.4rem; font-weight: 700; color: #1F1F2E; margin-bottom: 1.25rem; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    padding: 1.1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
}
.faq-question::after { content: '+'; font-size: 1.2rem; color: #773396; font-weight: 700; }
.faq-question.open::after { content: '\2212'; }
.faq-answer {
    padding: 0 1.25rem 1.1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    background: var(--bg-card);
}

/* ── Sources ── */
.sources-section {
    margin: 2.5rem 0 0;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.sources-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.sources-list { list-style: none; margin: 0; padding: 0; }
.sources-list li {
    padding: 0.3rem 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.sources-list li:last-child { border-bottom: none; }
.sources-list li::before {
    content: '\2197';
    color: #773396;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.75rem;
    margin-top: 1px;
}
.sources-list a { color: #773396; text-decoration: none; font-weight: 600; }
.sources-list a:hover { text-decoration: underline; }

/* ── Author E-E-A-T ── */
.author-eeat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}
.author-eeat-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #773396;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
}
.author-eeat-info { flex: 1; min-width: 0; }
.author-eeat-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}
.author-eeat-creds {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #773396;
    margin-bottom: 0.35rem;
}
.author-eeat-bio {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 0.4rem;
}

/* ── Anna Conclusion ── */
.anna-conclusion {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid #773396;
    background: rgba(119,51,150,0.05);
    border-radius: 0 8px 8px 0;
}
.anna-conclusion a { color: #773396; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .article-wrapper { padding: 5rem 1rem 3rem; }
    nav:not(#navPill):not([aria-label]) { padding: 1rem; }
    .nav-link { display: none; }
    .article-meta { flex-wrap: wrap; gap: 0.75rem; }
    .lire-aussi-grid { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
}
