/* ── Aegis Chantier — Blog Article CSS ───────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #FAFAF8;
    --bg-card: #FFFFFF;
    --accent: #C97B5A;
    --text: #1A1A1A;
    --text-muted: #64748B;
    --text-dim: #94A3B8;
    --border: #E5E5E0;
    --radius: 10px;
    --success: #5B8C75;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ──────────────────────────────────────────────────────────── */
nav {
    border-bottom: 1px solid var(--border);
    background: rgba(250,250,248,0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}
.nav-brand span { color: var(--accent); }
.nav-links {
    display: flex;
    gap: 28px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
    background: var(--text);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
}
.btn-nav:hover { background: #333; color: white; }

/* ── Article layout ──────────────────────────────────────────────── */
article {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.article-header {
    margin-bottom: 40px;
}

.article-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(201,123,90,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ── Body content ────────────────────────────────────────────────── */
.article-body p { margin-bottom: 20px; }
.article-body p.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.article-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 36px 0 14px;
    line-height: 1.35;
}

.article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.article-body li { margin-bottom: 8px; }

/* ── Callout ─────────────────────────────────────────────────────── */
.callout {
    background: #F0EEE8;
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.92rem;
    margin: 24px 0;
    color: var(--text-muted);
}
.callout strong { color: var(--text); }
.callout-success {
    background: rgba(91,140,117,0.08);
    border-left-color: var(--success);
}

/* ── CTA block ───────────────────────────────────────────────────── */
.cta-block {
    background: var(--text);
    color: #F5F5F3;
    padding: 32px 28px;
    border-radius: var(--radius);
    margin: 48px 0 32px;
    text-align: center;
}
.cta-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FAFAF8;
}
.cta-block p {
    font-size: 0.92rem;
    color: #94A3B8;
    margin-bottom: 20px;
}
.btn-cta {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.15s;
}
.btn-cta:hover { opacity: 0.88; color: white; }

/* ── Devis example ───────────────────────────────────────────────── */
.devis-example {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
    font-size: 0.88rem;
}
.devis-header {
    background: var(--text);
    color: #F5F5F3;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}
.devis-table { width: 100%; border-collapse: collapse; }
.devis-table th {
    background: #F0EEE8;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.devis-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.devis-table td:last-child { text-align: right; }
.devis-table th:last-child { text-align: right; }
.devis-section td {
    background: #F9F9F7;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 8px 14px;
}
.devis-total td { background: #F0EEE8; font-weight: 600; }

/* ── Data table ──────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 20px 0;
}
.data-table th {
    background: var(--text);
    color: #F5F5F3;
    padding: 10px 14px;
    text-align: left;
    font-weight: 500;
    font-size: 0.82rem;
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: #F9F9F7; }

/* ── Formula block ───────────────────────────────────────────────── */
.formula-block {
    background: #F0EEE8;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}
.formula-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.formula {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

/* ── Mention list ────────────────────────────────────────────────── */
.mention-list { margin: 24px 0; }
.mention-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.mention-item:last-child { border-bottom: none; }
.mention-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--text);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 2px;
}
.mention-content strong { display: block; margin-bottom: 6px; }
.mention-content p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ── Nav footer ──────────────────────────────────────────────────── */
.article-footer-nav { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.back-link { font-size: 0.9rem; color: var(--text-muted); }
.back-link:hover { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .article-header h1 { font-size: 1.65rem; }
    .nav-links { display: none; }
    .devis-table { font-size: 0.78rem; }
    article { padding: 36px 16px 60px; }
}
