Anneaux commutatifs et géométrie affine