/* === ClairSign Blog Styles ===
   ONE file controls ALL blog pages.
   To redesign: update this file only. Zero per-page changes.
   Last updated: 2026-04-16
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-900: #0c1d36; --blue-800: #0d182e; --blue-700: #1a3b6e; --blue-500: #3966cd;
    --blue-400: #3b82f6; --blue-100: #dbeafe; --blue-50: #eff6ff;
    --slate-900: #0f172a; --slate-700: #334155; --slate-500: #64748b;
    --slate-300: #cbd5e1; --slate-200: #e2e8f0; --slate-100: #f1f5f9; --white: #ffffff;
    --green-600: #16a34a; --green-100: #dcfce7;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--slate-900); background: var(--white); line-height: 1.75; font-size: 18px; }

/* === NAVBAR === */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand svg { width: 32px; height: 32px; }
.nav-brand span { font-size: 17px; font-weight: 700; color: var(--blue-900); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-500); color: white; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
@media (hover:hover){.nav-cta:hover { background: var(--blue-700); }}

/* === BREADCRUMBS === */
.breadcrumbs { max-width: 720px; margin: 24px auto 0; padding: 0 24px; font-size: 13px; color: var(--slate-500); }
.breadcrumbs a { color: var(--slate-500); text-decoration: none; }
@media (hover:hover){.breadcrumbs a:hover { color: var(--blue-500); text-decoration: underline; }}
.breadcrumbs .sep { margin: 0 6px; }

/* === ARTICLE === */
.article { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; }
.article h1 { font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--blue-900); margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--slate-500); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--slate-200); }

/* TL;DR box */
.tldr { background: var(--blue-50); border-left: 4px solid var(--blue-500); border-radius: 0 8px 8px 0; padding: 20px 24px; margin-bottom: 32px; }
.tldr-label { font-size: 12px; font-weight: 700; color: var(--blue-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.tldr p { font-size: 16px; color: var(--slate-700); margin: 0; }

/* TOC */
.toc { background: var(--slate-100); border-radius: 12px; padding: 20px 24px; margin-bottom: 40px; }
.toc-title { font-size: 14px; font-weight: 700; color: var(--slate-700); margin-bottom: 12px; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 15px; }
.toc a { color: var(--blue-500); text-decoration: none; }
@media (hover:hover){.toc a:hover { text-decoration: underline; }}

/* Headings */
.article h2 { font-size: 24px; font-weight: 700; color: var(--blue-900); margin: 48px 0 16px; line-height: 1.3; }
.article h3 { font-size: 20px; font-weight: 600; color: var(--blue-800); margin: 32px 0 12px; line-height: 1.3; }

/* Body text */
.article p { margin-bottom: 20px; color: var(--slate-700); }
.article strong { color: var(--slate-900); font-weight: 600; }
.article ul, .article ol { margin: 0 0 20px 24px; color: var(--slate-700); }
.article li { margin-bottom: 8px; }
.article a { color: var(--blue-500); }
@media (hover:hover){.article a:hover { text-decoration: underline; }}

/* Info box */
.info-box { background: var(--green-100); border-radius: 8px; padding: 16px 20px; margin: 24px 0; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.info-box svg { flex-shrink: 0; margin-top: 2px; }

/* CTA box */
.cta-box { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); border-radius: 12px; padding: 32px; margin: 40px 0; text-align: center; }
.cta-box h3 { color: white; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,0.8); font-size: 15px; margin-bottom: 20px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: white; color: var(--blue-900); padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
@media (hover:hover){.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }}
/* Sur téléphone, « Signer mon document INPI — 19,90 € » ne tient pas sur une
   ligne à taille normale. La police suit la largeur, et le montant est rendu
   insécable dans le HTML pour que « 19,90 » ne soit jamais séparé de « EUR ». */
@media (max-width: 560px) { .cta-btn { font-size: clamp(12.5px, 3.6vw, 15px); padding: 13px 14px; max-width: 100%; } }
.cta-stats { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.cta-stats span { font-size: 12px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 4px; }
.cta-stats svg { color: #22c55e; }

/* Comparison table */
/* Les tableaux comparatifs sont plus larges qu'un écran de téléphone : on les
   rend défilables horizontalement DANS leur cadre, sinon c'est toute la page
   qui part sur le côté (mesuré : 187 px hors écran à 320 px, 29 articles). */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 700px) { .compare-table { display: table; overflow-x: visible; } }
.compare-table th { background: var(--slate-100); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 14px; color: var(--slate-700); }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--slate-200); }
@media (hover:hover){.compare-table tr:hover { background: var(--blue-50); }}

