/*
 Theme Name: Divi BMP
 Description: Divi Child Theme
 Author: Association St-Camille
 Author URI: https://www.st-camille.ch
 Template: Divi
 Version: 1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */
/*
 Theme Name: Divi BMP
 Description: Divi Child Theme
 Author: Association St-Camille
 Author URI: https://www.st-camille.ch
 Template: Divi
 Version: 1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */
#main-content{
  max-width: 1800px;
  margin: auto;
}
html{
  scrollbar-gutter: stable;

}


/* Menu Principal Desktop */
.et_pb_menu__menu>nav>ul>li{
margin: unset!important;
}

.et_pb_menu__menu>nav>ul>li>a{
  display: flex !important;
  justify-content: center!important;
  height: 32px !important;
  align-items: center!important;
  padding: unset!important;
}


.img-selector{
  color: #756647;
  user-select: none;
  background-color: white;
  margin-inline: .2rem;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  font-size: 30px;
  transition: all .5s;

}
.img-selector:hover{
  background-color:#756647;
  color: white;
  transition: all .5s;
}
.article_selector{
  width: calc(100% - 58px);
  display: flex;
  justify-content: space-between;
  padding-inline: .7rem;
  margin-bottom: .7rem;
  margin-inline: auto;
}
.article_selector a{
  background-color: unset!important;
  border-radius: 5px;
  color: #A58E6D;
  width: 29px;
  height: 29px;
  transition: all .5s;

}
.article_selector a:hover p{
  color: #7e6c52;
}
.article_selector a:first-of-type{
  align-items: center;
  display: flex;
}
.article_selector a:first-of-type span{
  margin-right: .7rem;
}
.article_selector a:last-of-type{
  align-items: center;
  display: flex;
  flex-direction: row-reverse;
}
.article_selector a:last-of-type span{
  margin-left: .7rem;
}
.article_selector a span{
  font-size: 29px!important;
  margin-inline: .2rem;
}
.article_selector a:hover span{
  border-radius: 5px;
  background-color: #A58E6D!important;
  color: white;
  transition: all .5s;
}

p{
    color:unset;
}
.article_container{
  width: 100%;
}
.search_results{
  width: 100%;
  height: 1.4rem;
  color: #A9926F;
  margin-bottom: .7rem;
  margin: auto;
  margin-right: 20px;
  
}
body > .search_results{
  display:none;
}
.not_found_link{
  background-color: unset!important;
  
}
.article_container h2{
    background-color: #C0AA82;
    color: white;
    vertical-align: center;
    line-height: 36px;
    padding: 0;
    padding-left: .7rem;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
}
.article_container .main_image{
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: .7rem;
}
.article_container .gallery_container{
    display: flex;
    margin-bottom: .7rem;
}
.article_container .gallery_image{
    width: 80px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-right: .7rem;
    border: 0px solid #BDAA87;
    transition: all .2s;

}
.gallery_image_container::after{
    content: '';
    width: 0px;
    background-color: #BDAA87;
    height: 7px;
    transition: all .2s ease-in-out;
    display: block;

}
.article_container .gallery_image_container:hover::after{
    content: '';
    width: 80px;
    background-color: #BDAA87;
    height: 7px;
    transition: all .2s ease-in-out;
}
.overlay{
    display: none;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    z-index: 2;
    padding: .7rem;
    
}
.activated{
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeInOut .6s ease-in-out;
}

