Villerville has no train station. The nearest railheads are Deauville-Trouville (12 km east) and, with a connection, Lisieux — from which buses run to Honfleur (8 km west of Villerville). Note that Honfleur itself has no direct rail link; it is always reached by bus or car from Lisieux or Caen. A car is the practical option for this stretch of coast if you want any flexibility.
Honfleur is a 15-minute drive west along the D513 coast road; Deauville is 15 minutes east. In summer there are infrequent bus services from Honfleur operated by Bus Verts du Calvados, but the timetables are limited and the service does not run year-round. If you are combining Villerville with a broader Norman coast itinerary, the best approach is to base yourself in Honfleur or Deauville and drive the few kilometres to Villerville for the afternoon.