/*
Theme Name: Inspiro enfant
Theme URI: https://www.wpzoom.com/free-wordpress-themes/inspiro-lite/
Description: Thème enfant d'Inspiro.
Author: Le Jardin de Gwenn
Template: inspiro
Version: 1.0.14
Text Domain: inspiro-child
*/

.wp-block-button a:hover,
.wp-block-button.is-style-outline a:hover {
    background-color: #506a4d;
    border-color: #506a4d;
    color: #fff !important;
}

.navbar-nav > li > ul:before {
    border-bottom-color: #506a4d;
}

@media (min-width: 64em) {
    .navbar-nav ul {
        border-top-color: #506a4d;
    }
}

.site-footer .footer-widgets .widget,
.site-footer .footer-widgets .widget_block {
    margin-bottom: 0;
}

.site-footer .footer-widgets .widget p,
.site-footer .footer-widgets .wp-block-kadence-advancedheading {
    margin-bottom: 12px;
}

.site-footer .widget-column {
    min-width: 0;
    overflow-wrap: anywhere;
}

.header-navigation-wrapper .navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
}
.header-navigation-wrapper .navbar-nav > li {
    margin: 0 0.45em;
    flex-shrink: 0;
}
@media (min-width: 75em) {
    .header-navigation-wrapper .navbar-nav > li {
        margin: 0 0.7em;
    }
}
.header-navigation-wrapper .navbar-nav > li > a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.header-navigation-wrapper .menu-icon-contact > a,
.header-navigation-wrapper .menu-icon-cart > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    line-height: 0;
    border-bottom-color: transparent;
    transform: translateY(-4px);
}
.header-navigation-wrapper .menu-icon-contact > a::before,
.header-navigation-wrapper .menu-icon-cart > a::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: #fff;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.header-navigation-wrapper .menu-icon-contact > a::before {
    -webkit-mask-image: url("assets/icone-contact.svg");
    mask-image: url("assets/icone-contact.svg");
}
.header-navigation-wrapper .menu-icon-cart > a::before {
    -webkit-mask-image: url("assets/icone-panier.svg");
    mask-image: url("assets/icone-panier.svg");
}

.header-navigation-wrapper .menu-icon-contact > a:hover,
.header-navigation-wrapper .menu-icon-contact > a:focus,
.header-navigation-wrapper .menu-icon-cart > a:hover,
.header-navigation-wrapper .menu-icon-cart > a:focus {
    color: transparent;
    border-bottom-color: transparent;
    opacity: 1;
}
.header-navigation-wrapper .menu-icon-contact > a:hover::before,
.header-navigation-wrapper .menu-icon-contact > a:focus::before,
.header-navigation-wrapper .menu-icon-cart > a:hover::before,
.header-navigation-wrapper .menu-icon-cart > a:focus::before {
    opacity: 0.7;
}
.site-footer .footer-widgets {
    padding-bottom: 40px;
}
.site-info {
    text-align: center;
}
.site-info .copyright,
.site-info span[role="separator"] {
    display: none;
}
.site-info .legal-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-info .legal-menu > li {
    display: inline-flex;
    align-items: center;
}
.site-info .legal-menu > li + li::before {
    content: "|";
    margin: 0 0.45em;
}
.colors-custom .entry-content a:hover,
.colors-custom .entry-content a:focus,
.colors-custom .widget a:hover,
.colors-custom .widget a:focus,
.colors-custom .site-footer .widget-area a:hover,
.colors-custom .site-footer .widget-area a:focus,
.colors-custom .site-info a:hover,
.colors-custom .site-info a:focus,
.site-info a:hover,
.site-info a:focus {
    color: #93bc8e;
}
@media (min-width: 48em) {
    .site-footer .footer-widgets.widget-columns-4 .footer-widget-1,
    .site-footer .footer-widgets.widget-columns-4 .footer-widget-4 {
        flex: 0 0 25%;
    }
    .site-footer .footer-widgets.widget-columns-4 .footer-widget-2,
    .site-footer .footer-widgets.widget-columns-4 .footer-widget-3 {
        flex: 0 0 25%;
    }
    .site-footer .footer-widget-2 > .widget:first-child {
        width: calc(200% + 2.5em);
        text-align: center;
    }
    .site-footer .footer-widget-2 > .widget:first-child p {
        text-align: center;
    }
    .site-footer .footer-widget-3 > .widget:first-child {
        margin-top: 38px;
    }
}

.site-footer .footer-widgets .widget p:not(.wp-block-kadence-advancedheading) {
    font-size: 14px;
    line-height: 1.45;
}

