/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* --------------------------------------------------
                    Header
-------------------------------------------------- */
@media (max-width: 991px) {
    :root body {
       --Bandeau: 50vh;
    }
}

.mega-titre-section {
  background: var(--gris-clair) !important;
  padding: 10px !important;
  display: flex !important;
  justify-content: center;
  margin-bottom: 10px !important;
}

.mega-titre-section > a {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
}

.mega-titre > a {
  margin-top: 10px !important;
  margin-bottom: 5px !important;
  font-size: 13px !important;
}

.mega-menu-description {
  display: none !important;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 .mega-lien a.mega-menu-link,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 .mega-lien a.mega-menu-link:visited {
  color: #666;
  font-family: inherit;
  font-size: 12px !important;
  text-transform: uppercase !important;
  text-decoration: none;
  font-weight: normal !important;
  text-align: left;
  margin: 5px 0px 5px 5px !important;
  padding: 0px;
  border: 0;
  display: flex;
}

#mega-menu-wrap-max_mega_menu_1 
#mega-menu-max_mega_menu_1 
.mega-lien > a.mega-menu-link::before {
  content: "";
  display: inline-block; /* clé */
  width: 12px;
  height: 12px;
  min-width: 12px;       /* évite l’écrasement */
  min-height: 12px;
  background: url('/wp-content/themes/bricks-child/image/arrow-color.svg') no-repeat center / contain;
  margin-right: 5px;
  vertical-align: middle; /* alignement stable */
  pointer-events: none;
}


#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-megamenu > ul.mega-sub-menu, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-flyout ul.mega-sub-menu {
  margin-top: 21px !important;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li:not(.mega-contact-link, .mega-cholet-basket-link, .mega-e-source-tag-in-link) > a.mega-menu-link {
  padding: 15px 0px !important;
  margin-inline: 7.5px !important;
}

@media all and (max-width: 1200px) {
  #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li:not(.mega-contact-link, .mega-cholet-basket-link, .mega-e-source-tag-in-link) > a.mega-menu-link {
    padding: 10px 0px !important;
  margin-inline: 5px !important;
  font-size: 12px !important;
  }
}
@media all and (min-width: 1101px) {
  #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li:not(.mega-contact-link, .mega-cholet-basket-link, .mega-e-source-tag-in-link) > a.mega-menu-link::after{
    content: ' ';
    width: 0px;
    display: flex;
    background-color: var(--noir);
    flex-direction: column;
    height: 2px;
    transition: All 0.3s linear;
    transform-origin: top left;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: flex-start;
    position: absolute;
    bottom: 8px;
    left: 0px;
  }
  
  
  #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li > a.mega-menu-link:hover::after, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-toggle-on > a.mega-menu-link::after {
    width: 100%;
  }
  
  #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-disable-link > a.mega-menu-link:hover::after, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-toggle-on.mega-disable-link > a.mega-menu-link::after {
    width: calc(100% - 15px);
  }

}



