/* /css/biens-style.css */
/* Grille des biens (3x4 ou 4x3) */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
    justify-items: center;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 350px;
    text-align: left;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.property-info {
    padding: 18px;
}

.property-info h3 {
    font-size: 1.3em;
    color: #1a3b5d;
    margin-bottom: 8px;
    font-weight: 600;
}

.property-info p {
    margin: 6px 0;
    color: #555;
    font-size: 0.95em;
}

.price {
    font-weight: bold;
    color: #d4af37;
    font-size: 1.2em;
}

.btn-primary {
    display: inline-block;
    background: #1a3b5d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 0.95em;
    font-weight: 500;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background: #0f2a40;
}

/* Menu catégories horizontal */
.categories-menu {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.categories-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 12px 0;
}

.categories-menu a {
    color: #1a3b5d;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.categories-menu a:hover,
.categories-menu a.active {
    background: #1a3b5d;
    color: white;
    transform: scale(1.05);
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    .categories-menu ul {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 0;
    }

    .categories-menu li {
        flex: 0 0 auto;
        margin: 0 5px;
    }

    .categories-menu a {
        font-size: 0.9em;
        padding: 6px 10px;
    }
}

/* Section du menu catégories */
.categories-section {
    border-bottom: 1px solid #eee;
}