/*
Theme Name: irdinvest Child
Theme URI: https://ird-invest.fr/
Template: irdinvest
Author: IRD Invest
Author URI: https://ird-invest.fr/
Description: ThÃ¨me enfant basÃ© sur irdinvest
Version: 1.0
Text Domain: irdinvest-child
*/


.filtre-wrapper {
display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: space-around;
    flex-direction: row;
    align-content: center;
   
}
@media screen and (max-width: 1025px) {
.filtre-wrapper > * {
            flex: 1 1 48%;
    max-width: 100%;
}

.filtre-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: space-around;
    flex-direction: row; /* tu peux aussi le passer à column si besoin */
    align-content: center;
}



}

@media screen and (max-width: 768px) {
.filtre-wrapper > * {
    flex: 1; /* 2 colonnes avec l'espace du gap pris en compte */
    max-width: 100%;
}
.liste-categories li {
    padding: 5px 0px !important;
    list-style: none;
}
.filtre {
  position: relative;
  width: 100% !important;
}
ul.liste-categories {
    flex-direction: column !important;
    margin: 0px;
    padding: 20px;
}

#breadcrumbs {
    text-wrap-style: balance !important;
    text-align: center !important;
}

}

.filtre {
  position: relative;
  width: calc(25% - 50px);
}
.filtre-toggle:focus, .filtre-toggle:hover {
    color:#000 !important;
}

.filtre-toggle {
    width: 100%;
    cursor: pointer;
    padding: 15px 35px 15px 20px !important;
    display: block;
    position: relative;
    height: 100%;
     font-size: 18px !important;
     border-color:#000 !important;
        background: url(./img/bottom_noir.png) no-repeat right 15px center !important;
    background-size: 12px auto !important;
    text-align: left;
}

.filtre-toggle:hover {
  background-color: #EAEAEA;
  
}

.filtre-options {
overflow: hidden;
  max-height: 0;
  transition: all 1s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background: var( --e-global-color-primary );
  border: 1px solid transparent;
  padding: 0 10px;
  z-index: 1;
  min-width: 100%;
}
.filtre-options.open {
  max-height: 500px; /* valeur assez grande pour contenir tous les filtres */
  padding: 10px;
    transition: all 1s ease;
     border: 1px solid #000;
     padding: 10px 0;
     z-index: 2;
}

.filtre-options input[type="checkbox"] + span {
    cursor: pointer;
    display: block;
    background: url(./img/checkbox_off.png) no-repeat left 20px center;
    background-size: 15px auto;
    padding: 10px 20px 10px 50px;
}

.filtre-options input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.filtre-options input[type="checkbox"]:checked + span {
  background-image: url(./img/checkbox_on.png);
}

.filtre .nb {
      width: 20px;
    height: 20px;
    background-color: #000;
    color: #fff;
    font-size: 13px;
    text-align: center;
    border-radius: 20px;
    line-height: 19px;
    position: absolute;
    top: -5px;
    left: -10px;
}

.filtre.filter-actif button {
    color:#fff !important;
}

.vide {
    display: block;
    width: 100vw;
    margin: auto;
    font-style: italic;
    text-align: center;
    padding-top: 50px;
}

.linkcontainer {
    background: #000;
    color: #fff;
    padding: 20px;
    font-size: 14px;

}

figure.portefeuilleimg {

    display: flex
;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    padding: 30px;
    filter: grayscale(1);
}

a.alinkcontainer {
display: block;
    position: absolute;
    z-index: 2;
    background-color: #000;
    color: #fff;
    font-size: 14px;
    line-height: 16px;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    height: 100%;
    top: 0;
    width: 100%;
}
a.alinkcontainer:hover {
        opacity: 1;
         transition: all 0.4s ease-in-out;
}

.listeportefeuille {
padding: 25px;
    position: relative;
    width: 100%;
    display: flex;
    height: 310px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.figure.portefeuilleimg img {
    max-height: 310px;
    object-fit: contain;
}

.filtre .nb {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filtre.filter-actif .nb {
  opacity: 1;
}

div#resultat {
    overflow-x: hidden;
}

#resultats-count {
  font-style: italic;
}

ul.liste-categories {
    display: flex
;
    width: 100%;
    max-width: 1600px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
column-gap: 90px;
    margin-top: 20px;
}

.liste-categories li {
    list-style: none;

}
.liste-categories li a {
    text-transform: uppercase;
    font-weight: bold;
    font-family: var(--e-global-typography-8f5b840-font-family), Sans-serif;
    color:#000;
        font-size: 18px;
    line-height: 23px;
}

a.cat-active {
    text-decoration: underline !important;
}

.elementor-nav-menu--main .current_page_parent a (
color:var( --e-global-color-primary ) !important;
) 

