.main-cat-list{
    display: flex;
    width: 100%;
    height: 650px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #00000080; 
    border-radius: 0px;
    margin-top: 30px;
}
.main-cat-list .ctn-itm-imm {
    width: 75%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    height: fit-content;
    border-right: 1px solid #7f7f7f;
    margin-right: 10px;
    min-height: 600px;
}
button.btn-link-cat {
    padding: 5px 10px 5px 10px;
}
.ctn-volume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.ctn-total-cel{
    background-color: #161618;
    padding-bottom: 20px;
    position: absolute;
    width: 24.5%;
}
#formulaire_demenagement .elementor-field-type-recaptcha {
    justify-content: center;
}
.ctn-total-cel p{
    margin: 0;
    color: #FFFFFF;
}
.ctn-total-cel p:nth-child(2){
    background-color: #31C436;
    color: #ffffff;
    padding: 5px 20px;
}
.ctn-tl-it {
  display: flex;
  padding: 20px 10px 10px 10px;
  color: #ffffff;
  align-items: center;
  justify-content: space-between;
}
.ctn-rafraichir{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}
.ctn-total-cel #reset-btn , .ctn-total-cel #reset-btn:hover,.ctn-total-cel #reset-btn:focus{
    background-image: none;
    border: none;
    color: #FFFFFF;
    text-decoration: underline;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 0;
}
.ctn-total-cel #reset-btn img{
    width: 20px;
    height: 20px;
}
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.ctn-refresh {
    animation: rotate 1s linear;
}
.itm-imm {
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    justify-content: center;
}
.itm-imm p{
    margin: 0;
}
.itm-imm-img {
    height: 135px;
}
.itm-imm-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.counter-button.decrease, .counter-button.increase{
    border-radius: 2px;
    padding: 0;
    width: 20px;
    height: 20px;
}
.counter-button.increase{
    background-color: #31c436;
    background-image: none !important;
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}
.counter-button.decrease{
    background-color: #161618;
    background-image: none !important;
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}
.elementor-field-group-logement_actuel .elementor-field-subgroup.elementor-subgroup-inline,.elementor-field-group-future_logement .elementor-field-subgroup.elementor-subgroup-inline  {
    justify-content: center;
    align-items: center;
}
.counter-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}
.ctn-itm-list .list-item {
    display: flex;
    border-bottom: 1px solid #eeeeee;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    margin-top: 20px;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}
.list-item:nth-child(2) {
  margin-top: 200px;
}
.ctn-itm-list .list-item p{
    margin: 0;
}
.ctn-itm-list {
    width: 25%;
}
.hd-cat-item-link {
    display: flex;
    justify-content: center;
    padding: 0 0 0px 0;
    background-color: #31C436;
}
body .hd-cat-item-link button{
    background-image: none;
    border: none;
    color: #FFFFFF;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #FFFFFF;
}
body .hd-cat-item-link button:hover,body .hd-cat-item-link button:focus{
    background-color: #FFFFFF;
    color: #161618;
}
.ctn-itm-list > p span:nth-child(2) {
    color: #FFFFFF;
    background-color: #161618;
    border-radius: 10px;
    padding: 2px 5px;
}
.ctn-itm-list > p span:nth-child(1) {
    color: #31c436;
    text-decoration: underline;
}
.ctn-btn-devis #btn-devis {
  padding: 10px;
}
#formulaire_devis_volume input[type="radio"] {
  display: none; /* Cache le bouton natif */
}
#formulaire_devis_volume .elementor-field-type-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  max-width: 100%; /* Empêche le débordement */
  white-space: normal; /* Le texte s'enroule */
  word-break: break-word; /* Coupe les mots si nécessaire */
  position: relative;
}
/* Le bouton radio personnalisé */
#formulaire_devis_volume .elementor-field-type-radio label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #31C436;
  border-radius: 3px;
  background-color: #FFFFFF;
  flex-shrink: 0; /* Ne se réduit pas */
  position: relative;
}
/* Coche active */
#formulaire_devis_volume .elementor-field-type-radio input[type="radio"]:checked + label::before {
  background-color: #FFFFFF;
  border-color: #31C436;
}

#formulaire_devis_volume .elementor-field-type-radio input[type="radio"]:checked + label::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 4px;
  width: 12px;
  height: 12px;
  background-color: #31C436;
  border-radius: 1px;
}
button#btn-devis {
  flex-basis: 222px !important;
}
.ctn-btn-devis {
  align-items: center !important;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap !important;
}
.ctn-btn-devis .search-btn span {
  display: none;
}
.ctn-btn-devis .search-btn{
    background-image: linear-gradient(90deg, var() 0%, #B1D412 100%);
}
.ctn-btn-devis .search-form {
  gap: 0 !important;
}
.ctn-btn-devis .search-form button {
  border-radius: 0px 5px 5px 0px !important;
}
.btn-link-cat.active {
  background-color: #FFFFFF !important;
  color: #000000;
}
.ctn-btn-devis .search-form {
  border: 1px solid #00000080;
  border-radius: 5px;
  overflow: hidden;
}
.ctn-btn-devis #recherche_ .search-input-wrapper {
  border: none;
}
.main-cat-list {
  overflow-y: scroll;
  max-height: 650px; /* adapte selon ton design */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #888 #f1f1f1; /* Firefox */
}
/* Pour Chrome, Edge, Safari */
.main-cat-list::-webkit-scrollbar {
  width: 8px;
}

