/*
Theme Name: Groupe Kerne
Theme URI: 
Author: 
Author URI: 
Description: Site du groupe Kerne
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: groupe-kerne
Tags: 
*/

a.actif {
    font-weight: 700;
    text-decoration: underline;
    opacity: 1;
}


.nav-univers a {
    width: 36px;
    height: 36px;
    display: block;
    text-indent: -600px;
    background-repeat: no-repeat;
}

.icon-preheader-groupe-kerne {
    padding-right: .75rem;
    border-right: 1px solid #fff;
}

.icon-preheader-groupe-kerne a {
    width: 152px;
    height: 21px;
    background-image: url(./assets/img/logo/preheader/preheader-logo-groupe-kerne.svg);
    background-position: center center;

}

.icon-preheader-kerne-paysage {
    padding-left: .35rem ;
}

.icon-preheader-kerne-paysage a {
    background-image: url(./assets/img/logo/preheader/preheader-logo-kerne-paysage.svg);
}

.icon-preheader-kerne-paysage a.active, .icon-preheader-kerne-paysage a.hover {
    background-image: url(./assets/img/logo/preheader/preheader-logo-kerne-paysage-active.svg);
}


.icon-preheader-broleon-elagage a {
    background-image: url(./assets/img/logo/preheader/preheader-logo-broleon.svg);
}

.icon-preheader-broleon-elagage a.active, .icon-preheader-broleon-elagage a:hover {
    background-image: url(./assets/img/logo/preheader/preheader-logo-broleon-active.svg);
}

.icon-preheader-kerne-elagage a {
    background-image: url(./assets/img/logo/preheader/preheader-logo-kerne-elagage.svg);
}

.icon-preheader-kerne-elagage a.active, .icon-preheader-kerne-elagage a:hover {
    background-image: url(./assets/img/logo/preheader/preheader-logo-kerne-elagage-active.svg);
}

.icon-preheader-valoribois a {
    background-image: url(./assets/img/logo/preheader/preheader-logo-valorisbois.svg);
}

.icon-preheader-valoribois a.active, .icon-preheader-valoribois a:hover {
    background-image: url(./assets/img/logo/preheader/preheader-logo-valorisbois-active.svg);
}

.icon-preheader-kerra a {
    background-image: url(./assets/img/logo/preheader/preheader-logo-kerra.svg);
}

.icon-preheader-kerra a.active, .icon-preheader-kerra a:hover {
    background-image: url(./assets/img/logo/preheader/preheader-logo-kerra-active.svg);
}


.icon-preheader-terrassement a {
    background-image: url(./assets/img/logo/preheader/preheader-logo-terrassement.svg);
}

.icon-preheader-terrassement a.active, .icon-preheader-terrassement a:hover {
    background-image: url(./assets/img/logo/preheader/preheader-logo-terrassement-active.svg);
}

.icon-preheader-abri {
    background-image: url(./assets/img/logo/preheader/preheader-logo-abri.svg);
}

.icon-preheader-abri a.active, .icon-preheader-abri a:hover {
    background-image: url(./assets/img/logo/preheader/preheader-logo-abri-active.svg);
}


.overflow-hidden {
    overflow: hidden;
}






.meta-localisation {
    list-style: none;
    padding: 0;

}