/* Fond des réseaux : vert clair, pas le rose et le bleu des marques. */
.site-footer .wp-block-social-links .wp-social-link {
    background-color: #93bc8e !important;
    color: #fff !important;
}
.site-footer .wp-block-social-links .wp-social-link svg {
    color: #fff;
    fill: #fff;
}

/* Fleurs des trois rangées (restaurant, pâtisserie, traiteur). */
.kb-row-layout-id40_story_r > .kt-row-column-wrap,
.kb-row-layout-id40_story_p > .kt-row-column-wrap,
.kb-row-layout-id40_story_t > .kt-row-column-wrap {
    position: relative;
    overflow: hidden;
}

.kb-row-layout-id40_story_r > .kt-row-column-wrap > .wp-block-kadence-column,
.kb-row-layout-id40_story_p > .kt-row-column-wrap > .wp-block-kadence-column,
.kb-row-layout-id40_story_t > .kt-row-column-wrap > .wp-block-kadence-column {
    position: relative;
    z-index: 1;
}

.kb-row-layout-id40_story_r > .kt-row-column-wrap::before,
.kb-row-layout-id40_story_p > .kt-row-column-wrap::before,
.kb-row-layout-id40_story_t > .kt-row-column-wrap::before,
.kb-row-layout-id40_story_r > .kt-row-column-wrap::after,
.kb-row-layout-id40_story_p > .kt-row-column-wrap::after,
.kb-row-layout-id40_story_t > .kt-row-column-wrap::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}

.kb-row-layout-id40_story_r > .kt-row-column-wrap::before,
.kb-row-layout-id40_story_t > .kt-row-column-wrap::before {
    left: 0;
    top: 0;
    width: 168px;
    height: 100%;
    opacity: 0.42;
    background-position: left center;
}

.kb-row-layout-id40_story_r > .kt-row-column-wrap::before {
    background-image: url("assets/fleur-gerbe.svg");
}

.kb-row-layout-id40_story_t > .kt-row-column-wrap::before {
    background-image: url("assets/fleur-traiteur.svg");
}

.kb-row-layout-id40_story_p > .kt-row-column-wrap::before {
    right: 0;
    top: 0;
    width: 176px;
    height: 100%;
    opacity: 0.85;
    background-image: url("assets/fleur-patisserie.svg");
    background-position: right center;
}

.kb-row-layout-id40_story_r > .kt-row-column-wrap::after,
.kb-row-layout-id40_story_t > .kt-row-column-wrap::after {
    right: 12px;
    top: 12px;
    width: 110px;
    height: 110px;
    opacity: 0.4;
    background-image: url("assets/fleur-brindille.svg");
    background-position: right top;
}

.kb-row-layout-id40_story_p > .kt-row-column-wrap::after {
    left: 12px;
    bottom: 12px;
    width: 100px;
    height: 100px;
    opacity: 0.45;
    background-image: url("assets/fleur-brindille.svg");
    background-position: left bottom;
    transform: scaleX(-1);
}

@media (max-width: 781px) {
    .kb-row-layout-id40_story_r > .kt-row-column-wrap::before,
    .kb-row-layout-id40_story_p > .kt-row-column-wrap::before,
    .kb-row-layout-id40_story_t > .kt-row-column-wrap::before {
        top: 0;
        bottom: auto;
        width: 96px;
        height: 170px;
        opacity: 0.35;
        transform: none;
    }

    .kb-row-layout-id40_story_r > .kt-row-column-wrap::before,
    .kb-row-layout-id40_story_t > .kt-row-column-wrap::before {
        left: 0;
        right: auto;
    }

    .kb-row-layout-id40_story_p > .kt-row-column-wrap::before {
        right: 0;
        left: auto;
        opacity: 0.75;
    }

    .kb-row-layout-id40_story_r > .kt-row-column-wrap::after,
    .kb-row-layout-id40_story_p > .kt-row-column-wrap::after,
    .kb-row-layout-id40_story_t > .kt-row-column-wrap::after {
        width: 78px;
        height: 78px;
    }
}

/* Inspiro étire à 100vw les images d'une rangée pleine largeur. La mosaïque doit rester dans sa case. */
.entry-content .alignfull:not(.wp-block-group):not(.wp-block-post-featured-image):not(.wp-block-query):not(.wpzoom-blocks_portfolio-block):not(.wp-block-cover) .kb-gallery-image-contain img {
    width: 100%;
    max-width: 100%;
    height: 100%;
}

