Typing numbers on a MacBook Pro with AZERTY keyboard with Caps Lock — possible?

Solution 1:

In System Preferences, Keyboard set your keyboard to French Numerical, et voilà ;)

(You might need to change it once again in the menu bar on the top right.)