:root {
    --primary-color: #8B5E3C; /* Couleur marron du titre */
    --text-dark: #333;
    --text-light: #777;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 50px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* En-tête de section */
.section-tag {
    background: #f0e6dd;
    color: var(--primary-color);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1rem;
}

/* Grille des cartes */
.property-grid {
    display: flex;
    justify-content: center;
    gap: 50px; /* Augmentation de l'espace entre les cartes */
    flex-wrap: wrap; /* Adaptatif pour mobile */
}

/* Style de la carte */
.property-card {
    background: transparent;
    width: 350px;
    text-align: left;
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
}

/* Conteneur d'image avec superposition */
.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges (À Vendre / À Louer) */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    color: white;
    font-weight: bold;
}

.sale { background-color: rgba(139, 94, 60, 0.8); }
.rent { background-color: rgba(0, 51, 102, 0.8); }

/* Prix sur l'image */
.price-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.price-tag span {
    font-size: 0.9rem;
    font-weight: normal;
}

/* Infos sous l'image */
.property-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.location {
    color: #999;
    font-size: 0.9rem;
}