The present invention relates to fungicidal N-hetarylcarbonyl-2-(benzocycloalken-1-yl)piperidines or pyrrolidines of formula (I), and their thiocarbonyl derivatives, wherein A represents a carbo-linked, unsaturated or partially saturated, 5-membered heterocyclyl group that can be substituted by up to four groups R that can be the same or different; T represents 0 or S; n represents 1 or 2; m represents 1, 2 or 3; p represents 1, 2, 3 or 4, L1 and L2 independently represent CZ4Z5, NZ6, 0, S, S(O) or S(0)2; and R and Z1-Z6 are as defined in the claims; their process of preparation and intermediate compounds for their preparation, their use as fungicides, particularly in the form of fungicidal compositions and methods for the control of phytopathogenic fungi of plants using these compounds or their compositions.