/**
 * Update Juin 2018
 * Anthony Brard - leoggo.net
 */

/* Main menu */
.menu_wrap.type_2 .main_menu > li > a,
.menu_wrap.type_2 .main_menu > li:nth-of-type(1) > a,
.menu_wrap.type_2 .main_menu > li:nth-of-type(7) > a,
.menu_wrap.type_2 .main_menu > li:nth-of-type(9) > a,
.menu_wrap.type_2 .main_menu > li:nth-of-type(10) > a{
  max-width: 320px!important;
  width: 100%!important;
}

@media only screen and (max-width: 767px){
  .color-571a66 > a{background-color: #571a66!important;}
  .color-ed797d > a{background-color: #ed797d!important;}
  .color-eb5d0b > a{background-color: #eb5d0b!important;}
  .color-e0001e > a{background-color: #e0001e!important;}
  .color-70c2b2 > a{background-color: #70c2b2!important;}
  .color-21a1e1 > a{background-color: #21a1e1!important;}
  .color-9a929d > a{background-color: #9a929d!important;}
  .color-ddda2a > a{background-color: #ddda2a!important;}
  .color-70c2b2 > a{background-color: #70c2b2!important;}
}
@media only screen and (min-width: 768px){
  #block-system-main-menu .main_menu{
    display: flex;
  }
  #block-system-main-menu .main_menu > li{
    display: block;
    float: none;
    flex: 1 1 auto;
  }
  #block-system-main-menu .main_menu > li > a{
    max-width: none!important;
    height: 100%!important;
    padding: 5px !important;
    display: flex;
    align-items: center;
  }
  #block-system-main-menu .main_menu > li > a h2,
  #block-system-main-menu .main_menu > li > a span{
    margin-top: 0!important;
    line-height: 1.2;
  }
}
@media only screen and (min-width: 993px){

}
@media only screen and (min-width: 1201px){
  #block-system-main-menu .main_menu > li > a{
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  /*#block-system-main-menu .main_menu > li:nth-child(2){
    max-width: 140px;
  }
  #block-system-main-menu .main_menu > li:nth-child(3){
    max-width: 140px;
  }*/
  #block-system-main-menu .main_menu > li:nth-child(1){
    min-width: 95px;
  }
  #block-system-main-menu .main_menu > li:nth-child(8){
    min-width: 136px;
  }

  .product_single_preview{
    margin-bottom: 200px;
  }

}

/* page catégories */
.page-taxonomy-term .page_content_offset{
  padding-top: 0;
}
.taxonomy-term.vocabulary-terms{
  position: relative;
}
.taxonomy-term.vocabulary-terms .title-main-category{
  margin-left: 60px;
  margin-bottom: 0;
  display: flex;
  min-height: 60px;
  align-items: center;
}
.taxonomy-term.vocabulary-terms > .content > .col-sm-12{
  position: static;
}
.taxonomy-term.vocabulary-terms div.picto-category{
  position: absolute;
  top: 10px;
  left: 8px;
  display: block;
  margin: 0;
}
.taxonomy-term.vocabulary-terms .field-body{
  width: 100%;
  max-width: 92%;
  padding-left: 15px!important;
}

@media only screen and (min-width: 768px){
  .taxonomy-term.vocabulary-terms .field-body{
    max-width: none;
  }
}
@media only screen and (min-width: 992px){
  .taxonomy-term.vocabulary-terms div.picto-category{
    width: 40px;
    height: 40px;
  }
  .taxonomy-term.vocabulary-terms div.picto-category i{
    font-size: 40px;
    left: 0px;
    top: 1px;
  }
  .taxonomy-term.vocabulary-terms .title-main-category{
    margin-left: 65px;
    min-height: 60px;
  }
}

/* term description accordion */
.taxonomy-term-description{
  height: auto;
  max-height: 100em;
  transition: all .5s;
  overflow: auto;
  position: relative;
  margin-bottom: 5px;
}
.taxonomy-term-description.closed{
  max-height: 10em;
  overflow: hidden;
}
.taxonomy-term-description .readmore{
  position: absolute;
  font-size: 12px;
  bottom: 0;
  right: 0;
  width: 100%;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
  padding: 30px 0 0px;
  cursor: pointer;
  /*background: #fff;*/

  background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
}

@media only screen and (min-width: 992px){
  .taxonomy-term-description.closed{
    max-height: 8em;
  }
}
@media only screen and (min-width: 1201px){
  .taxonomy-term-description.closed{
    max-height: 6.5em;
  }
}

/* liste produits + filtres */
.view-liste-produits-filtre > .view-content > h2,
.filters-list{
  clear: both;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
}
.filters-list{
  margin-left: 15px;
  margin-right: 15px;
  margin-top: 10px;
}
.view-liste-produits-filtre > .view-content > h2 a,
.filters-list a{
  /*font-size: 12px;
  display: inline-block;
  border: 1px solid;
  line-height: 1;
  padding: 5px 10px;
  margin: 0 5px 5px 0;*/
  display: flex;
  background-color: #e9e9e9;
  padding: 4px 10px;
  margin-right: 3px;
  margin-bottom: 3px;
  width: auto;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #4f4f51;
  font-size: 14px;
  font-weight: bold;
  line-height: 16px;
}
.page-taxonomy-term-96 .view-liste-produits-filtre > .view-content > h2 a,
.page-taxonomy-term-97 .filters-list a,
.page-taxonomy-term-98 .filters-list a,
.page-taxonomy-term-99 .filters-list a,
.page-taxonomy-term-130 .filters-list a,
.page-taxonomy-term-185 .filters-list a{
  background-color: #4c4c4c; /* BG + foncé avec le jaune */
}
.view-liste-produits-filtre > .view-content > h2 a:hover,
.view-liste-produits-filtre > .view-content > h2 a:focus,
.view-liste-produits-filtre > .view-content > h2 a.current,
.filters-list a:hover,
.filters-list a:focus,
.filters-list a.current{
  border-color: transparent;
  color: #fff!important;
}
.view-liste-produits-filtre .views-row{
  /*max-width: 260px;*/
  margin: auto;
}
.view-liste-produits-filtre .views-row img{
  width: 100%;
}
.view-liste-produits-filtre .views-row + h3,
.view-liste-produits-filtre .views-row + h2{
  padding-top: 30px;
}
.view-liste-produits-filtre .views-row .animate_ftb{
  opacity: 1;
  visibility: visible;
  -webkit-transform: none;
  -moz-transform: none;
  -o-transform: none;
  -ms-transform: none;
  transform: none;
}
.view-liste-produits-filtre .product_item {
  width: auto;
}
@media only screen and (max-width: 691px) {
  .view-liste-produits-filtre .product_item {
    margin-left: 0;
    margin-right: 0;
  }
}
.view-liste-produits-filtre .product_item .photoframe.photoframe{
  -webkit-box-shadow: 5px 5px 5px 0 rgba(155, 155, 155, 0.5)!important;
  -moz-box-shadow: 5px 5px 5px 0 rgba(155, 155, 155, 0.5)!important;
  -o-box-shadow: 5px 5px 5px 0 rgba(155, 155, 155, 0.5)!important;
  box-shadow: 5px 5px 5px 0 rgba(155, 155, 155, 0.5)!important;
  -webkit-transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
  -ms-transition: all 0.5s linear;
  -o-transition: all 0.5s linear;
  transition: all 0.5s linear;
  margin: 0!important;
  width: auto;
}
.view-liste-produits-filtre .product_item .photoframe.photoframe:hover{
  -webkit-box-shadow: 10px 10px 5px 0 rgba(155, 155, 155, 1)!important;
  -moz-box-shadow: 10px 10px 5px 0 rgba(155, 155, 155, 1)!important;
  -o-box-shadow: 10px 10px 5px 0 rgba(155, 155, 155, 1)!important;
  box-shadow: 10px 10px 5px 0 rgba(155, 155, 155, 1)!important;
}
.view-liste-produits-filtre .product_item figcaption{
  padding: 7px 0;
  background: #571a66;
}
.view-liste-produits-filtre .product_item figcaption h3{
  margin-bottom: 0;
  font-size: 1.14em;
}
.view-liste-produits-filtre .product_item figcaption a{
  color: #fff;
}
.view-liste-produits-filtre .product_item figcaption .clearfix{
  display: none;
}

@media only screen and (min-width: 692px){
  .view-liste-produits-filtre .view-content{
    margin-left: -10px;
    margin-right: -10px;
  }
  .view-liste-produits-filtre > .view-content > h2,
  .filters-list{
    margin-left: 10px;
    margin-right: 7px;
    flex-wrap: nowrap;
  }
  .view-liste-produits-filtre > .view-content > h2 a,
  .filters-list a{
    width: 100%;
    min-height: 40px;
  }
  .view-liste-produits-filtre .views-row{
    width: 33.3333%;
    float: left;
  }

  .view-product-list{
    margin-left: -5px;
    margin-right: -5px;
  }
}

@media only screen and (min-width: 993px){
  .view-product-list{
    margin-left: -10px;
    margin-right: -10px;
  }
  .category_grid .product_item{
    width: 225px;
  }
  .category_grid .product_item img{
    width: 100%;
  }
}

@media only screen and (min-width: 1201px){
  .view-liste-produits-filtre .view-content{
    margin-left: -15px;
    margin-right: -15px;
  }
  .view-liste-produits-filtre .views-row{
    max-width: none;
  }
  .view-liste-produits-filtre > .view-content > h2,
  .filters-list{
    margin-left: 15px;
    margin-right: 12px;
  }
  .category_grid .product_item{
    width: 269px;
  }
}

/* page actualités */
.page-taxonomy-term-149 #block-system-main .content > .node,
.page-taxonomy-term-123 #block-system-main .content > .node,
.page-taxonomy-term-124 #block-system-main .content > .node,
.page-taxonomy-term-125 #block-system-main .content > .node{
  margin: 0 0 2rem;
}
.page-taxonomy-term-149 #block-system-main .content > .node .main,
.page-taxonomy-term-123 #block-system-main .content > .node .main,
.page-taxonomy-term-124 #block-system-main .content > .node .main,
.page-taxonomy-term-125 #block-system-main .content > .node .main{
  display: flex;
}
.page-taxonomy-term-149 #block-system-main .content > .node h2 span,
.page-taxonomy-term-123 #block-system-main .content > .node h2 span,
.page-taxonomy-term-124 #block-system-main .content > .node h2 span,
.page-taxonomy-term-125 #block-system-main .content > .node h2 span{
  background: rgba(255,255,255,.75);
}