#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-e-source-tag-in-link a.mega-menu-link, 
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-cholet-basket-link a.mega-menu-link,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-e-source-tag-in-link a.mega-menu-link:visited, 
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-cholet-basket-link a.mega-menu-link:visited {
  color: var(--rouge);
  text-align: center;
  text-transform: uppercase;
  font-family: "Roboto";
  font-weight: 400;
  font-size: var(--font-size-small);
  align-self: center;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 0px;
  display: flex;
  border-left: 1px solid var(--gris-clair);
  height: 76px;
  padding-right: 0;
  padding-left: 8px;
  line-height: 1.3;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-e-source-tag-in-link a.mega-menu-link:hover, 
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-cholet-basket-link a.mega-menu-link:hover,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-e-source-tag-in-link a.mega-menu-link:focus,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-cholet-basket-link a.mega-menu-link:focus,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-e-source-tag-in-link a.mega-menu-link:active,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-cholet-basket-link a.mega-menu-link:active {
  color: var(--violet)
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-cholet-basket-link a.mega-menu-link {
  margin-left: 8px;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-e-source-tag-in-link a.mega-menu-link::before {
  content: ' ';
  display: block !important;
  width: 31px;
    height: 34px;
  background-image: url(https://tandem.enjin-dev.fr/wp-content/uploads/2025/09/e-soucre-tag-in.png);
  background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-inline: auto;
    margin-bottom: 8px;
    flex-shrink: 0;
}

#mega-menu-max_mega_menu_1 
  li.mega-cholet-basket-link > a.mega-menu-link::before {

    content: "";
    display: block !important;

    width: 31px;
    height: 34px;

    background-image: url(https://tandem.enjin-dev.fr/wp-content/uploads/2025/09/partenaire-cholet-basket.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-inline: auto;
    margin-bottom: 8px;
    flex-shrink: 0;
  }


#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-contact-link a.mega-menu-link,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-contact-link a.mega-menu-link:visited {
  color: var(--blanc);
  padding-top: 8px;
  padding-right: 18px;
  padding-bottom: 8px;
  padding-left: 18px;
  background-color: var(--violet);
  border: 1px solid var(--violet);
  border-radius: 9px;
  transition: all 0.2s linear;
  margin-right: 15px;
  margin-left: 7.5px;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-contact-link a.mega-menu-link:hover,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-contact-link a.mega-menu-link:focus,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-contact-link a.mega-menu-link:active {
  color: var(--noir-texte);
  background-color: rgba(0, 0, 0, 0);
}


.mega-sub-menu a:hover, 
.mega-sub-menu a:focus,
.mega-sub-menu a:active {
  color: var(--violet) !important;
}


/* RESPONSIVE MENU */
@media (max-width: 1100px) {


  #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner, #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::before, #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::after {
    background-color: var(--noir);
  }

  #mega-menu-max_mega_menu_1 {
    paddig-top: 20px;
  }



    #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle ~ button.mega-close {
        display: flex;
        position: fixed;
        top: 10px;
        z-index: 99999999999;
        cursor: pointer;
        right: 10px !important;
        border: 1px solid var(--noir);
        border-radius: 2em;
    }

  #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle ~ button.mega-close:before {
          display: flex;
          content: "";
          font-family: dashicons;
          font-weight: normal;
          color: #333;
          align-items: center;
          justify-content: center;
          width: 25px;
          height: 25px;
          font-size: 18px;
  }

  #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-megamenu > ul.mega-sub-menu {
    box-shadow: none !important;
  }

  #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-megamenu > ul.mega-sub-menu, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-flyout ul.mega-sub-menu {
    margin-top: 0px !important;
  }

  .mega-titre-section {
    padding: 5px 4px !important;
  }

    .mega-titre-section a {
        font-size: 14px !important;
    }

    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item.mega-contact-link a.mega-menu-link{
      justify-content: center;
      margin-block: 25px
    }


    #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle + #mega-menu-max_mega_menu_1 {
    flex-direction: row;   /* 👈 au lieu de column */
    flex-wrap: wrap;
    align-items: flex-start;
        align-content: flex-start;
  }

  #mega-menu-max_mega_menu_1 > li {
    flex: 0 0 100%;
  }
  #mega-menu-max_mega_menu_1 > li.e-source-tag-in-link,
  #mega-menu-max_mega_menu_1 > li.cholet-basket-link {
    flex: 0 0 50%;
    max-width: 50%;
  }

  #mega-menu-max_mega_menu_1 > li > a.mega-menu-link {
    padding: 12px 15px !important;
    line-height: 1.2;
  }

   #mega-menu-max_mega_menu_1 
  > li.e-source-tag-in-link a,
  #mega-menu-max_mega_menu_1 
  > li.cholet-basket-link a {
    border: 0 !important;
  }

}
/* Variante sans augmenter la spécificité */
:where(.filtre-categories-secteur) :where(a[aria-current="page"]) {
  color: white;
  background-color: var(--noir);
}

.sous-menu-drop .brx-submenu-toggle a {
  position: relative;
}

.sous-menu-drop .brx-submenu-toggle a::before {
  content: ' ';
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 5px;
}

