Probing the shape of the mixing profile and of the thermal structure at the convective core boundary through asteroseismology