Poincaré and algebraic geometry