@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --lof-red: #c91f28;
    --lof-red-dark: #94161c;
    --lof-cream: #fff1c9;
    --lof-paper: #fffaf0;
    --lof-white: #ffffff;
    --lof-yellow: #ffd45a;
    --lof-brown: #3b2412;
    --lof-brown-soft: #7a4b24;
    --lof-green: #5f8f35;
    --lof-border: rgba(59,36,18,.16);
    --lof-shadow: 0 14px 30px rgba(59,36,18,.08);
    --lof-radius: 22px;
    --lof-title-font: "Baloo 2", system-ui, sans-serif;
    --lof-text-font: "Nunito", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.lof-theme-design {
    margin: 0;
    background:
        radial-gradient(circle at 8% 6%, rgba(255, 212, 90, .25), transparent 28%),
        radial-gradient(circle at 92% 10%, rgba(201, 31, 40, .12), transparent 26%),
        linear-gradient(180deg, #fffdf7 0%, #fff2cf 100%);
    color: var(--lof-brown);
    font-family: var(--lof-text-font);
    font-size: 16px;
    line-height: 1.55;
}

body.lof-theme-design::before {
    content: "";
    position: fixed;
    inset: auto 0 0 0;
    height: 90px;
    background-image: url("../img/grass.svg");
    background-repeat: repeat-x;
    background-size: 360px auto;
    background-position: bottom center;
    opacity: .18;
    pointer-events: none;
    z-index: 0;
}

.lof-main-content {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 18px 60px;
}

body.lof-theme-design h1,
body.lof-theme-design h2,
body.lof-theme-design h3,
body.lof-theme-design h4,
body.lof-theme-design .entry-title {
    font-family: var(--lof-title-font);
    color: var(--lof-brown);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.02em;
}

body.lof-theme-design h1,
body.lof-theme-design .entry-title {
    font-size: clamp(2rem, 4.2vw, 3.7rem);
}

body.lof-theme-design h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

body.lof-theme-design h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

body.lof-theme-design p {
    font-size: 1rem;
}

/* Header compact */
.lof-site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 241, 201, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(59,36,18,.13);
    box-shadow: 0 8px 18px rgba(59,36,18,.06);
}

.lof-header-inner {
    max-width: 1180px;
    min-height: 68px;
    margin: 0 auto;
    padding: 8px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
}

.lof-brand {
    display: flex;
    align-items: center;
    min-width: 180px;
}

.lof-brand .custom-logo {
    max-height: 52px;
    width: auto;
}

.lof-brand-text {
    display: grid;
    text-decoration: none;
    color: var(--lof-brown);
}

.lof-brand-main {
    font-family: var(--lof-title-font);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--lof-red);
    line-height: 1;
}

.lof-brand-sub {
    font-size: .78rem;
    color: var(--lof-brown-soft);
    font-weight: 700;
}

.lof-primary-nav {
    justify-self: end;
}

.lof-menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lof-menu-list li {
    margin: 0;
}

.lof-menu-list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--lof-brown);
    font-size: .94rem;
    font-weight: 800;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.lof-menu-list a:hover,
.lof-menu-list .current-menu-item > a {
    background: #fff;
    color: var(--lof-red);
    transform: translateY(-1px);
}

.lof-header-cta,
.lof-btn,
.lofp-btn,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
button.single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    background: var(--lof-red) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--lof-text-font);
    font-weight: 900 !important;
    font-size: .96rem !important;
    border: none !important;
    box-shadow: 0 8px 16px rgba(201,31,40,.22);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.lof-header-cta:hover,
.lof-btn:hover,
.lofp-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button:hover {
    background: var(--lof-red-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(201,31,40,.27);
}

.lof-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}

.lof-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--lof-brown);
    margin: 4px 0;
}

.lof-menu-toggle em {
    display: none;
}