.sous-menu-drop .brx-submenu-toggle a:hover::before, .sous-menu-drop.active .brx-submenu-toggle a::before {
  width: 10px;
  height: 10px;
  background-image: url(/wp-content/uploads/2025/09/arrow-color.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 10px;
}

.lien-menu a::after, .sous-menu-drop .brx-submenu-toggle a::after  {
  width: 0;
  height: 2px;
  background-color: transparent;
  align-self: flex-start;
  justify-content: center;
  align-items: flex-start;
  content: ' ';
  position: absolute;
  bottom: -3px;
  transform-origin: center left;
  transition: all 0.3s linear;
  z-index: 1005;
  left: 25px;
}

.lien-menu a:hover ::after,.sous-menu-drop .brx-submenu-toggle a:hover::after {
  width: calc(100% - 25px);
  background-color: var(--violet);
}

.sous-menu-drop.active .brx-submenu-toggle a::after {
  width: calc(100% - 25px);
  background-color: var(--violet);
  height: 2px;
  align-self: flex-start;
  justify-content: center;
  align-items: flex-start;
  content: ' ';
  position: absolute;
  bottom: -3px;
  transform-origin: center left;
  transition: all 0.3s linear;
  z-index: 1005;
  
}

.lien-menu:has([aria-current="page"])::after {
    width: 100% !important;
    background-color: var(--violet) !important;
    height: 2px;
    align-self: flex-start;
    justify-content: center;
    align-items: flex-start;
    content: ' ';
    position: absolute;
    bottom: -3px;
    transform-origin: center left;
    transition: all 0.3s linear;
    z-index: 1005;
}

/* --------------------------------------------------
                    Footer
-------------------------------------------------- */

footer .txt-footer .brxe-text {
    margin-block-start: 10px;
}

/* --------------------------------------------------
                    Home
-------------------------------------------------- */

.section-info h2.Titre-expertise:before {
  top: 0px;
}

.liste-info-home li::before{
  content: "";
  position: absolute;
  left: 10px;
  top: 0.85em;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  backgroud: url('/wp-content/themes/bricks-child/image/arrow-color.svg') no-repeat center / contain; mask: url('/wp-content/themes/bricks-child/image/arrow-color.svg') no-repeat center / contain;
  background: #fff;;
  pointer-events: none;
}

.liste-info-home li a span:hover {
  text-decoration-line: underline;
  text-decoration-color: var(--blanc);
  text-underline-offset: 3px;   
}

.onglet-home .Titre-expertise:before {
  top: -25px;
}

.onglet-home .tab-menu #texte-onglet-1.tab-title.brx-open {
  background-color: var(--violet);
}
.onglet-home .tab-menu #texte-onglet-2.tab-title.brx-open {
  background-color: var(--bleu-ciel);
}
.onglet-home .tab-menu #texte-onglet-3.tab-title.brx-open {
  background-color: var(--vert-turquoise-plein);
}

.onglet-home .tab-menu #texte-onglet-4.tab-title.brx-open {
  background-color: #8C8C8C;
}

.texte-surligner {
  text-shadow:
    1px  0   0 #fff,
    -1px  0   0 #fff,
    0    1px 0 #fff,
    0   -1px 0 #fff,
    1px  1px 0 #fff,
    -1px  1px 0 #fff,
    1px -1px 0 #fff,
    -1px -1px 0 #fff;
}

.couleur-bandeau-hygiene:before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #96c8f1, rgba(255, 255, 255, 0));
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  height: var(--Bandeau);
}

.couleur-bandeau-securite:before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #9666c7, rgba(255, 255, 255, 0));
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  height: var(--Bandeau);
}

.couleur-bandeau-comptage:before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #1abeb7, rgba(255, 255, 255, 0));
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  height: var(--Bandeau);
}

@media (max-width: 766px) {
  .couleur-bandeau-hygiene:before, .couleur-bandeau-securite:before, .couleur-bandeau-comptage:before {
    height: var(--Bandeau-2);
  }
}

@media (max-width: 477px) {
  .couleur-bandeau-hygiene:before, .couleur-bandeau-securite:before, .couleur-bandeau-comptage:before {
    height: var(--Bandeau-3);
  }
}

@media (min-width: 1120px) {
  .onglet-home > .tab-content {
    padding: 0px !important;
    border: none !important;
  }

  .onglet-home {
    display: grid;
  }

  #onglet-home-1 {
    grid-area: 1 / 1;
  }

  #onglet-home-2 {
    grid-area: 1 / 1;
    align-self: end;
    z-index: 10;
  }

}

@media (max-width: 1119px) {
  .onglet-home > .tab-content {
    padding: 0px !important;
    border: none !important;
  }
}

/* --------------------------------------------------
          Secteur d'activité / Produits
-------------------------------------------------- */

.fleches-liste-ul ul , .liste-info-home  {
	list-style: none; 
	margin: 0; 
	padding: 0;
}

.fleches-liste-ul ol {
  padding: 0;
  padding-left: 10px;
}

