/*
Theme Name: Sente Bourrache
Template: generatepress
Version: 1.0.0
Description: Custom theme for La Fourchette de Mireille
*/

/* ---------------------------------------------------------------
   Palette : forest-canopy
   primary #006D77 · secondary #83C5BE · accent #2D9F93
   warm #F5EDE3 · surface #EDF6F9 · text #001219 · border #D1E7E4
   Spacing : comfortable (4rem / 1.5rem / 2rem)
   Radius  : rounded 16px · Shadow : subtle
   --------------------------------------------------------------- */

:root {
    --sb-primary: #006D77;
    --sb-secondary: #83C5BE;
    --sb-accent: #2D9F93;
    --sb-accent-dark: #00545C;
    --sb-warm: #F5EDE3;
    --sb-surface: #EDF6F9;
    --sb-ink: #001219;
    --sb-ink-soft: #4A5568;
    --sb-border: #D1E7E4;
    --sb-radius: 16px;
    --sb-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --sb-section-gap: 4rem;
    --sb-block-gap: 1.5rem;
}

/* Ancrage éditorial petit écran */
@media (max-width: 767px) {
    .inside-navigation::before {
        content: "Des fleurs dans l'assiette, des herbes dans la marmite — un blog curieux et gourmand.";
        font-style: italic;
        position: absolute;
        left: var(--gap-small, 10px);
        /* Stops short of the hamburger instead of running underneath it, and
           keeps to one clipped line so the logo above stays legible. */
        right: 118px;
        bottom: 6px;
        font-size: 11px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #CFE4E1;
        /* The generated box belongs to .inside-navigation for hit-testing, so
           without this it swallows the hamburger click and the menu never opens. */
        pointer-events: none;
    }
    .inside-navigation { position: relative; }
    /* The bar is given its own two rows: logotype on top, tagline underneath.
       The hamburger is stretched to the full bar height so the tagline still
       shares a row with it. */
    .mobile-header-navigation .inside-navigation { min-height: 78px; }
    .mobile-header-navigation .site-logo.mobile-header-logo {
        align-self: flex-start;
        margin-top: 7px;
    }
    .mobile-header-navigation button.menu-toggle { height: 78px; }
}

/* 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.88) !important;
}

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

/* --- Typographic rhythm ------------------------------------------------ */

body { font-size: 18px; line-height: 1.72; }

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.005em; }

.entry-content h2 {
    margin-top: var(--sb-section-gap);
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--sb-border);
}
.entry-content h3 { margin-top: 2.25rem; }
.entry-content p,
.entry-content ul,
.entry-content ol { margin-bottom: var(--sb-block-gap); }

.entry-content blockquote {
    border-left: 4px solid var(--sb-secondary);
    background: var(--sb-warm);
    border-radius: 0 var(--sb-radius) var(--sb-radius) 0;
    padding: 1.1rem 1.4rem;
    font-style: italic;
    margin-left: 0;
}

.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

/* --- Containers, cards -------------------------------------------------- */

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header {
    border-radius: var(--sb-radius);
    box-shadow: var(--sb-shadow);
}

.separate-containers .inside-article { padding: 2rem; }

@media (max-width: 767px) {
    .separate-containers .inside-article { padding: 1.25rem; }
}

.generate-columns .inside-article,
.blog .inside-article,
.archive .inside-article,
.search-results .inside-article {
    background-color: #ffffff;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.generate-columns .inside-article:hover,
.blog .inside-article:hover,
.archive .inside-article:hover,
.search-results .inside-article:hover {
    box-shadow: 0 6px 18px rgba(0, 32, 36, 0.13);
    transform: translateY(-2px);
}

.post-image img,
.page-header-image img,
.inside-article .post-image img {
    border-radius: var(--sb-radius);
}

/* Archive / blog cards: cap the featured image so a 1600px original
   cannot stretch the listing to several thousand pixels. */
.blog .inside-article .post-image img,
.archive .inside-article .post-image img,
.search-results .inside-article .post-image img,
.sb-grid-card img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
}

.entry-meta { color: var(--sb-ink-soft); font-size: 0.9rem; }

