/* ================================================================
   main.css — Base globale nouveau design
   Navbar + footer nouveaux + utilitaires conservés
   ================================================================ */

:root {
    /* === Nouveau design === */
    --grad: linear-gradient(135deg,#fcb045 0%,#fd1d1d 50%,#833ab4 100%);
    --grad-soft: linear-gradient(135deg,rgba(252,176,69,.12) 0%,rgba(253,29,29,.08) 50%,rgba(131,58,180,.12) 100%);
    --purple: #833ab4; --purple-dark: #6b21a8; --purple-light: #a855f7;
    --orange: #fcb045; --orange-dark: #f59e0b; --red: #fd1d1d;
    --bg: #fafafc; --bg-alt: #f4f3ff; --surface: #fff;
    --dark: #06060f; --dark-2: #0d0d1a; --dark-3: #141424;
    --text: #111118; --text-2: #3d3d5c; --text-muted: #6b6b8a; --text-light: #9898b8;
    --border: #e8e8f0; --border-light: #f0f0f8;
    --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 24px; --r-2xl: 32px; --r-full: 9999px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.04);
    --shadow-md: 0 4px 24px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.12),0 4px 16px rgba(0,0,0,.06);
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --t: 200ms ease;

    /* === Rétrocompatibilité (guides, piliers, articles) === */
    --font-title: 'Poppins', sans-serif;
    --font-text: 'Inter', sans-serif;
    --border-radius: 20px;
    --box-padding: 20px;
    --primary-color: #833ab4;
    --secondary-color: #6b21a8;
    --text-color: #111118;
    --bg-color: #fafafc;
    --gray-light: #f4f3ff;
    --gray-medium: #e8e8f0;
    --pillar-color: #fd7200;
    --pillar-color-dark: #e56500;
    --pillar-color-light: #fff3e6;
    --pillar-border: rgba(253,114,0,.18);
    --pillar-gradient: linear-gradient(135deg,#fcb045 0%,#fd1d1d 50%,#833ab4 100%);
    --article-color: #fd1d1d;
}

/* ================================================================
   Reset & base
   ================================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}


/* ================================================================
   Layout
   ================================================================ */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

.site-main {
    min-height: calc(100vh - 200px);
    background-color: var(--bg);
}

/* ================================================================
   Utilities
   ================================================================ */

.gradient-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-bar { height: 3px; width: 48px; border-radius: var(--r-full); background: var(--grad); margin: 0 auto 14px; }
.grad-bar { height: 3px; background: var(--grad); }
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.section-label { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.label-brand { background: var(--grad-soft); border: 1px solid rgba(131,58,180,.15); color: var(--purple); }
.label-white { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
.section-eyebrow { display: flex; justify-content: center; margin-bottom: 16px; }
.section-title { font-family: var(--font-head); font-size: clamp(28px,4vw,46px); font-weight: 800; line-height: 1.12; color: var(--text); text-align: center; letter-spacing: -.025em; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 17px; max-width: 560px; margin: 16px auto 0; line-height: 1.75; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }


/* ================================================================
   Buttons
   ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--r-md);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    transition: all var(--t);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 4px 20px rgba(131,58,180,.3); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(131,58,180,.42); }
.btn-outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-ghost-white { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.2); }
.btn-ghost-white:hover { background: rgba(255,255,255,.18); }
.btn-white { background: #fff; color: var(--purple-dark); }
.btn-white:hover { background: #f8f5ff; transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Rétrocompat btn-primary (admin, ancien code) */
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 20px rgba(131,58,180,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(131,58,180,.42); }
.btn-secondary { background: var(--gray-light); color: var(--text); }
.btn-secondary:hover { background: var(--gray-medium); }


/* ================================================================
   Navbar (nouveau design)
   ================================================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--t);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links > li > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--t);
}

.nav-links > li > a:hover {
    color: var(--text);
    background: var(--border-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-login {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--r-sm);
    transition: color var(--t);
}

.nav-login:hover { color: var(--text); }

.nav-cta {
    background: var(--grad);
    color: #fff;
    border-radius: var(--r-sm);
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(131,58,180,.25);
    transition: all var(--t);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(131,58,180,.35);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile navbar */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-panel {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 12px 20px 20px;
        z-index: 99;
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .nav-panel.is-open { display: flex; }

    .nav-panel .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-panel .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-top: 12px;
        margin-top: 4px;
        border-top: 1px solid var(--border-light);
        gap: 8px;
    }

    .nav-links > li { width: 100%; }

    .nav-links > li > a {
        display: block;
        padding: 12px 10px;
        width: 100%;
        font-size: 15px;
    }

    .nav-cta, .nav-login {
        width: 100%;
        text-align: center;
        justify-content: center;
        border-radius: var(--r-md);
    }
}

/* ================================================================
   Nav Dropdown (Guides)
   ================================================================ */

.nav-has-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.nav-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: currentColor;
}