.fleches-liste-ul ul li, .liste-info-home li {
  position: relative;
  padding-left: 28px;
}

.fleches-liste-ul ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url('/wp-content/themes/bricks-child/image/arrow-color.svg') no-repeat center / contain;
  pointer-events: none;
}

.container-secteurs:hover #fleche-viollette {
  color: var(--violet);
}

.container-secteurs img, .curseur-secteur a img{
  transform: scale(1);
  transition: transform .2s ease;
}

.container-secteurs:hover img, .container-secteurs:focus-within img, 
.curseur-secteur a:hover img {
  transform: scale(1.06);
}


.container-secteurs .fa-arrow-right-long, .curseur-secteur .fa-arrow-right-long, .curseur-secteur a:hover span.bricks-button {
  color: var(--violet) !important;
}

.curseur-secteur button.splide__arrow--prev {
  right: 65px;
  left: unset;
}

.curseur-secteur button.splide__arrow--prev:hover, .curseur-secteur button.splide__arrow--next:hover {
  color: var(--violet) !important;
  border-color: var(--violet) !important;
}

.lien-texte-produit a {
  text-decoration-line: underline;
  text-decoration-color: var(--violet);
  text-underline-offset: 5px;   
  font-weight: 700;
}

.onglet-home .Titre-expertise:before {
  position: absolute;
  width: 160px;
  height: 15px;
  background-image: url('https://tandem.enjin-dev.fr/wp-content/uploads/2025/09/logo-title.svg');
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  top: -20px !important;
}

@media all and (max-width: 767px) {
  .onglet-home .Titre-expertise:before {
    width: 75%;
  }
}

h2.Titre-expertise:before{
  position: absolute;
  width: 160px;
  height: 15px;
  background-image: url('https://tandem.enjin-dev.fr/wp-content/uploads/2025/09/logo-title.svg');
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  top: 15px;
}

h3.Titre-expertise:before {
  position: absolute;
  width: 94px;
  height: 9px;
  background-image: url('https://tandem.enjin-dev.fr/wp-content/uploads/2025/09/logo-title.svg');
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  top: -15px;
}

.container-hover-expertises-produit:hover .hover-expertises-produit {
  width: 100%;
  transition: all 0.2s;
}

.hover-expertises-produit {
  width: 50%;
  transition: all 0.2s;
}

/* --------------------------------------------------
          Expertise
-------------------------------------------------- */

.carte-produit img {
  transition: all 0.2s;
}

.carte-produit:hover img {
  hoverflow: hidden;
  transform: scale(1.06);
}

.carte-produit p {
  margin-bottom: 20px;
}

.bloc-expertise .overlay-expertise{
  transition: all 0.3s ease-in-out;
}

.bloc-expertise:hover .overlay-expertise {
  height: 100% !important;
}


/* --------------------------------------------------
          Article
-------------------------------------------------- */

.shortcode-article p a {
  text-decoration-line: underline;
  text-decoration-color: var(--violet);
  text-underline-offset: 5px;   
  font-weight: 700;
}

.shortcode-article .brxe-container {
  width: 100%;
}

.shortcode-article h2 {
  font-size: var(--font-size-h2-secteur-activite);
  line-height: var(--line-height-titre-h2-secteur-activite);
  text-transform: uppercase;
  margin-bottom: var(--espace-in-section);
}

.shortcode-article h3 {
  font-size: var(--font-size-h3-secteur-activite);
  line-height: var(--line-height-titre-h2-secteur-activite);
  text-transform: uppercase;
  margin-bottom: var(--espace-in-bloc-petit);
}
.shortcode-article h4 {
  font-size: var(--font-size-h3-secteur-activite);
  line-height: var(--line-height-titre-h2-secteur-activite);
  text-transform: uppercase;
  margin-bottom: var(--espace-in-bloc-petit);
}


.shortcode-article p {
  margin-bottom: var(--espace-in-section);
  font-size: var(--font-size-p);
}

.shortcode-article img {
  margin-bottom: var(--espace-in-section) !important;
}

.img-bloc-contact {
  position: relative;
}

.img-bloc-contact::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -50px;;
  width: 140px;
  aspect-ratio: 1 / 1;
  background: url("https://tandem.enjin-dev.fr/wp-content/uploads/2025/09/cta-contact.png") no-repeat center / contain;
  z-index: 2;
}