I think it likely that you won't make it to Pamplona in time to catch the bus to St Jean. That means spending a night in Pamplona, taking or sharing a cab to St Jean, or starting your camino from Pamplona. Are you okay with spending a night in Madrid and another in Pamplona? If you skip Madrid...