Changes in agricultural practices have reshaped agricultural landscapes and triggered a drastic decline in spatial and temporal heterogeneity leading to changes in habitat quality and food resources for birds. However, the precise relationships between landscape changes, spatial and temporal heterogeneity, and habitat preferences in response to those changes remain poorly known. We investigated patterns of habitat selection and causes for changes over the years 1997–2017 for the gray partridge Perdix perdix, an iconic farmland species which has experienced a severe decline since the 1950s. Using a long‐term (1997–2017) dataset collected over 435 km2, we modeled relationships between annual land‐cover maps and partridge sightings over 17 5‐y...