#cross {
  background:black;
  height: 100px;
  position: relative;
  width: 20px;
}
#cross:after {
  background: black;
  content: "";
  height: 20px;
  left: -40px;
  position: absolute;
  top: 40px;
  width: 100px;
}
.imagepreview{
  max-height: 80vh;
}
.close_icon{
  width: 0;
  height: 0;
  position: relative;
  left: 100%;
  bottom: 25px;
}
.close_icon svg{
  color:white;
  width: 25px;
  height: 25px;
  background-color: black;
  border-radius: 100%;
  transition: all .2s;

}
.close_icon svg:hover{
  transform: scale(1.2);
  transition: .2s;
}
.elementsContainer{
  background-color: white;
  border-radius: 5px;
  padding: .7rem;
  padding-bottom: .3rem;
}
.article_list_container{
  padding-top: 0!important;
}
.article_list_container > div{
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  max-width: 1000px;
  min-width: 80%;

}
.article_list_container > div div{
  flex-basis: 100%;
}
.article_list_container article{
  max-width: 300px;
  aspect-ratio: 1 / 1;
  border: .5px solid black;
  padding: .7rem!important;
  width: 30%;
  margin-inline: .2rem;
  min-width: 200px!important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;

}
.et_pb_blog_0_tb_body article.et_pb_post .entry-title a
{
  text-decoration: none!important;
}
.article_list_container article .post-content{
  display: none;
}
.otgs-development-site-front-end{
  display: none!important;
}

  .article_list_container article img{
    
    object-fit: contain;
    height: 200px;
  }
  .article_description{
    margin-bottom: .7rem;
  }
  .category_selector{
    display:none;
  }
  div:has(>.wp-pagenavi){
    height: 20px;
  }
  .wp-pagenavi{
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    width: 100%;
    justify-content: center;
    left: 0;
  }
  .wp-pagenavi a{
    color: #877458!important;

  }
  .contrasted_hover:hover span{
    background-color: #756647!important;
  }
  .wpml-ls-native{
    background-color: unset!important;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding-inline: .7rem;
    /* bottom:1.4rem; */
  }
  .wpml-ls-native::before{
    display: none!important;
  }
@keyframes fadeInOut { 
    from { 
        opacity: 0; 
    } 
  
    to { 
        opacity: 1; 
    } 
}
@keyframes fadeOutIn {
    from {
        opacity:1;
    }
    to{
        opacity: 0;
    }
}
#page-container{
  max-width: 100vw;
  height: auto;


    /*max-width: 1620px;*/
    margin: auto;
}

