From Old French cap a pie (modern French de pied en cap), from Latin caput (“head”) + pes (“foot”).
cap-a-pie (not comparable)