/* Page blocks */
.lofp-hero,
.lofp-page-title,
.lofp-steps,
.lofp-shortcode,
.lofp-contact-band,
.lofp-alert,
.lofp-two-cols,
.lofp-gallery-placeholder,
.lofp-faq,
.lofp-legal,
.entry-content > section,
.woocommerce,
.woocommerce-cart-form,
.cart_totals,
form.checkout,
#order_review,
#payment,
.woocommerce-order,
.woocommerce-order-details,
.woocommerce-customer-details {
    background: var(--lof-paper) !important;
    border: 1px solid var(--lof-border) !important;
    border-radius: var(--lof-radius) !important;
    box-shadow: var(--lof-shadow) !important;
    padding: clamp(18px, 3vw, 32px) !important;
    margin: 24px 0 !important;
    color: var(--lof-brown) !important;
    position: relative;
    overflow: hidden;
}

.lofp-hero::after,
.lofp-page-title::after,
.lofp-contact-band::after,
.lofp-shortcode::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -18px;
    width: 150px;
    height: 105px;
    background-image: url("../img/eggs.svg");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .18;
    pointer-events: none;
}

.lofp-hero::before,
.lofp-page-title::before,
.lofp-steps::before {
    content: "";
    position: absolute;
    left: -20px;
    top: -10px;
    width: 210px;
    height: 90px;
    background-image: url("../img/straw.svg");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .22;
    pointer-events: none;
}

.lofp-hero,
.lofp-page-title,
.entry-title {
    background:
        linear-gradient(135deg, #fff4d3, #fffaf0 60%, #fff) !important;
    border: 2px solid rgba(201,31,40,.14) !important;
}

.lofp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
    gap: clamp(18px, 4vw, 36px);
    align-items: center;
}

.lofp-hero > *,
.lofp-page-title > *,
.lofp-shortcode > *,
.lofp-contact-band > *,
.lofp-steps > * {
    position: relative;
    z-index: 1;
}

.lofp-kicker {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--lof-red);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .86rem;
}

.lofp-hero h1,
.lofp-page-title h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.1rem, 4.8vw, 4rem);
}

.lofp-hero p,
.lofp-page-title p {
    max-width: 760px;
    font-size: 1.02rem;
}

.lofp-flyer-card {
    background: #fff !important;
    border: 3px solid var(--lof-red) !important;
    border-radius: 24px !important;
    padding: 14px !important;
    box-shadow: 0 16px 30px rgba(59,36,18,.14) !important;
    transform: rotate(.7deg);
}

.lofp-flyer-visual {
    min-height: 320px !important;
    border-radius: 18px !important;
    background-image: url("../img/cocotte-home.png") !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #fff6df !important;
}

.lofp-flyer-card strong {
    color: var(--lof-red);
    font-family: var(--lof-title-font);
    font-size: 1.7rem;
}

.lofp-flyer-card span {
    display: block;
    border-left: 4px solid var(--lof-yellow);
    padding-left: 10px;
    font-weight: 800;
    color: var(--lof-brown);
}

/* Cards */
.lofp-icons,
.lofp-step-grid,
.lof-product-grid,
.lof-collection-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 16px !important;
}

.lofp-icons article,
.lofp-step-grid article,
.lof-product-card,
.lof-collection-card,
.lof-payment-card,
.lof-farm-card,
.lof-pickup-card,
.lofp-faq p,
.lofp-legal p,
.lofp-two-cols > div,
.woocommerce ul.products li.product {
    background: #fff !important;
    border: 1px solid var(--lof-border) !important;
    border-radius: 19px !important;
    box-shadow: 0 10px 20px rgba(59,36,18,.07) !important;
    padding: 18px !important;
    color: var(--lof-brown) !important;
}

.lofp-icons article::before,
.lof-product-card::after,
.lof-collection-card::after {
    content: "";
    display: block;
    width: 38px;
    height: 26px;
    background-image: url("../img/eggs.svg");
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 8px;
    opacity: .9;
}

