pinMode() relies on the hardware being ready. When your constructor is called, the hardware is not. You need a begin() method where you put the pinMode() calls.
You need to call the begin() method in setup().
readKeypad() and getValue() are not static methods, so they need to be called on an instance of the class (clavierNum) not on the class (Clavier).