The guarantee is transferable, it is related to the building and not to the original purchaser. Thus, in the event of a change of owner, the guarantee will be transferred for the time remaining until the end of the guarantee.
For example, when the original buyer sells his house one month after acceptance, the subsequent buyer has 11 months of guarantee for non-apparent defects, 2 years and 11 months for latent defects, and 4 years and 11 months for defects of construction, design, production or earthwork defects (if the acceptance and the end of the works coincide).