/*
Theme Name: Voie Sobre
Template: generatepress
Version: 1.0.0
Description: Custom theme for Pilote Pragmatique
*/

/* Submit-button palette rule */
body button.wpforms-submit,
body .wpcf7-submit,
body .ff-btn-submit {
  background-color: #006D77 !important;
  color: #ffffff !important;
}
body button.wpforms-submit:hover,
body .wpcf7-submit:hover,
body .ff-btn-submit:hover {
  filter: brightness(0.9) !important;
}

/* Front-page visible H1 */
.site-tagline-heading {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    color: inherit;
    margin: 0;
}

/* Magazine-feel separate containers (sig-E) — soft shadow between boxes */
.site-content,
.inside-article,
#main {
    border-radius: 4px;
}

/* Single-line-dark footer */
#colophon,
#colophon.site-footer {
    background-color: #001219;
    color: #EDF6F9;
}
#colophon a {
    color: #83C5BE;
    text-decoration: none;
}
#colophon a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* blog-1 composition — featured post section */
.featured-post-section {
    margin-bottom: 2.5rem;
}
.featured-post-section h2 {
    margin-bottom: 1rem;
}
.featured-post-card {
    display: flex;
    flex-direction: column;
    background-color: #EDF6F9;
    border-radius: 6px;
    overflow: hidden;
}
.featured-post-card__image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}
.featured-post-card__body {
    padding: 1.5rem 2rem;
}
.featured-post-card__body h3 {
    margin-top: 0;
}
.featured-post-card__link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: #006D77;
}
@media (min-width: 782px) {
    .featured-post-card {
        flex-direction: row;
    }
    .featured-post-card__image {
        width: 45%;
        height: auto;
    }
    .featured-post-card__body {
        width: 55%;
    }
}

/* Le journal — post grid */
.journal-grid-section {
    margin-bottom: 2.5rem;
}
.journal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.journal-card {
    background-color: #FFFFFF;
    border: 1px solid #D1E7E4;
    border-radius: 6px;
    overflow: hidden;
}
.journal-card__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.journal-card h3 {
    margin: 0.75rem 1rem 0.25rem;
    font-size: 1.05rem;
}
.journal-card p {
    margin: 0 1rem 0.5rem;
    font-size: 0.92rem;
}
.journal-card__link {
    display: inline-block;
    margin: 0 1rem 1rem;
    font-weight: 700;
    color: #006D77;
}
@media (max-width: 600px) {
    .journal-grid {
        grid-template-columns: 1fr;
    }
}

/* Category cards row — "Explorer par thème" */
.category-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}
.category-card {
    flex: 1 1 180px;
    border: 1px solid #D1E7E4;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #001219;
}
.category-card:hover {
    border-color: #006D77;
}
.category-card__name {
    display: block;
    font-weight: 700;
}
.category-card__count {
    display: block;
    color: #4A5568;
    font-size: 0.9rem;
}

/* Secondary nav toggle intercepts the mobile hamburger tap target — hide it
   below the mobile breakpoint so #mobile-header's own toggle is reachable. */
@media (max-width: 1024px) {
    #secondary-navigation .menu-toggle,
    button.secondary-menu-toggle {
        display: none !important;
    }
}

/* Mobile header hamburger alignment fix (GP Menu Plus) */
@media (max-width: 1024px) {
    #mobile-header .inside-navigation {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    #mobile-header .site-logo.mobile-header-logo {
        flex: 0 0 auto;
        max-width: 55%;
        overflow: hidden;
        order: 1;
    }
    #mobile-header .site-logo.mobile-header-logo img {
        max-width: 100%;
        height: 40px;
        width: auto;
    }
    #mobile-header button.menu-toggle {
        flex: 0 0 auto;
        order: 2;
        margin-left: auto !important;
    }
    #mobile-header #mobile-menu.main-nav {
        order: 3;
        flex: 0 0 100%;
    }
}

/* Post byline */
.post-byline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4A5568;
    font-size: 0.9rem;
    margin: 0.5rem 0 1.5rem;
}
.post-byline__avatar {
    border-radius: 50%;
    object-fit: cover;
}
.post-byline a {
    color: #006D77;
    font-weight: 700;
    text-decoration: none;
}

/* Author card */
.author-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background-color: #EDF6F9;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 2.5rem;
}
.author-card__avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-card__name {
    margin: 0;
    font-weight: 700;
}
.author-card__name a {
    color: #001219;
    text-decoration: none;
}
.author-card__title {
    margin: 0.15rem 0 0.5rem;
    font-size: 0.85rem;
    color: #4A5568;
}
.author-card__bio {
    margin: 0;
    font-size: 0.92rem;
}