.nav-has-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.13);
    border: 1px solid #f0f0f0;
    padding: 8px;
    list-style: none;
    z-index: 1001;
    margin: 0;
}

.nav-has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li { padding: 0 !important; }

.nav-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 12px !important;
    border-radius: 10px;
    color: #1d1d1d !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    background: transparent !important;
    transition: background 0.15s !important;
}

.nav-dropdown a:hover {
    background: var(--bg-alt) !important;
    color: var(--purple) !important;
}

.nav-dd-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.nav-dropdown a strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.nav-dropdown a small {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 1px;
}

@media (max-width: 768px) {
    .nav-dropdown {
        display: block;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 0 0 0 12px;
        margin: 0;
        border-left: 2px solid var(--border);
    }

    .nav-has-dropdown .nav-dropdown-trigger {
        pointer-events: none;
        color: var(--text-muted) !important;
        font-size: 13px !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        background: transparent !important;
    }

    .nav-chevron { display: none; }

    .nav-dropdown a {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }

    .nav-dropdown a strong { font-size: .85rem; }
    .nav-dropdown a small { display: none; }
}


/* ================================================================
   Footer (nouveau design)
   ================================================================ */

.footer {
    background: var(--dark);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 60px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,.28);
    line-height: 1.7;
    max-width: 260px;
    margin-top: 18px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.38);
    transition: all var(--t);
}

.social-link:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.footer-col h4 {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.3);
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li a {
    font-size: 14px;
    color: rgba(255,255,255,.3);
    transition: color var(--t);
}

.footer-col li a:hover { color: rgba(255,255,255,.85); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.3);
    margin-bottom: 10px;
}

.footer-contact-item a { color: rgba(255,255,255,.3); }
.footer-contact-item a:hover { color: rgba(255,255,255,.7); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,.16);
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,.16);
    transition: color var(--t);
}

.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* Footer responsive */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}


/* ================================================================
   Toast
   ================================================================ */

#toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
}

.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background-color: #d1fae5; color: #065f46; }
.toast-error { background-color: #fee2e2; color: #991b1b; }
.toast svg { flex-shrink: 0; }

@media (max-width: 480px) {
    #toast-container { left: 10px; right: 10px; top: 10px; }
    .toast { max-width: 100%; }
}


/* ================================================================
   Forms (utilitaires partagés)
   ================================================================ */

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }

.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fff;
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--purple);
}

.alert { padding: var(--box-padding); border-radius: var(--r-md); margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }


/* ================================================================
   Box
   ================================================================ */

.box {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: var(--box-padding);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}


/* ================================================================
   Pages templates
   ================================================================ */

.page-content { max-width: 800px; margin: 0 auto; }
.page-header { text-align: center; margin-bottom: 3rem; }
.page-body { line-height: 1.8; }
.page-body img { max-width: 100%; height: auto; border-radius: var(--r-lg); margin: 2rem 0; }


/* ================================================================
   Guide cards / tags
   ================================================================ */

.guide-card-header { position: relative; }

.guide-card-tags {
    position: absolute;
    bottom: 0.55rem;
    left: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
    max-width: calc(100% - 1.1rem);
}

