/* Conteneur principal */
.main-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    margin: 20px auto;
    max-width: 100%;
    padding: 0 0px;
}

/* Colonne des catégories */
.categories-filters {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}


.filter-button {
    /* background-color: #F5E7D2; */
    color: #23979B;
    border-bottom: 1px solid #F5E7D2;
    padding: 10px 15px;
    /* border-radius: 10px; */
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    font-weight: 600;
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0px;
}

.filter-button:hover {
    background-color: #23979B;
    transform: translateX(5px);
	color: white;
}

.filter-button.active {
    background-color: #23979B;
    font-weight: 600;
	color: white;
	
}

/* Grille Masonry */
#masonry-grid {
    flex: 1;
    margin: 0 10px; /* Compensation pour le gutter */
}

.grid-item {
    width: calc(30% - 20px);
    margin: 20px 0px 10px 10px;
    /* background-color: rgba(245, 231, 210, 0.3); */
	background-color: white;
	border: 1px solid black;
    border-radius: 10px 0;
    /*box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.20);*/
    overflow: hidden;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.card {
    padding: 0px;
}

.card-text {
    padding: 15px;
} 

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.category {
    color: #23979B;
    font-size: 14px;
    margin-bottom: 10px;
	font-weight: 400;
    text-transform: uppercase; 
}

.name {
	color: #000;
    font-size: 19px !important;
    font-weight: 600 !important;
    margin: 10px 0;
}

.address {
    font-size: 16px;
    color: #000;
    margin: 5px 0;
}


.fas.fa-map-marker-alt, .fas.fa-phone {
	 font-size: 18px !important;
	color:#23979B;
}

.activity {
    
    color: black;
    font-size: 16px !important;
    font-weight: 500 !important;

	
}

.activity-text {
    
    color: white;
    font-size: 18px !important;
    font-weight: 500 !important;
    padding:10px !important;
    background-color: #E03245 !important;
	
}



.phone {
    font-size: 14px;
    color: #000;
    margin: 5px 0;
}

.button {
    display: inline-block;
	font-size: 16px;
    margin-top: 15px;
    padding: 2px 25px;
    background-color: #23979B;
    color: white !important;
    border-radius: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
}

.button:hover {
    background-color: #E03245 !important;
	font-weight: 600;
}



/* État de chargement */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.resultat-annuaire {
	text-align: center !important;
	padding:20px;
	background-color:#F5E7D24D;
	font-weight:600;
	margin-top:100px;
}

/* Responsive design */
@media screen and (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .categories-filters {
        flex: none;
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .grid-item {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .grid-item {
        width: calc(100% - 20px);
    }
    
    .card-image {
        height: 180px;
    }

}