The aim of this work is to solve mechanical problems on large structure containing details. We seperate the scale of thestructure from the one of the detail (two-scale analysis). The structural scale is solved using a mesh which does not take into accountthe detail. The detail is introduced either by an “extended” homogenization or by an enrichment strategy. The homogenization or theenrichment is obtained from a local analysis of the detail on a distinct mesh from the structural one. On this local mesh, the X-FEMapproach is used to carry out the analysis. The detail is considered embedded in an infinite media, so that the boundary conditions arenot an issue.