.guide-tag-pill {
    font-family: var(--font-body);
    font-size: 0.67rem;
    font-weight: 700;
    color: white;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
    transition: background 0.15s;
}

.guide-tag-pill:hover { background: var(--pillar-color,#833ab4); color: white; }

.guide-tag-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.tag-filter-btn {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    line-height: 1.4;
}

.tag-filter-btn:hover { border-color: var(--article-color,#fd1d1d); color: var(--article-color,#fd1d1d); }
.tag-filter-btn.active { background: var(--article-color,#fd1d1d); border-color: var(--article-color,#fd1d1d); color: white; }

.guides-empty-state { text-align: center; padding: 4rem 2rem; background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--border-light); }
.guides-empty-state p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.25rem; }


/* ================================================================
   Pillar hero compact (guides piliers)
   ================================================================ */

.pillar-hero-compact { min-height: 0 !important; padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.pillar-hero-compact .pillar-hero-inner { flex-direction: column; gap: 0; }
.pillar-hero-compact h1 { font-size: clamp(1.6rem,3vw,2.2rem) !important; }
.pillar-hero-compact .pillar-hero-sub { margin-bottom: 0 !important; }
.pillar-hero-compact .pillar-hero-cta { display: none; }


/* ================================================================
   Catcher (blocs édito)
   ================================================================ */

.catcher { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; border-radius: 8px; border-left: 4px solid; margin: 16px 0; }
.catcher-icon { flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.catcher-icon svg { width: 24px; height: 24px; }
.catcher-body { flex: 1; min-width: 0; }
.catcher-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.catcher-text { font-size: 0.95rem; line-height: 1.6; }
.catcher-text a { text-decoration: underline; }
.catcher-conseil { background: #ebf5fb; border-left-color: #3498db; color: #1a5276; }
.catcher-conseil .catcher-icon { color: #3498db; }
.catcher-attention { background: #fdedec; border-left-color: #e74c3c; color: #78281f; }
.catcher-attention .catcher-icon { color: #e74c3c; }
.catcher-astuce { background: #fef5e7; border-left-color: #e67e22; color: #7e5109; }
.catcher-astuce .catcher-icon { color: #e67e22; }
.catcher-neutre { background: #f4f6f6; border-left-color: #95a5a6; color: #4d5656; }
.catcher-neutre .catcher-icon { color: #7f8c8d; }
.catcher-recommandation { background: #f4ecf7; border-left-color: #8e44ad; color: #4a235a; }
.catcher-recommandation .catcher-icon { color: #8e44ad; }


/* ================================================================
   CMS FAQ (blocs articles — scopé à .faq-block)
   ================================================================ */

.faq-block { margin: 20px 0; border-radius: 8px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--article-color, #fd1d1d) 20%, #dee2e6); }
.faq-block .faq-item { border-bottom: 1px solid color-mix(in srgb, var(--article-color, #fd1d1d) 20%, #dee2e6); }
.faq-block .faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: color-mix(in srgb, var(--article-color, #fd1d1d) 10%, white); color: #1a1a2e; cursor: pointer; user-select: none; font-weight: 600; font-size: 0.95rem; transition: background 0.2s; }
.faq-question:hover { background: color-mix(in srgb, var(--article-color, #fd1d1d) 18%, white); }
.faq-question-text { flex: 1; }
.faq-chevron-cms { flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.3s ease; }
.faq-block .faq-item--open .faq-chevron-cms { transform: rotate(-135deg); }
.faq-answer { display: none; padding: 14px 18px; background: #fff; color: #333; font-size: 0.93rem; line-height: 1.7; }
.faq-block .faq-item--open .faq-answer { display: block; }
.faq-answer a { color: var(--article-color, #fd1d1d); text-decoration: underline; }


/* ================================================================
   CTA inline & bottom (guides/articles)
   ================================================================ */

.cta-inline {
    margin: 2.5rem 0;
    padding: 3rem 2rem;
    background: var(--pillar-gradient, linear-gradient(135deg, var(--pillar-color, #fd7200) 0%, color-mix(in srgb, var(--pillar-color, #fd7200) 65%, #000) 100%));
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-inline::before { content: ''; position: absolute; top: -60px; right: -50px; width: 240px; height: 240px; background: rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.cta-inline::after { content: ''; position: absolute; bottom: -40px; left: -40px; width: 160px; height: 160px; background: rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.cta-inline:empty { display: none; }
.cta-inline h1,.cta-inline h2,.cta-inline h3,.cta-inline h4,.cta-inline h5,.cta-inline h6,.cta-inline p,.cta-inline span,.cta-inline li,.cta-inline a:not(.btn) { color: white !important; position: relative; z-index: 1; }
.cta-inline .btn,.cta-inline a.btn,.cta-inline button.btn { background: white; color: #1a1a2e; border: none; border-radius: 100px; position: relative; z-index: 1; }
.cta-inline .btn:hover,.cta-inline a.btn:hover,.cta-inline button.btn:hover { background: #833ab4; color: white; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(131,58,180,.4); }

.cta-bottom { margin: 2.5rem 0 1.5rem; padding: 3rem 2rem; background: var(--grad); border-radius: 16px; text-align: center; position: relative; overflow: hidden; }
.cta-bottom:empty { display: none; }
.cta-bottom h1,.cta-bottom h2,.cta-bottom h3,.cta-bottom h4,.cta-bottom h5,.cta-bottom h6,.cta-bottom p,.cta-bottom span,.cta-bottom li,.cta-bottom a:not(.btn) { color: white; }
.cta-bottom .btn,.cta-bottom a.btn,.cta-bottom button.btn { background: white; color: #1a1a2e; border: none; border-radius: 100px; }
.cta-bottom .btn:hover,.cta-bottom a.btn:hover,.cta-bottom button.btn:hover { background: #833ab4; color: white; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(131,58,180,.4); }


/* ================================================================
   Guides hero / categories (page guides)
   ================================================================ */

.guides-hero { background: var(--grad); color: white; padding: 4rem 0 3rem; text-align: center; }
.guides-hero h1 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
.guides-hero .lead { font-size: 1.25rem; opacity: 0.95; }

.categories-nav { padding: 3rem 0; }
.categories-nav h2 { text-align: center; margin-bottom: 2rem; font-size: 2rem; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.category-card { padding: 2rem; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: all 0.3s; text-align: center; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-icon { font-size: 3rem; margin-bottom: 1rem; }
.category-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.category-card p { color: var(--text-muted); margin-bottom: 1rem; }
.category-link { color: var(--purple); font-weight: 600; }
.category-preview { margin: 4rem 0; }
.category-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 3px solid var(--purple); }
.category-preview-header h2 { font-size: 1.75rem; margin: 0; }
.guides-cta { background: var(--grad); border-radius: 16px; padding: 4rem 2rem; margin: 4rem 0; text-align: center; color: white; }
.cta-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-content p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.95; }
.category-search { margin-bottom: 2rem; }
.category-search form { display: flex; gap: 1rem; max-width: 600px; margin: 0 auto; }
.category-search .search-input { flex: 1; }

@media (max-width: 768px) {
    .category-preview-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .category-search form { flex-direction: column; }
}
.update-note{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;background:rgba(131,58,180,.08);border:1px solid rgba(131,58,180,.2);border-radius:var(--r-full);font-size:12px;font-weight:600;color:var(--purple-dark);margin-bottom:32px}.info-block{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:24px 28px;margin:20px 0}.info-block dl{display:grid;grid-template-columns:180px 1fr;gap:8px 16px}.info-block dt{font-size:13px;font-weight:600;color:var(--text-muted)}.info-block dd{font-size:13px;color:var(--text-2)}@media(max-width:960px){.info-block dl{grid-template-columns:1fr}}
.portal-footer-simple{background:var(--dark)}.portal-footer-simple .footer-bottom{padding:22px 32px}