.lofp-step-grid span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--lof-red);
    color: #fff;
    font-weight: 900;
    margin-bottom: 10px;
}

.lof-product-card h3,
.lof-collection-card h3,
.woocommerce-loop-product__title {
    color: var(--lof-red) !important;
    font-family: var(--lof-title-font) !important;
    font-weight: 800 !important;
}

/* WooCommerce */
.woocommerce table.shop_table {
    background: #fff !important;
    border-radius: 18px !important;
    overflow: hidden;
    border: 1px solid var(--lof-border) !important;
}

.woocommerce table.shop_table th {
    background: rgba(255,212,90,.25) !important;
    color: var(--lof-brown) !important;
    font-weight: 900 !important;
}

.woocommerce input,
.woocommerce textarea,
.woocommerce select,
body.lof-theme-design input,
body.lof-theme-design textarea,
body.lof-theme-design select {
    border-radius: 12px !important;
    border: 1px solid rgba(59,36,18,.2) !important;
    padding: 10px 12px !important;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.lofp-alert {
    border-radius: 16px !important;
    border-top: none !important;
    border-left: 6px solid var(--lof-red) !important;
    background: #fffaf0 !important;
    box-shadow: 0 8px 16px rgba(59,36,18,.06) !important;
}

.woocommerce-Price-amount,
.price {
    color: var(--lof-red) !important;
    font-weight: 900 !important;
}

/* FAQ / legal */
.lofp-faq h2,
.lofp-legal h2 {
    border-bottom: 3px solid rgba(255,212,90,.72);
    padding-bottom: 6px;
}

/* Footer */
.lof-site-footer {
    position: relative;
    background: var(--lof-brown);
    color: #fff;
    margin-top: 40px;
    overflow: hidden;
}

.lof-footer-deco {
    height: 56px;
    background-image: url("../img/grass.svg");
    background-repeat: repeat-x;
    background-size: 320px auto;
    background-position: bottom center;
    opacity: .75;
}

.lof-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 18px 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.lof-footer-brand strong {
    font-family: var(--lof-title-font);
    font-size: 1.8rem;
    color: var(--lof-yellow);
}

.lof-footer-brand p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.78);
}

.lof-footer-links,
.lof-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lof-footer-links a,
.lof-footer-menu a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.lof-back-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--lof-red);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(59,36,18,.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.lof-back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 920px) {
    .lof-header-inner {
        grid-template-columns: auto auto auto;
    }

    .lof-menu-toggle {
        display: inline-block;
        justify-self: end;
    }

    .lof-primary-nav {
        display: none;
        position: absolute;
        left: 14px;
        right: 14px;
        top: 68px;
        background: var(--lof-paper);
        border: 1px solid var(--lof-border);
        border-radius: 20px;
        padding: 12px;
        box-shadow: var(--lof-shadow);
    }

    .lof-primary-nav.is-open {
        display: block;
    }

    .lof-menu-list {
        display: grid;
        justify-content: stretch;
    }

    .lof-menu-list a {
        min-height: 42px;
    }

    .lofp-hero {
        grid-template-columns: 1fr;
    }

    .lofp-flyer-card {
        transform: none;
    }

    .lof-footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body.lof-theme-design {
        font-size: 15.5px;
    }

    .lof-header-inner {
        min-height: 62px;
        gap: 10px;
    }

    .lof-brand-main {
        font-size: 1.25rem;
    }

    .lof-brand-sub {
        display: none;
    }

    .lof-header-cta {
        padding: 9px 12px !important;
        font-size: .88rem !important;
    }

    .lofp-hero,
    .lofp-page-title,
    .lofp-shortcode,
    .lofp-contact-band,
    .lofp-faq,
    .lofp-legal,
    .woocommerce {
        padding: 17px !important;
        border-radius: 18px !important;
    }
}


/* v1.0.1 - Cocotte visuel accueil + favicon */
