Dynamics and geometry near resonant bifurcations by