Le chemin optimal du déconfinement