Depending on the lease, the scope of the guarantee is not the same. In theory, the lessor can regulate the charges with the rental deposit you have made. The rental guarantee is provided, among other things, for that. Indeed, it aims to guarantee the owner in the event of:
Damage to the rental property;
Unpaid or partially paid rents;
Adjustment of charges or charges not paid by the tenant.
To conclude, the civil code provides a legal framework so that neither the tenant nor the lessor finds himself in uncomfortable situations. However, it should be kept in mind that what takes precedence is essentially the rental agreement that will have been drawn up.
This is why you must be particularly careful when reading and signing the lease. This avoids many complications afterwards.
If upon reading the lease certain points call out to you, do not hesitate to have them explained to you. Depending on the situation, compromises between lessor and tenant can be considered to get everyone to agree. In this case, it goes without saying that a new lease will have to be drawn up and signed jointly.