/*
Theme Name: Finance Pragmatique
Description: Child theme for Finance Pragmatique - laliberteatoutprix.fr
Template: generatepress
Version: 1.0
*/

/* === Fonts === */
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Crimson Text';
    src: url('assets/fonts/CrimsonText-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Crimson Text';
    src: url('assets/fonts/CrimsonText-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Crimson Text';
    src: url('assets/fonts/CrimsonText-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === Palette colors === */
:root {
    --color-primary: #4D7C0F;
    --color-secondary: #65A30D;
    --color-accent: #84CC16;
    --color-surface: #F7FEE7;
    --color-bg: #FFFFFF;
    --color-text: #1A2E05;
    --color-text-secondary: #4B5563;
    --color-border: #D9F0B4;
    --fluentform-primary: #1E293B;
}

/* === Body font override (body weight: 400 not 300) === */
body {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 400;
    color: #1A2E05;
    font-size: 18px;
    line-height: 1.7;
}

/* === Headings === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
    color: #1A2E05;
    line-height: 1.3;
}

/* === Navigation === */
.main-navigation a {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* === Footer dark === */
.site-footer {
    background-color: #1A2E05;
    color: #D9F0B4;
    text-align: center;
    padding: 40px 20px;
}
.site-footer a {
    color: #84CC16;
}
.site-footer a:hover {
    color: #F7FEE7;
    text-decoration: underline;
}
/* footer-widget-area visible (widgets enabled) */
.footer-widget-area {
    background-color: #1A2E05;
    padding: 40px 20px 20px;
}
.inside-footer-widgets {
    color: #D9F0B4;
}
.inside-footer-widgets h2, .inside-footer-widgets h3 {
    color: #F7FEE7;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.inside-footer-widgets a {
    color: #84CC16;
}
.inside-footer-widgets a:hover {
    color: #F7FEE7;
}

/* === Footer centered single block === */
.site-footer .inside-site-footer {
    text-align: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}
.site-footer .copyright-bar {
    text-align: center;
    width: 100%;
}

/* === Posts page header === */
.page-header {
    background: var(--color-surface);
    padding: 40px 0;
    margin-bottom: 30px;
}
.page-header .page-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 2rem;
    color: var(--color-primary);
}

/* === Article cards === */
.post-image img {
    border-radius: 4px;
}

/* === Links === */
a {
    color: #4D7C0F;
}
a:hover {
    color: #65A30D;
}

/* === Mobile hamburger fix === */
#mobile-header {
    position: relative;
    min-height: 60px;
}
#mobile-header .inside-navigation {
    flex-wrap: nowrap;
    min-height: 60px;
    align-items: center;
}
#mobile-header .site-logo {
    flex: 1;
}
#mobile-header .menu-toggle {
    margin-left: auto;
    flex-shrink: 0;
}
/* Remove main-nav from flex flow so it doesn't collapse the header */
@media (max-width: 1024px) {
    #mobile-header .main-nav {
        position: absolute !important;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 999;
        width: 100% !important;
        flex: none !important;
        background: #222222;
    }
    /* Secondary nav is desktop-only; mobile header provides navigation */
    #secondary-navigation {
        display: none !important;
    }
}

/* === Scroll-to-top: hidden (per brief) === */
.generate-back-to-top {
    display: none !important;
}

/* === Content area === */
.entry-content {
    font-size: 18px;
    line-height: 1.75;
}

/* === Author card at bottom of posts === */
.fp-author-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 24px;
    margin: 40px 0 20px;
}
.fp-author-card img {
    border-radius: 50%;
    width: 72px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
}
.fp-author-card .fp-author-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.fp-author-card .fp-author-title {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}
.fp-author-card .fp-author-bio {
    font-size: 0.95rem;
    color: var(--color-text);
}


/* Search button — override GP form_button_background_color */
body input[type="submit"].search-submit,
body .search-submit {
    background-color: #1E293B !important;
    border-color: #1E293B !important;
    color: #ffffff !important;
}

/* FluentForms submit button — override GP form_button_background_color */
body .ff-btn-submit,
body .ff-btn,
body .ff-btn-primary,
body .fluentform .ff-btn {
    background-color: #1E293B !important;
    border-color: #1E293B !important;
    color: #ffffff !important;
}
body .ff-btn:hover,
body .ff-btn-primary:hover {
    background-color: #334155 !important;
    border-color: #334155 !important;
}
