/*
Theme Name: Kreeks
Theme URI: 
Author: Ouest Communication
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0
Text Domain: kreeks
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/
:root {
  --shine-degree: 120deg;
  --shine-color: rgba(255, 255, 255, 0.6);
  --shine-effect: linear-gradient(
    var(--shine-degree),
    transparent,
    var(--shine-color),
    transparent
  );
  --shine-transition: all 0.47s ease-in-out;
}

::-webkit-scrollbar {
  width: 10px;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: rgba(193, 23, 28);
  border-radius: 5px;
  transition: all 0.15s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: #f08220;
}
::-webkit-scrollbar-track {
  background: #e1cab2;
}

html {
  overflow-x: hidden;
}
u {
  text-decoration: none !important;
}

.btn-shine a::before,
.img-shine figure::before,
.offer-shine a::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: var(--shine-effect) !important;
  left: -100% !important;
  transition: var(--shine-transition) !important;
}
.btn-shine,
.offer-shine {
  transition: all 0.26s ease-in-out;
}
.btn-shine:has(a:hover),
.offer-shine:has(a:hover) {
  transform: scale(1.03);
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}
.btn-shine a:hover::before,
.img-shine figure:has(a:hover)::before,
.offer-shine a:hover::before {
  left: 100% !important;
}

.search-bar .wp-block-search__inside-wrapper {
  height: 45px;
  border: 0;
}
.search-bar .wp-block-search__input {
  background: #f0dabecc url("./assets/img/search.png") no-repeat left center;
  background-position-x: 20px;
  padding-left: 60px;
  border: 0;
  color: #c1171c;
}
.search-bar .wp-block-search__input::placeholder {
  color: #c1171c;
}

.scrolling-active .header-bar {
  background-color: #1d1d1b;
  height: 80px;
}
.scrolling-active .header-bar .search-bar {
  display: none;
}
body:not(.home).scrolling-active
  #mega-menu-wrap-max_mega_menu_1
  #mega-menu-max_mega_menu_1
  > li.mega-menu-item
  > a.mega-menu-link {
  color: #ffffff !important;
}
body:not(.home).scrolling-active
  #mega-menu-wrap-max_mega_menu_1
  #mega-menu-max_mega_menu_1
  > li.mega-menu-item
  > a.mega-menu-link:hover {
  color: #c1171c !important;
}
.scrolling-active .header-logo {
  transform: scale(0.8);
  top: -40px;
}
.header-contact-btn {
  transition: all 0.3s ease-out;
}
.scrolling-active .header-contact-btn {
  top: -5px;
}

#mega-menu-wrap-max_mega_menu_1
  #mega-menu-max_mega_menu_1
  > li.mega-menu-megamenu
  > ul.mega-sub-menu {
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.main-menu {
  padding-left: 20px;
  padding-right: 20px;
}

.product-card {
  margin: 0 auto;
  width: 340px !important;
  height: 480px;
  box-shadow: 0px 10px 25px -3px rgba(0, 0, 0, 0.4);
}
.product-card .mini-logo svg {
  position: absolute;
  z-index: 3;
  top: -8px;
  width: 70px !important;
}
.product-card .deco-left svg {
  position: absolute;
  z-index: 3;
  top: 170px;
  left: 20px;
  width: 124px;
}
.product-card .deco-right svg {
  position: absolute;
  z-index: 0;
  top: 10px;
  right: -50px;
  width: 183px;
}
.product-card.gamme-bio .deco-left svg {
  width: 80px;
  top: 130px;
}

.client-card {
  margin: 0 auto;
  max-width: 506px !important;
  height: 400px;
  box-shadow: 0px 10px 25px -3px rgba(0, 0, 0, 0.4);
}

.post-actualites {
  grid-template-columns: 500px 500px !important;
  gap: 100px;
}
.block-actu img {
  border-radius: 16px !important;
}

.footer.wp-block-template-part {
  margin-top: 0;
}

/* SLIDER */
body .wp-block-lazyblock-slider .lazyblock-inner-blocks.is-draggable {
  display: block !important;
}
@media (min-width: 1024px) {
  .flickity-viewport {
    overflow: visible;
  }
  .flickity-slider > div {
    width: 340px;
  }
  #slider-clients .flickity-slider > div {
    width: 506px;
    margin-right: 80px;
  }
}
.flickity-slider > div {
  margin-right: 80px;
}
.flickity-page-dots {
  bottom: -75px;
}
.flickity-page-dots .dot {
  background-color: #c1171c;
}
.slider-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 300px;
  position: relative;
  top: 45px;
}
.flickity-prev-next-button {
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(0);
}
.flickity-prev-next-button.next {
  transform: scale(-1);
}
/* END SLIDER */

/* FORMULAIRE CATALOGUE */
#ff_3_email {
  border: 1px solid #c1171c;
  width: 25vw;
}
/* END FORMULAIRE CATALOGUE */

/* RESPONSIVE */
@media (max-width: 1000px) {
  .hide-on-mobile {
    display: none !important;
  }

  .mobile-fixed-header a {
    text-decoration: none;
  }
  .mobile-fixed-header .stk-block-content {
    flex-wrap: nowrap;
  }
  .mobile-fixed-header .stk-9d164a3-inner-blocks {
    align-items: center !important;
  }

  .wrap-on-mobile {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hide-on-mobile {
    display: none !important;
  }

  .mob-menu-header-holder {
    pointer-events: none;
  }
  .mob-menu-header-holder a {
    pointer-events: auto;
  }
  .mobmenur-container a {
    text-decoration: none;
  }
  .right-menu-icon-text {
    float: none !important;
    display: block !important;
    font-size: 0.7rem !important;
    text-align: center;
    position: relative;
    bottom: 6px;
    font-weight: 300 !important;
    line-height: 2em !important;
  }
  #mobmenuright li a,
  .right-menu-icon-text {
    font-family: "Avenir", sans-serif !important;
  }

  .flickity-prev-next-button.next {
    position: relative;
    right: 10px;
  }
  .flickity-prev-next-button.previous {
    position: relative;
    left: 10px;
  }
  .flickity-viewport {
    height: 510px !important;
  }
  #slider-arrows-clients {
    display: none !important;
  }
  .lazyblock-slider-Ze06cI .flickity-page-dots {
    display: none !important;
  }

  .wp-block-lazyblock-carte > div {
    flex-direction: column;
  }
  #vmap {
    width: 100% !important;
    height: 430px !important;
  }
  .wp-block-lazyblock-carte .products a {
    margin: 0 auto;
    width: 80%;
  }
  .wp-block-lazyblock-carte .product-infos {
    width: 100% !important;
    max-width: unset !important;
    background-size: unset !important;
    left: 0 !important;
  }
  .mobmenu-content{
    background-image: url('https://kreeks.ouestcommunication.com/wp-content/themes/kreeks/assets/img/kreeks.svg'),
                url('https://kreeks.ouestcommunication.com/wp-content/themes/kreeks/assets/img/blue-1.svg'),
                url('https://kreeks.ouestcommunication.com/wp-content/themes/kreeks/assets/img/catalogue-yellow.svg'),
                url('https://kreeks.ouestcommunication.com/wp-content/themes/kreeks/assets/img/clients-orange-1.svg');
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: 30% 70%, -30% 50%, 130% 50%, 130% 80%;
  }

  .notre-histoire-logos p.stk-block-text__text{
    font-size: 0.8rem !important;
    white-space: nowrap;
  }
}