.main-cat-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.main-cat-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 50px;
}
.main-cat-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.btn-lst-in {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column-reverse;
}
#recherche_ .e-search input[type="search"] {
    min-height: 40px;
    border-radius: 10px;
    padding: 10px 10px 10px 45px;
}
#recherche_ .e-search-submit {
    height: 43px;
    padding: 0 20px;
    border-radius: 10px;
}
#recherche_ .e-search-submit svg {
    width: 14px;
}
#recherche_ {
    padding: 20px 0;
    background-image: linear-gradient(-90deg, var(--e-global-color-accent) 0%, var(--e-global-color-fd9785c) 100%);
}
#recherche_ .e-search .e-search-label svg{
    fill:#757575;
    width: 18px;
}
.itm-imm .mesure {
    color: #31c436;
}
.mesure-val,.info-tota{
    color: #31c436;
}

#recherche_ .search-input-wrapper{
    display: flex;
}
#recherche_ .search-input-wrapper svg{
    width: 18px;
    fill:#757575;
    display: none;
}
#main-scal #recherche_ .search-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #f1f1f1;
    background-color: #000000;
    border: none;
    background-image:none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 400;
}
#recherche_ .search-btn svg{
    fill: #f1f1f1;
}
#recherche_ .search-btn:hover{
    background-color: #161618;
}
#recherche_ .search-form{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
#recherche_ .search-input-wrapper{
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #00000080;
    border-radius: 0;
    padding-bottom: 1px !important;
}
#recherche_ .search-input_{
    border: none;
}
#recherche_ .search-input_:focus{
    outline: none;
}
.elementor-message.elementor-message-success {
    background-color: #FEEACF !important;
    display: flex !important;
    align-items: center !important;
    padding: 20px !important;
}
.elementor-field-group-liste_mobilier_{
    display: none;
}
.hd-cat-item-scro {
  display: flex;
  padding: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

@media(max-width:768px){
    .ctn-total-cel{
        position: relative;
        width: 100%;
        right: 0;
    }
    .list-item:nth-child(2) {
        margin-top: 20px;
    }
    .hd-cat-item-link {
        width: 100%;
    }
    .hd-cat-item-scro{
        justify-content: start;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px;
        display: flex;
    }
    .main-cat-list {
        flex-direction: column;
    }
    .main-cat-list .ctn-itm-imm {
        width: 100%;
        border-right: none;
        margin-right: 0;
        min-height: auto;
    }
    .ctn-itm-list {
        width: 100%;
        padding: 20px;
    }
    .btn-close-cat {
        width: 25px;
        height: 25px;
        position: relative;
        margin-left: calc(100% - 50px);
        margin-bottom: 20px;
    }
    .btn-close-cat div{
        width: 100%;
        height: 1px;
        background-color: #161618;
        position: absolute;
        top: 50%;
        left: 0;
    }
    .btn-close-cat div:nth-child(1){
        transform: rotate(45deg);
    }
    .btn-close-cat div:nth-child(2){
        transform: rotate(-45deg);
    }
    #recherche_ .search-form{
        gap: 10px;
    }
    #recherche_ .search-input-wrapper{
        width: 100%;
        padding: 0 10px;
    }
    #main-scal #recherche_ .search-form{
        flex-wrap: wrap;
    }
}
@media(max-width:685px){
    button#btn-devis{
        flex-basis: 100% !important;
    }
    .btn-link-cat {
        padding: 0px 10px !important;
    }
}
@media(max-width:499px){
    .main-cat-list .itm-imm{
        width: 45%;
    }
    .main-cat-list .ctn-itm-imm{
        gap: 10px;
        justify-content: center;
    }
    .main-cat-list{
        padding: 20px 0;
    }
    
}
@media(max-width:479px){
    .main-cat-list .ctn-itm-imm {
        justify-content: center;
    }
    #recherche_ .e-search-form {
        flex-direction: column;
        gap: 20px;
    }
    #recherche_ .e-search .e-search-label svg {
        margin-top: 20px;
    }
    #recherche_ .e-search .e-search-input-wrapper {
        margin-top: -20px;
    }
    #recherche_ .e-search-submit {
        margin-left: 0;
    }
    #formulaire_devis_volume .elementor-field-subgroup.elementor-subgroup-inline {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -------------- */

