New foundations for geometry