Pairing and superconductivity from weak to strong coupling in the attractive Hubbard model