/* Galerie mosaïque Jetpack : le style du bloc n'est pas chargé en local */
.wp-block-jetpack-tiled-gallery .tiled-gallery__gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    width: 100%;
}
.wp-block-jetpack-tiled-gallery .tiled-gallery__row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0;
    width: 100%;
}
.wp-block-jetpack-tiled-gallery .tiled-gallery__col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    min-width: 0;
}
.wp-block-jetpack-tiled-gallery .tiled-gallery__col + .tiled-gallery__col {
    margin-inline-start: 4px;
}
.wp-block-jetpack-tiled-gallery .tiled-gallery__item {
    display: flex;
    flex-grow: 1;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    min-width: 0;
}
.wp-block-jetpack-tiled-gallery .tiled-gallery__item + .tiled-gallery__item {
    margin-top: 4px;
}
.wp-block-jetpack-tiled-gallery .tiled-gallery__item > img {
    display: block;
    height: auto;
    margin: 0;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    width: 100% !important;
}

.site-header.headroom--unpinned .navbar {
    background-color: #506a4d;
}
/* Galeries : le thème enveloppe chaque photo centrée, la grille native ne s'applique plus. */
.wp-block-gallery.has-nested-images {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px !important;
    margin-bottom: 32px;
}
.wp-block-gallery.has-nested-images > .wp-block-image {
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
    width: calc(50% - 8px);
}
.wp-block-gallery.has-nested-images > .wp-block-image:only-child {
    width: min(100%, 480px);
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 600px) {
    .wp-block-gallery.has-nested-images.columns-3 > .wp-block-image,
    .wp-block-gallery.has-nested-images.columns-default > .wp-block-image {
        width: calc(33.333% - 11px);
    }
    .wp-block-gallery.has-nested-images.columns-4 > .wp-block-image {
        width: calc(25% - 12px);
    }
    .wp-block-gallery.has-nested-images.columns-default > .wp-block-image:only-child {
        width: min(100%, 480px);
    }
}
.wp-block-gallery.has-nested-images > .wp-block-image figure {
    height: 100%;
    margin: 0;
    width: 100% !important;
}
.wp-block-gallery.has-nested-images.is-cropped > .wp-block-image img {
    aspect-ratio: 1;
    height: 100%;
    object-fit: cover;
    width: 100% !important;
}

.wp-block-gallery.has-nested-images.ljdg-rangee.is-cropped > .wp-block-image img {
    aspect-ratio: 3 / 2 !important;
    height: auto !important;
    object-fit: cover;
}
.wp-block-gallery.has-nested-images + .wp-block-gallery.has-nested-images {
    margin-top: -16px;
}
@media (max-width: 599px) {
    .wp-block-gallery.has-nested-images.columns-3 > .wp-block-image:last-child:nth-child(3) {
        width: 100%;
    }
}

/* Une image seule, dans sa colonne, reste centrée sur mobile. */
@media (max-width: 781px) {
    .entry-content .kt-inside-inner-col > .wp-block-image,
    .entry-content .kt-inside-inner-col > figure.wp-block-image,
    .entry-content .wp-block-kadence-image {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .entry-content .kt-inside-inner-col > .wp-block-image > figure,
    .entry-content .kt-inside-inner-col > figure.wp-block-image {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .entry-content .kt-inside-inner-col > .wp-block-image img,
    .entry-content .kt-inside-inner-col > figure.wp-block-image img,
    .entry-content .wp-block-kadence-image img {
        margin-left: auto;
        margin-right: auto;
    }
}
/* Boutons hors blocs (en-tête, boutique, formulaires) : même échelle que les boutons Gutenberg. */
.custom-header-button,
.woocommerce div.product form.cart .button,
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
div.wpforms-container-full .wpforms-form input[type=submit],
div.wpforms-container-full .wpforms-form button[type=submit],
.wpcf7-submit {
    font-size: 12px;
    letter-spacing: 0.4px;
    padding: 6px 12px;
}
/* Grille boutique : les boutons Woo en pastille prenaient toute la carte. */
.wc-block-grid__product-add-to-cart.wp-block-button {
    justify-content: center;
}
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link.wc-block-components-product-button__button {
    width: auto;
    align-self: center;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.2px;
    padding: 6px 12px;
    border-radius: 16px;
}

/* Le sous-titre du bandeau a déjà un saut de ligne : on le respecte. */
.site-description {
    white-space: pre-line;
}

/* Modèle sans titre : le contenu démarre sous le menu, sans la bande blanche du titre. */
.page.page-template-sans-titre .entry-content {
    margin-top: 0;
}

/* Connectée, la barre WordPress est déjà décalée, mais le thème ajoute encore sa hauteur. */
.admin-bar.page.page-template-sans-titre .entry-content {
    margin-top: -32px;
}

@media (max-width: 782px) {
    .admin-bar.page.page-template-sans-titre .entry-content {
        margin-top: -46px;
    }
}