.read-more-wrap { margin-top: 0.85rem; }
.read-more-wrap a {
    display: inline-block;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    color: var(--sb-primary);
    text-decoration: none;
}
.read-more-wrap a:hover { color: var(--sb-accent-dark); text-decoration: underline; }

/* --- Navigation --------------------------------------------------------- */

.main-navigation .main-nav ul li a { font-family: 'PT Sans', sans-serif; font-weight: 700; }

.main-navigation .main-nav ul li.current-menu-item > a {
    box-shadow: inset 0 -3px 0 var(--sb-secondary);
}

/* --- Homepage: hero + grid --------------------------------------------- */

.sb-hero-une {
    margin: 0 0 var(--sb-section-gap);
    background: #ffffff;
    border-radius: var(--sb-radius);
    box-shadow: var(--sb-shadow);
    overflow: hidden;
}

.sb-hero-une__media { display: block; }
.sb-hero-une__media img {
    width: 100%;
    height: clamp(320px, 42vw, 520px);
    object-fit: cover;
    display: block;
}
.sb-hero-une__media--plain {
    height: clamp(320px, 42vw, 520px);
    background: linear-gradient(135deg, #006D77 0%, #2D9F93 100%);
}

.sb-hero-une__body { padding: 1.75rem 2rem 2rem; }

.sb-hero-une__kicker {
    display: inline-block;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--sb-primary);
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    margin-bottom: 0.9rem;
}

.sb-hero-une__title { font-size: clamp(1.5rem, 3.1vw, 2.15rem); margin: 0 0 0.6rem; line-height: 1.24; }
.sb-hero-une__title a { color: var(--sb-ink); text-decoration: none; }
.sb-hero-une__title a:hover { color: var(--sb-primary); }
.sb-hero-une__excerpt { margin: 0 0 1rem; color: var(--sb-ink-soft); }
.sb-hero-une__meta { font-size: 0.88rem; color: var(--sb-ink-soft); margin: 0 0 1rem; }

.sb-cta {
    display: inline-block;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    background: var(--sb-primary);
    color: #ffffff !important;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    text-decoration: none !important;
}
.sb-cta:hover { background: var(--sb-accent-dark); }

.sb-section-title {
    font-size: 1.45rem;
    margin: 0 0 1.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--sb-border);
}

.sb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: var(--sb-block-gap);
    margin-bottom: 1.8rem;
}

