.page-title {
    text-align: center;
    margin: 40px 0;
}

.badge-premium {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f5f5f5;
    color: #333;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;

    opacity: 0;                 /* caché */

    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.logements-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card-logement:hover .badge-premium {
    opacity: 1;                 /* visible au survol */
    transform: translateY(0);
}

.card-logement {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

.card-logement:hover {
    transform: translateY(-4px);
}

.card-logement img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination a {
    margin: 0 10px;
    text-decoration: none;
    color: #2c7be5;
}


@media (hover: none) {
    .badge-premium {
        opacity: 1;
    }
}