article a{
  height: 90%;
  margin-bottom: 0!important;
  display: flex!important;
  align-items: center;
  margin-bottom: 5px;
  text-align: center;
}
article h6{
  height: auto;
  margin-bottom: 5px;
  text-align: center;

}
article h6,h5,h4 a{
  justify-content: center;
  height: auto;
}
@media all and (max-width:980px){
  .not_found_container .contrasted_hover:hover{
    background-color: unset!important;
    color: unset!important;
  }
  article{
    aspect-ratio: unset!important;
  }
  .not_found_link{
    color: #AF9773!important;
  }
  #nav_menu-2 > *:not(.category_selector){
    display: none;
  }
  div:has(> #nav_menu-2){
    padding: .3rem!important;
    border-radius: 5px;
  }
  .category_selector{
    margin-inline: auto;
  }
  .menu-categories-container{
    display: unset!important;
    background-color: #F5F2E2!important;
    margin: 0!important;

  }
  #menu-categories{
    
  }
  #menu-categories li{
    max-width: 100%;
    margin-inline: auto!important;
  }
  .mobile_menu_bar::before{
    bottom: .7rem!important;
    top: 0!important;
  }
  .header_img_column {
    width: 16.66%!important;
    max-width:16.66%!important;
  }
  .opened span::before{
    display: block;
    content: '';
    width: 32px;
    height: 32px;
    color: white;
    background-image: url('https://www.yves-piller.ch/vieux-bois-suisse-bouby-yves-piller/wp-content/uploads/2024/06/x.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: invert(100%);

    
  }
  .et_mobile_nav_menu li.wpml-ls-item{
    list-style: none;
    padding-left: 11px;
  padding-right: 11px;
  height: 100%;

  }
  .et_mobile_nav_menu li.wpml-ls-item a{
    color: white;
    height: 100%;
    

  }
  .et_mobile_nav_menu li.wpml-ls-item span{
    height: 100%;
    display: flex!important;
    align-items: center;
    font-weight: 700;
  }
  .wpml-ls-native:first-of-type{
    display: inline-block;
    text-align: center;
    min-width: 30px;
    position: relative;
  }
    .article_list_container > div{
        display: flex;
        flex-wrap: wrap;
        margin: auto;
        max-width: 1000px;
        width: min-content!important;
    
    }
    .article_list_container article{
      max-width: 200px;
      aspect-ratio: 1 / 1;
      border: .5px solid black;
      padding: .7rem;
      width: 30%;
      margin-inline: 16.4px;
      min-width: 220px;
      box-sizing: border-box;
  
    }
    .drop_down_open{
      transition: max-height .75s ease-in-out;
      max-height: 600px!important;
      height: auto!important;
    }
    #nav_menu-2 ul{
      max-height: 0px;
      overflow: hidden;
      transition: max-height .5s ease-in-out;
    }
    #nav_menu-2 ul li::before{
      content: unset!important;
    }
    .category_selector{
      background-color: #C0AA82;
      display: flex;
      height: 2.5rem;
      border-radius: .5rem;
      justify-content: center;
      align-items: center;
    }
    .category_selector:hover{
      background-color: #98886b;
    }
    .category_selector:active{
      background-color: #7d7057;
    }
    .category_selector{
      cursor: pointer;
    }
    .category_selector h3{
      padding: 0;
      font-weight: 600;
      user-select: none;
    }
    .icon_menu{
      font-size: 2rem;
      margin-bottom: -4px;
    }
    .category_selector{
      display:flex;
    }

}
div[data-cky-tag="detail-powered-by"]{
  display: none!important;
}
.show_form_button{
  width: 100%;
  height: auto!important;
  background-color: #C0AA82!important;
  height: 2.5rem;
  border-radius: .5rem;
  border: unset;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.show_form_button .et-pb-icon{
  display: none;
}
.show_form_button h3{
  font-size: 1.3rem;
  color: white;
  padding: .7rem;
  display: block;
  height: 100%;
}
.show_form_button:hover{
  background-color: #98886b!important;
}
.show_form_button:active{
  background-color: #81745b!important;
}
.formidable_container{
  max-height: 0;
  overflow: hidden;
  padding: 0!important;
  margin-bottom: .7rem;
  transition: all 1s;
  display: none;
}
.contact_form_open{
  transition: max-height .75s ease-in-out;
  transition-delay: .7s;
  max-height: 1200px!important;
  height: auto!important;
  display: block;
}
.article_selector a{
  text-decoration: none!important;
}
.article_selector .contrasted_hover:hover{
  background-color: none!important;
}
.custom_content{
  width: 100%;
}
a {
  text-decoration: none!important;
  justify-content: center;
}
.et-db #et-boc .et-l .et_pb_menu_0_tb_header.et_pb_menu #mobile_menu1.et_mobile_menu{
  background-color: #F6F2E1!important;
}
.et-db #et-boc .et-l .et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu{
  background-color: #F6F2E1!important;
}
#et-main-area{
  padding-inline: .7rem;
}

#mobile_menu1 li:nth-of-type(5)::before{
  content: '';
  display: none!important;
}
#mobile_menu1 li{
  line-height: 15px;
}
#mobile_menu1 li a{
  display: block!important;
  width: 100%;
}
#mobile_menu1 li a:has(.wpml-ls-native){
  display: contents!important;
}
#mobile_menu1{
  font-size: 0;
}
.mobile_nav #mobile_menu1{
  font-size: 0;
  padding-bottom: .8rem!important;
}
#mobile_menu1 .wpml-ls-native{
  display: inline-block;
  line-height: 36px;
  min-width: 25%;

  padding-inline: 0!important;
  background-color: #B1A683!important;
}
footer{
  padding-block: .7rem;
  width: 100%;
  position: absolute;
  left: 0;
}
footer div.et_pb_column{
  padding: .7rem;
}