/* FAQ */
.faq-section { margin: 48px 0; }
.faq-section h2 { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--slate-200); }
.faq-q { width: 100%; background: none; border: none; padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--slate-900); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit; }
.faq-q svg { width: 18px; height: 18px; color: var(--slate-500); flex-shrink: 0; transition: transform 0.2s; }
.faq-q.open svg { transform: rotate(180deg); color: var(--blue-500); }
.faq-a { display: none; padding: 0 0 18px; font-size: 15px; color: var(--slate-700); line-height: 1.7; }
.faq-a.visible { display: block; }

/* Related articles */
.related { margin: 48px 0; }
.related h2 { margin-top: 0; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.related-card { border: 1px solid var(--slate-200); border-radius: 10px; padding: 20px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; display: block; }
@media (hover:hover){.related-card:hover { border-color: var(--blue-500); box-shadow: 0 2px 8px rgba(37,99,235,0.1); }}
.related-card h3 { font-size: 15px; font-weight: 600; color: var(--blue-900); margin-bottom: 6px; line-height: 1.4; }
.related-card p { font-size: 13px; color: var(--slate-500); margin: 0; line-height: 1.5; }

/* Disclaimer */
.disclaimer { font-size: 12px; color: var(--slate-500); border-top: 1px solid var(--slate-200); padding-top: 24px; margin-top: 48px; }

/* ===== B3 FOOTER (Polish A — softer dark + smaller payment logos, applied 2026-05-23) ===== */
footer { background: #0a0a0a; color: rgba(255,255,255,0.65); font-family: 'Inter', -apple-system, sans-serif; }
.ft-trust-strip { padding: 22px 40px 20px; background: rgba(255,255,255,0.035); border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.ft-section-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.78); }
.ft-payment-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ft-pay-icon { background: #fff; border-radius: 5px; padding: 4px 7px; display: inline-flex; align-items: center; justify-content: center; height: 28px; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.ft-pay-icon img { height: 16px; width: auto; display: block; }
.ft-strip-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.13); }
.ft-cert-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ft-cert-item { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 7px; padding: 7px 13px; height: 40px; }
.ft-cert-item img { height: 26px; width: auto; display: block; }
.ft-cert-item span { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.ft-grid { max-width: 1100px; margin: 0 auto; padding: 36px 40px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ft-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ft-brand-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.ft-brand-logo span { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.ft-brand-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.ft-col-title { font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.ft-col-links { display: flex; flex-direction: column; gap: 10px; }
.ft-col-links a { font-size: 14px; color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.15s; }
@media (hover:hover){.ft-col-links a:hover { color: #fff; }}
.ft-blog-row { display: flex; gap: 12px; }
.ft-blog-item { flex: 1; display: block; text-decoration: none; padding: 12px 14px; background: rgba(255,255,255,0.05); border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.15s; }
@media (hover:hover){.ft-blog-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }}
.ft-blog-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #9db6ee; margin-bottom: 4px; }
.ft-blog-title { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.45; }
.ft-blog-more { font-size: 14px; color: #9db6ee; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 600; }
.ft-divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 0; }
.ft-bottom { max-width: 1100px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ft-copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.ft-btm-links { display: flex; gap: 18px; }
.ft-btm-links a { font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; }
@media (hover:hover){.ft-btm-links a:hover { color: #fff; }}

/* === MOBILE === */
@media (max-width: 768px) {
    body { font-size: 17px; }
    .article h1 { font-size: 26px; }
    .article h2 { font-size: 21px; }
    .article { padding: 24px 18px 48px; }
    .breadcrumbs { padding: 0 18px; margin-top: 16px; }
    .related-grid { grid-template-columns: 1fr; }
    .ft-grid { grid-template-columns: 1fr !important; padding: 28px 20px 24px; gap: 28px; }
    .ft-trust-strip { padding: 20px 16px 16px; gap: 12px; flex-direction: column; align-items: center; }
    .ft-strip-divider { width: 80%; height: 1px; }
    .ft-payment-row, .ft-cert-row { justify-content: center; }
    .ft-blog-row { flex-direction: column; }
    .ft-bottom { justify-content: center; text-align: center; flex-direction: column; gap: 6px; padding: 14px 20px; }
    .ft-btm-links { gap: 12px; }
    .nav-cta { padding: 8px 14px; font-size: 13px; }
    .cta-stats { flex-direction: column; gap: 8px; }
    .compare-table { font-size: 13px; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
}

/* ⚠️ À garder APRÈS le bloc ci-dessus : même spécificité, donc c'est la dernière
   règle écrite qui gagne. Bandeau du haut des articles : le bouton sortait de
   l'écran de 68 px et se coupait en deux sous 385 px. */
@media (max-width: 640px) {
    .navbar { padding: 0 14px; gap: 10px; }
    .nav-cta { font-size: clamp(11px, 3.2vw, 13px); padding: 9px 12px; white-space: nowrap; flex-shrink: 0; }
    .nav-cta svg { display: none; }
    .navbar .nav-brand, .navbar > a:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* === MID-ARTICLE CTA (after TL;DR, before TOC) === */
.mid-cta { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border: 2px solid #f97316; border-radius: 12px; padding: 18px 22px; margin: 28px 0 32px; }
.mid-cta-icon { flex: 0 0 40px; width: 40px; height: 40px; background: #f97316; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mid-cta-icon svg { width: 22px; height: 22px; }
.mid-cta-content { flex: 1; min-width: 0; }
.mid-cta-title { font-size: 15px; font-weight: 700; color: #7c2d12; margin: 0 0 2px; }
.mid-cta-text { font-size: 14px; color: #9a3412; margin: 0; }
.article a.mid-cta-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: #f97316; color: #ffffff; padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.2s; }
@media (hover:hover){.article a.mid-cta-btn:hover { background: #ea580c; text-decoration: none; color: #ffffff; }}

@media (max-width: 640px) {
    .mid-cta { flex-direction: column; align-items: flex-start; padding: 16px; gap: 12px; }
    .mid-cta-btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
}

/* === STICKY MOBILE CTA (mobile only, fixed bottom) === */
.sticky-mobile-cta { display: none; }

@media (max-width: 768px) {
    body { padding-bottom: 80px; } /* avoid sticky CTA overlap with content */
    .sticky-mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 90;
        background: white;
        border-top: 1px solid var(--slate-200);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
        padding: 12px 16px;
        align-items: center;
        gap: 12px;
    }
    .sticky-mobile-cta-info { flex: 1; min-width: 0; }
    .sticky-mobile-cta-price { font-size: 16px; font-weight: 800; color: var(--blue-900); line-height: 1.1; }
    .sticky-mobile-cta-sub { font-size: 11px; color: var(--slate-500); }
    a.sticky-mobile-cta-btn, .article a.sticky-mobile-cta-btn {
        flex: 0 0 auto;
        background: var(--blue-500);
        color: #ffffff;
        padding: 13px 18px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    a.sticky-mobile-cta-btn:hover, .article a.sticky-mobile-cta-btn:hover {
        background: var(--blue-700);
        text-decoration: none;
        color: #ffffff;
    }
}
