Electronic lock, intended to be controlled by a key comprising electronic means for controlling the unlocking of the lock, the lock comprising: - a stator and a rotor that is mounted so as to rotate in the stator and is provided with a channel into which the key can be introduced, - a member for blocking the rotor, said member being movable in a housing of the stator between a blocking position, in which it is engaged with the rotor in order to prevent it from rotating, and a retracted position, in which it allows the rotor to rotate, - a stop that is fixed without any degree of freedom to the stator, - a locking lever that is able to turn about a first pin, in response to an electric unlocking command, between a locking position, in which the locking lever is likely to come into abutment on one side against the stop and, on another side, against the blocking member so as to keep the blocking member in its blocking position, and an unlocking position, in which the blocking member is free to leave its blocking position, characterized in that the lock comprises: - a first rail formed in the stator, on which a first end (49; 93A) of the first pin (46; 92) is mounted in a sliding manner such that the first pin is movable, in response to the blocking member bearing on the locking lever: • from a high position in which the locking lever is separated from the stop by a clearance, • to a low position in which the locking lever is immobilized in the locking position as a result of it bearing on the stop and on the blocking member, - a return means that urges the first pin (46; 92) into its high position. - a stator and a rotor that is mounted so as to rotate in the stator and is provided with a channel into which the key can be introduced, - a member for blocking the rotor, said member being movable in a housing of the stator between a blocking position, in which it is engaged with the rotor in order to prevent it from rotating, and a retracted position, in which it allows the rotor to rotate, - a stop that is fixed without any degree of freedom to the stator, - a locking lever that is able to turn about a first pin, in response to an electric unlocking command, between a locking position, in which the locking lever is likely to come into abutment on one side against the stop and, on another side, against the blocking member so as to keep the blocking member in its blocking position, and an unlocking position, in which the blocking member is free to leave its blocking position, - a first rail formed in the stator, on which a first end (49; 93A) of the first pin (46; 92) is mounted in a sliding manner such that the first pin is movable, in response to the blocking member bearing on the locking lever: • from a high position in which the locking lever is separated from the stop by a clearance, • to a low position in which the locking lever is immobilized in the locking position as a result of it bearing on the stop and on the blocking member, • from a high position in which the locking lever is separated from the stop by a clearance, • to a low position in which the locking lever is immobilized in the locking position as a result of it bearing on the stop and on the blocking member, - a return means that urges the first pin (46; 92) into its high position.