.sb-grid-card {
    background: #ffffff;
    border-radius: var(--sb-radius);
    box-shadow: var(--sb-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.sb-grid-card:hover { box-shadow: 0 6px 18px rgba(0, 32, 36, 0.13); transform: translateY(-2px); }
.sb-grid-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.sb-grid-card__cat {
    font-family: 'PT Sans', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sb-primary);
    font-weight: 700;
}
.sb-grid-card__title { font-size: 1.07rem; margin: 0; line-height: 1.35; }
.sb-grid-card__title a { color: var(--sb-ink); text-decoration: none; }
.sb-grid-card__title a:hover { color: var(--sb-primary); }
.sb-grid-card__excerpt { font-size: 0.93rem; color: var(--sb-ink-soft); margin: 0; }
.sb-grid-card__date { font-size: 0.82rem; color: var(--sb-ink-soft); }

.sb-grid-card__media--plain {
    aspect-ratio: 16 / 7;
    background: linear-gradient(135deg, #83C5BE 0%, #006D77 100%);
}

.sb-allposts { text-align: center; margin: 0 0 var(--sb-section-gap); }

/* --- About page : about-left-float ------------------------------------- */

.sb-portrait {
    float: left;
    width: 190px;
    margin: 0.3rem 1.6rem 1.1rem 0;
    border-radius: var(--sb-radius);
    box-shadow: var(--sb-shadow);
}
@media (max-width: 600px) {
    .sb-portrait { float: none; display: block; margin: 0 auto 1.3rem; }
}

.sb-signature {
    clear: both;
    margin-top: var(--sb-section-gap);
    padding: 1.3rem 1.5rem;
    background: var(--sb-warm);
    border-radius: var(--sb-radius);
}

/* --- Author card at the foot of a post ---------------------------------- */

.sb-authorcard {
    clear: both;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-top: 2.4rem;
    padding: 1.25rem 1.4rem;
    background: var(--sb-warm);
    border-radius: var(--sb-radius);
}
.sb-authorcard img { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 72px; object-fit: cover; }
.sb-authorcard__name { font-family: 'PT Sans', sans-serif; font-weight: 700; margin: 0 0 0.3rem; }
.sb-authorcard__name a { color: var(--sb-primary); text-decoration: none; }
.sb-authorcard p { margin: 0; font-size: 0.94rem; color: var(--sb-ink-soft); }

.sb-byline { font-size: 0.92rem; color: var(--sb-ink-soft); margin: 0 0 1.2rem; }
.sb-byline img { width: 30px; height: 30px; border-radius: 50%; vertical-align: -9px; margin-right: 0.45rem; }
.sb-byline a { color: var(--sb-primary); }

/* --- Sidebar ------------------------------------------------------------ */

.widget-area .widget {
    background: #ffffff;
    border-radius: var(--sb-radius);
    box-shadow: var(--sb-shadow);
    padding: 1.3rem 1.4rem;
}
.widget-area .widget .widget-title {
    font-size: 1.02rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--sb-border);
}
.widget-area .widget ul li { padding: 0.28rem 0; border: 0; }
.widget-area .widget a { text-decoration: none; }
.widget-area .widget a:hover { text-decoration: underline; }

.widget_search .search-field,
.search-form .search-field {
    border: 1px solid var(--sb-border);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-family: inherit;
    background: var(--sb-surface);
}
.widget_search .search-field:focus,
.search-form .search-field:focus { outline: 2px solid var(--sb-secondary); outline-offset: 1px; }

/* --- Footer : centered-dark -------------------------------------------- */

.site-footer .footer-widgets {
    background-color: #001219;
    color: #D1E7E4;
}
.site-footer .footer-widgets .inside-footer-widgets { text-align: center; }
.site-footer .footer-widgets .widget {
    background: none;
    box-shadow: none;
    padding: 0;
    max-width: 760px;
    margin: 0 auto;
}
.site-footer .footer-widgets .widget + .widget { margin-top: 1.4rem; }
.site-footer .footer-widgets p { color: #B9D6D3; margin-bottom: 1rem; }
.site-footer .footer-widgets a { color: #83C5BE; text-decoration: none; }
.site-footer .footer-widgets a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-widgets ul li {
    display: inline-block;
    margin: 0 0.55rem 0.4rem;
    font-size: 0.93rem;
}
.site-footer .site-info { text-align: center; }

.sb-footer-brand {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 1.12rem;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}

/* --- 404 ---------------------------------------------------------------- */

.sb-404 { text-align: center; padding: 1rem 0 2rem; }
.sb-404 h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.9rem; }
.sb-404 p { max-width: 560px; margin: 0 auto 1.6rem; color: var(--sb-ink-soft); }
.sb-404 .search-form { max-width: 420px; margin: 0 auto 1.6rem; }
.sb-404 ul { list-style: none; margin: 0; padding: 0; }
.sb-404 ul li { display: inline-block; margin: 0 0.5rem 0.5rem; }

/* --- Contact form (CF7) ------------------------------------------------- */

.wpcf7 label { display: block; font-family: 'PT Sans', sans-serif; font-weight: 700; margin-bottom: 1rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    border: 1px solid var(--sb-secondary);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    background: #ffffff;
    margin-top: 0.35rem;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: 2px solid var(--sb-accent);
    outline-offset: 1px;
    border-color: var(--sb-accent);
}
.wpcf7 .wpcf7-submit {
    background-color: #006D77;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.7rem;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

/* --- Scroll to top ------------------------------------------------------ */

.generate-back-to-top {
    border-radius: 50%;
    box-shadow: var(--sb-shadow);
}

/* --- Mobile header -----------------------------------------------------
   GP Menu Plus paints the mobile header with the navigation colours, so the
   band is teal and the logo used there is the light variant. Only the height
   is pinned — fixing both dimensions clips the glyphs. */

.mobile-header-navigation .site-logo.mobile-header-logo img {
    max-height: 44px;
    width: auto;
}
