/*
Theme Name: Ardoise Bronze
Description: Thème enfant GeneratePress pour Stratégie PME
Author: Stratégie PME
Template: generatepress
Version: 1.0
*/

/* ==========================================================================
   Self-hosted fonts
   ========================================================================== */
@import url('assets/fonts/fonts.css');

/* ==========================================================================
   CSS variables — terracotta-warm palette
   ========================================================================== */
:root {
    --gp-primary: #B45309;
    --gp-secondary: #D97706;
    --gp-accent: #CA8A04;
    --gp-surface: #FFFBEB;
    --gp-bg: #FFFFFF;
    --gp-text: #1C1917;
    --gp-text-secondary: #57534E;
    --gp-border: #F5E6D0;
}

/* ==========================================================================
   Typography — Roboto (headings) / Roboto Slab (body)
   ========================================================================== */
body {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 400;
    color: #1C1917;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.widget-title {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    color: #1C1917;
}

/* ==========================================================================
   Links
   ========================================================================== */
a {
    color: #B45309;
}

a:hover {
    color: #D97706;
}

/* ==========================================================================
   sig-F — no-sidebar, one-container, nav-float-right
   ========================================================================== */
.site-main {
    max-width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #F5E6D0;
}

.main-navigation a {
    color: #1C1917;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #B45309;
}

/* ==========================================================================
   Homepage H1 (screen-reader only)
   ========================================================================== */
.sr-h1-homepage {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Blog post cards
   ========================================================================== */
.entry-header .entry-title a {
    color: #1C1917;
    text-decoration: none;
}

.entry-header .entry-title a:hover {
    color: #B45309;
}

.post-image {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.button,
.wp-block-button__link,
input[type="submit"],
.search-submit,
.wp-block-search__button {
    background-color: #B45309;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
.search-submit:hover,
.wp-block-search__button:hover {
    background-color: #D97706;
    color: #FFFFFF;
}

/* Search inputs */
.search-field,
.wp-block-search__input {
    border: 1px solid #F5E6D0;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 0.95em;
    width: 100%;
    background: #FFFFFF;
    color: #1C1917;
}

/* ==========================================================================
   single-line-light footer
   ========================================================================== */
.site-footer {
    background-color: #FFFFFF;
    border-top: 1px solid #F5E6D0;
    padding: 16px 0;
    text-align: center;
    color: #57534E;
    font-size: 0.875rem;
    font-family: 'Roboto', Arial, sans-serif;
}

.site-footer a {
    color: #57534E;
    text-decoration: none;
}

.site-footer a:hover {
    color: #B45309;
}

/* Footer widget area: none */
.footer-widgets {
    display: none;
}

/* ==========================================================================
   Surface / card backgrounds
   ========================================================================== */
.widget-area,
blockquote {
    background-color: #FFFBEB;
    border-left: 3px solid #B45309;
    padding: 1rem 1.25rem;
}

/* ==========================================================================
   Section heading — "Du côté du blog"
   ========================================================================== */
.homepage-section-heading {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1C1917;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #B45309;
}

/* ==========================================================================
   Mobile — hamburger, nav breakpoint
   ========================================================================== */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-control-wrapper {
        display: block;
    }
}

/* ==========================================================================
   Mobile header — hamburger alignment fix (nav-float-right layout)
   ========================================================================== */
@media (max-width: 768px) {
    #mobile-header .inside-navigation {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }
    #mobile-header .navigation-branding {
        flex: 1 1 auto;
        min-width: 0;
    }
    #mobile-header button.menu-toggle {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

/* WPForms submit button — button element not matched by input[type="submit"] */
body button.wpforms-submit {
    background-color: #B45309 !important;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

button.wpforms-submit:hover,
button.wpforms-submit:focus {
    background-color: #D97706;
    color: #FFFFFF;
}