@media only screen and (min-width: 480px){
  .page-taxonomy-term-149 #block-system-main,
  .page-taxonomy-term-123 #block-system-main,
  .page-taxonomy-term-124 #block-system-main,
  .page-taxonomy-term-125 #block-system-main{
    margin-left: -3%;
    margin-right: -3%;
  }
  .page-taxonomy-term-149 #block-system-main .content > .node,
  .page-taxonomy-term-123 #block-system-main .content > .node,
  .page-taxonomy-term-124 #block-system-main .content > .node,
  .page-taxonomy-term-125 #block-system-main .content > .node{
    float: left;
    width: 44%;
    margin: 0 3% 6%;
  }
}

@media only screen and (min-width: 768px){
  .page-taxonomy-term-149 #block-system-main,
  .page-taxonomy-term-123 #block-system-main,
  .page-taxonomy-term-124 #block-system-main,
  .page-taxonomy-term-125 #block-system-main{
    margin-left: -2%;
    margin-right: -2%;
  }
  .page-taxonomy-term-149 #block-system-main .content > .node,
  .page-taxonomy-term-123 #block-system-main .content > .node,
  .page-taxonomy-term-124 #block-system-main .content > .node,
  .page-taxonomy-term-125 #block-system-main .content > .node{
    width: 29%;
    margin: 0 2% 4%;
    height: 170px;
  }
}

