État civil, démarches administratives et élections