The border involving Spain and France follows the line of the highest peaks, While using the notable exception from the Aran valley, which belongs to Spain but is situated over the northern slope. A different exception is The good simple of La Cerdanya, and that is about the southern slope https://all-andorra.com/