.meta-localisation a{
    display: inline-flex;
    gap:.5rem;
    font-size: 1.5rem;
    align-items: center;
    text-decoration: none;
    color: var(--wp--preset--color--text-default);
    padding:10px;
    border-radius: 6px;
    transition: all .25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.meta-localisation a:hover{
    background-color: var(--wp--preset--color--gray-warm);
}

.meta-localisation a:before {
    content:"";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M12 3a7 7 0 0 0-7 7c0 1.892.853 3.678 2.292 5.547 1.215 1.578 2.77 3.12 4.44 4.776l.268.266.268-.266c1.67-1.656 3.225-3.198 4.44-4.776C18.147 13.678 19 11.892 19 10a7 7 0 0 0-7-7m-9 7a9 9 0 0 1 18 0c0 2.526-1.147 4.74-2.708 6.767-1.304 1.694-2.974 3.349-4.641 5.002q-.474.469-.944.938a1 1 0 0 1-1.414 0q-.47-.469-.944-.938c-1.668-1.653-3.337-3.308-4.641-5.002C4.147 14.74 3 12.527 3 10m9-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0' clip-rule='evenodd'/%3E%3C/svg%3E");
    display: block;
    width: 24px;
    height: 24px;
}


.meta-keywords {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.meta-keywords a{
    font-size: .75rem;
    padding: .25rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--wp--preset--color--text-default);
    background-color: var(--wp--preset--color--gray-warm);
    transition: all .25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.meta-keywords .wp-block-post-terms__separator {
    display: none;
}

.meta-keywords a:hover{
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
}



.grid-image .wp-block-cover {
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grid-image .wp-block-cover:hover {
    transform: scale(1.01);
}


@media screen and (max-width:960px) {
    .grid-image {
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }
    .grid-image > * {
        grid-column: span 2;
    }
    .grid-md-2 {
        grid-template-columns: repeat(2,1fr)!important;
    }
    .grid-md-3 {
        grid-template-columns: repeat(3,1fr)!important;
    }
    .grid-md-4 {
        grid-template-columns: repeat(4,1fr)!important;
    }
}

@media screen and (max-width:640px) {
    .grid-sm-2 {
        grid-template-columns: repeat(2,1fr)!important;
    }
    .grid-sm-3 {
        grid-template-columns: repeat(3,1fr)!important;
    }



    .grid-image {
        grid-template-columns:1fr
    }
    .grid-image > * {
        grid-column: span 2;
    }
}


/* === Grille 3 colonnes === */
.realisations-grid-section {
    padding: 2rem 0;
}

.realisations-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Décalage sur les éléments 2 et 5 */
.realisation-card.offset-top {
    margin-top: -3rem;
}

/* === Carte normale === */
.realisation-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.realisation-card:hover {
    transform: translateY(-8px);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    position: relative;
    padding-bottom: 133.33%; /* Ratio 3:4 */
    overflow: hidden;
    border-radius: 6px;
}

.realisation-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.realisation-card:hover .realisation-thumbnail {
    transform: scale(1.05);
}

.card-content {

}

.card-title {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: normal;
    margin: 1rem 0;
}

.card-excerpt {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === Section fullwidth === */
.realisation-featured-section {
    padding: 3rem 0;
    background: var(--wp--preset--color--gray-warm);
}

.realisation-card-full {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.card-full-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    max-width: var(--wp--style--global--wide-size);
    margin: auto;
    gap: 2rem;
}

.card-full-link:hover {
    transform: translateY(-5px);
}

.card-full-image {
    position: relative;
    grid-column: span 2;
    border-radius: 10px;
}

.realisation-thumbnail-full {
    transition: transform 0.3s ease;
    height: 450px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card-full-link:hover .realisation-thumbnail-full {
    transform: scale(1.02);
}

.card-full-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-epingle {
    display: inline-block;
    background: var(--wp--preset--color--primary, #0073aa);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-full-title {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    line-height: 1.2;
}

.card-full-excerpt {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-full-link-text {
    display: inline-block;
 
    color: var(--wp--preset--color--text-default);
    font-weight: 600;
    font-size: 1rem;
}

.card-full-link-text span {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: .5rem;
}


.card-full-link-text span:after {
    content:"";
    width: 0;
    height: 2px;
    display: block;
    position: absolute;
    background-color: transparent;
    bottom: 0;
    transition: all 0.3s ease;
}

.card-full-link:hover .card-full-link-text span:after {
width: 100%;
background-color: var(--wp--preset--color--accent);
}


/* === Pagination === */
.realisations-pagination {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
}

.realisations-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.realisations-pagination .page-numbers:hover,
.realisations-pagination .page-numbers.current {
    background: var(--wp--preset--color--primary, #0073aa);
    color: white;
    border-color: var(--wp--preset--color--primary, #0073aa);
}

.z-100 {
    z-index: 100!important;
}


/* === Responsive === */

/* Tablette */
@media (max-width: 1024px) and (min-width: 769px) {
    .realisations-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .realisation-card.offset-top {
        margin-top: -2rem;
    }
    
    .card-full-image {
        padding-bottom: 50%; /* Ratio 2:1 sur tablette */
    }
    
    .card-full-title {
        font-size: 1.75rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .realisations-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .realisation-card.offset-top {
        margin-top: 0; /* Pas de décalage sur mobile */
    }
    
    .card-full-image {
        padding-bottom: 56.25%; /* Ratio 16:9 sur mobile */
        margin-bottom: 1rem;
    }
    
    .card-full-title {
        font-size: 1.5rem;
    }
    
    .card-full-excerpt {
        font-size: 1rem;
    }
    
    .realisation-featured-section {
        padding: 2rem 0;
    }
    
    .realisation-card-full {
        padding: 0 1rem;
    }
    .hidden-mobile {
        display: none;
    }
    .vertical-mobile {
        flex-direction: column!important;
    }
    .center-mobile {
        justify-content: center!important;
        text-align: center!important;
    }


}

.w100 {
    width: 100%;
}

.nowrap {
    white-space: nowrap!important;
  flex-wrap: nowrap!important;
}

.decalage-vertical-centre {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }

.card.gray {
    filter: grayscale(1);
    transition: all ease-in 250ms;
}

.card.gray:hover {
    filter: grayscale(0);
} 


.list-cards.offset ul li:nth-child(3n+2) .card {
    margin-top: 100px;


}

.overflow-x-hidden {
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

.overflow-x-hidden::-webkit-scrollbar {
    display: none;
}


.overflow-y-hidden {
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

.overflow-y-hidden::-webkit-scrollbar {
    display: none;
}


.wp-block-navigation > .wp-block-navigation-item {
    height: 73px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 0 transparent;
    transition: all ease-in 250ms;
  }

  .wp-block-navigation > .wp-block-navigation-item:hover, 
  .wp-block-navigation > .wp-block-navigation-item.current-menu-item,
  .wp-block-navigation > .wp-block-navigation-item.current-menu-ancestor {
    box-shadow: inset 0 -4px 0 0 var(--wp--preset--color--accent);
  }


  .wp-block-navigation .wp-block-navigation-item__label {
    color:var(--wp--preset--color--accent);
  }


  .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    background-color:var(--wp--preset--color--accent);
  }

  .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    color:var(--wp--preset--color--white);
  }

  .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
    white-space: nowrap;
    color:var(--wp--preset--color--white);

  }

.card-actu {
height: 100%;
}

.card-actu .wp-block-post-excerpt__more-text{
    margin-top: .75rem;
    display: inline-block;
    position: relative;
}

.card-actu .wp-block-post-excerpt__more-text .wp-block-post-excerpt__more-link {
    text-decoration: none;
    color:var(--wp--preset--color--text-default);
    font-size: .85rem;
    display: flex;
}

.card-actu .wp-block-post-excerpt__more-text .wp-block-post-excerpt__more-link:after{
    content:"";
    display: inline-block;
    background-color: var(--wp--preset--color--accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='18' height='14' viewBox='0 0 18 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7H17M17 7L11 1M17 7L11 13' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='18' height='14' viewBox='0 0 18 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7H17M17 7L11 1M17 7L11 13' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center center;
    width: 18px;
    margin-left: .5rem;
     transition: all ease-in 250ms;

}

.card-actu .wp-block-post-excerpt__more-text .wp-block-post-excerpt__more-link:before{
    content:'';
    position: absolute;
    bottom: -5px;
    width: 0;
    height: 3px;
    transition: all ease-in 250ms;
    background-color: var(--wp--preset--color--accent);
}

.card-actu:hover .wp-block-post-excerpt__more-text .wp-block-post-excerpt__more-link:before,
.card-actu .wp-block-post-excerpt__more-text .wp-block-post-excerpt__more-link:hover:before {
    width: 100%;
}



.card-actu:hover .wp-block-post-excerpt__more-text .wp-block-post-excerpt__more-link:after,
.card-actu .wp-block-post-excerpt__more-text .wp-block-post-excerpt__more-link:hover:after {
 margin-left: .75rem;
}

.contact-form-container label{
    font-size: .75rem;

}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea
{
    width: 100%;
    box-sizing: border-box;
    padding: .5rem;
    border: 1px solid #c2c7cb;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--text-default);
        transition: all 150ms ease-in;
}


.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container input[type="tel"]:focus,
.contact-form-container textarea:focus {
    box-shadow: 0 0px 5px var(--wp--preset--color--accent);
    outline: none !important;
    border-color: var(--wp--preset--color--text-default);
}

.contact-form-container input[type="text"].wpcf7-not-valid,
.contact-form-container input[type="email"].wpcf7-not-valid,
.contact-form-container input[type="tel"].wpcf7-not-valid,
.contact-form-container textarea.wpcf7-not-valid {
    border-color: var(--wp--preset--color--vivid-red);
}


.contact-form-container .wp-block-button {
    position: relative;
}

.contact-form-container .wp-block-button p {
    line-height: 0;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0 .5rem;
}

.contact-form-container .wpcf7-not-valid-tip {
    font-size: .85rem;
    color:var(--wp--preset--color--vivid-red);
}


.contact-form-container .wp-block-button p .wpcf7-spinner {
    position: absolute;
    margin: 0;
    flex-shrink: 0;
}

.contact-form-container .wp-block-button__link {
    padding: 1.6rem 1.6rem;
}


.taxonomy-product_cat figure {
    position: relative;
    margin: 0 !important;
        width: 100%;
    height: 440px;
    overflow: hidden;
      border-radius: 6px;
}

.taxonomy-product_cat figure a::before {
    content: "";
  color: #fff;
  background-color: rgb(0 0 0 / .2);
  position: absolute;
  width: 100%;
  height: 99%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transform: scale(.8);
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  opacity: 0;
  z-index: 1;
}

.taxonomy-product_cat figure a::after {
content: "";
  position: absolute;
  display: block;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  border: 1px solid #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='97' viewBox='0 0 96 97' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M48 32.3809V64.3809M32 48.3809H64M88 48.3809C88 70.4723 70.0914 88.3809 48 88.3809C25.9086 88.3809 8 70.4723 8 48.3809C8 26.2895 25.9086 8.38086 48 8.38086C70.0914 8.38086 88 26.2895 88 48.3809Z' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center center;
  top: 0;
  left: 0;
  margin: 30px;
  -webkit-transform: scale(.8);
  transform: scale(.8);
  -webkit-transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  z-index: 2;
  opacity: 0;
}


.taxonomy-product_cat:hover figure a:after, .taxonomy-product_cat:hover figure a:before {
opacity: 1;
  transform: scale(1);
}



.taxonomy-product_cat h3 a {
    margin: 0!important;
    font-family: var(--wp--preset--font-family--satoshi)!important;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 1.35rem;
  margin: 0;
  padding: 0!important;
  font-weight: 600!important;

}

.taxonomy-product_cat h3 {
    margin: 0!important;
} 

.taxonomy-product_cat:hover h3 a {
    gap:.5rem;
}


.taxonomy-product_cat h3 a:before {
content: "";
  display: block;
  width: 0px;
  padding: 20px 0;
  transition: width 0.2s ease;
}

.taxonomy-product_cat:hover h3 a:before {
width: 3px;
  flex-shrink: 0;
  padding: 20px 0;
  background-color: var(--wp--preset--color--accent);
}


.taxonomy-product_cat img {
    overflow: hidden;
    width: 100%;
    height: 440px;
    object-fit: cover;
        transition: all .25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.taxonomy-product_cat:hover img {
    transform: scale(1.1);
}

.taxonomy-product_cat a {
    text-decoration: none;
}

.wp-block-add-to-cart-form .woocommerce-variation-price {
    font-size: 2rem;
}

.wp-block-woocommerce-product-price[data-wp-interactive] {
  font-size: 1rem !important;
  margin: 1rem 0;
  font-weight: bold;
}

.single_add_to_cart_button,
 .wc-block-cart__submit-button,
 .wc-block-components-checkout-place-order-button,
 .wc-block-mini-cart__footer-checkout {
    background-color: var(--wp--preset--color--accent);
    color:white;
    border-radius: 3px;
        transition: all .25s cubic-bezier(0.165, 0.84, 0.44, 1);

}

.single_add_to_cart_button:hover, .single_add_to_cart_button:focus,
.wc-block-cart__submit-button:hover, .wc-block-cart__submit-button:focus,
.wc-block-components-checkout-place-order-button:hover, .wc-block-components-checkout-place-order-button:focus,
.wc-block-mini-cart__footer-checkout:hover, .wc-block-mini-cart__footer-checkout:focus {
  background-color: var(--wp--preset--color--accent);
filter: saturate(1.2); /* 110% = +10% de saturation */
}

.woocommerce-breadcrumb a {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}


.wp-block-woocommerce-cart-items-block .wc-block-cart-item__wrap .wc-block-components-product-name{
    text-decoration: none;
    font-size: 1.5rem!important;
    font-weight: bold;
        font-family: var(--wp--preset--font-family--satoshi)!important;
        color:var(--wp--preset--color--text-default);
}

.wp-block-woocommerce-cart-items-block .wc-block-cart-item__wrap .wc-block-components-product-name:hover{
    color:var(--wp--preset--color--accent);
}

.wp-block-woocommerce-filled-mini-cart-contents-block a.wc-block-components-product-name{
    font-size: 1.25rem!important;
      color:var(--wp--preset--color--text-default);
    text-decoration: none;
}