Clustering-based redshift estimation: Application to VIPERS/CFHTLS