Former presidential candidate Segolene Royal and Martine Aubry , the architect of the country 's 35-hour work week , were neck-and-neck with nearly all votes counted , said Daniel Vaillant , a former interior minister .