We report on a detailed study of the electronic properties of a series of boron-doped diamond epilayers with dopant concentration ranging from 1 x 10(20) to 3 x 10(2)1 cm(-3) and thicknesses (d perpendicular to) ranging from 2 mu m to 8 nm. By using well-defined mesa patterns that minimize the parasitic currents induced by doping inhomogeneities, we have been able to unveil a new phase diagram differing from all previous reports. We first show that the boron concentration corresponding to the onset of superconductivity (above 50 mK) does not coincide with that of the metal-insulator transition; the latter one corresponding to the vanishing of the residual conductivity sigma 0 (deduced from sigma(T) = sigma(0) + A root T fits to the low temperature data). Moreover, a dimensional crossover from 3D to 2D transport properties could be induced by reducing d perpendicular to in both (metallic) nonsuperconducting and superconducting epilayers but without any reduction of T-c in the latter.