/* ===================================
   Le Procrastinateur — Shared SEO Page Styles
   =================================== */

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

:root {
    --ink: #1a202c;
    --paper: #ffffff;
    --accent: #1a5eff;
    --accent-dark: #0041d0;
    --accent-light: #edf2ff;
    --red: #b10400;
    --red-light: #fff5f5;
    --muted: #6b7280;
    --border: #e5e7eb;
    --green: #10b981;
    --green-light: #ecfdf5;
    --card-bg: #ffffff;
    --grey-light: #f7f8fa;
}

html, body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAV ===== */
.site-nav {
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo — supports both image and text */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo:hover { text-decoration: none; }

.nav-logo img {
    height: 60px;
    width: auto;
}

/* Legacy text logo fallback */
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

.nav-cta {
    background: var(--accent);
    color: white;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted);
    list-style: none;
}

.breadcrumb li a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb li a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb li.active {
    color: var(--ink);
    font-weight: 500;
}

.breadcrumb li::after {
    content: "›";
    margin-left: 0.4rem;
    color: var(--border);
}

.breadcrumb li:last-child::after { content: ""; }

/* ===== CATEGORY PAGE HERO ===== */
.cat-hero {
    background: linear-gradient(135deg, var(--accent-light) 0%, #f0f4ff 100%);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 2rem;
}

.cat-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.cat-hero h1 {
    font-size: 2.4rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.cat-hero p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cat-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.cat-badge {
    background: white;
    color: var(--accent);
    border: 1px solid var(--accent-light);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-weight: 600;
}

/* ===== MAIN LAYOUT ===== */
.page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.page-content { min-width: 0; }

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.section-title span {
    display: inline-block;
    background: var(--accent);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 28px;
    text-align: center;
    margin-right: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* ===== PROCEDURE CARDS (category page) ===== */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.procedure-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: box-shadow 0.15s, border-color 0.15s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.procedure-card:hover {
    box-shadow: 0 4px 20px rgba(26, 94, 255, 0.1);
    border-color: var(--accent-light);
    text-decoration: none;
}

.proc-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    display: block;
}

.proc-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.proc-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.proc-arrow {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

/* ===== STEPS (procedure page) ===== */
.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    align-items: flex-start;
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-body h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.step-body p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.step-body .step-tip {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}

/* ===== DOCS BOX ===== */
.docs-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.docs-box h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docs-list li {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
}

.docs-list li::before {
    content: "📄";
    flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    gap: 0.75rem;
}

.faq-question .faq-arrow {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--muted);
    transition: transform 0.2s;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.1rem;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

.faq-item.open .faq-answer { display: block; }

/* ===== CTA INLINE ===== */
.inline-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #0040cc 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.inline-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.inline-cta p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}

.btn-white {
    display: inline-block;
    background: white;
    color: var(--accent);
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-white:hover { opacity: 0.9; text-decoration: none; }

/* ===== SIDEBAR ===== */
.sidebar {}

.sidebar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-links li a {
    font-size: 0.875rem;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: background 0.1s;
}

.sidebar-links li a:hover {
    background: var(--accent-light);
    color: var(--accent);
    text-decoration: none;
}

.sidebar-cta {
    background: var(--accent);
    color: white;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.sidebar-cta h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.sidebar-cta p {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-white-sm {
    display: inline-block;
    background: white;
    color: var(--accent);
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
}

.btn-white-sm:hover { opacity: 0.9; text-decoration: none; }

/* ===== RELATED CATEGORIES ===== */
.related-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.related-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.related-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 2px 8px rgba(26,94,255,0.08);
    text-decoration: none;
}

.related-card .rel-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--ink);
    color: #9ca3af;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-logo span { color: var(--accent); }

.footer-logo img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 220px;
}

.footer-col h5 {
    color: white;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col ul li a {
    color: #9ca3af;
    font-size: 0.82rem;
    text-decoration: none;
}

.footer-col ul li a:hover { color: white; text-decoration: none; }

.footer-bottom {
    font-size: 0.78rem;
    text-align: center;
    color: #4b5563;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .cat-hero h1 { font-size: 1.8rem; }
    .page-layout { padding: 2rem 1.25rem; }
    .nav-inner { padding: 0.75rem 1.25rem; }
    .nav-logo img { height: 52px; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }

    .procedures-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}