@media only screen and (min-width: 1201px){
  .page-taxonomy-term-149 #block-system-main .content > .node,
  .page-taxonomy-term-123 #block-system-main .content > .node,
  .page-taxonomy-term-124 #block-system-main .content > .node,
  .page-taxonomy-term-125 #block-system-main .content > .node{
    height: 220px;
  }
}

/* autres ajustements */
.taxonomy_buttons .surmesure_link .surmesure_text {
  font-size: 18px;
}

.h_top_part.container .logo_numero1 {
  position: absolute;
  right: 72px;
  top: 65px;
  width: 31%;
}

.jackbox-social{
  display: none;
}

.view-cat-gorie-parente{

}
.view-cat-gorie-parente .views-row{
  /*float: right;*/
  margin: 0 0 1rem 1rem;
  text-align: right;
}
.view-cat-gorie-parente .views-row a{
  display: inline-block;
  padding: .5rem 1.5rem;
  color: #fff;
}
.view-cat-gorie-parente .views-row a:hover,
.view-cat-gorie-parente .views-row a:focus{
  text-decoration: underline;
}

@media only screen and (min-width: 993px){
  .view-cat-gorie-parente .views-row{
    margin-top: -31px;
    margin-bottom: 31px;
  }
}

.btn-571a66 > a{background-color: #571a66!important;}
.btn-ed797d > a{background-color: #ed797d!important;}
.btn-eb5d0b > a{background-color: #eb5d0b!important;}
.btn-e0001e > a{background-color: #e0001e!important;}
.btn-70c2b2 > a{background-color: #70c2b2!important;}
.btn-21a1e1 > a{background-color: #21a1e1!important;}
.btn-9a929d > a{background-color: #9a929d!important;}
.btn-ddda2a > a{background-color: #ddda2a!important;}
.btn-70c2b2 > a{background-color: #70c2b2!important;}
.btn-e75a1d > a{background-color: #e75a1d!important;}

@media only screen and (min-width: 457px){
  .h_top_part.container .logo_numero1 {
    right: 74px;
    top: 120px;
    width: 32%;
  }
}
@media only screen and (min-width: 571px){
  .h_top_part.container .logo_numero1 {
    right: 12px;
    top: 64px;
    width: auto;
  }
}
@media only screen and (min-width: 681px){
  .h_top_part.container .logo_numero1 {
    top: -3px;
  }
}
@media only screen and (min-width: 993px){
  .h_top_part.container .logo_numero1 {
    top: 15px;
    right: auto;
  }
}

#block-bean-rebond-entreprise .bean-sidebar-block.bck-img a{
    overflow: visible;
}

/* Only for mobile */
@media only screen and (max-width: 380px){
  .menu_wrap.type_2 .main_menu > li > a span,
  .menu_wrap.type_2 .main_menu > li > a h2{
    font-size: .7em;
  }
  .menu_wrap.type_2 .main_menu > li:nth-of-type(7) > a span,
  .menu_wrap.type_2 .main_menu > li:nth-of-type(7) > a h2 {
    margin-top: -9px !important;
  }
}

@media only screen and (max-width: 456px){
  .h_bot_part .logo_wrapper{
    margin-top: -65px;
  }
  .logo_wrapper img{
    width: 60%;
  }
  .h_top_part.container {
    padding-top: 30px !important;
  }
  .h_top_part .search_form{
    display: none;
  }
  .webform-client-form #edit-submitted-interest {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
    height: auto;
  }
}
@media only screen and (max-width: 570px){
  .h_top_part .language_selector{
    display: none;
  }
}
@media only screen and (max-width: 767px){
  .region-right-sidebar .reinsurance-list.horizontal_list,
  #block-views-sidebar-dernieres-actus-block{
    width: 100%;
  }
  .region-right-sidebar .bottom_slider_link {
    max-width: 371px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 992px){
  .d_block.contact_us_link .xxs_image{
    width: 17px;
  }
  .d_block.devis_link .xxs_image{
    width: 20px;
  }
  .d_block.catalogue_link .xxs_image{
    width: 28px;
  }
  .d_block.surmesure_link .xxs_image{
    width: 23px;
  }
}

/* Shortcode 'Bouton' */
a.bouton{
  display: inline-block;
  background: #2859a3;
  border: #2859a3 1px solid;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
  padding: 16px 69px 16px 19px!important;
  margin: 20px auto;
  position: relative;
}
a.bouton:before{
  content: '';
  display: block;
  position: absolute;
  width: 1px;
  height: 24px;
  background: #fff;
  right: 49px;
  top: 50%;
  margin-top: -12px;
}
a.bouton:after{
  content: '›';
  display: block;
  position: absolute;
  top: 50%;
  font-weight: normal;
  font-size: 36px;
  margin-top: -21px;
  right: 20px;
}
a.bouton:hover,
a.bouton:focus{
  text-decoration: none;
  background: #fff!important;
  color: #2859a3!important;
}
a.bouton:hover:before,
a.bouton:focus:before{
  background: #2859a3;
}


/* IE 10+ hack */
@media only screen and (min-width:768px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  #block-system-main-menu .main_menu{
    display: table;
  }
  #block-system-main-menu .main_menu > li{
    display: table-cell;
  }
  #block-system-main-menu .main_menu > li > a{
    display: block;
  }
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {

}
