The Allen-Cahn Euclidean Isoperimetric Problem And The Grad-Mercier Equation In Plasma Physics